configure revision 1.1.1.1.2.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-video-intel 2.7.1.
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-intel'
747 PACKAGE_TARNAME='xf86-video-intel'
748 PACKAGE_VERSION='2.7.1'
749 PACKAGE_STRING='xf86-video-intel 2.7.1'
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='LTLIBOBJS
790 LIBOBJS
791 MAKE_HTML
792 MAKE_PDF
793 MAKE_PS
794 MAKE_TEXT
795 BUILD_PDFDOC_FALSE
796 BUILD_PDFDOC_TRUE
797 BUILD_LINUXDOC_FALSE
798 BUILD_LINUXDOC_TRUE
799 PS2PDF
800 LINUXDOC
801 ADMIN_MAN_DIR
802 DRIVER_MAN_DIR
803 MISC_MAN_DIR
804 FILE_MAN_DIR
805 LIB_MAN_DIR
806 APP_MAN_DIR
807 ADMIN_MAN_SUFFIX
808 DRIVER_MAN_SUFFIX
809 MISC_MAN_SUFFIX
810 FILE_MAN_SUFFIX
811 LIB_MAN_SUFFIX
812 APP_MAN_SUFFIX
813 DRIVER_NAME
814 moduledir
815 WARN_CFLAGS
816 XVMC_FALSE
817 XVMC_TRUE
818 XEXT_LIBS
819 XEXT_CFLAGS
820 XVMCLIB_LIBS
821 XVMCLIB_CFLAGS
822 VIDEO_DEBUG_FALSE
823 VIDEO_DEBUG_TRUE
824 DRM_MODE_LIBS
825 DRM_MODE_CFLAGS
826 DRI_LIBS
827 DRI_CFLAGS
828 DRI_FALSE
829 DRI_TRUE
830 DRM_LIBS
831 DRM_CFLAGS
832 XMODES_CFLAGS
833 XMODES_FALSE
834 XMODES_TRUE
835 LIBPCIACCESS_FALSE
836 LIBPCIACCESS_TRUE
837 XSERVER_LIBPCIACCESS_FALSE
838 XSERVER_LIBPCIACCESS_TRUE
839 PCIACCESS_LIBS
840 PCIACCESS_CFLAGS
841 SERVER_1_5_LIBS
842 SERVER_1_5_CFLAGS
843 XORG_LIBS
844 XORG_CFLAGS
845 PKG_CONFIG
846 HAVE_GEN4ASM_FALSE
847 HAVE_GEN4ASM_TRUE
848 gen4asm
849 LTCXXCOMPILE
850 LTCOMPILE
851 DOLT_BASH
852 CPP
853 OTOOL64
854 OTOOL
855 LIPO
856 NMEDIT
857 DSYMUTIL
858 lt_ECHO
859 RANLIB
860 AR
861 OBJDUMP
862 LN_S
863 NM
864 ac_ct_DUMPBIN
865 DUMPBIN
866 LD
867 FGREP
868 EGREP
869 GREP
870 SED
871 am__fastdepCC_FALSE
872 am__fastdepCC_TRUE
873 CCDEPMODE
874 AMDEPBACKSLASH
875 AMDEP_FALSE
876 AMDEP_TRUE
877 am__quote
878 am__include
879 DEPDIR
880 OBJEXT
881 EXEEXT
882 ac_ct_CC
883 CPPFLAGS
884 LDFLAGS
885 CFLAGS
886 CC
887 host_os
888 host_vendor
889 host_cpu
890 host
891 build_os
892 build_vendor
893 build_cpu
894 build
895 LIBTOOL
896 MAINT
897 MAINTAINER_MODE_FALSE
898 MAINTAINER_MODE_TRUE
899 am__untar
900 am__tar
901 AMTAR
902 am__leading_dot
903 SET_MAKE
904 AWK
905 mkdir_p
906 MKDIR_P
907 INSTALL_STRIP_PROGRAM
908 STRIP
909 install_sh
910 MAKEINFO
911 AUTOHEADER
912 AUTOMAKE
913 AUTOCONF
914 ACLOCAL
915 VERSION
916 PACKAGE
917 CYGPATH_W
918 am__isrc
919 INSTALL_DATA
920 INSTALL_SCRIPT
921 INSTALL_PROGRAM
922 target_alias
923 host_alias
924 build_alias
925 LIBS
926 ECHO_T
927 ECHO_N
928 ECHO_C
929 DEFS
930 mandir
931 localedir
932 libdir
933 psdir
934 pdfdir
935 dvidir
936 htmldir
937 infodir
938 docdir
939 oldincludedir
940 includedir
941 localstatedir
942 sharedstatedir
943 sysconfdir
944 datadir
945 datarootdir
946 libexecdir
947 sbindir
948 bindir
949 program_transform_name
950 prefix
951 exec_prefix
952 PACKAGE_BUGREPORT
953 PACKAGE_STRING
954 PACKAGE_VERSION
955 PACKAGE_TARNAME
956 PACKAGE_NAME
957 PATH_SEPARATOR
958 SHELL'
959 ac_subst_files=''
960 ac_user_opts='
961 enable_option_checking
962 enable_maintainer_mode
963 enable_static
964 enable_shared
965 with_pic
966 enable_fast_install
967 enable_dependency_tracking
968 with_gnu_ld
969 enable_libtool_lock
970 with_xorg_module_dir
971 enable_dri
972 enable_video_debug
973 with_xserver_source
974 enable_xvmc
975 with_release_version
976 '
977 ac_precious_vars='build_alias
978 host_alias
979 target_alias
980 CC
981 CFLAGS
982 LDFLAGS
983 LIBS
984 CPPFLAGS
985 CPP
986 PKG_CONFIG
987 XORG_CFLAGS
988 XORG_LIBS
989 SERVER_1_5_CFLAGS
990 SERVER_1_5_LIBS
991 PCIACCESS_CFLAGS
992 PCIACCESS_LIBS
993 DRM_CFLAGS
994 DRM_LIBS
995 DRI_CFLAGS
996 DRI_LIBS
997 DRM_MODE_CFLAGS
998 DRM_MODE_LIBS
999 XVMCLIB_CFLAGS
1000 XVMCLIB_LIBS
1001 XEXT_CFLAGS
1002 XEXT_LIBS'
1003
1004
1005 # Initialize some variables set by options.
1006 ac_init_help=
1007 ac_init_version=false
1008 ac_unrecognized_opts=
1009 ac_unrecognized_sep=
1010 # The variables have the same names as the options, with
1011 # dashes changed to underlines.
1012 cache_file=/dev/null
1013 exec_prefix=NONE
1014 no_create=
1015 no_recursion=
1016 prefix=NONE
1017 program_prefix=NONE
1018 program_suffix=NONE
1019 program_transform_name=s,x,x,
1020 silent=
1021 site=
1022 srcdir=
1023 verbose=
1024 x_includes=NONE
1025 x_libraries=NONE
1026
1027 # Installation directory options.
1028 # These are left unexpanded so users can "make install exec_prefix=/foo"
1029 # and all the variables that are supposed to be based on exec_prefix
1030 # by default will actually change.
1031 # Use braces instead of parens because sh, perl, etc. also accept them.
1032 # (The list follows the same order as the GNU Coding Standards.)
1033 bindir='${exec_prefix}/bin'
1034 sbindir='${exec_prefix}/sbin'
1035 libexecdir='${exec_prefix}/libexec'
1036 datarootdir='${prefix}/share'
1037 datadir='${datarootdir}'
1038 sysconfdir='${prefix}/etc'
1039 sharedstatedir='${prefix}/com'
1040 localstatedir='${prefix}/var'
1041 includedir='${prefix}/include'
1042 oldincludedir='/usr/include'
1043 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1044 infodir='${datarootdir}/info'
1045 htmldir='${docdir}'
1046 dvidir='${docdir}'
1047 pdfdir='${docdir}'
1048 psdir='${docdir}'
1049 libdir='${exec_prefix}/lib'
1050 localedir='${datarootdir}/locale'
1051 mandir='${datarootdir}/man'
1052
1053 ac_prev=
1054 ac_dashdash=
1055 for ac_option
1056 do
1057 # If the previous option needs an argument, assign it.
1058 if test -n "$ac_prev"; then
1059 eval $ac_prev=\$ac_option
1060 ac_prev=
1061 continue
1062 fi
1063
1064 case $ac_option in
1065 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1066 *) ac_optarg=yes ;;
1067 esac
1068
1069 # Accept the important Cygnus configure options, so we can diagnose typos.
1070
1071 case $ac_dashdash$ac_option in
1072 --)
1073 ac_dashdash=yes ;;
1074
1075 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1076 ac_prev=bindir ;;
1077 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1078 bindir=$ac_optarg ;;
1079
1080 -build | --build | --buil | --bui | --bu)
1081 ac_prev=build_alias ;;
1082 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1083 build_alias=$ac_optarg ;;
1084
1085 -cache-file | --cache-file | --cache-fil | --cache-fi \
1086 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1087 ac_prev=cache_file ;;
1088 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1089 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1090 cache_file=$ac_optarg ;;
1091
1092 --config-cache | -C)
1093 cache_file=config.cache ;;
1094
1095 -datadir | --datadir | --datadi | --datad)
1096 ac_prev=datadir ;;
1097 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1098 datadir=$ac_optarg ;;
1099
1100 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1101 | --dataroo | --dataro | --datar)
1102 ac_prev=datarootdir ;;
1103 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1104 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1105 datarootdir=$ac_optarg ;;
1106
1107 -disable-* | --disable-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1112 { (exit 1); exit 1; }; }
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1116 *"
1117 "enable_$ac_useropt"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval enable_$ac_useropt=no ;;
1123
1124 -docdir | --docdir | --docdi | --doc | --do)
1125 ac_prev=docdir ;;
1126 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1127 docdir=$ac_optarg ;;
1128
1129 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1130 ac_prev=dvidir ;;
1131 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1132 dvidir=$ac_optarg ;;
1133
1134 -enable-* | --enable-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "enable_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval enable_$ac_useropt=\$ac_optarg ;;
1150
1151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1153 | --exec | --exe | --ex)
1154 ac_prev=exec_prefix ;;
1155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1157 | --exec=* | --exe=* | --ex=*)
1158 exec_prefix=$ac_optarg ;;
1159
1160 -gas | --gas | --ga | --g)
1161 # Obsolete; use --with-gas.
1162 with_gas=yes ;;
1163
1164 -help | --help | --hel | --he | -h)
1165 ac_init_help=long ;;
1166 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1167 ac_init_help=recursive ;;
1168 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1169 ac_init_help=short ;;
1170
1171 -host | --host | --hos | --ho)
1172 ac_prev=host_alias ;;
1173 -host=* | --host=* | --hos=* | --ho=*)
1174 host_alias=$ac_optarg ;;
1175
1176 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1177 ac_prev=htmldir ;;
1178 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1179 | --ht=*)
1180 htmldir=$ac_optarg ;;
1181
1182 -includedir | --includedir | --includedi | --included | --include \
1183 | --includ | --inclu | --incl | --inc)
1184 ac_prev=includedir ;;
1185 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1186 | --includ=* | --inclu=* | --incl=* | --inc=*)
1187 includedir=$ac_optarg ;;
1188
1189 -infodir | --infodir | --infodi | --infod | --info | --inf)
1190 ac_prev=infodir ;;
1191 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1192 infodir=$ac_optarg ;;
1193
1194 -libdir | --libdir | --libdi | --libd)
1195 ac_prev=libdir ;;
1196 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1197 libdir=$ac_optarg ;;
1198
1199 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1200 | --libexe | --libex | --libe)
1201 ac_prev=libexecdir ;;
1202 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1203 | --libexe=* | --libex=* | --libe=*)
1204 libexecdir=$ac_optarg ;;
1205
1206 -localedir | --localedir | --localedi | --localed | --locale)
1207 ac_prev=localedir ;;
1208 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1209 localedir=$ac_optarg ;;
1210
1211 -localstatedir | --localstatedir | --localstatedi | --localstated \
1212 | --localstate | --localstat | --localsta | --localst | --locals)
1213 ac_prev=localstatedir ;;
1214 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1215 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1216 localstatedir=$ac_optarg ;;
1217
1218 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1219 ac_prev=mandir ;;
1220 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1221 mandir=$ac_optarg ;;
1222
1223 -nfp | --nfp | --nf)
1224 # Obsolete; use --without-fp.
1225 with_fp=no ;;
1226
1227 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1228 | --no-cr | --no-c | -n)
1229 no_create=yes ;;
1230
1231 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1232 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1233 no_recursion=yes ;;
1234
1235 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1236 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1237 | --oldin | --oldi | --old | --ol | --o)
1238 ac_prev=oldincludedir ;;
1239 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1240 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1241 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1242 oldincludedir=$ac_optarg ;;
1243
1244 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1245 ac_prev=prefix ;;
1246 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1247 prefix=$ac_optarg ;;
1248
1249 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1250 | --program-pre | --program-pr | --program-p)
1251 ac_prev=program_prefix ;;
1252 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1253 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1254 program_prefix=$ac_optarg ;;
1255
1256 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1257 | --program-suf | --program-su | --program-s)
1258 ac_prev=program_suffix ;;
1259 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1260 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1261 program_suffix=$ac_optarg ;;
1262
1263 -program-transform-name | --program-transform-name \
1264 | --program-transform-nam | --program-transform-na \
1265 | --program-transform-n | --program-transform- \
1266 | --program-transform | --program-transfor \
1267 | --program-transfo | --program-transf \
1268 | --program-trans | --program-tran \
1269 | --progr-tra | --program-tr | --program-t)
1270 ac_prev=program_transform_name ;;
1271 -program-transform-name=* | --program-transform-name=* \
1272 | --program-transform-nam=* | --program-transform-na=* \
1273 | --program-transform-n=* | --program-transform-=* \
1274 | --program-transform=* | --program-transfor=* \
1275 | --program-transfo=* | --program-transf=* \
1276 | --program-trans=* | --program-tran=* \
1277 | --progr-tra=* | --program-tr=* | --program-t=*)
1278 program_transform_name=$ac_optarg ;;
1279
1280 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1281 ac_prev=pdfdir ;;
1282 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1283 pdfdir=$ac_optarg ;;
1284
1285 -psdir | --psdir | --psdi | --psd | --ps)
1286 ac_prev=psdir ;;
1287 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1288 psdir=$ac_optarg ;;
1289
1290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291 | -silent | --silent | --silen | --sile | --sil)
1292 silent=yes ;;
1293
1294 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1295 ac_prev=sbindir ;;
1296 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1297 | --sbi=* | --sb=*)
1298 sbindir=$ac_optarg ;;
1299
1300 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1301 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1302 | --sharedst | --shareds | --shared | --share | --shar \
1303 | --sha | --sh)
1304 ac_prev=sharedstatedir ;;
1305 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1306 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1307 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1308 | --sha=* | --sh=*)
1309 sharedstatedir=$ac_optarg ;;
1310
1311 -site | --site | --sit)
1312 ac_prev=site ;;
1313 -site=* | --site=* | --sit=*)
1314 site=$ac_optarg ;;
1315
1316 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1317 ac_prev=srcdir ;;
1318 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1319 srcdir=$ac_optarg ;;
1320
1321 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1322 | --syscon | --sysco | --sysc | --sys | --sy)
1323 ac_prev=sysconfdir ;;
1324 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1325 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1326 sysconfdir=$ac_optarg ;;
1327
1328 -target | --target | --targe | --targ | --tar | --ta | --t)
1329 ac_prev=target_alias ;;
1330 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1331 target_alias=$ac_optarg ;;
1332
1333 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1334 verbose=yes ;;
1335
1336 -version | --version | --versio | --versi | --vers | -V)
1337 ac_init_version=: ;;
1338
1339 -with-* | --with-*)
1340 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1343 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1344 { (exit 1); exit 1; }; }
1345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1348 *"
1349 "with_$ac_useropt"
1350 "*) ;;
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1353 esac
1354 eval with_$ac_useropt=\$ac_optarg ;;
1355
1356 -without-* | --without-*)
1357 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1361 { (exit 1); exit 1; }; }
1362 ac_useropt_orig=$ac_useropt
1363 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364 case $ac_user_opts in
1365 *"
1366 "with_$ac_useropt"
1367 "*) ;;
1368 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1369 ac_unrecognized_sep=', ';;
1370 esac
1371 eval with_$ac_useropt=no ;;
1372
1373 --x)
1374 # Obsolete; use --with-x.
1375 with_x=yes ;;
1376
1377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1378 | --x-incl | --x-inc | --x-in | --x-i)
1379 ac_prev=x_includes ;;
1380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1382 x_includes=$ac_optarg ;;
1383
1384 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1386 ac_prev=x_libraries ;;
1387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1389 x_libraries=$ac_optarg ;;
1390
1391 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1392 Try \`$0 --help' for more information." >&2
1393 { (exit 1); exit 1; }; }
1394 ;;
1395
1396 *=*)
1397 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1398 # Reject names that are not valid shell variable names.
1399 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1400 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1401 { (exit 1); exit 1; }; }
1402 eval $ac_envvar=\$ac_optarg
1403 export $ac_envvar ;;
1404
1405 *)
1406 # FIXME: should be removed in autoconf 3.0.
1407 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1408 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1409 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1410 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1411 ;;
1412
1413 esac
1414 done
1415
1416 if test -n "$ac_prev"; then
1417 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1418 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1419 { (exit 1); exit 1; }; }
1420 fi
1421
1422 if test -n "$ac_unrecognized_opts"; then
1423 case $enable_option_checking in
1424 no) ;;
1425 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1426 { (exit 1); exit 1; }; } ;;
1427 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1428 esac
1429 fi
1430
1431 # Check all directory arguments for consistency.
1432 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1433 datadir sysconfdir sharedstatedir localstatedir includedir \
1434 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1435 libdir localedir mandir
1436 do
1437 eval ac_val=\$$ac_var
1438 # Remove trailing slashes.
1439 case $ac_val in
1440 */ )
1441 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1442 eval $ac_var=\$ac_val;;
1443 esac
1444 # Be sure to have absolute directory names.
1445 case $ac_val in
1446 [\\/$]* | ?:[\\/]* ) continue;;
1447 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1448 esac
1449 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1450 { (exit 1); exit 1; }; }
1451 done
1452
1453 # There might be people who depend on the old broken behavior: `$host'
1454 # used to hold the argument of --host etc.
1455 # FIXME: To remove some day.
1456 build=$build_alias
1457 host=$host_alias
1458 target=$target_alias
1459
1460 # FIXME: To remove some day.
1461 if test "x$host_alias" != x; then
1462 if test "x$build_alias" = x; then
1463 cross_compiling=maybe
1464 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1465 If a cross compiler is detected then cross compile mode will be used." >&2
1466 elif test "x$build_alias" != "x$host_alias"; then
1467 cross_compiling=yes
1468 fi
1469 fi
1470
1471 ac_tool_prefix=
1472 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1473
1474 test "$silent" = yes && exec 6>/dev/null
1475
1476
1477 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1478 ac_ls_di=`ls -di .` &&
1479 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1480 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1481 { (exit 1); exit 1; }; }
1482 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1483 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1484 { (exit 1); exit 1; }; }
1485
1486
1487 # Find the source files, if location was not specified.
1488 if test -z "$srcdir"; then
1489 ac_srcdir_defaulted=yes
1490 # Try the directory containing this script, then the parent directory.
1491 ac_confdir=`$as_dirname -- "$as_myself" ||
1492 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1493 X"$as_myself" : 'X\(//\)[^/]' \| \
1494 X"$as_myself" : 'X\(//\)$' \| \
1495 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1496 $as_echo X"$as_myself" |
1497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1498 s//\1/
1499 q
1500 }
1501 /^X\(\/\/\)[^/].*/{
1502 s//\1/
1503 q
1504 }
1505 /^X\(\/\/\)$/{
1506 s//\1/
1507 q
1508 }
1509 /^X\(\/\).*/{
1510 s//\1/
1511 q
1512 }
1513 s/.*/./; q'`
1514 srcdir=$ac_confdir
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516 srcdir=..
1517 fi
1518 else
1519 ac_srcdir_defaulted=no
1520 fi
1521 if test ! -r "$srcdir/$ac_unique_file"; then
1522 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1523 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1524 { (exit 1); exit 1; }; }
1525 fi
1526 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1527 ac_abs_confdir=`(
1528 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1529 { (exit 1); exit 1; }; }
1530 pwd)`
1531 # When building in place, set srcdir=.
1532 if test "$ac_abs_confdir" = "$ac_pwd"; then
1533 srcdir=.
1534 fi
1535 # Remove unnecessary trailing slashes from srcdir.
1536 # Double slashes in file names in object file debugging info
1537 # mess up M-x gdb in Emacs.
1538 case $srcdir in
1539 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1540 esac
1541 for ac_var in $ac_precious_vars; do
1542 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1543 eval ac_env_${ac_var}_value=\$${ac_var}
1544 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1545 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1546 done
1547
1548 #
1549 # Report the --help message.
1550 #
1551 if test "$ac_init_help" = "long"; then
1552 # Omit some internal or obsolete options to make the list less imposing.
1553 # This message is too long to be a string in the A/UX 3.1 sh.
1554 cat <<_ACEOF
1555 \`configure' configures xf86-video-intel 2.7.1 to adapt to many kinds of systems.
1556
1557 Usage: $0 [OPTION]... [VAR=VALUE]...
1558
1559 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560 VAR=VALUE. See below for descriptions of some of the useful variables.
1561
1562 Defaults for the options are specified in brackets.
1563
1564 Configuration:
1565 -h, --help display this help and exit
1566 --help=short display options specific to this package
1567 --help=recursive display the short help of all the included packages
1568 -V, --version display version information and exit
1569 -q, --quiet, --silent do not print \`checking...' messages
1570 --cache-file=FILE cache test results in FILE [disabled]
1571 -C, --config-cache alias for \`--cache-file=config.cache'
1572 -n, --no-create do not create output files
1573 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1574
1575 Installation directories:
1576 --prefix=PREFIX install architecture-independent files in PREFIX
1577 [$ac_default_prefix]
1578 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1579 [PREFIX]
1580
1581 By default, \`make install' will install all the files in
1582 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1583 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584 for instance \`--prefix=\$HOME'.
1585
1586 For better control, use the options below.
1587
1588 Fine tuning of the installation directories:
1589 --bindir=DIR user executables [EPREFIX/bin]
1590 --sbindir=DIR system admin executables [EPREFIX/sbin]
1591 --libexecdir=DIR program executables [EPREFIX/libexec]
1592 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1593 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1594 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1595 --libdir=DIR object code libraries [EPREFIX/lib]
1596 --includedir=DIR C header files [PREFIX/include]
1597 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1598 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1599 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1600 --infodir=DIR info documentation [DATAROOTDIR/info]
1601 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1602 --mandir=DIR man documentation [DATAROOTDIR/man]
1603 --docdir=DIR documentation root
1604 [DATAROOTDIR/doc/xf86-video-intel]
1605 --htmldir=DIR html documentation [DOCDIR]
1606 --dvidir=DIR dvi documentation [DOCDIR]
1607 --pdfdir=DIR pdf documentation [DOCDIR]
1608 --psdir=DIR ps documentation [DOCDIR]
1609 _ACEOF
1610
1611 cat <<\_ACEOF
1612
1613 Program names:
1614 --program-prefix=PREFIX prepend PREFIX to installed program names
1615 --program-suffix=SUFFIX append SUFFIX to installed program names
1616 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1617
1618 System types:
1619 --build=BUILD configure for building on BUILD [guessed]
1620 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1621 _ACEOF
1622 fi
1623
1624 if test -n "$ac_init_help"; then
1625 case $ac_init_help in
1626 short | recursive ) echo "Configuration of xf86-video-intel 2.7.1:";;
1627 esac
1628 cat <<\_ACEOF
1629
1630 Optional Features:
1631 --disable-option-checking ignore unrecognized --enable/--with options
1632 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1633 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1634 --enable-maintainer-mode enable make rules and dependencies not useful
1635 (and sometimes confusing) to the casual installer
1636 --enable-static[=PKGS] build static libraries [default=no]
1637 --enable-shared[=PKGS] build shared libraries [default=yes]
1638 --enable-fast-install[=PKGS]
1639 optimize for fast installation [default=yes]
1640 --disable-dependency-tracking speeds up one-time build
1641 --enable-dependency-tracking do not reject slow dependency extractors
1642 --disable-libtool-lock avoid locking (might break parallel builds)
1643 --disable-dri Disable DRI support [default=auto]
1644 --enable-video-debug Enable video debugging support [default=no]
1645 --disable-xvmc Disable XvMC support [default=auto]
1646
1647 Optional Packages:
1648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1650 --with-pic try to use only PIC/non-PIC objects [default=use
1651 both]
1652 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1653 --with-xorg-module-dir=DIR
1654 Default xorg module directory
1655 [default=$libdir/xorg/modules]
1656 --with-xserver-source=XSERVER_SOURCE
1657 Path to X server source tree
1658 --with-release-version=STRING
1659 Use release version string in package name
1660
1661 Some influential environment variables:
1662 CC C compiler command
1663 CFLAGS C compiler flags
1664 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1665 nonstandard directory <lib dir>
1666 LIBS libraries to pass to the linker, e.g. -l<library>
1667 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1668 you have headers in a nonstandard directory <include dir>
1669 CPP C preprocessor
1670 PKG_CONFIG path to pkg-config utility
1671 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1672 XORG_LIBS linker flags for XORG, overriding pkg-config
1673 SERVER_1_5_CFLAGS
1674 C compiler flags for SERVER_1_5, overriding pkg-config
1675 SERVER_1_5_LIBS
1676 linker flags for SERVER_1_5, overriding pkg-config
1677 PCIACCESS_CFLAGS
1678 C compiler flags for PCIACCESS, overriding pkg-config
1679 PCIACCESS_LIBS
1680 linker flags for PCIACCESS, overriding pkg-config
1681 DRM_CFLAGS C compiler flags for DRM, overriding pkg-config
1682 DRM_LIBS linker flags for DRM, overriding pkg-config
1683 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1684 DRI_LIBS linker flags for DRI, overriding pkg-config
1685 DRM_MODE_CFLAGS
1686 C compiler flags for DRM_MODE, overriding pkg-config
1687 DRM_MODE_LIBS
1688 linker flags for DRM_MODE, overriding pkg-config
1689 XVMCLIB_CFLAGS
1690 C compiler flags for XVMCLIB, overriding pkg-config
1691 XVMCLIB_LIBS
1692 linker flags for XVMCLIB, overriding pkg-config
1693 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1694 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1695
1696 Use these variables to override the choices made by `configure' or to help
1697 it to find libraries and programs with nonstandard names/locations.
1698
1699 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1700 _ACEOF
1701 ac_status=$?
1702 fi
1703
1704 if test "$ac_init_help" = "recursive"; then
1705 # If there are subdirs, report their specific --help.
1706 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1707 test -d "$ac_dir" ||
1708 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1709 continue
1710 ac_builddir=.
1711
1712 case "$ac_dir" in
1713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714 *)
1715 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1716 # A ".." for each directory in $ac_dir_suffix.
1717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1718 case $ac_top_builddir_sub in
1719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721 esac ;;
1722 esac
1723 ac_abs_top_builddir=$ac_pwd
1724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1725 # for backward compatibility:
1726 ac_top_builddir=$ac_top_build_prefix
1727
1728 case $srcdir in
1729 .) # We are building in place.
1730 ac_srcdir=.
1731 ac_top_srcdir=$ac_top_builddir_sub
1732 ac_abs_top_srcdir=$ac_pwd ;;
1733 [\\/]* | ?:[\\/]* ) # Absolute name.
1734 ac_srcdir=$srcdir$ac_dir_suffix;
1735 ac_top_srcdir=$srcdir
1736 ac_abs_top_srcdir=$srcdir ;;
1737 *) # Relative name.
1738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1739 ac_top_srcdir=$ac_top_build_prefix$srcdir
1740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1741 esac
1742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1743
1744 cd "$ac_dir" || { ac_status=$?; continue; }
1745 # Check for guested configure.
1746 if test -f "$ac_srcdir/configure.gnu"; then
1747 echo &&
1748 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1749 elif test -f "$ac_srcdir/configure"; then
1750 echo &&
1751 $SHELL "$ac_srcdir/configure" --help=recursive
1752 else
1753 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1754 fi || ac_status=$?
1755 cd "$ac_pwd" || { ac_status=$?; break; }
1756 done
1757 fi
1758
1759 test -n "$ac_init_help" && exit $ac_status
1760 if $ac_init_version; then
1761 cat <<\_ACEOF
1762 xf86-video-intel configure 2.7.1
1763 generated by GNU Autoconf 2.63
1764
1765 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1766 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1767 This configure script is free software; the Free Software Foundation
1768 gives unlimited permission to copy, distribute and modify it.
1769 _ACEOF
1770 exit
1771 fi
1772 cat >config.log <<_ACEOF
1773 This file contains any messages produced by compilers while
1774 running configure, to aid debugging if configure makes a mistake.
1775
1776 It was created by xf86-video-intel $as_me 2.7.1, which was
1777 generated by GNU Autoconf 2.63. Invocation command line was
1778
1779 $ $0 $@
1780
1781 _ACEOF
1782 exec 5>>config.log
1783 {
1784 cat <<_ASUNAME
1785 ## --------- ##
1786 ## Platform. ##
1787 ## --------- ##
1788
1789 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1790 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1791 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1792 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1793 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1794
1795 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1796 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1797
1798 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1799 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1800 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1801 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1802 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1803 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1804 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1805
1806 _ASUNAME
1807
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 for as_dir in $PATH
1810 do
1811 IFS=$as_save_IFS
1812 test -z "$as_dir" && as_dir=.
1813 $as_echo "PATH: $as_dir"
1814 done
1815 IFS=$as_save_IFS
1816
1817 } >&5
1818
1819 cat >&5 <<_ACEOF
1820
1821
1822 ## ----------- ##
1823 ## Core tests. ##
1824 ## ----------- ##
1825
1826 _ACEOF
1827
1828
1829 # Keep a trace of the command line.
1830 # Strip out --no-create and --no-recursion so they do not pile up.
1831 # Strip out --silent because we don't want to record it for future runs.
1832 # Also quote any args containing shell meta-characters.
1833 # Make two passes to allow for proper duplicate-argument suppression.
1834 ac_configure_args=
1835 ac_configure_args0=
1836 ac_configure_args1=
1837 ac_must_keep_next=false
1838 for ac_pass in 1 2
1839 do
1840 for ac_arg
1841 do
1842 case $ac_arg in
1843 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1845 | -silent | --silent | --silen | --sile | --sil)
1846 continue ;;
1847 *\'*)
1848 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1849 esac
1850 case $ac_pass in
1851 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1852 2)
1853 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1854 if test $ac_must_keep_next = true; then
1855 ac_must_keep_next=false # Got value, back to normal.
1856 else
1857 case $ac_arg in
1858 *=* | --config-cache | -C | -disable-* | --disable-* \
1859 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1860 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1861 | -with-* | --with-* | -without-* | --without-* | --x)
1862 case "$ac_configure_args0 " in
1863 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1864 esac
1865 ;;
1866 -* ) ac_must_keep_next=true ;;
1867 esac
1868 fi
1869 ac_configure_args="$ac_configure_args '$ac_arg'"
1870 ;;
1871 esac
1872 done
1873 done
1874 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1875 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1876
1877 # When interrupted or exit'd, cleanup temporary files, and complete
1878 # config.log. We remove comments because anyway the quotes in there
1879 # would cause problems or look ugly.
1880 # WARNING: Use '\'' to represent an apostrophe within the trap.
1881 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1882 trap 'exit_status=$?
1883 # Save into config.log some information that might help in debugging.
1884 {
1885 echo
1886
1887 cat <<\_ASBOX
1888 ## ---------------- ##
1889 ## Cache variables. ##
1890 ## ---------------- ##
1891 _ASBOX
1892 echo
1893 # The following way of writing the cache mishandles newlines in values,
1894 (
1895 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1896 eval ac_val=\$$ac_var
1897 case $ac_val in #(
1898 *${as_nl}*)
1899 case $ac_var in #(
1900 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1901 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1902 esac
1903 case $ac_var in #(
1904 _ | IFS | as_nl) ;; #(
1905 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1906 *) $as_unset $ac_var ;;
1907 esac ;;
1908 esac
1909 done
1910 (set) 2>&1 |
1911 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1912 *${as_nl}ac_space=\ *)
1913 sed -n \
1914 "s/'\''/'\''\\\\'\'''\''/g;
1915 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1916 ;; #(
1917 *)
1918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1919 ;;
1920 esac |
1921 sort
1922 )
1923 echo
1924
1925 cat <<\_ASBOX
1926 ## ----------------- ##
1927 ## Output variables. ##
1928 ## ----------------- ##
1929 _ASBOX
1930 echo
1931 for ac_var in $ac_subst_vars
1932 do
1933 eval ac_val=\$$ac_var
1934 case $ac_val in
1935 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1936 esac
1937 $as_echo "$ac_var='\''$ac_val'\''"
1938 done | sort
1939 echo
1940
1941 if test -n "$ac_subst_files"; then
1942 cat <<\_ASBOX
1943 ## ------------------- ##
1944 ## File substitutions. ##
1945 ## ------------------- ##
1946 _ASBOX
1947 echo
1948 for ac_var in $ac_subst_files
1949 do
1950 eval ac_val=\$$ac_var
1951 case $ac_val in
1952 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1953 esac
1954 $as_echo "$ac_var='\''$ac_val'\''"
1955 done | sort
1956 echo
1957 fi
1958
1959 if test -s confdefs.h; then
1960 cat <<\_ASBOX
1961 ## ----------- ##
1962 ## confdefs.h. ##
1963 ## ----------- ##
1964 _ASBOX
1965 echo
1966 cat confdefs.h
1967 echo
1968 fi
1969 test "$ac_signal" != 0 &&
1970 $as_echo "$as_me: caught signal $ac_signal"
1971 $as_echo "$as_me: exit $exit_status"
1972 } >&5
1973 rm -f core *.core core.conftest.* &&
1974 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1975 exit $exit_status
1976 ' 0
1977 for ac_signal in 1 2 13 15; do
1978 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1979 done
1980 ac_signal=0
1981
1982 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1983 rm -f -r conftest* confdefs.h
1984
1985 # Predefined preprocessor variables.
1986
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_NAME "$PACKAGE_NAME"
1989 _ACEOF
1990
1991
1992 cat >>confdefs.h <<_ACEOF
1993 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1994 _ACEOF
1995
1996
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1999 _ACEOF
2000
2001
2002 cat >>confdefs.h <<_ACEOF
2003 #define PACKAGE_STRING "$PACKAGE_STRING"
2004 _ACEOF
2005
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2009 _ACEOF
2010
2011
2012 # Let the site file select an alternate cache file if it wants to.
2013 # Prefer an explicitly selected file to automatically selected ones.
2014 ac_site_file1=NONE
2015 ac_site_file2=NONE
2016 if test -n "$CONFIG_SITE"; then
2017 ac_site_file1=$CONFIG_SITE
2018 elif test "x$prefix" != xNONE; then
2019 ac_site_file1=$prefix/share/config.site
2020 ac_site_file2=$prefix/etc/config.site
2021 else
2022 ac_site_file1=$ac_default_prefix/share/config.site
2023 ac_site_file2=$ac_default_prefix/etc/config.site
2024 fi
2025 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2026 do
2027 test "x$ac_site_file" = xNONE && continue
2028 if test -r "$ac_site_file"; then
2029 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2030 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2031 sed 's/^/| /' "$ac_site_file" >&5
2032 . "$ac_site_file"
2033 fi
2034 done
2035
2036 if test -r "$cache_file"; then
2037 # Some versions of bash will fail to source /dev/null (special
2038 # files actually), so we avoid doing that.
2039 if test -f "$cache_file"; then
2040 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2041 $as_echo "$as_me: loading cache $cache_file" >&6;}
2042 case $cache_file in
2043 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2044 *) . "./$cache_file";;
2045 esac
2046 fi
2047 else
2048 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2049 $as_echo "$as_me: creating cache $cache_file" >&6;}
2050 >$cache_file
2051 fi
2052
2053 # Check that the precious variables saved in the cache have kept the same
2054 # value.
2055 ac_cache_corrupted=false
2056 for ac_var in $ac_precious_vars; do
2057 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2058 eval ac_new_set=\$ac_env_${ac_var}_set
2059 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2060 eval ac_new_val=\$ac_env_${ac_var}_value
2061 case $ac_old_set,$ac_new_set in
2062 set,)
2063 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2064 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2065 ac_cache_corrupted=: ;;
2066 ,set)
2067 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2068 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2069 ac_cache_corrupted=: ;;
2070 ,);;
2071 *)
2072 if test "x$ac_old_val" != "x$ac_new_val"; then
2073 # differences in whitespace do not lead to failure.
2074 ac_old_val_w=`echo x $ac_old_val`
2075 ac_new_val_w=`echo x $ac_new_val`
2076 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2077 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2078 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2079 ac_cache_corrupted=:
2080 else
2081 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2082 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2083 eval $ac_var=\$ac_old_val
2084 fi
2085 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2086 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2087 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2088 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2089 fi;;
2090 esac
2091 # Pass precious variables to config.status.
2092 if test "$ac_new_set" = set; then
2093 case $ac_new_val in
2094 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2095 *) ac_arg=$ac_var=$ac_new_val ;;
2096 esac
2097 case " $ac_configure_args " in
2098 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2099 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2100 esac
2101 fi
2102 done
2103 if $ac_cache_corrupted; then
2104 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2106 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2107 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2108 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2109 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2110 { (exit 1); exit 1; }; }
2111 fi
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137 ac_ext=c
2138 ac_cpp='$CPP $CPPFLAGS'
2139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2142
2143
2144
2145
2146 ac_config_headers="$ac_config_headers config.h"
2147
2148 ac_aux_dir=
2149 for ac_dir in . "$srcdir"/.; do
2150 if test -f "$ac_dir/install-sh"; then
2151 ac_aux_dir=$ac_dir
2152 ac_install_sh="$ac_aux_dir/install-sh -c"
2153 break
2154 elif test -f "$ac_dir/install.sh"; then
2155 ac_aux_dir=$ac_dir
2156 ac_install_sh="$ac_aux_dir/install.sh -c"
2157 break
2158 elif test -f "$ac_dir/shtool"; then
2159 ac_aux_dir=$ac_dir
2160 ac_install_sh="$ac_aux_dir/shtool install -c"
2161 break
2162 fi
2163 done
2164 if test -z "$ac_aux_dir"; then
2165 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2166 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2167 { (exit 1); exit 1; }; }
2168 fi
2169
2170 # These three variables are undocumented and unsupported,
2171 # and are intended to be withdrawn in a future Autoconf release.
2172 # They can cause serious problems if a builder's source tree is in a directory
2173 # whose full name contains unusual characters.
2174 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2175 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2176 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2177
2178
2179
2180 am__api_version='1.10'
2181
2182 # Find a good install program. We prefer a C program (faster),
2183 # so one script is as good as another. But avoid the broken or
2184 # incompatible versions:
2185 # SysV /etc/install, /usr/sbin/install
2186 # SunOS /usr/etc/install
2187 # IRIX /sbin/install
2188 # AIX /bin/install
2189 # AmigaOS /C/install, which installs bootblocks on floppy discs
2190 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2191 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2192 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2193 # OS/2's system install, which has a completely different semantic
2194 # ./install, which can be erroneously created by make from ./install.sh.
2195 # Reject install programs that cannot install multiple files.
2196 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2197 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2198 if test -z "$INSTALL"; then
2199 if test "${ac_cv_path_install+set}" = set; then
2200 $as_echo_n "(cached) " >&6
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 # Account for people who put trailing slashes in PATH elements.
2208 case $as_dir/ in
2209 ./ | .// | /cC/* | \
2210 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2211 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2212 /usr/ucb/* ) ;;
2213 *)
2214 # OSF1 and SCO ODT 3.0 have their own names for install.
2215 # Don't use installbsd from OSF since it installs stuff as root
2216 # by default.
2217 for ac_prog in ginstall scoinst install; do
2218 for ac_exec_ext in '' $ac_executable_extensions; do
2219 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2220 if test $ac_prog = install &&
2221 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2222 # AIX install. It has an incompatible calling convention.
2223 :
2224 elif test $ac_prog = install &&
2225 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2226 # program-specific install script used by HP pwplus--don't use.
2227 :
2228 else
2229 rm -rf conftest.one conftest.two conftest.dir
2230 echo one > conftest.one
2231 echo two > conftest.two
2232 mkdir conftest.dir
2233 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2234 test -s conftest.one && test -s conftest.two &&
2235 test -s conftest.dir/conftest.one &&
2236 test -s conftest.dir/conftest.two
2237 then
2238 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2239 break 3
2240 fi
2241 fi
2242 fi
2243 done
2244 done
2245 ;;
2246 esac
2247
2248 done
2249 IFS=$as_save_IFS
2250
2251 rm -rf conftest.one conftest.two conftest.dir
2252
2253 fi
2254 if test "${ac_cv_path_install+set}" = set; then
2255 INSTALL=$ac_cv_path_install
2256 else
2257 # As a last resort, use the slow shell script. Don't cache a
2258 # value for INSTALL within a source directory, because that will
2259 # break other packages using the cache if that directory is
2260 # removed, or if the value is a relative name.
2261 INSTALL=$ac_install_sh
2262 fi
2263 fi
2264 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2265 $as_echo "$INSTALL" >&6; }
2266
2267 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2268 # It thinks the first close brace ends the variable substitution.
2269 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2270
2271 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2272
2273 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2274
2275 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2276 $as_echo_n "checking whether build environment is sane... " >&6; }
2277 # Just in case
2278 sleep 1
2279 echo timestamp > conftest.file
2280 # Do `set' in a subshell so we don't clobber the current shell's
2281 # arguments. Must try -L first in case configure is actually a
2282 # symlink; some systems play weird games with the mod time of symlinks
2283 # (eg FreeBSD returns the mod time of the symlink's containing
2284 # directory).
2285 if (
2286 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2287 if test "$*" = "X"; then
2288 # -L didn't work.
2289 set X `ls -t $srcdir/configure conftest.file`
2290 fi
2291 rm -f conftest.file
2292 if test "$*" != "X $srcdir/configure conftest.file" \
2293 && test "$*" != "X conftest.file $srcdir/configure"; then
2294
2295 # If neither matched, then we have a broken ls. This can happen
2296 # if, for instance, CONFIG_SHELL is bash and it inherits a
2297 # broken ls alias from the environment. This has actually
2298 # happened. Such a system could not be considered "sane".
2299 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2300 alias in your environment" >&5
2301 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2302 alias in your environment" >&2;}
2303 { (exit 1); exit 1; }; }
2304 fi
2305
2306 test "$2" = conftest.file
2307 )
2308 then
2309 # Ok.
2310 :
2311 else
2312 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2313 Check your system clock" >&5
2314 $as_echo "$as_me: error: newly created file is older than distributed files!
2315 Check your system clock" >&2;}
2316 { (exit 1); exit 1; }; }
2317 fi
2318 { $as_echo "$as_me:$LINENO: result: yes" >&5
2319 $as_echo "yes" >&6; }
2320 test "$program_prefix" != NONE &&
2321 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2322 # Use a double $ so make ignores it.
2323 test "$program_suffix" != NONE &&
2324 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2325 # Double any \ or $.
2326 # By default was `s,x,x', remove it if useless.
2327 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2328 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2329
2330 # expand $ac_aux_dir to an absolute path
2331 am_aux_dir=`cd $ac_aux_dir && pwd`
2332
2333 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2334 # Use eval to expand $SHELL
2335 if eval "$MISSING --run true"; then
2336 am_missing_run="$MISSING --run "
2337 else
2338 am_missing_run=
2339 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2340 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2341 fi
2342
2343 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2344 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2345 if test -z "$MKDIR_P"; then
2346 if test "${ac_cv_path_mkdir+set}" = set; then
2347 $as_echo_n "(cached) " >&6
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2351 do
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_prog in mkdir gmkdir; do
2355 for ac_exec_ext in '' $ac_executable_extensions; do
2356 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2357 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2358 'mkdir (GNU coreutils) '* | \
2359 'mkdir (coreutils) '* | \
2360 'mkdir (fileutils) '4.1*)
2361 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2362 break 3;;
2363 esac
2364 done
2365 done
2366 done
2367 IFS=$as_save_IFS
2368
2369 fi
2370
2371 if test "${ac_cv_path_mkdir+set}" = set; then
2372 MKDIR_P="$ac_cv_path_mkdir -p"
2373 else
2374 # As a last resort, use the slow shell script. Don't cache a
2375 # value for MKDIR_P within a source directory, because that will
2376 # break other packages using the cache if that directory is
2377 # removed, or if the value is a relative name.
2378 test -d ./--version && rmdir ./--version
2379 MKDIR_P="$ac_install_sh -d"
2380 fi
2381 fi
2382 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2383 $as_echo "$MKDIR_P" >&6; }
2384
2385 mkdir_p="$MKDIR_P"
2386 case $mkdir_p in
2387 [\\/$]* | ?:[\\/]*) ;;
2388 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2389 esac
2390
2391 for ac_prog in gawk mawk nawk awk
2392 do
2393 # Extract the first word of "$ac_prog", so it can be a program name with args.
2394 set dummy $ac_prog; ac_word=$2
2395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 $as_echo_n "checking for $ac_word... " >&6; }
2397 if test "${ac_cv_prog_AWK+set}" = set; then
2398 $as_echo_n "(cached) " >&6
2399 else
2400 if test -n "$AWK"; then
2401 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_AWK="$ac_prog"
2411 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 break 2
2413 fi
2414 done
2415 done
2416 IFS=$as_save_IFS
2417
2418 fi
2419 fi
2420 AWK=$ac_cv_prog_AWK
2421 if test -n "$AWK"; then
2422 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2423 $as_echo "$AWK" >&6; }
2424 else
2425 { $as_echo "$as_me:$LINENO: result: no" >&5
2426 $as_echo "no" >&6; }
2427 fi
2428
2429
2430 test -n "$AWK" && break
2431 done
2432
2433 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2434 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2435 set x ${MAKE-make}
2436 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2437 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2438 $as_echo_n "(cached) " >&6
2439 else
2440 cat >conftest.make <<\_ACEOF
2441 SHELL = /bin/sh
2442 all:
2443 @echo '@@@%%%=$(MAKE)=@@@%%%'
2444 _ACEOF
2445 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2446 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2447 *@@@%%%=?*=@@@%%%*)
2448 eval ac_cv_prog_make_${ac_make}_set=yes;;
2449 *)
2450 eval ac_cv_prog_make_${ac_make}_set=no;;
2451 esac
2452 rm -f conftest.make
2453 fi
2454 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2455 { $as_echo "$as_me:$LINENO: result: yes" >&5
2456 $as_echo "yes" >&6; }
2457 SET_MAKE=
2458 else
2459 { $as_echo "$as_me:$LINENO: result: no" >&5
2460 $as_echo "no" >&6; }
2461 SET_MAKE="MAKE=${MAKE-make}"
2462 fi
2463
2464 rm -rf .tst 2>/dev/null
2465 mkdir .tst 2>/dev/null
2466 if test -d .tst; then
2467 am__leading_dot=.
2468 else
2469 am__leading_dot=_
2470 fi
2471 rmdir .tst 2>/dev/null
2472
2473 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2474 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2475 # is not polluted with repeated "-I."
2476 am__isrc=' -I$(srcdir)'
2477 # test to see if srcdir already configured
2478 if test -f $srcdir/config.status; then
2479 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2480 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2481 { (exit 1); exit 1; }; }
2482 fi
2483 fi
2484
2485 # test whether we have cygpath
2486 if test -z "$CYGPATH_W"; then
2487 if (cygpath --version) >/dev/null 2>/dev/null; then
2488 CYGPATH_W='cygpath -w'
2489 else
2490 CYGPATH_W=echo
2491 fi
2492 fi
2493
2494
2495 # Define the identity of the package.
2496 PACKAGE='xf86-video-intel'
2497 VERSION='2.7.1'
2498
2499
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE "$PACKAGE"
2502 _ACEOF
2503
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define VERSION "$VERSION"
2507 _ACEOF
2508
2509 # Some tools Automake needs.
2510
2511 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2512
2513
2514 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2515
2516
2517 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2518
2519
2520 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2521
2522
2523 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2524
2525 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2526
2527 # Installed binaries are usually stripped using `strip' when the user
2528 # run `make install-strip'. However `strip' might not be the right
2529 # tool to use in cross-compilation environments, therefore Automake
2530 # will honor the `STRIP' environment variable to overrule this program.
2531 if test "$cross_compiling" != no; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}strip; ac_word=$2
2535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 $as_echo_n "checking for $ac_word... " >&6; }
2537 if test "${ac_cv_prog_STRIP+set}" = set; then
2538 $as_echo_n "(cached) " >&6
2539 else
2540 if test -n "$STRIP"; then
2541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554 done
2555 done
2556 IFS=$as_save_IFS
2557
2558 fi
2559 fi
2560 STRIP=$ac_cv_prog_STRIP
2561 if test -n "$STRIP"; then
2562 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2563 $as_echo "$STRIP" >&6; }
2564 else
2565 { $as_echo "$as_me:$LINENO: result: no" >&5
2566 $as_echo "no" >&6; }
2567 fi
2568
2569
2570 fi
2571 if test -z "$ac_cv_prog_STRIP"; then
2572 ac_ct_STRIP=$STRIP
2573 # Extract the first word of "strip", so it can be a program name with args.
2574 set dummy strip; ac_word=$2
2575 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2578 $as_echo_n "(cached) " >&6
2579 else
2580 if test -n "$ac_ct_STRIP"; then
2581 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_ac_ct_STRIP="strip"
2591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2593 fi
2594 done
2595 done
2596 IFS=$as_save_IFS
2597
2598 fi
2599 fi
2600 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2601 if test -n "$ac_ct_STRIP"; then
2602 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2603 $as_echo "$ac_ct_STRIP" >&6; }
2604 else
2605 { $as_echo "$as_me:$LINENO: result: no" >&5
2606 $as_echo "no" >&6; }
2607 fi
2608
2609 if test "x$ac_ct_STRIP" = x; then
2610 STRIP=":"
2611 else
2612 case $cross_compiling:$ac_tool_warned in
2613 yes:)
2614 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616 ac_tool_warned=yes ;;
2617 esac
2618 STRIP=$ac_ct_STRIP
2619 fi
2620 else
2621 STRIP="$ac_cv_prog_STRIP"
2622 fi
2623
2624 fi
2625 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2626
2627 # We need awk for the "check" target. The system "awk" is bad on
2628 # some platforms.
2629 # Always define AMTAR for backward compatibility.
2630
2631 AMTAR=${AMTAR-"${am_missing_run}tar"}
2632
2633 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2634
2635
2636
2637
2638
2639
2640 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2641 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2642 # Check whether --enable-maintainer-mode was given.
2643 if test "${enable_maintainer_mode+set}" = set; then
2644 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2645 else
2646 USE_MAINTAINER_MODE=no
2647 fi
2648
2649 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2650 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2651 if test $USE_MAINTAINER_MODE = yes; then
2652 MAINTAINER_MODE_TRUE=
2653 MAINTAINER_MODE_FALSE='#'
2654 else
2655 MAINTAINER_MODE_TRUE='#'
2656 MAINTAINER_MODE_FALSE=
2657 fi
2658
2659 MAINT=$MAINTAINER_MODE_TRUE
2660
2661
2662
2663 # Checks for programs.
2664 # Check whether --enable-static was given.
2665 if test "${enable_static+set}" = set; then
2666 enableval=$enable_static; p=${PACKAGE-default}
2667 case $enableval in
2668 yes) enable_static=yes ;;
2669 no) enable_static=no ;;
2670 *)
2671 enable_static=no
2672 # Look at the argument we got. We use all the common list separators.
2673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2674 for pkg in $enableval; do
2675 IFS="$lt_save_ifs"
2676 if test "X$pkg" = "X$p"; then
2677 enable_static=yes
2678 fi
2679 done
2680 IFS="$lt_save_ifs"
2681 ;;
2682 esac
2683 else
2684 enable_static=no
2685 fi
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695 case `pwd` in
2696 *\ * | *\ *)
2697 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2698 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2699 esac
2700
2701
2702
2703 macro_version='2.2.6'
2704 macro_revision='1.3012'
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718 ltmain="$ac_aux_dir/ltmain.sh"
2719
2720 # Make sure we can run config.sub.
2721 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2722 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2723 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2724 { (exit 1); exit 1; }; }
2725
2726 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2727 $as_echo_n "checking build system type... " >&6; }
2728 if test "${ac_cv_build+set}" = set; then
2729 $as_echo_n "(cached) " >&6
2730 else
2731 ac_build_alias=$build_alias
2732 test "x$ac_build_alias" = x &&
2733 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2734 test "x$ac_build_alias" = x &&
2735 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2736 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2737 { (exit 1); exit 1; }; }
2738 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2739 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2740 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2741 { (exit 1); exit 1; }; }
2742
2743 fi
2744 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2745 $as_echo "$ac_cv_build" >&6; }
2746 case $ac_cv_build in
2747 *-*-*) ;;
2748 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2749 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2750 { (exit 1); exit 1; }; };;
2751 esac
2752 build=$ac_cv_build
2753 ac_save_IFS=$IFS; IFS='-'
2754 set x $ac_cv_build
2755 shift
2756 build_cpu=$1
2757 build_vendor=$2
2758 shift; shift
2759 # Remember, the first character of IFS is used to create $*,
2760 # except with old shells:
2761 build_os=$*
2762 IFS=$ac_save_IFS
2763 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2764
2765
2766 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2767 $as_echo_n "checking host system type... " >&6; }
2768 if test "${ac_cv_host+set}" = set; then
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test "x$host_alias" = x; then
2772 ac_cv_host=$ac_cv_build
2773 else
2774 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2776 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2777 { (exit 1); exit 1; }; }
2778 fi
2779
2780 fi
2781 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2782 $as_echo "$ac_cv_host" >&6; }
2783 case $ac_cv_host in
2784 *-*-*) ;;
2785 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2786 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2787 { (exit 1); exit 1; }; };;
2788 esac
2789 host=$ac_cv_host
2790 ac_save_IFS=$IFS; IFS='-'
2791 set x $ac_cv_host
2792 shift
2793 host_cpu=$1
2794 host_vendor=$2
2795 shift; shift
2796 # Remember, the first character of IFS is used to create $*,
2797 # except with old shells:
2798 host_os=$*
2799 IFS=$ac_save_IFS
2800 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2801
2802
2803 DEPDIR="${am__leading_dot}deps"
2804
2805 ac_config_commands="$ac_config_commands depfiles"
2806
2807
2808 am_make=${MAKE-make}
2809 cat > confinc << 'END'
2810 am__doit:
2811 @echo done
2812 .PHONY: am__doit
2813 END
2814 # If we don't find an include directive, just comment out the code.
2815 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2816 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2817 am__include="#"
2818 am__quote=
2819 _am_result=none
2820 # First try GNU make style include.
2821 echo "include confinc" > confmf
2822 # We grep out `Entering directory' and `Leaving directory'
2823 # messages which can occur if `w' ends up in MAKEFLAGS.
2824 # In particular we don't look at `^make:' because GNU make might
2825 # be invoked under some other name (usually "gmake"), in which
2826 # case it prints its new name instead of `make'.
2827 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2828 am__include=include
2829 am__quote=
2830 _am_result=GNU
2831 fi
2832 # Now try BSD make style include.
2833 if test "$am__include" = "#"; then
2834 echo '.include "confinc"' > confmf
2835 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2836 am__include=.include
2837 am__quote="\""
2838 _am_result=BSD
2839 fi
2840 fi
2841
2842
2843 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2844 $as_echo "$_am_result" >&6; }
2845 rm -f confinc confmf
2846
2847 # Check whether --enable-dependency-tracking was given.
2848 if test "${enable_dependency_tracking+set}" = set; then
2849 enableval=$enable_dependency_tracking;
2850 fi
2851
2852 if test "x$enable_dependency_tracking" != xno; then
2853 am_depcomp="$ac_aux_dir/depcomp"
2854 AMDEPBACKSLASH='\'
2855 fi
2856 if test "x$enable_dependency_tracking" != xno; then
2857 AMDEP_TRUE=
2858 AMDEP_FALSE='#'
2859 else
2860 AMDEP_TRUE='#'
2861 AMDEP_FALSE=
2862 fi
2863
2864
2865 ac_ext=c
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2873 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if test "${ac_cv_prog_CC+set}" = set; then
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2889 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 CC=$ac_cv_prog_CC
2899 if test -n "$CC"; then
2900 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2901 $as_echo "$CC" >&6; }
2902 else
2903 { $as_echo "$as_me:$LINENO: result: no" >&5
2904 $as_echo "no" >&6; }
2905 fi
2906
2907
2908 fi
2909 if test -z "$ac_cv_prog_CC"; then
2910 ac_ct_CC=$CC
2911 # Extract the first word of "gcc", so it can be a program name with args.
2912 set dummy gcc; ac_word=$2
2913 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test -n "$ac_ct_CC"; then
2919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 ac_cv_prog_ac_ct_CC="gcc"
2929 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932 done
2933 done
2934 IFS=$as_save_IFS
2935
2936 fi
2937 fi
2938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939 if test -n "$ac_ct_CC"; then
2940 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2941 $as_echo "$ac_ct_CC" >&6; }
2942 else
2943 { $as_echo "$as_me:$LINENO: result: no" >&5
2944 $as_echo "no" >&6; }
2945 fi
2946
2947 if test "x$ac_ct_CC" = x; then
2948 CC=""
2949 else
2950 case $cross_compiling:$ac_tool_warned in
2951 yes:)
2952 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2954 ac_tool_warned=yes ;;
2955 esac
2956 CC=$ac_ct_CC
2957 fi
2958 else
2959 CC="$ac_cv_prog_CC"
2960 fi
2961
2962 if test -z "$CC"; then
2963 if test -n "$ac_tool_prefix"; then
2964 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2965 set dummy ${ac_tool_prefix}cc; ac_word=$2
2966 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if test "${ac_cv_prog_CC+set}" = set; then
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_CC="${ac_tool_prefix}cc"
2982 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2984 fi
2985 done
2986 done
2987 IFS=$as_save_IFS
2988
2989 fi
2990 fi
2991 CC=$ac_cv_prog_CC
2992 if test -n "$CC"; then
2993 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2994 $as_echo "$CC" >&6; }
2995 else
2996 { $as_echo "$as_me:$LINENO: result: no" >&5
2997 $as_echo "no" >&6; }
2998 fi
2999
3000
3001 fi
3002 fi
3003 if test -z "$CC"; then
3004 # Extract the first word of "cc", so it can be a program name with args.
3005 set dummy cc; ac_word=$2
3006 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if test "${ac_cv_prog_CC+set}" = set; then
3009 $as_echo_n "(cached) " >&6
3010 else
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 else
3014 ac_prog_rejected=no
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3023 ac_prog_rejected=yes
3024 continue
3025 fi
3026 ac_cv_prog_CC="cc"
3027 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030 done
3031 done
3032 IFS=$as_save_IFS
3033
3034 if test $ac_prog_rejected = yes; then
3035 # We found a bogon in the path, so make sure we never use it.
3036 set dummy $ac_cv_prog_CC
3037 shift
3038 if test $# != 0; then
3039 # We chose a different compiler from the bogus one.
3040 # However, it has the same basename, so the bogon will be chosen
3041 # first if we set CC to just the basename; use the full file name.
3042 shift
3043 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3044 fi
3045 fi
3046 fi
3047 fi
3048 CC=$ac_cv_prog_CC
3049 if test -n "$CC"; then
3050 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3052 else
3053 { $as_echo "$as_me:$LINENO: result: no" >&5
3054 $as_echo "no" >&6; }
3055 fi
3056
3057
3058 fi
3059 if test -z "$CC"; then
3060 if test -n "$ac_tool_prefix"; then
3061 for ac_prog in cl.exe
3062 do
3063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if test "${ac_cv_prog_CC+set}" = set; then
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084 done
3085 done
3086 IFS=$as_save_IFS
3087
3088 fi
3089 fi
3090 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3093 $as_echo "$CC" >&6; }
3094 else
3095 { $as_echo "$as_me:$LINENO: result: no" >&5
3096 $as_echo "no" >&6; }
3097 fi
3098
3099
3100 test -n "$CC" && break
3101 done
3102 fi
3103 if test -z "$CC"; then
3104 ac_ct_CC=$CC
3105 for ac_prog in cl.exe
3106 do
3107 # Extract the first word of "$ac_prog", so it can be a program name with args.
3108 set dummy $ac_prog; ac_word=$2
3109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test -n "$ac_ct_CC"; then
3115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 ac_cv_prog_ac_ct_CC="$ac_prog"
3125 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3127 fi
3128 done
3129 done
3130 IFS=$as_save_IFS
3131
3132 fi
3133 fi
3134 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3135 if test -n "$ac_ct_CC"; then
3136 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3137 $as_echo "$ac_ct_CC" >&6; }
3138 else
3139 { $as_echo "$as_me:$LINENO: result: no" >&5
3140 $as_echo "no" >&6; }
3141 fi
3142
3143
3144 test -n "$ac_ct_CC" && break
3145 done
3146
3147 if test "x$ac_ct_CC" = x; then
3148 CC=""
3149 else
3150 case $cross_compiling:$ac_tool_warned in
3151 yes:)
3152 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3155 esac
3156 CC=$ac_ct_CC
3157 fi
3158 fi
3159
3160 fi
3161
3162
3163 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3166 See \`config.log' for more details." >&5
3167 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3168 See \`config.log' for more details." >&2;}
3169 { (exit 1); exit 1; }; }; }
3170
3171 # Provide some information about the compiler.
3172 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3173 set X $ac_compile
3174 ac_compiler=$2
3175 { (ac_try="$ac_compiler --version >&5"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3181 $as_echo "$ac_try_echo") >&5
3182 (eval "$ac_compiler --version >&5") 2>&5
3183 ac_status=$?
3184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }
3186 { (ac_try="$ac_compiler -v >&5"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3192 $as_echo "$ac_try_echo") >&5
3193 (eval "$ac_compiler -v >&5") 2>&5
3194 ac_status=$?
3195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }
3197 { (ac_try="$ac_compiler -V >&5"
3198 case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3203 $as_echo "$ac_try_echo") >&5
3204 (eval "$ac_compiler -V >&5") 2>&5
3205 ac_status=$?
3206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }
3208
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3215
3216 int
3217 main ()
3218 {
3219
3220 ;
3221 return 0;
3222 }
3223 _ACEOF
3224 ac_clean_files_save=$ac_clean_files
3225 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3226 # Try to create an executable without -o first, disregard a.out.
3227 # It will help us diagnose broken compilers, and finding out an intuition
3228 # of exeext.
3229 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3230 $as_echo_n "checking for C compiler default output file name... " >&6; }
3231 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232
3233 # The possible output files:
3234 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3235
3236 ac_rmfiles=
3237 for ac_file in $ac_files
3238 do
3239 case $ac_file in
3240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242 esac
3243 done
3244 rm -f $ac_rmfiles
3245
3246 if { (ac_try="$ac_link_default"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3252 $as_echo "$ac_try_echo") >&5
3253 (eval "$ac_link_default") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; then
3257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3258 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3259 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3260 # so that the user can short-circuit this test for compilers unknown to
3261 # Autoconf.
3262 for ac_file in $ac_files ''
3263 do
3264 test -f "$ac_file" || continue
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3267 ;;
3268 [ab].out )
3269 # We found the default executable, but exeext='' is most
3270 # certainly right.
3271 break;;
3272 *.* )
3273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3274 then :; else
3275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276 fi
3277 # We set ac_cv_exeext here because the later test for it is not
3278 # safe: cross compilers may not add the suffix if given an `-o'
3279 # argument, so we may need to know it at that point already.
3280 # Even if this section looks crufty: it has the advantage of
3281 # actually working.
3282 break;;
3283 * )
3284 break;;
3285 esac
3286 done
3287 test "$ac_cv_exeext" = no && ac_cv_exeext=
3288
3289 else
3290 ac_file=''
3291 fi
3292
3293 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3294 $as_echo "$ac_file" >&6; }
3295 if test -z "$ac_file"; then
3296 $as_echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3302 See \`config.log' for more details." >&5
3303 $as_echo "$as_me: error: C compiler cannot create executables
3304 See \`config.log' for more details." >&2;}
3305 { (exit 77); exit 77; }; }; }
3306 fi
3307
3308 ac_exeext=$ac_cv_exeext
3309
3310 # Check that the compiler produces executables we can run. If not, either
3311 # the compiler is broken, or we cross compile.
3312 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3313 $as_echo_n "checking whether the C compiler works... " >&6; }
3314 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3315 # If not cross compiling, check that we can run a simple program.
3316 if test "$cross_compiling" != yes; then
3317 if { ac_try='./$ac_file'
3318 { (case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323 $as_echo "$ac_try_echo") >&5
3324 (eval "$ac_try") 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 cross_compiling=no
3329 else
3330 if test "$cross_compiling" = maybe; then
3331 cross_compiling=yes
3332 else
3333 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3336 If you meant to cross compile, use \`--host'.
3337 See \`config.log' for more details." >&5
3338 $as_echo "$as_me: error: cannot run C compiled programs.
3339 If you meant to cross compile, use \`--host'.
3340 See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }; }
3342 fi
3343 fi
3344 fi
3345 { $as_echo "$as_me:$LINENO: result: yes" >&5
3346 $as_echo "yes" >&6; }
3347
3348 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3349 ac_clean_files=$ac_clean_files_save
3350 # Check that the compiler produces executables we can run. If not, either
3351 # the compiler is broken, or we cross compile.
3352 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3353 $as_echo_n "checking whether we are cross compiling... " >&6; }
3354 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3355 $as_echo "$cross_compiling" >&6; }
3356
3357 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3358 $as_echo_n "checking for suffix of executables... " >&6; }
3359 if { (ac_try="$ac_link"
3360 case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363 esac
3364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3365 $as_echo "$ac_try_echo") >&5
3366 (eval "$ac_link") 2>&5
3367 ac_status=$?
3368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; then
3370 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3371 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3372 # work properly (i.e., refer to `conftest.exe'), while it won't with
3373 # `rm'.
3374 for ac_file in conftest.exe conftest conftest.*; do
3375 test -f "$ac_file" || continue
3376 case $ac_file in
3377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3378 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3379 break;;
3380 * ) break;;
3381 esac
3382 done
3383 else
3384 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3387 See \`config.log' for more details." >&5
3388 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3389 See \`config.log' for more details." >&2;}
3390 { (exit 1); exit 1; }; }; }
3391 fi
3392
3393 rm -f conftest$ac_cv_exeext
3394 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3395 $as_echo "$ac_cv_exeext" >&6; }
3396
3397 rm -f conftest.$ac_ext
3398 EXEEXT=$ac_cv_exeext
3399 ac_exeext=$EXEEXT
3400 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3401 $as_echo_n "checking for suffix of object files... " >&6; }
3402 if test "${ac_cv_objext+set}" = set; then
3403 $as_echo_n "(cached) " >&6
3404 else
3405 cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h. */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411
3412 int
3413 main ()
3414 {
3415
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 rm -f conftest.o conftest.obj
3421 if { (ac_try="$ac_compile"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3427 $as_echo "$ac_try_echo") >&5
3428 (eval "$ac_compile") 2>&5
3429 ac_status=$?
3430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; then
3432 for ac_file in conftest.o conftest.obj conftest.*; do
3433 test -f "$ac_file" || continue;
3434 case $ac_file in
3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3436 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3437 break;;
3438 esac
3439 done
3440 else
3441 $as_echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3447 See \`config.log' for more details." >&5
3448 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3449 See \`config.log' for more details." >&2;}
3450 { (exit 1); exit 1; }; }; }
3451 fi
3452
3453 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3454 fi
3455 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3456 $as_echo "$ac_cv_objext" >&6; }
3457 OBJEXT=$ac_cv_objext
3458 ac_objext=$OBJEXT
3459 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3460 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3461 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3462 $as_echo_n "(cached) " >&6
3463 else
3464 cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h. */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470
3471 int
3472 main ()
3473 {
3474 #ifndef __GNUC__
3475 choke me
3476 #endif
3477
3478 ;
3479 return 0;
3480 }
3481 _ACEOF
3482 rm -f conftest.$ac_objext
3483 if { (ac_try="$ac_compile"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3489 $as_echo "$ac_try_echo") >&5
3490 (eval "$ac_compile") 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
3495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } && {
3497 test -z "$ac_c_werror_flag" ||
3498 test ! -s conftest.err
3499 } && test -s conftest.$ac_objext; then
3500 ac_compiler_gnu=yes
3501 else
3502 $as_echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 ac_compiler_gnu=no
3506 fi
3507
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3510
3511 fi
3512 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3513 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3514 if test $ac_compiler_gnu = yes; then
3515 GCC=yes
3516 else
3517 GCC=
3518 fi
3519 ac_test_CFLAGS=${CFLAGS+set}
3520 ac_save_CFLAGS=$CFLAGS
3521 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3522 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3523 if test "${ac_cv_prog_cc_g+set}" = set; then
3524 $as_echo_n "(cached) " >&6
3525 else
3526 ac_save_c_werror_flag=$ac_c_werror_flag
3527 ac_c_werror_flag=yes
3528 ac_cv_prog_cc_g=no
3529 CFLAGS="-g"
3530 cat >conftest.$ac_ext <<_ACEOF
3531 /* confdefs.h. */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3536
3537 int
3538 main ()
3539 {
3540
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 rm -f conftest.$ac_objext
3546 if { (ac_try="$ac_compile"
3547 case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3552 $as_echo "$ac_try_echo") >&5
3553 (eval "$ac_compile") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } && {
3560 test -z "$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 } && test -s conftest.$ac_objext; then
3563 ac_cv_prog_cc_g=yes
3564 else
3565 $as_echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 CFLAGS=""
3569 cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h. */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3575
3576 int
3577 main ()
3578 {
3579
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 rm -f conftest.$ac_objext
3585 if { (ac_try="$ac_compile"
3586 case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3591 $as_echo "$ac_try_echo") >&5
3592 (eval "$ac_compile") 2>conftest.er1
3593 ac_status=$?
3594 grep -v '^ *+' conftest.er1 >conftest.err
3595 rm -f conftest.er1
3596 cat conftest.err >&5
3597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } && {
3599 test -z "$ac_c_werror_flag" ||
3600 test ! -s conftest.err
3601 } && test -s conftest.$ac_objext; then
3602 :
3603 else
3604 $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607 ac_c_werror_flag=$ac_save_c_werror_flag
3608 CFLAGS="-g"
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615
3616 int
3617 main ()
3618 {
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 rm -f conftest.$ac_objext
3625 if { (ac_try="$ac_compile"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3631 $as_echo "$ac_try_echo") >&5
3632 (eval "$ac_compile") 2>conftest.er1
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } && {
3639 test -z "$ac_c_werror_flag" ||
3640 test ! -s conftest.err
3641 } && test -s conftest.$ac_objext; then
3642 ac_cv_prog_cc_g=yes
3643 else
3644 $as_echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647
3648 fi
3649
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 fi
3652
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 fi
3655
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 ac_c_werror_flag=$ac_save_c_werror_flag
3658 fi
3659 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3660 $as_echo "$ac_cv_prog_cc_g" >&6; }
3661 if test "$ac_test_CFLAGS" = set; then
3662 CFLAGS=$ac_save_CFLAGS
3663 elif test $ac_cv_prog_cc_g = yes; then
3664 if test "$GCC" = yes; then
3665 CFLAGS="-g -O2"
3666 else
3667 CFLAGS="-g"
3668 fi
3669 else
3670 if test "$GCC" = yes; then
3671 CFLAGS="-O2"
3672 else
3673 CFLAGS=
3674 fi
3675 fi
3676 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3677 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3678 if test "${ac_cv_prog_cc_c89+set}" = set; then
3679 $as_echo_n "(cached) " >&6
3680 else
3681 ac_cv_prog_cc_c89=no
3682 ac_save_CC=$CC
3683 cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h. */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3689 #include <stdarg.h>
3690 #include <stdio.h>
3691 #include <sys/types.h>
3692 #include <sys/stat.h>
3693 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3694 struct buf { int x; };
3695 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3696 static char *e (p, i)
3697 char **p;
3698 int i;
3699 {
3700 return p[i];
3701 }
3702 static char *f (char * (*g) (char **, int), char **p, ...)
3703 {
3704 char *s;
3705 va_list v;
3706 va_start (v,p);
3707 s = g (p, va_arg (v,int));
3708 va_end (v);
3709 return s;
3710 }
3711
3712 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3713 function prototypes and stuff, but not '\xHH' hex character constants.
3714 These don't provoke an error unfortunately, instead are silently treated
3715 as 'x'. The following induces an error, until -std is added to get
3716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3717 array size at least. It's necessary to write '\x00'==0 to get something
3718 that's true only with -std. */
3719 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3720
3721 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3722 inside strings and character constants. */
3723 #define FOO(x) 'x'
3724 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3725
3726 int test (int i, double x);
3727 struct s1 {int (*f) (int a);};
3728 struct s2 {int (*f) (double a);};
3729 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3730 int argc;
3731 char **argv;
3732 int
3733 main ()
3734 {
3735 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3741 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3742 do
3743 CC="$ac_save_CC $ac_arg"
3744 rm -f conftest.$ac_objext
3745 if { (ac_try="$ac_compile"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3751 $as_echo "$ac_try_echo") >&5
3752 (eval "$ac_compile") 2>conftest.er1
3753 ac_status=$?
3754 grep -v '^ *+' conftest.er1 >conftest.err
3755 rm -f conftest.er1
3756 cat conftest.err >&5
3757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } && {
3759 test -z "$ac_c_werror_flag" ||
3760 test ! -s conftest.err
3761 } && test -s conftest.$ac_objext; then
3762 ac_cv_prog_cc_c89=$ac_arg
3763 else
3764 $as_echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3766
3767
3768 fi
3769
3770 rm -f core conftest.err conftest.$ac_objext
3771 test "x$ac_cv_prog_cc_c89" != "xno" && break
3772 done
3773 rm -f conftest.$ac_ext
3774 CC=$ac_save_CC
3775
3776 fi
3777 # AC_CACHE_VAL
3778 case "x$ac_cv_prog_cc_c89" in
3779 x)
3780 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3781 $as_echo "none needed" >&6; } ;;
3782 xno)
3783 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3784 $as_echo "unsupported" >&6; } ;;
3785 *)
3786 CC="$CC $ac_cv_prog_cc_c89"
3787 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3788 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3789 esac
3790
3791
3792 ac_ext=c
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797
3798 depcc="$CC" am_compiler_list=
3799
3800 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3801 $as_echo_n "checking dependency style of $depcc... " >&6; }
3802 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3803 $as_echo_n "(cached) " >&6
3804 else
3805 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3806 # We make a subdir and do the tests there. Otherwise we can end up
3807 # making bogus files that we don't know about and never remove. For
3808 # instance it was reported that on HP-UX the gcc test will end up
3809 # making a dummy file named `D' -- because `-MD' means `put the output
3810 # in D'.
3811 mkdir conftest.dir
3812 # Copy depcomp to subdir because otherwise we won't find it if we're
3813 # using a relative directory.
3814 cp "$am_depcomp" conftest.dir
3815 cd conftest.dir
3816 # We will build objects and dependencies in a subdirectory because
3817 # it helps to detect inapplicable dependency modes. For instance
3818 # both Tru64's cc and ICC support -MD to output dependencies as a
3819 # side effect of compilation, but ICC will put the dependencies in
3820 # the current directory while Tru64 will put them in the object
3821 # directory.
3822 mkdir sub
3823
3824 am_cv_CC_dependencies_compiler_type=none
3825 if test "$am_compiler_list" = ""; then
3826 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3827 fi
3828 for depmode in $am_compiler_list; do
3829 # Setup a source with many dependencies, because some compilers
3830 # like to wrap large dependency lists on column 80 (with \), and
3831 # we should not choose a depcomp mode which is confused by this.
3832 #
3833 # We need to recreate these files for each test, as the compiler may
3834 # overwrite some of them when testing with obscure command lines.
3835 # This happens at least with the AIX C compiler.
3836 : > sub/conftest.c
3837 for i in 1 2 3 4 5 6; do
3838 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3839 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3840 # Solaris 8's {/usr,}/bin/sh.
3841 touch sub/conftst$i.h
3842 done
3843 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3844
3845 case $depmode in
3846 nosideeffect)
3847 # after this tag, mechanisms are not by side-effect, so they'll
3848 # only be used when explicitly requested
3849 if test "x$enable_dependency_tracking" = xyes; then
3850 continue
3851 else
3852 break
3853 fi
3854 ;;
3855 none) break ;;
3856 esac
3857 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3858 # mode. It turns out that the SunPro C++ compiler does not properly
3859 # handle `-M -o', and we need to detect this.
3860 if depmode=$depmode \
3861 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3862 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3863 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3864 >/dev/null 2>conftest.err &&
3865 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3866 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3867 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3868 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3869 # icc doesn't choke on unknown options, it will just issue warnings
3870 # or remarks (even with -Werror). So we grep stderr for any message
3871 # that says an option was ignored or not supported.
3872 # When given -MP, icc 7.0 and 7.1 complain thusly:
3873 # icc: Command line warning: ignoring option '-M'; no argument required
3874 # The diagnosis changed in icc 8.0:
3875 # icc: Command line remark: option '-MP' not supported
3876 if (grep 'ignoring option' conftest.err ||
3877 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3878 am_cv_CC_dependencies_compiler_type=$depmode
3879 break
3880 fi
3881 fi
3882 done
3883
3884 cd ..
3885 rm -rf conftest.dir
3886 else
3887 am_cv_CC_dependencies_compiler_type=none
3888 fi
3889
3890 fi
3891 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3892 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3893 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3894
3895 if
3896 test "x$enable_dependency_tracking" != xno \
3897 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3898 am__fastdepCC_TRUE=
3899 am__fastdepCC_FALSE='#'
3900 else
3901 am__fastdepCC_TRUE='#'
3902 am__fastdepCC_FALSE=
3903 fi
3904
3905
3906 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3907 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3908 if test "${ac_cv_path_SED+set}" = set; then
3909 $as_echo_n "(cached) " >&6
3910 else
3911 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3912 for ac_i in 1 2 3 4 5 6 7; do
3913 ac_script="$ac_script$as_nl$ac_script"
3914 done
3915 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3916 $as_unset ac_script || ac_script=
3917 if test -z "$SED"; then
3918 ac_path_SED_found=false
3919 # Loop through the user's path and test for each of PROGNAME-LIST
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_prog in sed gsed; do
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3928 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3929 # Check for GNU ac_path_SED and select it if it is found.
3930 # Check for GNU $ac_path_SED
3931 case `"$ac_path_SED" --version 2>&1` in
3932 *GNU*)
3933 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3934 *)
3935 ac_count=0
3936 $as_echo_n 0123456789 >"conftest.in"
3937 while :
3938 do
3939 cat "conftest.in" "conftest.in" >"conftest.tmp"
3940 mv "conftest.tmp" "conftest.in"
3941 cp "conftest.in" "conftest.nl"
3942 $as_echo '' >> "conftest.nl"
3943 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945 ac_count=`expr $ac_count + 1`
3946 if test $ac_count -gt ${ac_path_SED_max-0}; then
3947 # Best one so far, save it but keep looking for a better one
3948 ac_cv_path_SED="$ac_path_SED"
3949 ac_path_SED_max=$ac_count
3950 fi
3951 # 10*(2^10) chars as input seems more than enough
3952 test $ac_count -gt 10 && break
3953 done
3954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955 esac
3956
3957 $ac_path_SED_found && break 3
3958 done
3959 done
3960 done
3961 IFS=$as_save_IFS
3962 if test -z "$ac_cv_path_SED"; then
3963 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3964 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3965 { (exit 1); exit 1; }; }
3966 fi
3967 else
3968 ac_cv_path_SED=$SED
3969 fi
3970
3971 fi
3972 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3973 $as_echo "$ac_cv_path_SED" >&6; }
3974 SED="$ac_cv_path_SED"
3975 rm -f conftest.sed
3976
3977 test -z "$SED" && SED=sed
3978 Xsed="$SED -e 1s/^X//"
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3991 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3992 if test "${ac_cv_path_GREP+set}" = set; then
3993 $as_echo_n "(cached) " >&6
3994 else
3995 if test -z "$GREP"; then
3996 ac_path_GREP_found=false
3997 # Loop through the user's path and test for each of PROGNAME-LIST
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4000 do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_prog in grep ggrep; do
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4006 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4007 # Check for GNU ac_path_GREP and select it if it is found.
4008 # Check for GNU $ac_path_GREP
4009 case `"$ac_path_GREP" --version 2>&1` in
4010 *GNU*)
4011 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4012 *)
4013 ac_count=0
4014 $as_echo_n 0123456789 >"conftest.in"
4015 while :
4016 do
4017 cat "conftest.in" "conftest.in" >"conftest.tmp"
4018 mv "conftest.tmp" "conftest.in"
4019 cp "conftest.in" "conftest.nl"
4020 $as_echo 'GREP' >> "conftest.nl"
4021 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4023 ac_count=`expr $ac_count + 1`
4024 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4025 # Best one so far, save it but keep looking for a better one
4026 ac_cv_path_GREP="$ac_path_GREP"
4027 ac_path_GREP_max=$ac_count
4028 fi
4029 # 10*(2^10) chars as input seems more than enough
4030 test $ac_count -gt 10 && break
4031 done
4032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4033 esac
4034
4035 $ac_path_GREP_found && break 3
4036 done
4037 done
4038 done
4039 IFS=$as_save_IFS
4040 if test -z "$ac_cv_path_GREP"; then
4041 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4042 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4043 { (exit 1); exit 1; }; }
4044 fi
4045 else
4046 ac_cv_path_GREP=$GREP
4047 fi
4048
4049 fi
4050 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4051 $as_echo "$ac_cv_path_GREP" >&6; }
4052 GREP="$ac_cv_path_GREP"
4053
4054
4055 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4056 $as_echo_n "checking for egrep... " >&6; }
4057 if test "${ac_cv_path_EGREP+set}" = set; then
4058 $as_echo_n "(cached) " >&6
4059 else
4060 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061 then ac_cv_path_EGREP="$GREP -E"
4062 else
4063 if test -z "$EGREP"; then
4064 ac_path_EGREP_found=false
4065 # Loop through the user's path and test for each of PROGNAME-LIST
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4068 do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_prog in egrep; do
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4074 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4075 # Check for GNU ac_path_EGREP and select it if it is found.
4076 # Check for GNU $ac_path_EGREP
4077 case `"$ac_path_EGREP" --version 2>&1` in
4078 *GNU*)
4079 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4080 *)
4081 ac_count=0
4082 $as_echo_n 0123456789 >"conftest.in"
4083 while :
4084 do
4085 cat "conftest.in" "conftest.in" >"conftest.tmp"
4086 mv "conftest.tmp" "conftest.in"
4087 cp "conftest.in" "conftest.nl"
4088 $as_echo 'EGREP' >> "conftest.nl"
4089 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4091 ac_count=`expr $ac_count + 1`
4092 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4093 # Best one so far, save it but keep looking for a better one
4094 ac_cv_path_EGREP="$ac_path_EGREP"
4095 ac_path_EGREP_max=$ac_count
4096 fi
4097 # 10*(2^10) chars as input seems more than enough
4098 test $ac_count -gt 10 && break
4099 done
4100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4101 esac
4102
4103 $ac_path_EGREP_found && break 3
4104 done
4105 done
4106 done
4107 IFS=$as_save_IFS
4108 if test -z "$ac_cv_path_EGREP"; then
4109 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4110 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4111 { (exit 1); exit 1; }; }
4112 fi
4113 else
4114 ac_cv_path_EGREP=$EGREP
4115 fi
4116
4117 fi
4118 fi
4119 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4120 $as_echo "$ac_cv_path_EGREP" >&6; }
4121 EGREP="$ac_cv_path_EGREP"
4122
4123
4124 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4125 $as_echo_n "checking for fgrep... " >&6; }
4126 if test "${ac_cv_path_FGREP+set}" = set; then
4127 $as_echo_n "(cached) " >&6
4128 else
4129 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4130 then ac_cv_path_FGREP="$GREP -F"
4131 else
4132 if test -z "$FGREP"; then
4133 ac_path_FGREP_found=false
4134 # Loop through the user's path and test for each of PROGNAME-LIST
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4137 do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_prog in fgrep; do
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4143 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4144 # Check for GNU ac_path_FGREP and select it if it is found.
4145 # Check for GNU $ac_path_FGREP
4146 case `"$ac_path_FGREP" --version 2>&1` in
4147 *GNU*)
4148 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4149 *)
4150 ac_count=0
4151 $as_echo_n 0123456789 >"conftest.in"
4152 while :
4153 do
4154 cat "conftest.in" "conftest.in" >"conftest.tmp"
4155 mv "conftest.tmp" "conftest.in"
4156 cp "conftest.in" "conftest.nl"
4157 $as_echo 'FGREP' >> "conftest.nl"
4158 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4160 ac_count=`expr $ac_count + 1`
4161 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4162 # Best one so far, save it but keep looking for a better one
4163 ac_cv_path_FGREP="$ac_path_FGREP"
4164 ac_path_FGREP_max=$ac_count
4165 fi
4166 # 10*(2^10) chars as input seems more than enough
4167 test $ac_count -gt 10 && break
4168 done
4169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4170 esac
4171
4172 $ac_path_FGREP_found && break 3
4173 done
4174 done
4175 done
4176 IFS=$as_save_IFS
4177 if test -z "$ac_cv_path_FGREP"; then
4178 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4179 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4180 { (exit 1); exit 1; }; }
4181 fi
4182 else
4183 ac_cv_path_FGREP=$FGREP
4184 fi
4185
4186 fi
4187 fi
4188 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4189 $as_echo "$ac_cv_path_FGREP" >&6; }
4190 FGREP="$ac_cv_path_FGREP"
4191
4192
4193 test -z "$GREP" && GREP=grep
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213 # Check whether --with-gnu-ld was given.
4214 if test "${with_gnu_ld+set}" = set; then
4215 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4216 else
4217 with_gnu_ld=no
4218 fi
4219
4220 ac_prog=ld
4221 if test "$GCC" = yes; then
4222 # Check if gcc -print-prog-name=ld gives a path.
4223 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4224 $as_echo_n "checking for ld used by $CC... " >&6; }
4225 case $host in
4226 *-*-mingw*)
4227 # gcc leaves a trailing carriage return which upsets mingw
4228 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4229 *)
4230 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4231 esac
4232 case $ac_prog in
4233 # Accept absolute paths.
4234 [\\/]* | ?:[\\/]*)
4235 re_direlt='/[^/][^/]*/\.\./'
4236 # Canonicalize the pathname of ld
4237 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4238 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4239 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4240 done
4241 test -z "$LD" && LD="$ac_prog"
4242 ;;
4243 "")
4244 # If it fails, then pretend we aren't using GCC.
4245 ac_prog=ld
4246 ;;
4247 *)
4248 # If it is relative, then search for the first ld in PATH.
4249 with_gnu_ld=unknown
4250 ;;
4251 esac
4252 elif test "$with_gnu_ld" = yes; then
4253 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4254 $as_echo_n "checking for GNU ld... " >&6; }
4255 else
4256 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4257 $as_echo_n "checking for non-GNU ld... " >&6; }
4258 fi
4259 if test "${lt_cv_path_LD+set}" = set; then
4260 $as_echo_n "(cached) " >&6
4261 else
4262 if test -z "$LD"; then
4263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4264 for ac_dir in $PATH; do
4265 IFS="$lt_save_ifs"
4266 test -z "$ac_dir" && ac_dir=.
4267 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4268 lt_cv_path_LD="$ac_dir/$ac_prog"
4269 # Check to see if the program is GNU ld. I'd rather use --version,
4270 # but apparently some variants of GNU ld only accept -v.
4271 # Break only if it was the GNU/non-GNU ld that we prefer.
4272 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4273 *GNU* | *'with BFD'*)
4274 test "$with_gnu_ld" != no && break
4275 ;;
4276 *)
4277 test "$with_gnu_ld" != yes && break
4278 ;;
4279 esac
4280 fi
4281 done
4282 IFS="$lt_save_ifs"
4283 else
4284 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4285 fi
4286 fi
4287
4288 LD="$lt_cv_path_LD"
4289 if test -n "$LD"; then
4290 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4291 $as_echo "$LD" >&6; }
4292 else
4293 { $as_echo "$as_me:$LINENO: result: no" >&5
4294 $as_echo "no" >&6; }
4295 fi
4296 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4297 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4298 { (exit 1); exit 1; }; }
4299 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4300 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4301 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4302 $as_echo_n "(cached) " >&6
4303 else
4304 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4305 case `$LD -v 2>&1 </dev/null` in
4306 *GNU* | *'with BFD'*)
4307 lt_cv_prog_gnu_ld=yes
4308 ;;
4309 *)
4310 lt_cv_prog_gnu_ld=no
4311 ;;
4312 esac
4313 fi
4314 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4315 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4316 with_gnu_ld=$lt_cv_prog_gnu_ld
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4327 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4328 if test "${lt_cv_path_NM+set}" = set; then
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -n "$NM"; then
4332 # Let the user override the test.
4333 lt_cv_path_NM="$NM"
4334 else
4335 lt_nm_to_check="${ac_tool_prefix}nm"
4336 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4337 lt_nm_to_check="$lt_nm_to_check nm"
4338 fi
4339 for lt_tmp_nm in $lt_nm_to_check; do
4340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4341 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4342 IFS="$lt_save_ifs"
4343 test -z "$ac_dir" && ac_dir=.
4344 tmp_nm="$ac_dir/$lt_tmp_nm"
4345 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4346 # Check to see if the nm accepts a BSD-compat flag.
4347 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4348 # nm: unknown option "B" ignored
4349 # Tru64's nm complains that /dev/null is an invalid object file
4350 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4351 */dev/null* | *'Invalid file or object type'*)
4352 lt_cv_path_NM="$tmp_nm -B"
4353 break
4354 ;;
4355 *)
4356 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4357 */dev/null*)
4358 lt_cv_path_NM="$tmp_nm -p"
4359 break
4360 ;;
4361 *)
4362 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4363 continue # so that we can try to find one that supports BSD flags
4364 ;;
4365 esac
4366 ;;
4367 esac
4368 fi
4369 done
4370 IFS="$lt_save_ifs"
4371 done
4372 : ${lt_cv_path_NM=no}
4373 fi
4374 fi
4375 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4376 $as_echo "$lt_cv_path_NM" >&6; }
4377 if test "$lt_cv_path_NM" != "no"; then
4378 NM="$lt_cv_path_NM"
4379 else
4380 # Didn't find any BSD compatible name lister, look for dumpbin.
4381 if test -n "$ac_tool_prefix"; then
4382 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4383 do
4384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4389 $as_echo_n "(cached) " >&6
4390 else
4391 if test -n "$DUMPBIN"; then
4392 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4402 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4404 fi
4405 done
4406 done
4407 IFS=$as_save_IFS
4408
4409 fi
4410 fi
4411 DUMPBIN=$ac_cv_prog_DUMPBIN
4412 if test -n "$DUMPBIN"; then
4413 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4414 $as_echo "$DUMPBIN" >&6; }
4415 else
4416 { $as_echo "$as_me:$LINENO: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419
4420
4421 test -n "$DUMPBIN" && break
4422 done
4423 fi
4424 if test -z "$DUMPBIN"; then
4425 ac_ct_DUMPBIN=$DUMPBIN
4426 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4427 do
4428 # Extract the first word of "$ac_prog", so it can be a program name with args.
4429 set dummy $ac_prog; ac_word=$2
4430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 $as_echo_n "checking for $ac_word... " >&6; }
4432 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4433 $as_echo_n "(cached) " >&6
4434 else
4435 if test -n "$ac_ct_DUMPBIN"; then
4436 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4448 fi
4449 done
4450 done
4451 IFS=$as_save_IFS
4452
4453 fi
4454 fi
4455 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4456 if test -n "$ac_ct_DUMPBIN"; then
4457 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4458 $as_echo "$ac_ct_DUMPBIN" >&6; }
4459 else
4460 { $as_echo "$as_me:$LINENO: result: no" >&5
4461 $as_echo "no" >&6; }
4462 fi
4463
4464
4465 test -n "$ac_ct_DUMPBIN" && break
4466 done
4467
4468 if test "x$ac_ct_DUMPBIN" = x; then
4469 DUMPBIN=":"
4470 else
4471 case $cross_compiling:$ac_tool_warned in
4472 yes:)
4473 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4475 ac_tool_warned=yes ;;
4476 esac
4477 DUMPBIN=$ac_ct_DUMPBIN
4478 fi
4479 fi
4480
4481
4482 if test "$DUMPBIN" != ":"; then
4483 NM="$DUMPBIN"
4484 fi
4485 fi
4486 test -z "$NM" && NM=nm
4487
4488
4489
4490
4491
4492
4493 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4494 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4495 if test "${lt_cv_nm_interface+set}" = set; then
4496 $as_echo_n "(cached) " >&6
4497 else
4498 lt_cv_nm_interface="BSD nm"
4499 echo "int some_variable = 0;" > conftest.$ac_ext
4500 (eval echo "\"\$as_me:4500: $ac_compile\"" >&5)
4501 (eval "$ac_compile" 2>conftest.err)
4502 cat conftest.err >&5
4503 (eval echo "\"\$as_me:4503: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4504 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4505 cat conftest.err >&5
4506 (eval echo "\"\$as_me:4506: output\"" >&5)
4507 cat conftest.out >&5
4508 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4509 lt_cv_nm_interface="MS dumpbin"
4510 fi
4511 rm -f conftest*
4512 fi
4513 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4514 $as_echo "$lt_cv_nm_interface" >&6; }
4515
4516 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4517 $as_echo_n "checking whether ln -s works... " >&6; }
4518 LN_S=$as_ln_s
4519 if test "$LN_S" = "ln -s"; then
4520 { $as_echo "$as_me:$LINENO: result: yes" >&5
4521 $as_echo "yes" >&6; }
4522 else
4523 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4524 $as_echo "no, using $LN_S" >&6; }
4525 fi
4526
4527 # find the maximum length of command line arguments
4528 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4529 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4530 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4531 $as_echo_n "(cached) " >&6
4532 else
4533 i=0
4534 teststring="ABCD"
4535
4536 case $build_os in
4537 msdosdjgpp*)
4538 # On DJGPP, this test can blow up pretty badly due to problems in libc
4539 # (any single argument exceeding 2000 bytes causes a buffer overrun
4540 # during glob expansion). Even if it were fixed, the result of this
4541 # check would be larger than it should be.
4542 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4543 ;;
4544
4545 gnu*)
4546 # Under GNU Hurd, this test is not required because there is
4547 # no limit to the length of command line arguments.
4548 # Libtool will interpret -1 as no limit whatsoever
4549 lt_cv_sys_max_cmd_len=-1;
4550 ;;
4551
4552 cygwin* | mingw* | cegcc*)
4553 # On Win9x/ME, this test blows up -- it succeeds, but takes
4554 # about 5 minutes as the teststring grows exponentially.
4555 # Worse, since 9x/ME are not pre-emptively multitasking,
4556 # you end up with a "frozen" computer, even though with patience
4557 # the test eventually succeeds (with a max line length of 256k).
4558 # Instead, let's just punt: use the minimum linelength reported by
4559 # all of the supported platforms: 8192 (on NT/2K/XP).
4560 lt_cv_sys_max_cmd_len=8192;
4561 ;;
4562
4563 amigaos*)
4564 # On AmigaOS with pdksh, this test takes hours, literally.
4565 # So we just punt and use a minimum line length of 8192.
4566 lt_cv_sys_max_cmd_len=8192;
4567 ;;
4568
4569 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4570 # This has been around since 386BSD, at least. Likely further.
4571 if test -x /sbin/sysctl; then
4572 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4573 elif test -x /usr/sbin/sysctl; then
4574 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4575 else
4576 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4577 fi
4578 # And add a safety zone
4579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4581 ;;
4582
4583 interix*)
4584 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4585 lt_cv_sys_max_cmd_len=196608
4586 ;;
4587
4588 osf*)
4589 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4590 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4591 # nice to cause kernel panics so lets avoid the loop below.
4592 # First set a reasonable default.
4593 lt_cv_sys_max_cmd_len=16384
4594 #
4595 if test -x /sbin/sysconfig; then
4596 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4597 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4598 esac
4599 fi
4600 ;;
4601 sco3.2v5*)
4602 lt_cv_sys_max_cmd_len=102400
4603 ;;
4604 sysv5* | sco5v6* | sysv4.2uw2*)
4605 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4606 if test -n "$kargmax"; then
4607 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4608 else
4609 lt_cv_sys_max_cmd_len=32768
4610 fi
4611 ;;
4612 *)
4613 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4614 if test -n "$lt_cv_sys_max_cmd_len"; then
4615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4617 else
4618 # Make teststring a little bigger before we do anything with it.
4619 # a 1K string should be a reasonable start.
4620 for i in 1 2 3 4 5 6 7 8 ; do
4621 teststring=$teststring$teststring
4622 done
4623 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4624 # If test is not a shell built-in, we'll probably end up computing a
4625 # maximum length that is only half of the actual maximum length, but
4626 # we can't tell.
4627 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4628 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4629 test $i != 17 # 1/2 MB should be enough
4630 do
4631 i=`expr $i + 1`
4632 teststring=$teststring$teststring
4633 done
4634 # Only check the string length outside the loop.
4635 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4636 teststring=
4637 # Add a significant safety factor because C++ compilers can tack on
4638 # massive amounts of additional arguments before passing them to the
4639 # linker. It appears as though 1/2 is a usable value.
4640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4641 fi
4642 ;;
4643 esac
4644
4645 fi
4646
4647 if test -n $lt_cv_sys_max_cmd_len ; then
4648 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4649 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4650 else
4651 { $as_echo "$as_me:$LINENO: result: none" >&5
4652 $as_echo "none" >&6; }
4653 fi
4654 max_cmd_len=$lt_cv_sys_max_cmd_len
4655
4656
4657
4658
4659
4660
4661 : ${CP="cp -f"}
4662 : ${MV="mv -f"}
4663 : ${RM="rm -f"}
4664
4665 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4666 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4667 # Try some XSI features
4668 xsi_shell=no
4669 ( _lt_dummy="a/b/c"
4670 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4671 = c,a/b,, \
4672 && eval 'test $(( 1 + 1 )) -eq 2 \
4673 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4674 && xsi_shell=yes
4675 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4676 $as_echo "$xsi_shell" >&6; }
4677
4678
4679 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4680 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4681 lt_shell_append=no
4682 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4683 >/dev/null 2>&1 \
4684 && lt_shell_append=yes
4685 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4686 $as_echo "$lt_shell_append" >&6; }
4687
4688
4689 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4690 lt_unset=unset
4691 else
4692 lt_unset=false
4693 fi
4694
4695
4696
4697
4698
4699 # test EBCDIC or ASCII
4700 case `echo X|tr X '\101'` in
4701 A) # ASCII based system
4702 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4703 lt_SP2NL='tr \040 \012'
4704 lt_NL2SP='tr \015\012 \040\040'
4705 ;;
4706 *) # EBCDIC based system
4707 lt_SP2NL='tr \100 \n'
4708 lt_NL2SP='tr \r\n \100\100'
4709 ;;
4710 esac
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4721 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4722 if test "${lt_cv_ld_reload_flag+set}" = set; then
4723 $as_echo_n "(cached) " >&6
4724 else
4725 lt_cv_ld_reload_flag='-r'
4726 fi
4727 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4728 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4729 reload_flag=$lt_cv_ld_reload_flag
4730 case $reload_flag in
4731 "" | " "*) ;;
4732 *) reload_flag=" $reload_flag" ;;
4733 esac
4734 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4735 case $host_os in
4736 darwin*)
4737 if test "$GCC" = yes; then
4738 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4739 else
4740 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4741 fi
4742 ;;
4743 esac
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753 if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4755 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4759 $as_echo_n "(cached) " >&6
4760 else
4761 if test -n "$OBJDUMP"; then
4762 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775 done
4776 done
4777 IFS=$as_save_IFS
4778
4779 fi
4780 fi
4781 OBJDUMP=$ac_cv_prog_OBJDUMP
4782 if test -n "$OBJDUMP"; then
4783 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4784 $as_echo "$OBJDUMP" >&6; }
4785 else
4786 { $as_echo "$as_me:$LINENO: result: no" >&5
4787 $as_echo "no" >&6; }
4788 fi
4789
4790
4791 fi
4792 if test -z "$ac_cv_prog_OBJDUMP"; then
4793 ac_ct_OBJDUMP=$OBJDUMP
4794 # Extract the first word of "objdump", so it can be a program name with args.
4795 set dummy objdump; ac_word=$2
4796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4799 $as_echo_n "(cached) " >&6
4800 else
4801 if test -n "$ac_ct_OBJDUMP"; then
4802 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815 done
4816 done
4817 IFS=$as_save_IFS
4818
4819 fi
4820 fi
4821 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4822 if test -n "$ac_ct_OBJDUMP"; then
4823 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4824 $as_echo "$ac_ct_OBJDUMP" >&6; }
4825 else
4826 { $as_echo "$as_me:$LINENO: result: no" >&5
4827 $as_echo "no" >&6; }
4828 fi
4829
4830 if test "x$ac_ct_OBJDUMP" = x; then
4831 OBJDUMP="false"
4832 else
4833 case $cross_compiling:$ac_tool_warned in
4834 yes:)
4835 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4837 ac_tool_warned=yes ;;
4838 esac
4839 OBJDUMP=$ac_ct_OBJDUMP
4840 fi
4841 else
4842 OBJDUMP="$ac_cv_prog_OBJDUMP"
4843 fi
4844
4845 test -z "$OBJDUMP" && OBJDUMP=objdump
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4856 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4857 if test "${lt_cv_deplibs_check_method+set}" = set; then
4858 $as_echo_n "(cached) " >&6
4859 else
4860 lt_cv_file_magic_cmd='$MAGIC_CMD'
4861 lt_cv_file_magic_test_file=
4862 lt_cv_deplibs_check_method='unknown'
4863 # Need to set the preceding variable on all platforms that support
4864 # interlibrary dependencies.
4865 # 'none' -- dependencies not supported.
4866 # `unknown' -- same as none, but documents that we really don't know.
4867 # 'pass_all' -- all dependencies passed with no checks.
4868 # 'test_compile' -- check by making test program.
4869 # 'file_magic [[regex]]' -- check by looking for files in library path
4870 # which responds to the $file_magic_cmd with a given extended regex.
4871 # If you have `file' or equivalent on your system and you're not sure
4872 # whether `pass_all' will *always* work, you probably want this one.
4873
4874 case $host_os in
4875 aix[4-9]*)
4876 lt_cv_deplibs_check_method=pass_all
4877 ;;
4878
4879 beos*)
4880 lt_cv_deplibs_check_method=pass_all
4881 ;;
4882
4883 bsdi[45]*)
4884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4885 lt_cv_file_magic_cmd='/usr/bin/file -L'
4886 lt_cv_file_magic_test_file=/shlib/libc.so
4887 ;;
4888
4889 cygwin*)
4890 # func_win32_libid is a shell function defined in ltmain.sh
4891 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4892 lt_cv_file_magic_cmd='func_win32_libid'
4893 ;;
4894
4895 mingw* | pw32*)
4896 # Base MSYS/MinGW do not provide the 'file' command needed by
4897 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4898 # unless we find 'file', for example because we are cross-compiling.
4899 if ( file / ) >/dev/null 2>&1; then
4900 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4901 lt_cv_file_magic_cmd='func_win32_libid'
4902 else
4903 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4904 lt_cv_file_magic_cmd='$OBJDUMP -f'
4905 fi
4906 ;;
4907
4908 cegcc)
4909 # use the weaker test based on 'objdump'. See mingw*.
4910 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4911 lt_cv_file_magic_cmd='$OBJDUMP -f'
4912 ;;
4913
4914 darwin* | rhapsody*)
4915 lt_cv_deplibs_check_method=pass_all
4916 ;;
4917
4918 freebsd* | dragonfly*)
4919 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4920 case $host_cpu in
4921 i*86 )
4922 # Not sure whether the presence of OpenBSD here was a mistake.
4923 # Let's accept both of them until this is cleared up.
4924 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4925 lt_cv_file_magic_cmd=/usr/bin/file
4926 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4927 ;;
4928 esac
4929 else
4930 lt_cv_deplibs_check_method=pass_all
4931 fi
4932 ;;
4933
4934 gnu*)
4935 lt_cv_deplibs_check_method=pass_all
4936 ;;
4937
4938 hpux10.20* | hpux11*)
4939 lt_cv_file_magic_cmd=/usr/bin/file
4940 case $host_cpu in
4941 ia64*)
4942 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4943 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4944 ;;
4945 hppa*64*)
4946 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]'
4947 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4948 ;;
4949 *)
4950 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4951 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4952 ;;
4953 esac
4954 ;;
4955
4956 interix[3-9]*)
4957 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4959 ;;
4960
4961 irix5* | irix6* | nonstopux*)
4962 case $LD in
4963 *-32|*"-32 ") libmagic=32-bit;;
4964 *-n32|*"-n32 ") libmagic=N32;;
4965 *-64|*"-64 ") libmagic=64-bit;;
4966 *) libmagic=never-match;;
4967 esac
4968 lt_cv_deplibs_check_method=pass_all
4969 ;;
4970
4971 # This must be Linux ELF.
4972 linux* | k*bsd*-gnu)
4973 lt_cv_deplibs_check_method=pass_all
4974 ;;
4975
4976 netbsd* | netbsdelf*-gnu)
4977 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4979 else
4980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4981 fi
4982 ;;
4983
4984 newos6*)
4985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4986 lt_cv_file_magic_cmd=/usr/bin/file
4987 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4988 ;;
4989
4990 *nto* | *qnx*)
4991 lt_cv_deplibs_check_method=pass_all
4992 ;;
4993
4994 openbsd*)
4995 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4997 else
4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4999 fi
5000 ;;
5001
5002 osf3* | osf4* | osf5*)
5003 lt_cv_deplibs_check_method=pass_all
5004 ;;
5005
5006 rdos*)
5007 lt_cv_deplibs_check_method=pass_all
5008 ;;
5009
5010 solaris*)
5011 lt_cv_deplibs_check_method=pass_all
5012 ;;
5013
5014 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5015 lt_cv_deplibs_check_method=pass_all
5016 ;;
5017
5018 sysv4 | sysv4.3*)
5019 case $host_vendor in
5020 motorola)
5021 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]'
5022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5023 ;;
5024 ncr)
5025 lt_cv_deplibs_check_method=pass_all
5026 ;;
5027 sequent)
5028 lt_cv_file_magic_cmd='/bin/file'
5029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5030 ;;
5031 sni)
5032 lt_cv_file_magic_cmd='/bin/file'
5033 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5034 lt_cv_file_magic_test_file=/lib/libc.so
5035 ;;
5036 siemens)
5037 lt_cv_deplibs_check_method=pass_all
5038 ;;
5039 pc)
5040 lt_cv_deplibs_check_method=pass_all
5041 ;;
5042 esac
5043 ;;
5044
5045 tpf*)
5046 lt_cv_deplibs_check_method=pass_all
5047 ;;
5048 esac
5049
5050 fi
5051 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5052 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5053 file_magic_cmd=$lt_cv_file_magic_cmd
5054 deplibs_check_method=$lt_cv_deplibs_check_method
5055 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068 if test -n "$ac_tool_prefix"; then
5069 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5070 set dummy ${ac_tool_prefix}ar; ac_word=$2
5071 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 $as_echo_n "checking for $ac_word... " >&6; }
5073 if test "${ac_cv_prog_AR+set}" = set; then
5074 $as_echo_n "(cached) " >&6
5075 else
5076 if test -n "$AR"; then
5077 ac_cv_prog_AR="$AR" # Let the user override the test.
5078 else
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5081 do
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 ac_cv_prog_AR="${ac_tool_prefix}ar"
5087 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 break 2
5089 fi
5090 done
5091 done
5092 IFS=$as_save_IFS
5093
5094 fi
5095 fi
5096 AR=$ac_cv_prog_AR
5097 if test -n "$AR"; then
5098 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5099 $as_echo "$AR" >&6; }
5100 else
5101 { $as_echo "$as_me:$LINENO: result: no" >&5
5102 $as_echo "no" >&6; }
5103 fi
5104
5105
5106 fi
5107 if test -z "$ac_cv_prog_AR"; then
5108 ac_ct_AR=$AR
5109 # Extract the first word of "ar", so it can be a program name with args.
5110 set dummy ar; ac_word=$2
5111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5114 $as_echo_n "(cached) " >&6
5115 else
5116 if test -n "$ac_ct_AR"; then
5117 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5118 else
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126 ac_cv_prog_ac_ct_AR="ar"
5127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130 done
5131 done
5132 IFS=$as_save_IFS
5133
5134 fi
5135 fi
5136 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5137 if test -n "$ac_ct_AR"; then
5138 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5139 $as_echo "$ac_ct_AR" >&6; }
5140 else
5141 { $as_echo "$as_me:$LINENO: result: no" >&5
5142 $as_echo "no" >&6; }
5143 fi
5144
5145 if test "x$ac_ct_AR" = x; then
5146 AR="false"
5147 else
5148 case $cross_compiling:$ac_tool_warned in
5149 yes:)
5150 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5152 ac_tool_warned=yes ;;
5153 esac
5154 AR=$ac_ct_AR
5155 fi
5156 else
5157 AR="$ac_cv_prog_AR"
5158 fi
5159
5160 test -z "$AR" && AR=ar
5161 test -z "$AR_FLAGS" && AR_FLAGS=cru
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173 if test -n "$ac_tool_prefix"; then
5174 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5175 set dummy ${ac_tool_prefix}strip; ac_word=$2
5176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_prog_STRIP+set}" = set; then
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -n "$STRIP"; then
5182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5186 do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5194 fi
5195 done
5196 done
5197 IFS=$as_save_IFS
5198
5199 fi
5200 fi
5201 STRIP=$ac_cv_prog_STRIP
5202 if test -n "$STRIP"; then
5203 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5204 $as_echo "$STRIP" >&6; }
5205 else
5206 { $as_echo "$as_me:$LINENO: result: no" >&5
5207 $as_echo "no" >&6; }
5208 fi
5209
5210
5211 fi
5212 if test -z "$ac_cv_prog_STRIP"; then
5213 ac_ct_STRIP=$STRIP
5214 # Extract the first word of "strip", so it can be a program name with args.
5215 set dummy strip; ac_word=$2
5216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5219 $as_echo_n "(cached) " >&6
5220 else
5221 if test -n "$ac_ct_STRIP"; then
5222 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_prog_ac_ct_STRIP="strip"
5232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5234 fi
5235 done
5236 done
5237 IFS=$as_save_IFS
5238
5239 fi
5240 fi
5241 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5242 if test -n "$ac_ct_STRIP"; then
5243 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5244 $as_echo "$ac_ct_STRIP" >&6; }
5245 else
5246 { $as_echo "$as_me:$LINENO: result: no" >&5
5247 $as_echo "no" >&6; }
5248 fi
5249
5250 if test "x$ac_ct_STRIP" = x; then
5251 STRIP=":"
5252 else
5253 case $cross_compiling:$ac_tool_warned in
5254 yes:)
5255 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5257 ac_tool_warned=yes ;;
5258 esac
5259 STRIP=$ac_ct_STRIP
5260 fi
5261 else
5262 STRIP="$ac_cv_prog_STRIP"
5263 fi
5264
5265 test -z "$STRIP" && STRIP=:
5266
5267
5268
5269
5270
5271
5272 if test -n "$ac_tool_prefix"; then
5273 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5274 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5275 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if test "${ac_cv_prog_RANLIB+set}" = set; then
5278 $as_echo_n "(cached) " >&6
5279 else
5280 if test -n "$RANLIB"; then
5281 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5293 fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298 fi
5299 fi
5300 RANLIB=$ac_cv_prog_RANLIB
5301 if test -n "$RANLIB"; then
5302 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5303 $as_echo "$RANLIB" >&6; }
5304 else
5305 { $as_echo "$as_me:$LINENO: result: no" >&5
5306 $as_echo "no" >&6; }
5307 fi
5308
5309
5310 fi
5311 if test -z "$ac_cv_prog_RANLIB"; then
5312 ac_ct_RANLIB=$RANLIB
5313 # Extract the first word of "ranlib", so it can be a program name with args.
5314 set dummy ranlib; ac_word=$2
5315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5318 $as_echo_n "(cached) " >&6
5319 else
5320 if test -n "$ac_ct_RANLIB"; then
5321 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_prog_ac_ct_RANLIB="ranlib"
5331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334 done
5335 done
5336 IFS=$as_save_IFS
5337
5338 fi
5339 fi
5340 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5341 if test -n "$ac_ct_RANLIB"; then
5342 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5343 $as_echo "$ac_ct_RANLIB" >&6; }
5344 else
5345 { $as_echo "$as_me:$LINENO: result: no" >&5
5346 $as_echo "no" >&6; }
5347 fi
5348
5349 if test "x$ac_ct_RANLIB" = x; then
5350 RANLIB=":"
5351 else
5352 case $cross_compiling:$ac_tool_warned in
5353 yes:)
5354 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5356 ac_tool_warned=yes ;;
5357 esac
5358 RANLIB=$ac_ct_RANLIB
5359 fi
5360 else
5361 RANLIB="$ac_cv_prog_RANLIB"
5362 fi
5363
5364 test -z "$RANLIB" && RANLIB=:
5365
5366
5367
5368
5369
5370
5371 # Determine commands to create old-style static archives.
5372 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5373 old_postinstall_cmds='chmod 644 $oldlib'
5374 old_postuninstall_cmds=
5375
5376 if test -n "$RANLIB"; then
5377 case $host_os in
5378 openbsd*)
5379 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5380 ;;
5381 *)
5382 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5383 ;;
5384 esac
5385 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5386 fi
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421 # If no C compiler was specified, use CC.
5422 LTCC=${LTCC-"$CC"}
5423
5424 # If no C compiler flags were specified, use CFLAGS.
5425 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5426
5427 # Allow CC to be a program name with arguments.
5428 compiler=$CC
5429
5430
5431 # Check for command to grab the raw symbol name followed by C symbol from nm.
5432 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5433 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5434 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5435 $as_echo_n "(cached) " >&6
5436 else
5437
5438 # These are sane defaults that work on at least a few old systems.
5439 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5440
5441 # Character class describing NM global symbol codes.
5442 symcode='[BCDEGRST]'
5443
5444 # Regexp to match symbols that can be accessed directly from C.
5445 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5446
5447 # Define system-specific variables.
5448 case $host_os in
5449 aix*)
5450 symcode='[BCDT]'
5451 ;;
5452 cygwin* | mingw* | pw32* | cegcc*)
5453 symcode='[ABCDGISTW]'
5454 ;;
5455 hpux*)
5456 if test "$host_cpu" = ia64; then
5457 symcode='[ABCDEGRST]'
5458 fi
5459 ;;
5460 irix* | nonstopux*)
5461 symcode='[BCDEGRST]'
5462 ;;
5463 osf*)
5464 symcode='[BCDEGQRST]'
5465 ;;
5466 solaris*)
5467 symcode='[BDRT]'
5468 ;;
5469 sco3.2v5*)
5470 symcode='[DT]'
5471 ;;
5472 sysv4.2uw2*)
5473 symcode='[DT]'
5474 ;;
5475 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5476 symcode='[ABDT]'
5477 ;;
5478 sysv4)
5479 symcode='[DFNSTU]'
5480 ;;
5481 esac
5482
5483 # If we're using GNU nm, then use its standard symbol codes.
5484 case `$NM -V 2>&1` in
5485 *GNU* | *'with BFD'*)
5486 symcode='[ABCDGIRSTW]' ;;
5487 esac
5488
5489 # Transform an extracted symbol line into a proper C declaration.
5490 # Some systems (esp. on ia64) link data and code symbols differently,
5491 # so use this general approach.
5492 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5493
5494 # Transform an extracted symbol line into symbol name and symbol address
5495 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5496 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'"
5497
5498 # Handle CRLF in mingw tool chain
5499 opt_cr=
5500 case $build_os in
5501 mingw*)
5502 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5503 ;;
5504 esac
5505
5506 # Try without a prefix underscore, then with it.
5507 for ac_symprfx in "" "_"; do
5508
5509 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5510 symxfrm="\\1 $ac_symprfx\\2 \\2"
5511
5512 # Write the raw and C identifiers.
5513 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5514 # Fake it for dumpbin and say T for any non-static function
5515 # and D for any global variable.
5516 # Also find C++ and __fastcall symbols from MSVC++,
5517 # which start with @ or ?.
5518 lt_cv_sys_global_symbol_pipe="$AWK '"\
5519 " {last_section=section; section=\$ 3};"\
5520 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5521 " \$ 0!~/External *\|/{next};"\
5522 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5523 " {if(hide[section]) next};"\
5524 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5525 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5526 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5527 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5528 " ' prfx=^$ac_symprfx"
5529 else
5530 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5531 fi
5532
5533 # Check to see that the pipe works correctly.
5534 pipe_works=no
5535
5536 rm -f conftest*
5537 cat > conftest.$ac_ext <<_LT_EOF
5538 #ifdef __cplusplus
5539 extern "C" {
5540 #endif
5541 char nm_test_var;
5542 void nm_test_func(void);
5543 void nm_test_func(void){}
5544 #ifdef __cplusplus
5545 }
5546 #endif
5547 int main(){nm_test_var='a';nm_test_func();return(0);}
5548 _LT_EOF
5549
5550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551 (eval $ac_compile) 2>&5
5552 ac_status=$?
5553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; then
5555 # Now try to grab the symbols.
5556 nlist=conftest.nm
5557 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5558 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5559 ac_status=$?
5560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } && test -s "$nlist"; then
5562 # Try sorting and uniquifying the output.
5563 if sort "$nlist" | uniq > "$nlist"T; then
5564 mv -f "$nlist"T "$nlist"
5565 else
5566 rm -f "$nlist"T
5567 fi
5568
5569 # Make sure that we snagged all the symbols we need.
5570 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5571 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5572 cat <<_LT_EOF > conftest.$ac_ext
5573 #ifdef __cplusplus
5574 extern "C" {
5575 #endif
5576
5577 _LT_EOF
5578 # Now generate the symbol file.
5579 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5580
5581 cat <<_LT_EOF >> conftest.$ac_ext
5582
5583 /* The mapping between symbol names and symbols. */
5584 const struct {
5585 const char *name;
5586 void *address;
5587 }
5588 lt__PROGRAM__LTX_preloaded_symbols[] =
5589 {
5590 { "@PROGRAM@", (void *) 0 },
5591 _LT_EOF
5592 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5593 cat <<\_LT_EOF >> conftest.$ac_ext
5594 {0, (void *) 0}
5595 };
5596
5597 /* This works around a problem in FreeBSD linker */
5598 #ifdef FREEBSD_WORKAROUND
5599 static const void *lt_preloaded_setup() {
5600 return lt__PROGRAM__LTX_preloaded_symbols;
5601 }
5602 #endif
5603
5604 #ifdef __cplusplus
5605 }
5606 #endif
5607 _LT_EOF
5608 # Now try linking the two files.
5609 mv conftest.$ac_objext conftstm.$ac_objext
5610 lt_save_LIBS="$LIBS"
5611 lt_save_CFLAGS="$CFLAGS"
5612 LIBS="conftstm.$ac_objext"
5613 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615 (eval $ac_link) 2>&5
5616 ac_status=$?
5617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5619 pipe_works=yes
5620 fi
5621 LIBS="$lt_save_LIBS"
5622 CFLAGS="$lt_save_CFLAGS"
5623 else
5624 echo "cannot find nm_test_func in $nlist" >&5
5625 fi
5626 else
5627 echo "cannot find nm_test_var in $nlist" >&5
5628 fi
5629 else
5630 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5631 fi
5632 else
5633 echo "$progname: failed program was:" >&5
5634 cat conftest.$ac_ext >&5
5635 fi
5636 rm -rf conftest* conftst*
5637
5638 # Do not use the global_symbol_pipe unless it works.
5639 if test "$pipe_works" = yes; then
5640 break
5641 else
5642 lt_cv_sys_global_symbol_pipe=
5643 fi
5644 done
5645
5646 fi
5647
5648 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5649 lt_cv_sys_global_symbol_to_cdecl=
5650 fi
5651 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5652 { $as_echo "$as_me:$LINENO: result: failed" >&5
5653 $as_echo "failed" >&6; }
5654 else
5655 { $as_echo "$as_me:$LINENO: result: ok" >&5
5656 $as_echo "ok" >&6; }
5657 fi
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681 # Check whether --enable-libtool-lock was given.
5682 if test "${enable_libtool_lock+set}" = set; then
5683 enableval=$enable_libtool_lock;
5684 fi
5685
5686 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5687
5688 # Some flags need to be propagated to the compiler or linker for good
5689 # libtool support.
5690 case $host in
5691 ia64-*-hpux*)
5692 # Find out which ABI we are using.
5693 echo 'int i;' > conftest.$ac_ext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695 (eval $ac_compile) 2>&5
5696 ac_status=$?
5697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; then
5699 case `/usr/bin/file conftest.$ac_objext` in
5700 *ELF-32*)
5701 HPUX_IA64_MODE="32"
5702 ;;
5703 *ELF-64*)
5704 HPUX_IA64_MODE="64"
5705 ;;
5706 esac
5707 fi
5708 rm -rf conftest*
5709 ;;
5710 *-*-irix6*)
5711 # Find out which ABI we are using.
5712 echo '#line 5712 "configure"' > conftest.$ac_ext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 (eval $ac_compile) 2>&5
5715 ac_status=$?
5716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; then
5718 if test "$lt_cv_prog_gnu_ld" = yes; then
5719 case `/usr/bin/file conftest.$ac_objext` in
5720 *32-bit*)
5721 LD="${LD-ld} -melf32bsmip"
5722 ;;
5723 *N32*)
5724 LD="${LD-ld} -melf32bmipn32"
5725 ;;
5726 *64-bit*)
5727 LD="${LD-ld} -melf64bmip"
5728 ;;
5729 esac
5730 else
5731 case `/usr/bin/file conftest.$ac_objext` in
5732 *32-bit*)
5733 LD="${LD-ld} -32"
5734 ;;
5735 *N32*)
5736 LD="${LD-ld} -n32"
5737 ;;
5738 *64-bit*)
5739 LD="${LD-ld} -64"
5740 ;;
5741 esac
5742 fi
5743 fi
5744 rm -rf conftest*
5745 ;;
5746
5747 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5748 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5749 # Find out which ABI we are using.
5750 echo 'int i;' > conftest.$ac_ext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5752 (eval $ac_compile) 2>&5
5753 ac_status=$?
5754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; then
5756 case `/usr/bin/file conftest.o` in
5757 *32-bit*)
5758 case $host in
5759 x86_64-*kfreebsd*-gnu)
5760 LD="${LD-ld} -m elf_i386_fbsd"
5761 ;;
5762 x86_64-*linux*)
5763 LD="${LD-ld} -m elf_i386"
5764 ;;
5765 ppc64-*linux*|powerpc64-*linux*)
5766 LD="${LD-ld} -m elf32ppclinux"
5767 ;;
5768 s390x-*linux*)
5769 LD="${LD-ld} -m elf_s390"
5770 ;;
5771 sparc64-*linux*)
5772 LD="${LD-ld} -m elf32_sparc"
5773 ;;
5774 esac
5775 ;;
5776 *64-bit*)
5777 case $host in
5778 x86_64-*kfreebsd*-gnu)
5779 LD="${LD-ld} -m elf_x86_64_fbsd"
5780 ;;
5781 x86_64-*linux*)
5782 LD="${LD-ld} -m elf_x86_64"
5783 ;;
5784 ppc*-*linux*|powerpc*-*linux*)
5785 LD="${LD-ld} -m elf64ppc"
5786 ;;
5787 s390*-*linux*|s390*-*tpf*)
5788 LD="${LD-ld} -m elf64_s390"
5789 ;;
5790 sparc*-*linux*)
5791 LD="${LD-ld} -m elf64_sparc"
5792 ;;
5793 esac
5794 ;;
5795 esac
5796 fi
5797 rm -rf conftest*
5798 ;;
5799
5800 *-*-sco3.2v5*)
5801 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5802 SAVE_CFLAGS="$CFLAGS"
5803 CFLAGS="$CFLAGS -belf"
5804 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5805 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5806 if test "${lt_cv_cc_needs_belf+set}" = set; then
5807 $as_echo_n "(cached) " >&6
5808 else
5809 ac_ext=c
5810 ac_cpp='$CPP $CPPFLAGS'
5811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5814
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821
5822 int
5823 main ()
5824 {
5825
5826 ;
5827 return 0;
5828 }
5829 _ACEOF
5830 rm -f conftest.$ac_objext conftest$ac_exeext
5831 if { (ac_try="$ac_link"
5832 case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835 esac
5836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5837 $as_echo "$ac_try_echo") >&5
5838 (eval "$ac_link") 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } && {
5845 test -z "$ac_c_werror_flag" ||
5846 test ! -s conftest.err
5847 } && test -s conftest$ac_exeext && {
5848 test "$cross_compiling" = yes ||
5849 $as_test_x conftest$ac_exeext
5850 }; then
5851 lt_cv_cc_needs_belf=yes
5852 else
5853 $as_echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 lt_cv_cc_needs_belf=no
5857 fi
5858
5859 rm -rf conftest.dSYM
5860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5861 conftest$ac_exeext conftest.$ac_ext
5862 ac_ext=c
5863 ac_cpp='$CPP $CPPFLAGS'
5864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5867
5868 fi
5869 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5870 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5871 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5872 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5873 CFLAGS="$SAVE_CFLAGS"
5874 fi
5875 ;;
5876 sparc*-*solaris*)
5877 # Find out which ABI we are using.
5878 echo 'int i;' > conftest.$ac_ext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5880 (eval $ac_compile) 2>&5
5881 ac_status=$?
5882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; then
5884 case `/usr/bin/file conftest.o` in
5885 *64-bit*)
5886 case $lt_cv_prog_gnu_ld in
5887 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5888 *)
5889 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5890 LD="${LD-ld} -64"
5891 fi
5892 ;;
5893 esac
5894 ;;
5895 esac
5896 fi
5897 rm -rf conftest*
5898 ;;
5899 esac
5900
5901 need_locks="$enable_libtool_lock"
5902
5903
5904 case $host_os in
5905 rhapsody* | darwin*)
5906 if test -n "$ac_tool_prefix"; then
5907 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5908 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5909 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 $as_echo_n "checking for $ac_word... " >&6; }
5911 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if test -n "$DSYMUTIL"; then
5915 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5925 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928 done
5929 done
5930 IFS=$as_save_IFS
5931
5932 fi
5933 fi
5934 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5935 if test -n "$DSYMUTIL"; then
5936 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5937 $as_echo "$DSYMUTIL" >&6; }
5938 else
5939 { $as_echo "$as_me:$LINENO: result: no" >&5
5940 $as_echo "no" >&6; }
5941 fi
5942
5943
5944 fi
5945 if test -z "$ac_cv_prog_DSYMUTIL"; then
5946 ac_ct_DSYMUTIL=$DSYMUTIL
5947 # Extract the first word of "dsymutil", so it can be a program name with args.
5948 set dummy dsymutil; ac_word=$2
5949 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5950 $as_echo_n "checking for $ac_word... " >&6; }
5951 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5952 $as_echo_n "(cached) " >&6
5953 else
5954 if test -n "$ac_ct_DSYMUTIL"; then
5955 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5956 else
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5964 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5965 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5967 fi
5968 done
5969 done
5970 IFS=$as_save_IFS
5971
5972 fi
5973 fi
5974 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5975 if test -n "$ac_ct_DSYMUTIL"; then
5976 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5977 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5978 else
5979 { $as_echo "$as_me:$LINENO: result: no" >&5
5980 $as_echo "no" >&6; }
5981 fi
5982
5983 if test "x$ac_ct_DSYMUTIL" = x; then
5984 DSYMUTIL=":"
5985 else
5986 case $cross_compiling:$ac_tool_warned in
5987 yes:)
5988 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992 DSYMUTIL=$ac_ct_DSYMUTIL
5993 fi
5994 else
5995 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5996 fi
5997
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if test -n "$NMEDIT"; then
6007 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6017 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 NMEDIT=$ac_cv_prog_NMEDIT
6027 if test -n "$NMEDIT"; then
6028 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6029 $as_echo "$NMEDIT" >&6; }
6030 else
6031 { $as_echo "$as_me:$LINENO: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034
6035
6036 fi
6037 if test -z "$ac_cv_prog_NMEDIT"; then
6038 ac_ct_NMEDIT=$NMEDIT
6039 # Extract the first word of "nmedit", so it can be a program name with args.
6040 set dummy nmedit; ac_word=$2
6041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$ac_ct_NMEDIT"; then
6047 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6067 if test -n "$ac_ct_NMEDIT"; then
6068 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6069 $as_echo "$ac_ct_NMEDIT" >&6; }
6070 else
6071 { $as_echo "$as_me:$LINENO: result: no" >&5
6072 $as_echo "no" >&6; }
6073 fi
6074
6075 if test "x$ac_ct_NMEDIT" = x; then
6076 NMEDIT=":"
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6083 esac
6084 NMEDIT=$ac_ct_NMEDIT
6085 fi
6086 else
6087 NMEDIT="$ac_cv_prog_NMEDIT"
6088 fi
6089
6090 if test -n "$ac_tool_prefix"; then
6091 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6092 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if test "${ac_cv_prog_LIPO+set}" = set; then
6096 $as_echo_n "(cached) " >&6
6097 else
6098 if test -n "$LIPO"; then
6099 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6111 fi
6112 done
6113 done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 LIPO=$ac_cv_prog_LIPO
6119 if test -n "$LIPO"; then
6120 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6121 $as_echo "$LIPO" >&6; }
6122 else
6123 { $as_echo "$as_me:$LINENO: result: no" >&5
6124 $as_echo "no" >&6; }
6125 fi
6126
6127
6128 fi
6129 if test -z "$ac_cv_prog_LIPO"; then
6130 ac_ct_LIPO=$LIPO
6131 # Extract the first word of "lipo", so it can be a program name with args.
6132 set dummy lipo; ac_word=$2
6133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6136 $as_echo_n "(cached) " >&6
6137 else
6138 if test -n "$ac_ct_LIPO"; then
6139 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6143 do
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6148 ac_cv_prog_ac_ct_LIPO="lipo"
6149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6151 fi
6152 done
6153 done
6154 IFS=$as_save_IFS
6155
6156 fi
6157 fi
6158 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6159 if test -n "$ac_ct_LIPO"; then
6160 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6161 $as_echo "$ac_ct_LIPO" >&6; }
6162 else
6163 { $as_echo "$as_me:$LINENO: result: no" >&5
6164 $as_echo "no" >&6; }
6165 fi
6166
6167 if test "x$ac_ct_LIPO" = x; then
6168 LIPO=":"
6169 else
6170 case $cross_compiling:$ac_tool_warned in
6171 yes:)
6172 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned=yes ;;
6175 esac
6176 LIPO=$ac_ct_LIPO
6177 fi
6178 else
6179 LIPO="$ac_cv_prog_LIPO"
6180 fi
6181
6182 if test -n "$ac_tool_prefix"; then
6183 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6184 set dummy ${ac_tool_prefix}otool; ac_word=$2
6185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if test "${ac_cv_prog_OTOOL+set}" = set; then
6188 $as_echo_n "(cached) " >&6
6189 else
6190 if test -n "$OTOOL"; then
6191 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204 done
6205 done
6206 IFS=$as_save_IFS
6207
6208 fi
6209 fi
6210 OTOOL=$ac_cv_prog_OTOOL
6211 if test -n "$OTOOL"; then
6212 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6213 $as_echo "$OTOOL" >&6; }
6214 else
6215 { $as_echo "$as_me:$LINENO: result: no" >&5
6216 $as_echo "no" >&6; }
6217 fi
6218
6219
6220 fi
6221 if test -z "$ac_cv_prog_OTOOL"; then
6222 ac_ct_OTOOL=$OTOOL
6223 # Extract the first word of "otool", so it can be a program name with args.
6224 set dummy otool; ac_word=$2
6225 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6228 $as_echo_n "(cached) " >&6
6229 else
6230 if test -n "$ac_ct_OTOOL"; then
6231 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240 ac_cv_prog_ac_ct_OTOOL="otool"
6241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 break 2
6243 fi
6244 done
6245 done
6246 IFS=$as_save_IFS
6247
6248 fi
6249 fi
6250 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6251 if test -n "$ac_ct_OTOOL"; then
6252 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6253 $as_echo "$ac_ct_OTOOL" >&6; }
6254 else
6255 { $as_echo "$as_me:$LINENO: result: no" >&5
6256 $as_echo "no" >&6; }
6257 fi
6258
6259 if test "x$ac_ct_OTOOL" = x; then
6260 OTOOL=":"
6261 else
6262 case $cross_compiling:$ac_tool_warned in
6263 yes:)
6264 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266 ac_tool_warned=yes ;;
6267 esac
6268 OTOOL=$ac_ct_OTOOL
6269 fi
6270 else
6271 OTOOL="$ac_cv_prog_OTOOL"
6272 fi
6273
6274 if test -n "$ac_tool_prefix"; then
6275 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6276 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if test -n "$OTOOL64"; then
6283 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296 done
6297 done
6298 IFS=$as_save_IFS
6299
6300 fi
6301 fi
6302 OTOOL64=$ac_cv_prog_OTOOL64
6303 if test -n "$OTOOL64"; then
6304 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6305 $as_echo "$OTOOL64" >&6; }
6306 else
6307 { $as_echo "$as_me:$LINENO: result: no" >&5
6308 $as_echo "no" >&6; }
6309 fi
6310
6311
6312 fi
6313 if test -z "$ac_cv_prog_OTOOL64"; then
6314 ac_ct_OTOOL64=$OTOOL64
6315 # Extract the first word of "otool64", so it can be a program name with args.
6316 set dummy otool64; ac_word=$2
6317 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if test -n "$ac_ct_OTOOL64"; then
6323 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6327 do
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6332 ac_cv_prog_ac_ct_OTOOL64="otool64"
6333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6335 fi
6336 done
6337 done
6338 IFS=$as_save_IFS
6339
6340 fi
6341 fi
6342 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6343 if test -n "$ac_ct_OTOOL64"; then
6344 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6345 $as_echo "$ac_ct_OTOOL64" >&6; }
6346 else
6347 { $as_echo "$as_me:$LINENO: result: no" >&5
6348 $as_echo "no" >&6; }
6349 fi
6350
6351 if test "x$ac_ct_OTOOL64" = x; then
6352 OTOOL64=":"
6353 else
6354 case $cross_compiling:$ac_tool_warned in
6355 yes:)
6356 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6358 ac_tool_warned=yes ;;
6359 esac
6360 OTOOL64=$ac_ct_OTOOL64
6361 fi
6362 else
6363 OTOOL64="$ac_cv_prog_OTOOL64"
6364 fi
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6393 $as_echo_n "checking for -single_module linker flag... " >&6; }
6394 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6395 $as_echo_n "(cached) " >&6
6396 else
6397 lt_cv_apple_cc_single_mod=no
6398 if test -z "${LT_MULTI_MODULE}"; then
6399 # By default we will add the -single_module flag. You can override
6400 # by either setting the environment variable LT_MULTI_MODULE
6401 # non-empty at configure time, or by adding -multi_module to the
6402 # link flags.
6403 rm -rf libconftest.dylib*
6404 echo "int foo(void){return 1;}" > conftest.c
6405 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6406 -dynamiclib -Wl,-single_module conftest.c" >&5
6407 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6408 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6409 _lt_result=$?
6410 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6411 lt_cv_apple_cc_single_mod=yes
6412 else
6413 cat conftest.err >&5
6414 fi
6415 rm -rf libconftest.dylib*
6416 rm -f conftest.*
6417 fi
6418 fi
6419 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6420 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6421 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6422 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6423 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6424 $as_echo_n "(cached) " >&6
6425 else
6426 lt_cv_ld_exported_symbols_list=no
6427 save_LDFLAGS=$LDFLAGS
6428 echo "_main" > conftest.sym
6429 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436
6437 int
6438 main ()
6439 {
6440
6441 ;
6442 return 0;
6443 }
6444 _ACEOF
6445 rm -f conftest.$ac_objext conftest$ac_exeext
6446 if { (ac_try="$ac_link"
6447 case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450 esac
6451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6452 $as_echo "$ac_try_echo") >&5
6453 (eval "$ac_link") 2>conftest.er1
6454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } && {
6460 test -z "$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6462 } && test -s conftest$ac_exeext && {
6463 test "$cross_compiling" = yes ||
6464 $as_test_x conftest$ac_exeext
6465 }; then
6466 lt_cv_ld_exported_symbols_list=yes
6467 else
6468 $as_echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6470
6471 lt_cv_ld_exported_symbols_list=no
6472 fi
6473
6474 rm -rf conftest.dSYM
6475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6476 conftest$ac_exeext conftest.$ac_ext
6477 LDFLAGS="$save_LDFLAGS"
6478
6479 fi
6480 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6481 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6482 case $host_os in
6483 rhapsody* | darwin1.[012])
6484 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6485 darwin1.*)
6486 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6487 darwin*) # darwin 5.x on
6488 # if running on 10.5 or later, the deployment target defaults
6489 # to the OS version, if on x86, and 10.4, the deployment
6490 # target defaults to 10.4. Don't you love it?
6491 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6492 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6493 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6494 10.[012]*)
6495 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6496 10.*)
6497 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6498 esac
6499 ;;
6500 esac
6501 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6502 _lt_dar_single_mod='$single_module'
6503 fi
6504 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6505 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6506 else
6507 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6508 fi
6509 if test "$DSYMUTIL" != ":"; then
6510 _lt_dsymutil='~$DSYMUTIL $lib || :'
6511 else
6512 _lt_dsymutil=
6513 fi
6514 ;;
6515 esac
6516
6517 ac_ext=c
6518 ac_cpp='$CPP $CPPFLAGS'
6519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6522 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6523 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6524 # On Suns, sometimes $CPP names a directory.
6525 if test -n "$CPP" && test -d "$CPP"; then
6526 CPP=
6527 fi
6528 if test -z "$CPP"; then
6529 if test "${ac_cv_prog_CPP+set}" = set; then
6530 $as_echo_n "(cached) " >&6
6531 else
6532 # Double quotes because CPP needs to be expanded
6533 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6534 do
6535 ac_preproc_ok=false
6536 for ac_c_preproc_warn_flag in '' yes
6537 do
6538 # Use a header file that comes with gcc, so configuring glibc
6539 # with a fresh cross-compiler works.
6540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6541 # <limits.h> exists even on freestanding compilers.
6542 # On the NeXT, cc -E runs the code through the compiler's parser,
6543 # not just through cpp. "Syntax error" is here to catch this case.
6544 cat >conftest.$ac_ext <<_ACEOF
6545 /* confdefs.h. */
6546 _ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6550 #ifdef __STDC__
6551 # include <limits.h>
6552 #else
6553 # include <assert.h>
6554 #endif
6555 Syntax error
6556 _ACEOF
6557 if { (ac_try="$ac_cpp conftest.$ac_ext"
6558 case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561 esac
6562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6563 $as_echo "$ac_try_echo") >&5
6564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } >/dev/null && {
6571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 }; then
6574 :
6575 else
6576 $as_echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6578
6579 # Broken: fails on valid input.
6580 continue
6581 fi
6582
6583 rm -f conftest.err conftest.$ac_ext
6584
6585 # OK, works on sane cases. Now check whether nonexistent headers
6586 # can be detected and how.
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 #include <ac_nonexistent.h>
6594 _ACEOF
6595 if { (ac_try="$ac_cpp conftest.$ac_ext"
6596 case "(($ac_try" in
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6599 esac
6600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601 $as_echo "$ac_try_echo") >&5
6602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } >/dev/null && {
6609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6611 }; then
6612 # Broken: success on invalid input.
6613 continue
6614 else
6615 $as_echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 # Passes both tests.
6619 ac_preproc_ok=:
6620 break
6621 fi
6622
6623 rm -f conftest.err conftest.$ac_ext
6624
6625 done
6626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6627 rm -f conftest.err conftest.$ac_ext
6628 if $ac_preproc_ok; then
6629 break
6630 fi
6631
6632 done
6633 ac_cv_prog_CPP=$CPP
6634
6635 fi
6636 CPP=$ac_cv_prog_CPP
6637 else
6638 ac_cv_prog_CPP=$CPP
6639 fi
6640 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6641 $as_echo "$CPP" >&6; }
6642 ac_preproc_ok=false
6643 for ac_c_preproc_warn_flag in '' yes
6644 do
6645 # Use a header file that comes with gcc, so configuring glibc
6646 # with a fresh cross-compiler works.
6647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6648 # <limits.h> exists even on freestanding compilers.
6649 # On the NeXT, cc -E runs the code through the compiler's parser,
6650 # not just through cpp. "Syntax error" is here to catch this case.
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 #ifdef __STDC__
6658 # include <limits.h>
6659 #else
6660 # include <assert.h>
6661 #endif
6662 Syntax error
6663 _ACEOF
6664 if { (ac_try="$ac_cpp conftest.$ac_ext"
6665 case "(($ac_try" in
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6668 esac
6669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6670 $as_echo "$ac_try_echo") >&5
6671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } >/dev/null && {
6678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6680 }; then
6681 :
6682 else
6683 $as_echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686 # Broken: fails on valid input.
6687 continue
6688 fi
6689
6690 rm -f conftest.err conftest.$ac_ext
6691
6692 # OK, works on sane cases. Now check whether nonexistent headers
6693 # can be detected and how.
6694 cat >conftest.$ac_ext <<_ACEOF
6695 /* confdefs.h. */
6696 _ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h. */
6700 #include <ac_nonexistent.h>
6701 _ACEOF
6702 if { (ac_try="$ac_cpp conftest.$ac_ext"
6703 case "(($ac_try" in
6704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6705 *) ac_try_echo=$ac_try;;
6706 esac
6707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6708 $as_echo "$ac_try_echo") >&5
6709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6710 ac_status=$?
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
6714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } >/dev/null && {
6716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6717 test ! -s conftest.err
6718 }; then
6719 # Broken: success on invalid input.
6720 continue
6721 else
6722 $as_echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6724
6725 # Passes both tests.
6726 ac_preproc_ok=:
6727 break
6728 fi
6729
6730 rm -f conftest.err conftest.$ac_ext
6731
6732 done
6733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6734 rm -f conftest.err conftest.$ac_ext
6735 if $ac_preproc_ok; then
6736 :
6737 else
6738 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6740 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6741 See \`config.log' for more details." >&5
6742 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6743 See \`config.log' for more details." >&2;}
6744 { (exit 1); exit 1; }; }; }
6745 fi
6746
6747 ac_ext=c
6748 ac_cpp='$CPP $CPPFLAGS'
6749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6752
6753
6754 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6755 $as_echo_n "checking for ANSI C header files... " >&6; }
6756 if test "${ac_cv_header_stdc+set}" = set; then
6757 $as_echo_n "(cached) " >&6
6758 else
6759 cat >conftest.$ac_ext <<_ACEOF
6760 /* confdefs.h. */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765 #include <stdlib.h>
6766 #include <stdarg.h>
6767 #include <string.h>
6768 #include <float.h>
6769
6770 int
6771 main ()
6772 {
6773
6774 ;
6775 return 0;
6776 }
6777 _ACEOF
6778 rm -f conftest.$ac_objext
6779 if { (ac_try="$ac_compile"
6780 case "(($ac_try" in
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6783 esac
6784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6785 $as_echo "$ac_try_echo") >&5
6786 (eval "$ac_compile") 2>conftest.er1
6787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } && {
6793 test -z "$ac_c_werror_flag" ||
6794 test ! -s conftest.err
6795 } && test -s conftest.$ac_objext; then
6796 ac_cv_header_stdc=yes
6797 else
6798 $as_echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6800
6801 ac_cv_header_stdc=no
6802 fi
6803
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805
6806 if test $ac_cv_header_stdc = yes; then
6807 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <string.h>
6815
6816 _ACEOF
6817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6818 $EGREP "memchr" >/dev/null 2>&1; then
6819 :
6820 else
6821 ac_cv_header_stdc=no
6822 fi
6823 rm -f conftest*
6824
6825 fi
6826
6827 if test $ac_cv_header_stdc = yes; then
6828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6829 cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h. */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 #include <stdlib.h>
6836
6837 _ACEOF
6838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6839 $EGREP "free" >/dev/null 2>&1; then
6840 :
6841 else
6842 ac_cv_header_stdc=no
6843 fi
6844 rm -f conftest*
6845
6846 fi
6847
6848 if test $ac_cv_header_stdc = yes; then
6849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6850 if test "$cross_compiling" = yes; then
6851 :
6852 else
6853 cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h. */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 #include <ctype.h>
6860 #include <stdlib.h>
6861 #if ((' ' & 0x0FF) == 0x020)
6862 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6863 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6864 #else
6865 # define ISLOWER(c) \
6866 (('a' <= (c) && (c) <= 'i') \
6867 || ('j' <= (c) && (c) <= 'r') \
6868 || ('s' <= (c) && (c) <= 'z'))
6869 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6870 #endif
6871
6872 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6873 int
6874 main ()
6875 {
6876 int i;
6877 for (i = 0; i < 256; i++)
6878 if (XOR (islower (i), ISLOWER (i))
6879 || toupper (i) != TOUPPER (i))
6880 return 2;
6881 return 0;
6882 }
6883 _ACEOF
6884 rm -f conftest$ac_exeext
6885 if { (ac_try="$ac_link"
6886 case "(($ac_try" in
6887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6889 esac
6890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6891 $as_echo "$ac_try_echo") >&5
6892 (eval "$ac_link") 2>&5
6893 ac_status=$?
6894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6896 { (case "(($ac_try" in
6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898 *) ac_try_echo=$ac_try;;
6899 esac
6900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6901 $as_echo "$ac_try_echo") >&5
6902 (eval "$ac_try") 2>&5
6903 ac_status=$?
6904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
6906 :
6907 else
6908 $as_echo "$as_me: program exited with status $ac_status" >&5
6909 $as_echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6911
6912 ( exit $ac_status )
6913 ac_cv_header_stdc=no
6914 fi
6915 rm -rf conftest.dSYM
6916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6917 fi
6918
6919
6920 fi
6921 fi
6922 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6923 $as_echo "$ac_cv_header_stdc" >&6; }
6924 if test $ac_cv_header_stdc = yes; then
6925
6926 cat >>confdefs.h <<\_ACEOF
6927 #define STDC_HEADERS 1
6928 _ACEOF
6929
6930 fi
6931
6932 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6943 inttypes.h stdint.h unistd.h
6944 do
6945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6946 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6947 $as_echo_n "checking for $ac_header... " >&6; }
6948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6949 $as_echo_n "(cached) " >&6
6950 else
6951 cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h. */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6957 $ac_includes_default
6958
6959 #include <$ac_header>
6960 _ACEOF
6961 rm -f conftest.$ac_objext
6962 if { (ac_try="$ac_compile"
6963 case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966 esac
6967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6968 $as_echo "$ac_try_echo") >&5
6969 (eval "$ac_compile") 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } && {
6976 test -z "$ac_c_werror_flag" ||
6977 test ! -s conftest.err
6978 } && test -s conftest.$ac_objext; then
6979 eval "$as_ac_Header=yes"
6980 else
6981 $as_echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6983
6984 eval "$as_ac_Header=no"
6985 fi
6986
6987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 fi
6989 ac_res=`eval 'as_val=${'$as_ac_Header'}
6990 $as_echo "$as_val"'`
6991 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6992 $as_echo "$ac_res" >&6; }
6993 as_val=`eval 'as_val=${'$as_ac_Header'}
6994 $as_echo "$as_val"'`
6995 if test "x$as_val" = x""yes; then
6996 cat >>confdefs.h <<_ACEOF
6997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6998 _ACEOF
6999
7000 fi
7001
7002 done
7003
7004
7005
7006 for ac_header in dlfcn.h
7007 do
7008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7009 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7010 $as_echo_n "checking for $ac_header... " >&6; }
7011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7012 $as_echo_n "(cached) " >&6
7013 else
7014 cat >conftest.$ac_ext <<_ACEOF
7015 /* confdefs.h. */
7016 _ACEOF
7017 cat confdefs.h >>conftest.$ac_ext
7018 cat >>conftest.$ac_ext <<_ACEOF
7019 /* end confdefs.h. */
7020 $ac_includes_default
7021
7022 #include <$ac_header>
7023 _ACEOF
7024 rm -f conftest.$ac_objext
7025 if { (ac_try="$ac_compile"
7026 case "(($ac_try" in
7027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028 *) ac_try_echo=$ac_try;;
7029 esac
7030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7031 $as_echo "$ac_try_echo") >&5
7032 (eval "$ac_compile") 2>conftest.er1
7033 ac_status=$?
7034 grep -v '^ *+' conftest.er1 >conftest.err
7035 rm -f conftest.er1
7036 cat conftest.err >&5
7037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } && {
7039 test -z "$ac_c_werror_flag" ||
7040 test ! -s conftest.err
7041 } && test -s conftest.$ac_objext; then
7042 eval "$as_ac_Header=yes"
7043 else
7044 $as_echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7046
7047 eval "$as_ac_Header=no"
7048 fi
7049
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051 fi
7052 ac_res=`eval 'as_val=${'$as_ac_Header'}
7053 $as_echo "$as_val"'`
7054 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7055 $as_echo "$ac_res" >&6; }
7056 as_val=`eval 'as_val=${'$as_ac_Header'}
7057 $as_echo "$as_val"'`
7058 if test "x$as_val" = x""yes; then
7059 cat >>confdefs.h <<_ACEOF
7060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7061 _ACEOF
7062
7063 fi
7064
7065 done
7066
7067
7068
7069 # Set options
7070
7071
7072
7073 enable_dlopen=no
7074
7075
7076 enable_win32_dll=no
7077
7078
7079 # Check whether --enable-shared was given.
7080 if test "${enable_shared+set}" = set; then
7081 enableval=$enable_shared; p=${PACKAGE-default}
7082 case $enableval in
7083 yes) enable_shared=yes ;;
7084 no) enable_shared=no ;;
7085 *)
7086 enable_shared=no
7087 # Look at the argument we got. We use all the common list separators.
7088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7089 for pkg in $enableval; do
7090 IFS="$lt_save_ifs"
7091 if test "X$pkg" = "X$p"; then
7092 enable_shared=yes
7093 fi
7094 done
7095 IFS="$lt_save_ifs"
7096 ;;
7097 esac
7098 else
7099 enable_shared=yes
7100 fi
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112 # Check whether --with-pic was given.
7113 if test "${with_pic+set}" = set; then
7114 withval=$with_pic; pic_mode="$withval"
7115 else
7116 pic_mode=default
7117 fi
7118
7119
7120 test -z "$pic_mode" && pic_mode=default
7121
7122
7123
7124
7125
7126
7127
7128 # Check whether --enable-fast-install was given.
7129 if test "${enable_fast_install+set}" = set; then
7130 enableval=$enable_fast_install; p=${PACKAGE-default}
7131 case $enableval in
7132 yes) enable_fast_install=yes ;;
7133 no) enable_fast_install=no ;;
7134 *)
7135 enable_fast_install=no
7136 # Look at the argument we got. We use all the common list separators.
7137 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7138 for pkg in $enableval; do
7139 IFS="$lt_save_ifs"
7140 if test "X$pkg" = "X$p"; then
7141 enable_fast_install=yes
7142 fi
7143 done
7144 IFS="$lt_save_ifs"
7145 ;;
7146 esac
7147 else
7148 enable_fast_install=yes
7149 fi
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161 # This can be used to rebuild libtool when needed
7162 LIBTOOL_DEPS="$ltmain"
7163
7164 # Always use our own libtool.
7165 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191 test -z "$LN_S" && LN_S="ln -s"
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206 if test -n "${ZSH_VERSION+set}" ; then
7207 setopt NO_GLOB_SUBST
7208 fi
7209
7210 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7211 $as_echo_n "checking for objdir... " >&6; }
7212 if test "${lt_cv_objdir+set}" = set; then
7213 $as_echo_n "(cached) " >&6
7214 else
7215 rm -f .libs 2>/dev/null
7216 mkdir .libs 2>/dev/null
7217 if test -d .libs; then
7218 lt_cv_objdir=.libs
7219 else
7220 # MS-DOS does not allow filenames that begin with a dot.
7221 lt_cv_objdir=_libs
7222 fi
7223 rmdir .libs 2>/dev/null
7224 fi
7225 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7226 $as_echo "$lt_cv_objdir" >&6; }
7227 objdir=$lt_cv_objdir
7228
7229
7230
7231
7232
7233 cat >>confdefs.h <<_ACEOF
7234 #define LT_OBJDIR "$lt_cv_objdir/"
7235 _ACEOF
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253 case $host_os in
7254 aix3*)
7255 # AIX sometimes has problems with the GCC collect2 program. For some
7256 # reason, if we set the COLLECT_NAMES environment variable, the problems
7257 # vanish in a puff of smoke.
7258 if test "X${COLLECT_NAMES+set}" != Xset; then
7259 COLLECT_NAMES=
7260 export COLLECT_NAMES
7261 fi
7262 ;;
7263 esac
7264
7265 # Sed substitution that helps us do robust quoting. It backslashifies
7266 # metacharacters that are still active within double-quoted strings.
7267 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7268
7269 # Same as above, but do not quote variable references.
7270 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7271
7272 # Sed substitution to delay expansion of an escaped shell variable in a
7273 # double_quote_subst'ed string.
7274 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7275
7276 # Sed substitution to delay expansion of an escaped single quote.
7277 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7278
7279 # Sed substitution to avoid accidental globbing in evaled expressions
7280 no_glob_subst='s/\*/\\\*/g'
7281
7282 # Global variables:
7283 ofile=libtool
7284 can_build_shared=yes
7285
7286 # All known linkers require a `.a' archive for static linking (except MSVC,
7287 # which needs '.lib').
7288 libext=a
7289
7290 with_gnu_ld="$lt_cv_prog_gnu_ld"
7291
7292 old_CC="$CC"
7293 old_CFLAGS="$CFLAGS"
7294
7295 # Set sane defaults for various variables
7296 test -z "$CC" && CC=cc
7297 test -z "$LTCC" && LTCC=$CC
7298 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7299 test -z "$LD" && LD=ld
7300 test -z "$ac_objext" && ac_objext=o
7301
7302 for cc_temp in $compiler""; do
7303 case $cc_temp in
7304 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7305 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7306 \-*) ;;
7307 *) break;;
7308 esac
7309 done
7310 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7311
7312
7313 # Only perform the check for file, if the check method requires it
7314 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7315 case $deplibs_check_method in
7316 file_magic*)
7317 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7318 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7319 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7320 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7321 $as_echo_n "(cached) " >&6
7322 else
7323 case $MAGIC_CMD in
7324 [\\/*] | ?:[\\/]*)
7325 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7326 ;;
7327 *)
7328 lt_save_MAGIC_CMD="$MAGIC_CMD"
7329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7330 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7331 for ac_dir in $ac_dummy; do
7332 IFS="$lt_save_ifs"
7333 test -z "$ac_dir" && ac_dir=.
7334 if test -f $ac_dir/${ac_tool_prefix}file; then
7335 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7336 if test -n "$file_magic_test_file"; then
7337 case $deplibs_check_method in
7338 "file_magic "*)
7339 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7341 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7342 $EGREP "$file_magic_regex" > /dev/null; then
7343 :
7344 else
7345 cat <<_LT_EOF 1>&2
7346
7347 *** Warning: the command libtool uses to detect shared libraries,
7348 *** $file_magic_cmd, produces output that libtool cannot recognize.
7349 *** The result is that libtool may fail to recognize shared libraries
7350 *** as such. This will affect the creation of libtool libraries that
7351 *** depend on shared libraries, but programs linked with such libtool
7352 *** libraries will work regardless of this problem. Nevertheless, you
7353 *** may want to report the problem to your system manager and/or to
7354 *** bug-libtool@gnu.org
7355
7356 _LT_EOF
7357 fi ;;
7358 esac
7359 fi
7360 break
7361 fi
7362 done
7363 IFS="$lt_save_ifs"
7364 MAGIC_CMD="$lt_save_MAGIC_CMD"
7365 ;;
7366 esac
7367 fi
7368
7369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7370 if test -n "$MAGIC_CMD"; then
7371 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7372 $as_echo "$MAGIC_CMD" >&6; }
7373 else
7374 { $as_echo "$as_me:$LINENO: result: no" >&5
7375 $as_echo "no" >&6; }
7376 fi
7377
7378
7379
7380
7381
7382 if test -z "$lt_cv_path_MAGIC_CMD"; then
7383 if test -n "$ac_tool_prefix"; then
7384 { $as_echo "$as_me:$LINENO: checking for file" >&5
7385 $as_echo_n "checking for file... " >&6; }
7386 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7387 $as_echo_n "(cached) " >&6
7388 else
7389 case $MAGIC_CMD in
7390 [\\/*] | ?:[\\/]*)
7391 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7392 ;;
7393 *)
7394 lt_save_MAGIC_CMD="$MAGIC_CMD"
7395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7396 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7397 for ac_dir in $ac_dummy; do
7398 IFS="$lt_save_ifs"
7399 test -z "$ac_dir" && ac_dir=.
7400 if test -f $ac_dir/file; then
7401 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7402 if test -n "$file_magic_test_file"; then
7403 case $deplibs_check_method in
7404 "file_magic "*)
7405 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7407 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7408 $EGREP "$file_magic_regex" > /dev/null; then
7409 :
7410 else
7411 cat <<_LT_EOF 1>&2
7412
7413 *** Warning: the command libtool uses to detect shared libraries,
7414 *** $file_magic_cmd, produces output that libtool cannot recognize.
7415 *** The result is that libtool may fail to recognize shared libraries
7416 *** as such. This will affect the creation of libtool libraries that
7417 *** depend on shared libraries, but programs linked with such libtool
7418 *** libraries will work regardless of this problem. Nevertheless, you
7419 *** may want to report the problem to your system manager and/or to
7420 *** bug-libtool@gnu.org
7421
7422 _LT_EOF
7423 fi ;;
7424 esac
7425 fi
7426 break
7427 fi
7428 done
7429 IFS="$lt_save_ifs"
7430 MAGIC_CMD="$lt_save_MAGIC_CMD"
7431 ;;
7432 esac
7433 fi
7434
7435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7436 if test -n "$MAGIC_CMD"; then
7437 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7438 $as_echo "$MAGIC_CMD" >&6; }
7439 else
7440 { $as_echo "$as_me:$LINENO: result: no" >&5
7441 $as_echo "no" >&6; }
7442 fi
7443
7444
7445 else
7446 MAGIC_CMD=:
7447 fi
7448 fi
7449
7450 fi
7451 ;;
7452 esac
7453
7454 # Use C for the default configuration in the libtool script
7455
7456 lt_save_CC="$CC"
7457 ac_ext=c
7458 ac_cpp='$CPP $CPPFLAGS'
7459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7462
7463
7464 # Source file extension for C test sources.
7465 ac_ext=c
7466
7467 # Object file extension for compiled C test sources.
7468 objext=o
7469 objext=$objext
7470
7471 # Code to be used in simple compile tests
7472 lt_simple_compile_test_code="int some_variable = 0;"
7473
7474 # Code to be used in simple link tests
7475 lt_simple_link_test_code='int main(){return(0);}'
7476
7477
7478
7479
7480
7481
7482
7483 # If no C compiler was specified, use CC.
7484 LTCC=${LTCC-"$CC"}
7485
7486 # If no C compiler flags were specified, use CFLAGS.
7487 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7488
7489 # Allow CC to be a program name with arguments.
7490 compiler=$CC
7491
7492 # Save the default compiler, since it gets overwritten when the other
7493 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7494 compiler_DEFAULT=$CC
7495
7496 # save warnings/boilerplate of simple test code
7497 ac_outfile=conftest.$ac_objext
7498 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7499 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7500 _lt_compiler_boilerplate=`cat conftest.err`
7501 $RM conftest*
7502
7503 ac_outfile=conftest.$ac_objext
7504 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7505 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7506 _lt_linker_boilerplate=`cat conftest.err`
7507 $RM -r conftest*
7508
7509
7510 if test -n "$compiler"; then
7511
7512 lt_prog_compiler_no_builtin_flag=
7513
7514 if test "$GCC" = yes; then
7515 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7516
7517 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7518 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7519 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7520 $as_echo_n "(cached) " >&6
7521 else
7522 lt_cv_prog_compiler_rtti_exceptions=no
7523 ac_outfile=conftest.$ac_objext
7524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7525 lt_compiler_flag="-fno-rtti -fno-exceptions"
7526 # Insert the option either (1) after the last *FLAGS variable, or
7527 # (2) before a word containing "conftest.", or (3) at the end.
7528 # Note that $ac_compile itself does not contain backslashes and begins
7529 # with a dollar sign (not a hyphen), so the echo should work correctly.
7530 # The option is referenced via a variable to avoid confusing sed.
7531 lt_compile=`echo "$ac_compile" | $SED \
7532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7534 -e 's:$: $lt_compiler_flag:'`
7535 (eval echo "\"\$as_me:7535: $lt_compile\"" >&5)
7536 (eval "$lt_compile" 2>conftest.err)
7537 ac_status=$?
7538 cat conftest.err >&5
7539 echo "$as_me:7539: \$? = $ac_status" >&5
7540 if (exit $ac_status) && test -s "$ac_outfile"; then
7541 # The compiler can only warn and ignore the option if not recognized
7542 # So say no if there are warnings other than the usual output.
7543 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7545 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7546 lt_cv_prog_compiler_rtti_exceptions=yes
7547 fi
7548 fi
7549 $RM conftest*
7550
7551 fi
7552 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7553 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7554
7555 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7556 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7557 else
7558 :
7559 fi
7560
7561 fi
7562
7563
7564
7565
7566
7567
7568 lt_prog_compiler_wl=
7569 lt_prog_compiler_pic=
7570 lt_prog_compiler_static=
7571
7572 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7573 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7574
7575 if test "$GCC" = yes; then
7576 lt_prog_compiler_wl='-Wl,'
7577 lt_prog_compiler_static='-static'
7578
7579 case $host_os in
7580 aix*)
7581 # All AIX code is PIC.
7582 if test "$host_cpu" = ia64; then
7583 # AIX 5 now supports IA64 processor
7584 lt_prog_compiler_static='-Bstatic'
7585 fi
7586 ;;
7587
7588 amigaos*)
7589 case $host_cpu in
7590 powerpc)
7591 # see comment about AmigaOS4 .so support
7592 lt_prog_compiler_pic='-fPIC'
7593 ;;
7594 m68k)
7595 # FIXME: we need at least 68020 code to build shared libraries, but
7596 # adding the `-m68020' flag to GCC prevents building anything better,
7597 # like `-m68040'.
7598 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7599 ;;
7600 esac
7601 ;;
7602
7603 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7604 # PIC is the default for these OSes.
7605 ;;
7606
7607 mingw* | cygwin* | pw32* | os2* | cegcc*)
7608 # This hack is so that the source file can tell whether it is being
7609 # built for inclusion in a dll (and should export symbols for example).
7610 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7611 # (--disable-auto-import) libraries
7612 lt_prog_compiler_pic='-DDLL_EXPORT'
7613 ;;
7614
7615 darwin* | rhapsody*)
7616 # PIC is the default on this platform
7617 # Common symbols not allowed in MH_DYLIB files
7618 lt_prog_compiler_pic='-fno-common'
7619 ;;
7620
7621 hpux*)
7622 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7623 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7624 # sets the default TLS model and affects inlining.
7625 case $host_cpu in
7626 hppa*64*)
7627 # +Z the default
7628 ;;
7629 *)
7630 lt_prog_compiler_pic='-fPIC'
7631 ;;
7632 esac
7633 ;;
7634
7635 interix[3-9]*)
7636 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7637 # Instead, we relocate shared libraries at runtime.
7638 ;;
7639
7640 msdosdjgpp*)
7641 # Just because we use GCC doesn't mean we suddenly get shared libraries
7642 # on systems that don't support them.
7643 lt_prog_compiler_can_build_shared=no
7644 enable_shared=no
7645 ;;
7646
7647 *nto* | *qnx*)
7648 # QNX uses GNU C++, but need to define -shared option too, otherwise
7649 # it will coredump.
7650 lt_prog_compiler_pic='-fPIC -shared'
7651 ;;
7652
7653 sysv4*MP*)
7654 if test -d /usr/nec; then
7655 lt_prog_compiler_pic=-Kconform_pic
7656 fi
7657 ;;
7658
7659 *)
7660 lt_prog_compiler_pic='-fPIC'
7661 ;;
7662 esac
7663 else
7664 # PORTME Check for flag to pass linker flags through the system compiler.
7665 case $host_os in
7666 aix*)
7667 lt_prog_compiler_wl='-Wl,'
7668 if test "$host_cpu" = ia64; then
7669 # AIX 5 now supports IA64 processor
7670 lt_prog_compiler_static='-Bstatic'
7671 else
7672 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7673 fi
7674 ;;
7675
7676 mingw* | cygwin* | pw32* | os2* | cegcc*)
7677 # This hack is so that the source file can tell whether it is being
7678 # built for inclusion in a dll (and should export symbols for example).
7679 lt_prog_compiler_pic='-DDLL_EXPORT'
7680 ;;
7681
7682 hpux9* | hpux10* | hpux11*)
7683 lt_prog_compiler_wl='-Wl,'
7684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7685 # not for PA HP-UX.
7686 case $host_cpu in
7687 hppa*64*|ia64*)
7688 # +Z the default
7689 ;;
7690 *)
7691 lt_prog_compiler_pic='+Z'
7692 ;;
7693 esac
7694 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7695 lt_prog_compiler_static='${wl}-a ${wl}archive'
7696 ;;
7697
7698 irix5* | irix6* | nonstopux*)
7699 lt_prog_compiler_wl='-Wl,'
7700 # PIC (with -KPIC) is the default.
7701 lt_prog_compiler_static='-non_shared'
7702 ;;
7703
7704 linux* | k*bsd*-gnu)
7705 case $cc_basename in
7706 # old Intel for x86_64 which still supported -KPIC.
7707 ecc*)
7708 lt_prog_compiler_wl='-Wl,'
7709 lt_prog_compiler_pic='-KPIC'
7710 lt_prog_compiler_static='-static'
7711 ;;
7712 # icc used to be incompatible with GCC.
7713 # ICC 10 doesn't accept -KPIC any more.
7714 icc* | ifort*)
7715 lt_prog_compiler_wl='-Wl,'
7716 lt_prog_compiler_pic='-fPIC'
7717 lt_prog_compiler_static='-static'
7718 ;;
7719 # Lahey Fortran 8.1.
7720 lf95*)
7721 lt_prog_compiler_wl='-Wl,'
7722 lt_prog_compiler_pic='--shared'
7723 lt_prog_compiler_static='--static'
7724 ;;
7725 pgcc* | pgf77* | pgf90* | pgf95*)
7726 # Portland Group compilers (*not* the Pentium gcc compiler,
7727 # which looks to be a dead project)
7728 lt_prog_compiler_wl='-Wl,'
7729 lt_prog_compiler_pic='-fpic'
7730 lt_prog_compiler_static='-Bstatic'
7731 ;;
7732 ccc*)
7733 lt_prog_compiler_wl='-Wl,'
7734 # All Alpha code is PIC.
7735 lt_prog_compiler_static='-non_shared'
7736 ;;
7737 xl*)
7738 # IBM XL C 8.0/Fortran 10.1 on PPC
7739 lt_prog_compiler_wl='-Wl,'
7740 lt_prog_compiler_pic='-qpic'
7741 lt_prog_compiler_static='-qstaticlink'
7742 ;;
7743 *)
7744 case `$CC -V 2>&1 | sed 5q` in
7745 *Sun\ C*)
7746 # Sun C 5.9
7747 lt_prog_compiler_pic='-KPIC'
7748 lt_prog_compiler_static='-Bstatic'
7749 lt_prog_compiler_wl='-Wl,'
7750 ;;
7751 *Sun\ F*)
7752 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7753 lt_prog_compiler_pic='-KPIC'
7754 lt_prog_compiler_static='-Bstatic'
7755 lt_prog_compiler_wl=''
7756 ;;
7757 esac
7758 ;;
7759 esac
7760 ;;
7761
7762 newsos6)
7763 lt_prog_compiler_pic='-KPIC'
7764 lt_prog_compiler_static='-Bstatic'
7765 ;;
7766
7767 *nto* | *qnx*)
7768 # QNX uses GNU C++, but need to define -shared option too, otherwise
7769 # it will coredump.
7770 lt_prog_compiler_pic='-fPIC -shared'
7771 ;;
7772
7773 osf3* | osf4* | osf5*)
7774 lt_prog_compiler_wl='-Wl,'
7775 # All OSF/1 code is PIC.
7776 lt_prog_compiler_static='-non_shared'
7777 ;;
7778
7779 rdos*)
7780 lt_prog_compiler_static='-non_shared'
7781 ;;
7782
7783 solaris*)
7784 lt_prog_compiler_pic='-KPIC'
7785 lt_prog_compiler_static='-Bstatic'
7786 case $cc_basename in
7787 f77* | f90* | f95*)
7788 lt_prog_compiler_wl='-Qoption ld ';;
7789 *)
7790 lt_prog_compiler_wl='-Wl,';;
7791 esac
7792 ;;
7793
7794 sunos4*)
7795 lt_prog_compiler_wl='-Qoption ld '
7796 lt_prog_compiler_pic='-PIC'
7797 lt_prog_compiler_static='-Bstatic'
7798 ;;
7799
7800 sysv4 | sysv4.2uw2* | sysv4.3*)
7801 lt_prog_compiler_wl='-Wl,'
7802 lt_prog_compiler_pic='-KPIC'
7803 lt_prog_compiler_static='-Bstatic'
7804 ;;
7805
7806 sysv4*MP*)
7807 if test -d /usr/nec ;then
7808 lt_prog_compiler_pic='-Kconform_pic'
7809 lt_prog_compiler_static='-Bstatic'
7810 fi
7811 ;;
7812
7813 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7814 lt_prog_compiler_wl='-Wl,'
7815 lt_prog_compiler_pic='-KPIC'
7816 lt_prog_compiler_static='-Bstatic'
7817 ;;
7818
7819 unicos*)
7820 lt_prog_compiler_wl='-Wl,'
7821 lt_prog_compiler_can_build_shared=no
7822 ;;
7823
7824 uts4*)
7825 lt_prog_compiler_pic='-pic'
7826 lt_prog_compiler_static='-Bstatic'
7827 ;;
7828
7829 *)
7830 lt_prog_compiler_can_build_shared=no
7831 ;;
7832 esac
7833 fi
7834
7835 case $host_os in
7836 # For platforms which do not support PIC, -DPIC is meaningless:
7837 *djgpp*)
7838 lt_prog_compiler_pic=
7839 ;;
7840 *)
7841 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7842 ;;
7843 esac
7844 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7845 $as_echo "$lt_prog_compiler_pic" >&6; }
7846
7847
7848
7849
7850
7851
7852 #
7853 # Check to make sure the PIC flag actually works.
7854 #
7855 if test -n "$lt_prog_compiler_pic"; then
7856 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7857 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7858 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7859 $as_echo_n "(cached) " >&6
7860 else
7861 lt_cv_prog_compiler_pic_works=no
7862 ac_outfile=conftest.$ac_objext
7863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7864 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7865 # Insert the option either (1) after the last *FLAGS variable, or
7866 # (2) before a word containing "conftest.", or (3) at the end.
7867 # Note that $ac_compile itself does not contain backslashes and begins
7868 # with a dollar sign (not a hyphen), so the echo should work correctly.
7869 # The option is referenced via a variable to avoid confusing sed.
7870 lt_compile=`echo "$ac_compile" | $SED \
7871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7873 -e 's:$: $lt_compiler_flag:'`
7874 (eval echo "\"\$as_me:7874: $lt_compile\"" >&5)
7875 (eval "$lt_compile" 2>conftest.err)
7876 ac_status=$?
7877 cat conftest.err >&5
7878 echo "$as_me:7878: \$? = $ac_status" >&5
7879 if (exit $ac_status) && test -s "$ac_outfile"; then
7880 # The compiler can only warn and ignore the option if not recognized
7881 # So say no if there are warnings other than the usual output.
7882 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7884 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7885 lt_cv_prog_compiler_pic_works=yes
7886 fi
7887 fi
7888 $RM conftest*
7889
7890 fi
7891 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7892 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7893
7894 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7895 case $lt_prog_compiler_pic in
7896 "" | " "*) ;;
7897 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7898 esac
7899 else
7900 lt_prog_compiler_pic=
7901 lt_prog_compiler_can_build_shared=no
7902 fi
7903
7904 fi
7905
7906
7907
7908
7909
7910
7911 #
7912 # Check to make sure the static flag actually works.
7913 #
7914 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7915 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7916 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7917 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7918 $as_echo_n "(cached) " >&6
7919 else
7920 lt_cv_prog_compiler_static_works=no
7921 save_LDFLAGS="$LDFLAGS"
7922 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7923 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7924 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7925 # The linker can only warn and ignore the option if not recognized
7926 # So say no if there are warnings
7927 if test -s conftest.err; then
7928 # Append any errors to the config.log.
7929 cat conftest.err 1>&5
7930 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932 if diff conftest.exp conftest.er2 >/dev/null; then
7933 lt_cv_prog_compiler_static_works=yes
7934 fi
7935 else
7936 lt_cv_prog_compiler_static_works=yes
7937 fi
7938 fi
7939 $RM -r conftest*
7940 LDFLAGS="$save_LDFLAGS"
7941
7942 fi
7943 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7944 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7945
7946 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7947 :
7948 else
7949 lt_prog_compiler_static=
7950 fi
7951
7952
7953
7954
7955
7956
7957
7958 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7959 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7960 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7961 $as_echo_n "(cached) " >&6
7962 else
7963 lt_cv_prog_compiler_c_o=no
7964 $RM -r conftest 2>/dev/null
7965 mkdir conftest
7966 cd conftest
7967 mkdir out
7968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7969
7970 lt_compiler_flag="-o out/conftest2.$ac_objext"
7971 # Insert the option either (1) after the last *FLAGS variable, or
7972 # (2) before a word containing "conftest.", or (3) at the end.
7973 # Note that $ac_compile itself does not contain backslashes and begins
7974 # with a dollar sign (not a hyphen), so the echo should work correctly.
7975 lt_compile=`echo "$ac_compile" | $SED \
7976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7978 -e 's:$: $lt_compiler_flag:'`
7979 (eval echo "\"\$as_me:7979: $lt_compile\"" >&5)
7980 (eval "$lt_compile" 2>out/conftest.err)
7981 ac_status=$?
7982 cat out/conftest.err >&5
7983 echo "$as_me:7983: \$? = $ac_status" >&5
7984 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7985 then
7986 # The compiler can only warn and ignore the option if not recognized
7987 # So say no if there are warnings
7988 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7991 lt_cv_prog_compiler_c_o=yes
7992 fi
7993 fi
7994 chmod u+w . 2>&5
7995 $RM conftest*
7996 # SGI C++ compiler will create directory out/ii_files/ for
7997 # template instantiation
7998 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7999 $RM out/* && rmdir out
8000 cd ..
8001 $RM -r conftest
8002 $RM conftest*
8003
8004 fi
8005 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8006 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8007
8008
8009
8010
8011
8012
8013 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8014 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8015 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8016 $as_echo_n "(cached) " >&6
8017 else
8018 lt_cv_prog_compiler_c_o=no
8019 $RM -r conftest 2>/dev/null
8020 mkdir conftest
8021 cd conftest
8022 mkdir out
8023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8024
8025 lt_compiler_flag="-o out/conftest2.$ac_objext"
8026 # Insert the option either (1) after the last *FLAGS variable, or
8027 # (2) before a word containing "conftest.", or (3) at the end.
8028 # Note that $ac_compile itself does not contain backslashes and begins
8029 # with a dollar sign (not a hyphen), so the echo should work correctly.
8030 lt_compile=`echo "$ac_compile" | $SED \
8031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8033 -e 's:$: $lt_compiler_flag:'`
8034 (eval echo "\"\$as_me:8034: $lt_compile\"" >&5)
8035 (eval "$lt_compile" 2>out/conftest.err)
8036 ac_status=$?
8037 cat out/conftest.err >&5
8038 echo "$as_me:8038: \$? = $ac_status" >&5
8039 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8040 then
8041 # The compiler can only warn and ignore the option if not recognized
8042 # So say no if there are warnings
8043 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8046 lt_cv_prog_compiler_c_o=yes
8047 fi
8048 fi
8049 chmod u+w . 2>&5
8050 $RM conftest*
8051 # SGI C++ compiler will create directory out/ii_files/ for
8052 # template instantiation
8053 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8054 $RM out/* && rmdir out
8055 cd ..
8056 $RM -r conftest
8057 $RM conftest*
8058
8059 fi
8060 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8061 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8062
8063
8064
8065
8066 hard_links="nottested"
8067 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8068 # do not overwrite the value of need_locks provided by the user
8069 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8070 $as_echo_n "checking if we can lock with hard links... " >&6; }
8071 hard_links=yes
8072 $RM conftest*
8073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8074 touch conftest.a
8075 ln conftest.a conftest.b 2>&5 || hard_links=no
8076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8077 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8078 $as_echo "$hard_links" >&6; }
8079 if test "$hard_links" = no; then
8080 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8081 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8082 need_locks=warn
8083 fi
8084 else
8085 need_locks=no
8086 fi
8087
8088
8089
8090
8091
8092
8093 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8094 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8095
8096 runpath_var=
8097 allow_undefined_flag=
8098 always_export_symbols=no
8099 archive_cmds=
8100 archive_expsym_cmds=
8101 compiler_needs_object=no
8102 enable_shared_with_static_runtimes=no
8103 export_dynamic_flag_spec=
8104 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8105 hardcode_automatic=no
8106 hardcode_direct=no
8107 hardcode_direct_absolute=no
8108 hardcode_libdir_flag_spec=
8109 hardcode_libdir_flag_spec_ld=
8110 hardcode_libdir_separator=
8111 hardcode_minus_L=no
8112 hardcode_shlibpath_var=unsupported
8113 inherit_rpath=no
8114 link_all_deplibs=unknown
8115 module_cmds=
8116 module_expsym_cmds=
8117 old_archive_from_new_cmds=
8118 old_archive_from_expsyms_cmds=
8119 thread_safe_flag_spec=
8120 whole_archive_flag_spec=
8121 # include_expsyms should be a list of space-separated symbols to be *always*
8122 # included in the symbol list
8123 include_expsyms=
8124 # exclude_expsyms can be an extended regexp of symbols to exclude
8125 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8126 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8127 # as well as any symbol that contains `d'.
8128 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8129 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8130 # platforms (ab)use it in PIC code, but their linkers get confused if
8131 # the symbol is explicitly referenced. Since portable code cannot
8132 # rely on this symbol name, it's probably fine to never include it in
8133 # preloaded symbol tables.
8134 # Exclude shared library initialization/finalization symbols.
8135 extract_expsyms_cmds=
8136
8137 case $host_os in
8138 cygwin* | mingw* | pw32* | cegcc*)
8139 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8140 # When not using gcc, we currently assume that we are using
8141 # Microsoft Visual C++.
8142 if test "$GCC" != yes; then
8143 with_gnu_ld=no
8144 fi
8145 ;;
8146 interix*)
8147 # we just hope/assume this is gcc and not c89 (= MSVC++)
8148 with_gnu_ld=yes
8149 ;;
8150 openbsd*)
8151 with_gnu_ld=no
8152 ;;
8153 linux* | k*bsd*-gnu)
8154 link_all_deplibs=no
8155 ;;
8156 esac
8157
8158 ld_shlibs=yes
8159 if test "$with_gnu_ld" = yes; then
8160 # If archive_cmds runs LD, not CC, wlarc should be empty
8161 wlarc='${wl}'
8162
8163 # Set some defaults for GNU ld with shared library support. These
8164 # are reset later if shared libraries are not supported. Putting them
8165 # here allows them to be overridden if necessary.
8166 runpath_var=LD_RUN_PATH
8167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8168 export_dynamic_flag_spec='${wl}--export-dynamic'
8169 # ancient GNU ld didn't support --whole-archive et. al.
8170 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8171 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8172 else
8173 whole_archive_flag_spec=
8174 fi
8175 supports_anon_versioning=no
8176 case `$LD -v 2>&1` in
8177 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8178 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8179 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8180 *\ 2.11.*) ;; # other 2.11 versions
8181 *) supports_anon_versioning=yes ;;
8182 esac
8183
8184 # See if GNU ld supports shared libraries.
8185 case $host_os in
8186 aix[3-9]*)
8187 # On AIX/PPC, the GNU linker is very broken
8188 if test "$host_cpu" != ia64; then
8189 ld_shlibs=no
8190 cat <<_LT_EOF 1>&2
8191
8192 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8193 *** to be unable to reliably create shared libraries on AIX.
8194 *** Therefore, libtool is disabling shared libraries support. If you
8195 *** really care for shared libraries, you may want to modify your PATH
8196 *** so that a non-GNU linker is found, and then restart.
8197
8198 _LT_EOF
8199 fi
8200 ;;
8201
8202 amigaos*)
8203 case $host_cpu in
8204 powerpc)
8205 # see comment about AmigaOS4 .so support
8206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8207 archive_expsym_cmds=''
8208 ;;
8209 m68k)
8210 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)'
8211 hardcode_libdir_flag_spec='-L$libdir'
8212 hardcode_minus_L=yes
8213 ;;
8214 esac
8215 ;;
8216
8217 beos*)
8218 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8219 allow_undefined_flag=unsupported
8220 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8221 # support --undefined. This deserves some investigation. FIXME
8222 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 else
8224 ld_shlibs=no
8225 fi
8226 ;;
8227
8228 cygwin* | mingw* | pw32* | cegcc*)
8229 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8230 # as there is no search path for DLLs.
8231 hardcode_libdir_flag_spec='-L$libdir'
8232 allow_undefined_flag=unsupported
8233 always_export_symbols=no
8234 enable_shared_with_static_runtimes=yes
8235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8236
8237 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8239 # If the export-symbols file already is a .def file (1st line
8240 # is EXPORTS), use it as is; otherwise, prepend...
8241 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8242 cp $export_symbols $output_objdir/$soname.def;
8243 else
8244 echo EXPORTS > $output_objdir/$soname.def;
8245 cat $export_symbols >> $output_objdir/$soname.def;
8246 fi~
8247 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8248 else
8249 ld_shlibs=no
8250 fi
8251 ;;
8252
8253 interix[3-9]*)
8254 hardcode_direct=no
8255 hardcode_shlibpath_var=no
8256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8257 export_dynamic_flag_spec='${wl}-E'
8258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8259 # Instead, shared libraries are loaded at an image base (0x10000000 by
8260 # default) and relocated if they conflict, which is a slow very memory
8261 # consuming and fragmenting process. To avoid this, we pick a random,
8262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8263 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8265 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'
8266 ;;
8267
8268 gnu* | linux* | tpf* | k*bsd*-gnu)
8269 tmp_diet=no
8270 if test "$host_os" = linux-dietlibc; then
8271 case $cc_basename in
8272 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8273 esac
8274 fi
8275 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8276 && test "$tmp_diet" = no
8277 then
8278 tmp_addflag=
8279 tmp_sharedflag='-shared'
8280 case $cc_basename,$host_cpu in
8281 pgcc*) # Portland Group C compiler
8282 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'
8283 tmp_addflag=' $pic_flag'
8284 ;;
8285 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8286 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'
8287 tmp_addflag=' $pic_flag -Mnomain' ;;
8288 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8289 tmp_addflag=' -i_dynamic' ;;
8290 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8291 tmp_addflag=' -i_dynamic -nofor_main' ;;
8292 ifc* | ifort*) # Intel Fortran compiler
8293 tmp_addflag=' -nofor_main' ;;
8294 lf95*) # Lahey Fortran 8.1
8295 whole_archive_flag_spec=
8296 tmp_sharedflag='--shared' ;;
8297 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8298 tmp_sharedflag='-qmkshrobj'
8299 tmp_addflag= ;;
8300 esac
8301 case `$CC -V 2>&1 | sed 5q` in
8302 *Sun\ C*) # Sun C 5.9
8303 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'
8304 compiler_needs_object=yes
8305 tmp_sharedflag='-G' ;;
8306 *Sun\ F*) # Sun Fortran 8.3
8307 tmp_sharedflag='-G' ;;
8308 esac
8309 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310
8311 if test "x$supports_anon_versioning" = xyes; then
8312 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8313 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8314 echo "local: *; };" >> $output_objdir/$libname.ver~
8315 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8316 fi
8317
8318 case $cc_basename in
8319 xlf*)
8320 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8321 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8322 hardcode_libdir_flag_spec=
8323 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8324 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8325 if test "x$supports_anon_versioning" = xyes; then
8326 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8328 echo "local: *; };" >> $output_objdir/$libname.ver~
8329 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8330 fi
8331 ;;
8332 esac
8333 else
8334 ld_shlibs=no
8335 fi
8336 ;;
8337
8338 netbsd* | netbsdelf*-gnu)
8339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8340 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8341 wlarc=
8342 else
8343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8344 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8345 fi
8346 ;;
8347
8348 solaris*)
8349 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8350 ld_shlibs=no
8351 cat <<_LT_EOF 1>&2
8352
8353 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8354 *** create shared libraries on Solaris systems. Therefore, libtool
8355 *** is disabling shared libraries support. We urge you to upgrade GNU
8356 *** binutils to release 2.9.1 or newer. Another option is to modify
8357 *** your PATH or compiler configuration so that the native linker is
8358 *** used, and then restart.
8359
8360 _LT_EOF
8361 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8364 else
8365 ld_shlibs=no
8366 fi
8367 ;;
8368
8369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8370 case `$LD -v 2>&1` in
8371 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8372 ld_shlibs=no
8373 cat <<_LT_EOF 1>&2
8374
8375 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8376 *** reliably create shared libraries on SCO systems. Therefore, libtool
8377 *** is disabling shared libraries support. We urge you to upgrade GNU
8378 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8379 *** your PATH or compiler configuration so that the native linker is
8380 *** used, and then restart.
8381
8382 _LT_EOF
8383 ;;
8384 *)
8385 # For security reasons, it is highly recommended that you always
8386 # use absolute paths for naming shared libraries, and exclude the
8387 # DT_RUNPATH tag from executables and libraries. But doing so
8388 # requires that you compile everything twice, which is a pain.
8389 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8393 else
8394 ld_shlibs=no
8395 fi
8396 ;;
8397 esac
8398 ;;
8399
8400 sunos4*)
8401 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8402 wlarc=
8403 hardcode_direct=yes
8404 hardcode_shlibpath_var=no
8405 ;;
8406
8407 *)
8408 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8411 else
8412 ld_shlibs=no
8413 fi
8414 ;;
8415 esac
8416
8417 if test "$ld_shlibs" = no; then
8418 runpath_var=
8419 hardcode_libdir_flag_spec=
8420 export_dynamic_flag_spec=
8421 whole_archive_flag_spec=
8422 fi
8423 else
8424 # PORTME fill in a description of your system's linker (not GNU ld)
8425 case $host_os in
8426 aix3*)
8427 allow_undefined_flag=unsupported
8428 always_export_symbols=yes
8429 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'
8430 # Note: this linker hardcodes the directories in LIBPATH if there
8431 # are no directories specified by -L.
8432 hardcode_minus_L=yes
8433 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8434 # Neither direct hardcoding nor static linking is supported with a
8435 # broken collect2.
8436 hardcode_direct=unsupported
8437 fi
8438 ;;
8439
8440 aix[4-9]*)
8441 if test "$host_cpu" = ia64; then
8442 # On IA64, the linker does run time linking by default, so we don't
8443 # have to do anything special.
8444 aix_use_runtimelinking=no
8445 exp_sym_flag='-Bexport'
8446 no_entry_flag=""
8447 else
8448 # If we're using GNU nm, then we don't want the "-C" option.
8449 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8450 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8451 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'
8452 else
8453 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'
8454 fi
8455 aix_use_runtimelinking=no
8456
8457 # Test if we are trying to use run time linking or normal
8458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8459 # need to do runtime linking.
8460 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8461 for ld_flag in $LDFLAGS; do
8462 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8463 aix_use_runtimelinking=yes
8464 break
8465 fi
8466 done
8467 ;;
8468 esac
8469
8470 exp_sym_flag='-bexport'
8471 no_entry_flag='-bnoentry'
8472 fi
8473
8474 # When large executables or shared objects are built, AIX ld can
8475 # have problems creating the table of contents. If linking a library
8476 # or program results in "error TOC overflow" add -mminimal-toc to
8477 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8478 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8479
8480 archive_cmds=''
8481 hardcode_direct=yes
8482 hardcode_direct_absolute=yes
8483 hardcode_libdir_separator=':'
8484 link_all_deplibs=yes
8485 file_list_spec='${wl}-f,'
8486
8487 if test "$GCC" = yes; then
8488 case $host_os in aix4.[012]|aix4.[012].*)
8489 # We only want to do this on AIX 4.2 and lower, the check
8490 # below for broken collect2 doesn't work under 4.3+
8491 collect2name=`${CC} -print-prog-name=collect2`
8492 if test -f "$collect2name" &&
8493 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8494 then
8495 # We have reworked collect2
8496 :
8497 else
8498 # We have old collect2
8499 hardcode_direct=unsupported
8500 # It fails to find uninstalled libraries when the uninstalled
8501 # path is not listed in the libpath. Setting hardcode_minus_L
8502 # to unsupported forces relinking
8503 hardcode_minus_L=yes
8504 hardcode_libdir_flag_spec='-L$libdir'
8505 hardcode_libdir_separator=
8506 fi
8507 ;;
8508 esac
8509 shared_flag='-shared'
8510 if test "$aix_use_runtimelinking" = yes; then
8511 shared_flag="$shared_flag "'${wl}-G'
8512 fi
8513 link_all_deplibs=no
8514 else
8515 # not using gcc
8516 if test "$host_cpu" = ia64; then
8517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8518 # chokes on -Wl,-G. The following line is correct:
8519 shared_flag='-G'
8520 else
8521 if test "$aix_use_runtimelinking" = yes; then
8522 shared_flag='${wl}-G'
8523 else
8524 shared_flag='${wl}-bM:SRE'
8525 fi
8526 fi
8527 fi
8528
8529 export_dynamic_flag_spec='${wl}-bexpall'
8530 # It seems that -bexpall does not export symbols beginning with
8531 # underscore (_), so it is better to generate a list of symbols to export.
8532 always_export_symbols=yes
8533 if test "$aix_use_runtimelinking" = yes; then
8534 # Warning - without using the other runtime loading flags (-brtl),
8535 # -berok will link without error, but may produce a broken library.
8536 allow_undefined_flag='-berok'
8537 # Determine the default libpath from the value encoded in an
8538 # empty executable.
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h. */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545
8546 int
8547 main ()
8548 {
8549
8550 ;
8551 return 0;
8552 }
8553 _ACEOF
8554 rm -f conftest.$ac_objext conftest$ac_exeext
8555 if { (ac_try="$ac_link"
8556 case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559 esac
8560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8561 $as_echo "$ac_try_echo") >&5
8562 (eval "$ac_link") 2>conftest.er1
8563 ac_status=$?
8564 grep -v '^ *+' conftest.er1 >conftest.err
8565 rm -f conftest.er1
8566 cat conftest.err >&5
8567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } && {
8569 test -z "$ac_c_werror_flag" ||
8570 test ! -s conftest.err
8571 } && test -s conftest$ac_exeext && {
8572 test "$cross_compiling" = yes ||
8573 $as_test_x conftest$ac_exeext
8574 }; then
8575
8576 lt_aix_libpath_sed='
8577 /Import File Strings/,/^$/ {
8578 /^0/ {
8579 s/^0 *\(.*\)$/\1/
8580 p
8581 }
8582 }'
8583 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8584 # Check for a 64-bit object if we didn't find anything.
8585 if test -z "$aix_libpath"; then
8586 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8587 fi
8588 else
8589 $as_echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8591
8592
8593 fi
8594
8595 rm -rf conftest.dSYM
8596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8597 conftest$ac_exeext conftest.$ac_ext
8598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8599
8600 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8601 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8602 else
8603 if test "$host_cpu" = ia64; then
8604 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8605 allow_undefined_flag="-z nodefs"
8606 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8607 else
8608 # Determine the default libpath from the value encoded in an
8609 # empty executable.
8610 cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h. */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616
8617 int
8618 main ()
8619 {
8620
8621 ;
8622 return 0;
8623 }
8624 _ACEOF
8625 rm -f conftest.$ac_objext conftest$ac_exeext
8626 if { (ac_try="$ac_link"
8627 case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8630 esac
8631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8632 $as_echo "$ac_try_echo") >&5
8633 (eval "$ac_link") 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && {
8640 test -z "$ac_c_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest$ac_exeext && {
8643 test "$cross_compiling" = yes ||
8644 $as_test_x conftest$ac_exeext
8645 }; then
8646
8647 lt_aix_libpath_sed='
8648 /Import File Strings/,/^$/ {
8649 /^0/ {
8650 s/^0 *\(.*\)$/\1/
8651 p
8652 }
8653 }'
8654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8655 # Check for a 64-bit object if we didn't find anything.
8656 if test -z "$aix_libpath"; then
8657 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8658 fi
8659 else
8660 $as_echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8662
8663
8664 fi
8665
8666 rm -rf conftest.dSYM
8667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8668 conftest$ac_exeext conftest.$ac_ext
8669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8670
8671 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8672 # Warning - without using the other run time loading flags,
8673 # -berok will link without error, but may produce a broken library.
8674 no_undefined_flag=' ${wl}-bernotok'
8675 allow_undefined_flag=' ${wl}-berok'
8676 # Exported symbols can be pulled into shared objects from archives
8677 whole_archive_flag_spec='$convenience'
8678 archive_cmds_need_lc=yes
8679 # This is similar to how AIX traditionally builds its shared libraries.
8680 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'
8681 fi
8682 fi
8683 ;;
8684
8685 amigaos*)
8686 case $host_cpu in
8687 powerpc)
8688 # see comment about AmigaOS4 .so support
8689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690 archive_expsym_cmds=''
8691 ;;
8692 m68k)
8693 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)'
8694 hardcode_libdir_flag_spec='-L$libdir'
8695 hardcode_minus_L=yes
8696 ;;
8697 esac
8698 ;;
8699
8700 bsdi[45]*)
8701 export_dynamic_flag_spec=-rdynamic
8702 ;;
8703
8704 cygwin* | mingw* | pw32* | cegcc*)
8705 # When not using gcc, we currently assume that we are using
8706 # Microsoft Visual C++.
8707 # hardcode_libdir_flag_spec is actually meaningless, as there is
8708 # no search path for DLLs.
8709 hardcode_libdir_flag_spec=' '
8710 allow_undefined_flag=unsupported
8711 # Tell ltmain to make .lib files, not .a files.
8712 libext=lib
8713 # Tell ltmain to make .dll files, not .so files.
8714 shrext_cmds=".dll"
8715 # FIXME: Setting linknames here is a bad hack.
8716 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8717 # The linker will automatically build a .lib file if we build a DLL.
8718 old_archive_from_new_cmds='true'
8719 # FIXME: Should let the user specify the lib program.
8720 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8721 fix_srcfile_path='`cygpath -w "$srcfile"`'
8722 enable_shared_with_static_runtimes=yes
8723 ;;
8724
8725 darwin* | rhapsody*)
8726
8727
8728 archive_cmds_need_lc=no
8729 hardcode_direct=no
8730 hardcode_automatic=yes
8731 hardcode_shlibpath_var=unsupported
8732 whole_archive_flag_spec=''
8733 link_all_deplibs=yes
8734 allow_undefined_flag="$_lt_dar_allow_undefined"
8735 case $cc_basename in
8736 ifort*) _lt_dar_can_shared=yes ;;
8737 *) _lt_dar_can_shared=$GCC ;;
8738 esac
8739 if test "$_lt_dar_can_shared" = "yes"; then
8740 output_verbose_link_cmd=echo
8741 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8742 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8743 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}"
8744 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}"
8745
8746 else
8747 ld_shlibs=no
8748 fi
8749
8750 ;;
8751
8752 dgux*)
8753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754 hardcode_libdir_flag_spec='-L$libdir'
8755 hardcode_shlibpath_var=no
8756 ;;
8757
8758 freebsd1*)
8759 ld_shlibs=no
8760 ;;
8761
8762 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8763 # support. Future versions do this automatically, but an explicit c++rt0.o
8764 # does not break anything, and helps significantly (at the cost of a little
8765 # extra space).
8766 freebsd2.2*)
8767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8768 hardcode_libdir_flag_spec='-R$libdir'
8769 hardcode_direct=yes
8770 hardcode_shlibpath_var=no
8771 ;;
8772
8773 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8774 freebsd2*)
8775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8776 hardcode_direct=yes
8777 hardcode_minus_L=yes
8778 hardcode_shlibpath_var=no
8779 ;;
8780
8781 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8782 freebsd* | dragonfly*)
8783 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8784 hardcode_libdir_flag_spec='-R$libdir'
8785 hardcode_direct=yes
8786 hardcode_shlibpath_var=no
8787 ;;
8788
8789 hpux9*)
8790 if test "$GCC" = yes; then
8791 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'
8792 else
8793 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'
8794 fi
8795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8796 hardcode_libdir_separator=:
8797 hardcode_direct=yes
8798
8799 # hardcode_minus_L: Not really in the search PATH,
8800 # but as the default location of the library.
8801 hardcode_minus_L=yes
8802 export_dynamic_flag_spec='${wl}-E'
8803 ;;
8804
8805 hpux10*)
8806 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8807 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8808 else
8809 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8810 fi
8811 if test "$with_gnu_ld" = no; then
8812 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8813 hardcode_libdir_flag_spec_ld='+b $libdir'
8814 hardcode_libdir_separator=:
8815 hardcode_direct=yes
8816 hardcode_direct_absolute=yes
8817 export_dynamic_flag_spec='${wl}-E'
8818 # hardcode_minus_L: Not really in the search PATH,
8819 # but as the default location of the library.
8820 hardcode_minus_L=yes
8821 fi
8822 ;;
8823
8824 hpux11*)
8825 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8826 case $host_cpu in
8827 hppa*64*)
8828 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8829 ;;
8830 ia64*)
8831 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8832 ;;
8833 *)
8834 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8835 ;;
8836 esac
8837 else
8838 case $host_cpu in
8839 hppa*64*)
8840 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841 ;;
8842 ia64*)
8843 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8844 ;;
8845 *)
8846 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8847 ;;
8848 esac
8849 fi
8850 if test "$with_gnu_ld" = no; then
8851 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8852 hardcode_libdir_separator=:
8853
8854 case $host_cpu in
8855 hppa*64*|ia64*)
8856 hardcode_direct=no
8857 hardcode_shlibpath_var=no
8858 ;;
8859 *)
8860 hardcode_direct=yes
8861 hardcode_direct_absolute=yes
8862 export_dynamic_flag_spec='${wl}-E'
8863
8864 # hardcode_minus_L: Not really in the search PATH,
8865 # but as the default location of the library.
8866 hardcode_minus_L=yes
8867 ;;
8868 esac
8869 fi
8870 ;;
8871
8872 irix5* | irix6* | nonstopux*)
8873 if test "$GCC" = yes; then
8874 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'
8875 # Try to use the -exported_symbol ld option, if it does not
8876 # work, assume that -exports_file does not work either and
8877 # implicitly export all symbols.
8878 save_LDFLAGS="$LDFLAGS"
8879 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8880 cat >conftest.$ac_ext <<_ACEOF
8881 int foo(void) {}
8882 _ACEOF
8883 rm -f conftest.$ac_objext conftest$ac_exeext
8884 if { (ac_try="$ac_link"
8885 case "(($ac_try" in
8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8888 esac
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891 (eval "$ac_link") 2>conftest.er1
8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest$ac_exeext && {
8901 test "$cross_compiling" = yes ||
8902 $as_test_x conftest$ac_exeext
8903 }; then
8904 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'
8905
8906 else
8907 $as_echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8909
8910
8911 fi
8912
8913 rm -rf conftest.dSYM
8914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8915 conftest$ac_exeext conftest.$ac_ext
8916 LDFLAGS="$save_LDFLAGS"
8917 else
8918 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'
8919 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'
8920 fi
8921 archive_cmds_need_lc='no'
8922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923 hardcode_libdir_separator=:
8924 inherit_rpath=yes
8925 link_all_deplibs=yes
8926 ;;
8927
8928 netbsd* | netbsdelf*-gnu)
8929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8931 else
8932 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8933 fi
8934 hardcode_libdir_flag_spec='-R$libdir'
8935 hardcode_direct=yes
8936 hardcode_shlibpath_var=no
8937 ;;
8938
8939 newsos6)
8940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941 hardcode_direct=yes
8942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8943 hardcode_libdir_separator=:
8944 hardcode_shlibpath_var=no
8945 ;;
8946
8947 *nto* | *qnx*)
8948 ;;
8949
8950 openbsd*)
8951 if test -f /usr/libexec/ld.so; then
8952 hardcode_direct=yes
8953 hardcode_shlibpath_var=no
8954 hardcode_direct_absolute=yes
8955 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8957 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8958 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8959 export_dynamic_flag_spec='${wl}-E'
8960 else
8961 case $host_os in
8962 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8964 hardcode_libdir_flag_spec='-R$libdir'
8965 ;;
8966 *)
8967 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8968 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8969 ;;
8970 esac
8971 fi
8972 else
8973 ld_shlibs=no
8974 fi
8975 ;;
8976
8977 os2*)
8978 hardcode_libdir_flag_spec='-L$libdir'
8979 hardcode_minus_L=yes
8980 allow_undefined_flag=unsupported
8981 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'
8982 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8983 ;;
8984
8985 osf3*)
8986 if test "$GCC" = yes; then
8987 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8988 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'
8989 else
8990 allow_undefined_flag=' -expect_unresolved \*'
8991 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'
8992 fi
8993 archive_cmds_need_lc='no'
8994 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8995 hardcode_libdir_separator=:
8996 ;;
8997
8998 osf4* | osf5*) # as osf3* with the addition of -msym flag
8999 if test "$GCC" = yes; then
9000 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9001 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'
9002 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9003 else
9004 allow_undefined_flag=' -expect_unresolved \*'
9005 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'
9006 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~
9007 $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'
9008
9009 # Both c and cxx compiler support -rpath directly
9010 hardcode_libdir_flag_spec='-rpath $libdir'
9011 fi
9012 archive_cmds_need_lc='no'
9013 hardcode_libdir_separator=:
9014 ;;
9015
9016 solaris*)
9017 no_undefined_flag=' -z defs'
9018 if test "$GCC" = yes; then
9019 wlarc='${wl}'
9020 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9021 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9022 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9023 else
9024 case `$CC -V 2>&1` in
9025 *"Compilers 5.0"*)
9026 wlarc=''
9027 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9029 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9030 ;;
9031 *)
9032 wlarc='${wl}'
9033 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9034 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9035 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9036 ;;
9037 esac
9038 fi
9039 hardcode_libdir_flag_spec='-R$libdir'
9040 hardcode_shlibpath_var=no
9041 case $host_os in
9042 solaris2.[0-5] | solaris2.[0-5].*) ;;
9043 *)
9044 # The compiler driver will combine and reorder linker options,
9045 # but understands `-z linker_flag'. GCC discards it without `$wl',
9046 # but is careful enough not to reorder.
9047 # Supported since Solaris 2.6 (maybe 2.5.1?)
9048 if test "$GCC" = yes; then
9049 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9050 else
9051 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9052 fi
9053 ;;
9054 esac
9055 link_all_deplibs=yes
9056 ;;
9057
9058 sunos4*)
9059 if test "x$host_vendor" = xsequent; then
9060 # Use $CC to link under sequent, because it throws in some extra .o
9061 # files that make .init and .fini sections work.
9062 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9063 else
9064 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9065 fi
9066 hardcode_libdir_flag_spec='-L$libdir'
9067 hardcode_direct=yes
9068 hardcode_minus_L=yes
9069 hardcode_shlibpath_var=no
9070 ;;
9071
9072 sysv4)
9073 case $host_vendor in
9074 sni)
9075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9076 hardcode_direct=yes # is this really true???
9077 ;;
9078 siemens)
9079 ## LD is ld it makes a PLAMLIB
9080 ## CC just makes a GrossModule.
9081 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9082 reload_cmds='$CC -r -o $output$reload_objs'
9083 hardcode_direct=no
9084 ;;
9085 motorola)
9086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9087 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9088 ;;
9089 esac
9090 runpath_var='LD_RUN_PATH'
9091 hardcode_shlibpath_var=no
9092 ;;
9093
9094 sysv4.3*)
9095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096 hardcode_shlibpath_var=no
9097 export_dynamic_flag_spec='-Bexport'
9098 ;;
9099
9100 sysv4*MP*)
9101 if test -d /usr/nec; then
9102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9103 hardcode_shlibpath_var=no
9104 runpath_var=LD_RUN_PATH
9105 hardcode_runpath_var=yes
9106 ld_shlibs=yes
9107 fi
9108 ;;
9109
9110 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9111 no_undefined_flag='${wl}-z,text'
9112 archive_cmds_need_lc=no
9113 hardcode_shlibpath_var=no
9114 runpath_var='LD_RUN_PATH'
9115
9116 if test "$GCC" = yes; then
9117 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9118 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9119 else
9120 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9122 fi
9123 ;;
9124
9125 sysv5* | sco3.2v5* | sco5v6*)
9126 # Note: We can NOT use -z defs as we might desire, because we do not
9127 # link with -lc, and that would cause any symbols used from libc to
9128 # always be unresolved, which means just about no library would
9129 # ever link correctly. If we're not using GNU ld we use -z text
9130 # though, which does catch some bad symbols but isn't as heavy-handed
9131 # as -z defs.
9132 no_undefined_flag='${wl}-z,text'
9133 allow_undefined_flag='${wl}-z,nodefs'
9134 archive_cmds_need_lc=no
9135 hardcode_shlibpath_var=no
9136 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9137 hardcode_libdir_separator=':'
9138 link_all_deplibs=yes
9139 export_dynamic_flag_spec='${wl}-Bexport'
9140 runpath_var='LD_RUN_PATH'
9141
9142 if test "$GCC" = yes; then
9143 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9144 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9145 else
9146 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9147 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9148 fi
9149 ;;
9150
9151 uts4*)
9152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9153 hardcode_libdir_flag_spec='-L$libdir'
9154 hardcode_shlibpath_var=no
9155 ;;
9156
9157 *)
9158 ld_shlibs=no
9159 ;;
9160 esac
9161
9162 if test x$host_vendor = xsni; then
9163 case $host in
9164 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9165 export_dynamic_flag_spec='${wl}-Blargedynsym'
9166 ;;
9167 esac
9168 fi
9169 fi
9170
9171 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9172 $as_echo "$ld_shlibs" >&6; }
9173 test "$ld_shlibs" = no && can_build_shared=no
9174
9175 with_gnu_ld=$with_gnu_ld
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191 #
9192 # Do we need to explicitly link libc?
9193 #
9194 case "x$archive_cmds_need_lc" in
9195 x|xyes)
9196 # Assume -lc should be added
9197 archive_cmds_need_lc=yes
9198
9199 if test "$enable_shared" = yes && test "$GCC" = yes; then
9200 case $archive_cmds in
9201 *'~'*)
9202 # FIXME: we may have to deal with multi-command sequences.
9203 ;;
9204 '$CC '*)
9205 # Test whether the compiler implicitly links with -lc since on some
9206 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9207 # to ld, don't add -lc before -lgcc.
9208 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9209 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9210 $RM conftest*
9211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9212
9213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9214 (eval $ac_compile) 2>&5
9215 ac_status=$?
9216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } 2>conftest.err; then
9218 soname=conftest
9219 lib=conftest
9220 libobjs=conftest.$ac_objext
9221 deplibs=
9222 wl=$lt_prog_compiler_wl
9223 pic_flag=$lt_prog_compiler_pic
9224 compiler_flags=-v
9225 linker_flags=-v
9226 verstring=
9227 output_objdir=.
9228 libname=conftest
9229 lt_save_allow_undefined_flag=$allow_undefined_flag
9230 allow_undefined_flag=
9231 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9232 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9233 ac_status=$?
9234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }
9236 then
9237 archive_cmds_need_lc=no
9238 else
9239 archive_cmds_need_lc=yes
9240 fi
9241 allow_undefined_flag=$lt_save_allow_undefined_flag
9242 else
9243 cat conftest.err 1>&5
9244 fi
9245 $RM conftest*
9246 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9247 $as_echo "$archive_cmds_need_lc" >&6; }
9248 ;;
9249 esac
9250 fi
9251 ;;
9252 esac
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9411 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9412
9413 if test "$GCC" = yes; then
9414 case $host_os in
9415 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9416 *) lt_awk_arg="/^libraries:/" ;;
9417 esac
9418 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9419 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9420 # if the path contains ";" then we assume it to be the separator
9421 # otherwise default to the standard path separator (i.e. ":") - it is
9422 # assumed that no part of a normal pathname contains ";" but that should
9423 # okay in the real world where ";" in dirpaths is itself problematic.
9424 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9425 else
9426 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9427 fi
9428 # Ok, now we have the path, separated by spaces, we can step through it
9429 # and add multilib dir if necessary.
9430 lt_tmp_lt_search_path_spec=
9431 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9432 for lt_sys_path in $lt_search_path_spec; do
9433 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9434 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9435 else
9436 test -d "$lt_sys_path" && \
9437 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9438 fi
9439 done
9440 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9441 BEGIN {RS=" "; FS="/|\n";} {
9442 lt_foo="";
9443 lt_count=0;
9444 for (lt_i = NF; lt_i > 0; lt_i--) {
9445 if ($lt_i != "" && $lt_i != ".") {
9446 if ($lt_i == "..") {
9447 lt_count++;
9448 } else {
9449 if (lt_count == 0) {
9450 lt_foo="/" $lt_i lt_foo;
9451 } else {
9452 lt_count--;
9453 }
9454 }
9455 }
9456 }
9457 if (lt_foo != "") { lt_freq[lt_foo]++; }
9458 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9459 }'`
9460 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9461 else
9462 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9463 fi
9464 library_names_spec=
9465 libname_spec='lib$name'
9466 soname_spec=
9467 shrext_cmds=".so"
9468 postinstall_cmds=
9469 postuninstall_cmds=
9470 finish_cmds=
9471 finish_eval=
9472 shlibpath_var=
9473 shlibpath_overrides_runpath=unknown
9474 version_type=none
9475 dynamic_linker="$host_os ld.so"
9476 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9477 need_lib_prefix=unknown
9478 hardcode_into_libs=no
9479
9480 # when you set need_version to no, make sure it does not cause -set_version
9481 # flags to be left without arguments
9482 need_version=unknown
9483
9484 case $host_os in
9485 aix3*)
9486 version_type=linux
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9488 shlibpath_var=LIBPATH
9489
9490 # AIX 3 has no versioning support, so we append a major version to the name.
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 ;;
9493
9494 aix[4-9]*)
9495 version_type=linux
9496 need_lib_prefix=no
9497 need_version=no
9498 hardcode_into_libs=yes
9499 if test "$host_cpu" = ia64; then
9500 # AIX 5 supports IA64
9501 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9502 shlibpath_var=LD_LIBRARY_PATH
9503 else
9504 # With GCC up to 2.95.x, collect2 would create an import file
9505 # for dependence libraries. The import file would start with
9506 # the line `#! .'. This would cause the generated library to
9507 # depend on `.', always an invalid library. This was fixed in
9508 # development snapshots of GCC prior to 3.0.
9509 case $host_os in
9510 aix4 | aix4.[01] | aix4.[01].*)
9511 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9512 echo ' yes '
9513 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9514 :
9515 else
9516 can_build_shared=no
9517 fi
9518 ;;
9519 esac
9520 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9521 # soname into executable. Probably we can add versioning support to
9522 # collect2, so additional links can be useful in future.
9523 if test "$aix_use_runtimelinking" = yes; then
9524 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9525 # instead of lib<name>.a to let people know that these are not
9526 # typical AIX shared libraries.
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528 else
9529 # We preserve .a as extension for shared libraries through AIX4.2
9530 # and later when we are not doing run time linking.
9531 library_names_spec='${libname}${release}.a $libname.a'
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 fi
9534 shlibpath_var=LIBPATH
9535 fi
9536 ;;
9537
9538 amigaos*)
9539 case $host_cpu in
9540 powerpc)
9541 # Since July 2007 AmigaOS4 officially supports .so libraries.
9542 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544 ;;
9545 m68k)
9546 library_names_spec='$libname.ixlibrary $libname.a'
9547 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9548 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'
9549 ;;
9550 esac
9551 ;;
9552
9553 beos*)
9554 library_names_spec='${libname}${shared_ext}'
9555 dynamic_linker="$host_os ld.so"
9556 shlibpath_var=LIBRARY_PATH
9557 ;;
9558
9559 bsdi[45]*)
9560 version_type=linux
9561 need_version=no
9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9563 soname_spec='${libname}${release}${shared_ext}$major'
9564 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9565 shlibpath_var=LD_LIBRARY_PATH
9566 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9567 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9568 # the default ld.so.conf also contains /usr/contrib/lib and
9569 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9570 # libtool to hard-code these into programs
9571 ;;
9572
9573 cygwin* | mingw* | pw32* | cegcc*)
9574 version_type=windows
9575 shrext_cmds=".dll"
9576 need_version=no
9577 need_lib_prefix=no
9578
9579 case $GCC,$host_os in
9580 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9581 library_names_spec='$libname.dll.a'
9582 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9583 postinstall_cmds='base_file=`basename \${file}`~
9584 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9585 dldir=$destdir/`dirname \$dlpath`~
9586 test -d \$dldir || mkdir -p \$dldir~
9587 $install_prog $dir/$dlname \$dldir/$dlname~
9588 chmod a+x \$dldir/$dlname~
9589 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9590 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9591 fi'
9592 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9593 dlpath=$dir/\$dldll~
9594 $RM \$dlpath'
9595 shlibpath_overrides_runpath=yes
9596
9597 case $host_os in
9598 cygwin*)
9599 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9600 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9601 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9602 ;;
9603 mingw* | cegcc*)
9604 # MinGW DLLs use traditional 'lib' prefix
9605 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9606 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9607 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9608 # It is most probably a Windows format PATH printed by
9609 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9610 # path with ; separators, and with drive letters. We can handle the
9611 # drive letters (cygwin fileutils understands them), so leave them,
9612 # especially as we might pass files found there to a mingw objdump,
9613 # which wouldn't understand a cygwinified path. Ahh.
9614 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9615 else
9616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9617 fi
9618 ;;
9619 pw32*)
9620 # pw32 DLLs use 'pw' prefix rather than 'lib'
9621 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9622 ;;
9623 esac
9624 ;;
9625
9626 *)
9627 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9628 ;;
9629 esac
9630 dynamic_linker='Win32 ld.exe'
9631 # FIXME: first we should search . and the directory the executable is in
9632 shlibpath_var=PATH
9633 ;;
9634
9635 darwin* | rhapsody*)
9636 dynamic_linker="$host_os dyld"
9637 version_type=darwin
9638 need_lib_prefix=no
9639 need_version=no
9640 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9641 soname_spec='${libname}${release}${major}$shared_ext'
9642 shlibpath_overrides_runpath=yes
9643 shlibpath_var=DYLD_LIBRARY_PATH
9644 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9645
9646 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9647 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9648 ;;
9649
9650 dgux*)
9651 version_type=linux
9652 need_lib_prefix=no
9653 need_version=no
9654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9655 soname_spec='${libname}${release}${shared_ext}$major'
9656 shlibpath_var=LD_LIBRARY_PATH
9657 ;;
9658
9659 freebsd1*)
9660 dynamic_linker=no
9661 ;;
9662
9663 freebsd* | dragonfly*)
9664 # DragonFly does not have aout. When/if they implement a new
9665 # versioning mechanism, adjust this.
9666 if test -x /usr/bin/objformat; then
9667 objformat=`/usr/bin/objformat`
9668 else
9669 case $host_os in
9670 freebsd[123]*) objformat=aout ;;
9671 *) objformat=elf ;;
9672 esac
9673 fi
9674 version_type=freebsd-$objformat
9675 case $version_type in
9676 freebsd-elf*)
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9678 need_version=no
9679 need_lib_prefix=no
9680 ;;
9681 freebsd-*)
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9683 need_version=yes
9684 ;;
9685 esac
9686 shlibpath_var=LD_LIBRARY_PATH
9687 case $host_os in
9688 freebsd2*)
9689 shlibpath_overrides_runpath=yes
9690 ;;
9691 freebsd3.[01]* | freebsdelf3.[01]*)
9692 shlibpath_overrides_runpath=yes
9693 hardcode_into_libs=yes
9694 ;;
9695 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9696 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9697 shlibpath_overrides_runpath=no
9698 hardcode_into_libs=yes
9699 ;;
9700 *) # from 4.6 on, and DragonFly
9701 shlibpath_overrides_runpath=yes
9702 hardcode_into_libs=yes
9703 ;;
9704 esac
9705 ;;
9706
9707 gnu*)
9708 version_type=linux
9709 need_lib_prefix=no
9710 need_version=no
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9712 soname_spec='${libname}${release}${shared_ext}$major'
9713 shlibpath_var=LD_LIBRARY_PATH
9714 hardcode_into_libs=yes
9715 ;;
9716
9717 hpux9* | hpux10* | hpux11*)
9718 # Give a soname corresponding to the major version so that dld.sl refuses to
9719 # link against other versions.
9720 version_type=sunos
9721 need_lib_prefix=no
9722 need_version=no
9723 case $host_cpu in
9724 ia64*)
9725 shrext_cmds='.so'
9726 hardcode_into_libs=yes
9727 dynamic_linker="$host_os dld.so"
9728 shlibpath_var=LD_LIBRARY_PATH
9729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9731 soname_spec='${libname}${release}${shared_ext}$major'
9732 if test "X$HPUX_IA64_MODE" = X32; then
9733 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9734 else
9735 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9736 fi
9737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9738 ;;
9739 hppa*64*)
9740 shrext_cmds='.sl'
9741 hardcode_into_libs=yes
9742 dynamic_linker="$host_os dld.sl"
9743 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 soname_spec='${libname}${release}${shared_ext}$major'
9747 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9749 ;;
9750 *)
9751 shrext_cmds='.sl'
9752 dynamic_linker="$host_os dld.sl"
9753 shlibpath_var=SHLIB_PATH
9754 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756 soname_spec='${libname}${release}${shared_ext}$major'
9757 ;;
9758 esac
9759 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9760 postinstall_cmds='chmod 555 $lib'
9761 ;;
9762
9763 interix[3-9]*)
9764 version_type=linux
9765 need_lib_prefix=no
9766 need_version=no
9767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9768 soname_spec='${libname}${release}${shared_ext}$major'
9769 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9770 shlibpath_var=LD_LIBRARY_PATH
9771 shlibpath_overrides_runpath=no
9772 hardcode_into_libs=yes
9773 ;;
9774
9775 irix5* | irix6* | nonstopux*)
9776 case $host_os in
9777 nonstopux*) version_type=nonstopux ;;
9778 *)
9779 if test "$lt_cv_prog_gnu_ld" = yes; then
9780 version_type=linux
9781 else
9782 version_type=irix
9783 fi ;;
9784 esac
9785 need_lib_prefix=no
9786 need_version=no
9787 soname_spec='${libname}${release}${shared_ext}$major'
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9789 case $host_os in
9790 irix5* | nonstopux*)
9791 libsuff= shlibsuff=
9792 ;;
9793 *)
9794 case $LD in # libtool.m4 will add one of these switches to LD
9795 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9796 libsuff= shlibsuff= libmagic=32-bit;;
9797 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9798 libsuff=32 shlibsuff=N32 libmagic=N32;;
9799 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9800 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9801 *) libsuff= shlibsuff= libmagic=never-match;;
9802 esac
9803 ;;
9804 esac
9805 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9806 shlibpath_overrides_runpath=no
9807 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9808 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9809 hardcode_into_libs=yes
9810 ;;
9811
9812 # No shared lib support for Linux oldld, aout, or coff.
9813 linux*oldld* | linux*aout* | linux*coff*)
9814 dynamic_linker=no
9815 ;;
9816
9817 # This must be Linux ELF.
9818 linux* | k*bsd*-gnu)
9819 version_type=linux
9820 need_lib_prefix=no
9821 need_version=no
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823 soname_spec='${libname}${release}${shared_ext}$major'
9824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9825 shlibpath_var=LD_LIBRARY_PATH
9826 shlibpath_overrides_runpath=no
9827 # Some binutils ld are patched to set DT_RUNPATH
9828 save_LDFLAGS=$LDFLAGS
9829 save_libdir=$libdir
9830 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9831 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h. */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838
9839 int
9840 main ()
9841 {
9842
9843 ;
9844 return 0;
9845 }
9846 _ACEOF
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (ac_try="$ac_link"
9849 case "(($ac_try" in
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9852 esac
9853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9854 $as_echo "$ac_try_echo") >&5
9855 (eval "$ac_link") 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } && {
9862 test -z "$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 } && test -s conftest$ac_exeext && {
9865 test "$cross_compiling" = yes ||
9866 $as_test_x conftest$ac_exeext
9867 }; then
9868 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9869 shlibpath_overrides_runpath=yes
9870 fi
9871
9872 else
9873 $as_echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9875
9876
9877 fi
9878
9879 rm -rf conftest.dSYM
9880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9881 conftest$ac_exeext conftest.$ac_ext
9882 LDFLAGS=$save_LDFLAGS
9883 libdir=$save_libdir
9884
9885 # This implies no fast_install, which is unacceptable.
9886 # Some rework will be needed to allow for fast_install
9887 # before this can be enabled.
9888 hardcode_into_libs=yes
9889
9890 # Append ld.so.conf contents to the search path
9891 if test -f /etc/ld.so.conf; then
9892 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' ' '`
9893 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9894 fi
9895
9896 # We used to test for /lib/ld.so.1 and disable shared libraries on
9897 # powerpc, because MkLinux only supported shared libraries with the
9898 # GNU dynamic linker. Since this was broken with cross compilers,
9899 # most powerpc-linux boxes support dynamic linking these days and
9900 # people can always --disable-shared, the test was removed, and we
9901 # assume the GNU/Linux dynamic linker is in use.
9902 dynamic_linker='GNU/Linux ld.so'
9903 ;;
9904
9905 netbsdelf*-gnu)
9906 version_type=linux
9907 need_lib_prefix=no
9908 need_version=no
9909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9910 soname_spec='${libname}${release}${shared_ext}$major'
9911 shlibpath_var=LD_LIBRARY_PATH
9912 shlibpath_overrides_runpath=no
9913 hardcode_into_libs=yes
9914 dynamic_linker='NetBSD ld.elf_so'
9915 ;;
9916
9917 netbsd*)
9918 version_type=sunos
9919 need_lib_prefix=no
9920 need_version=no
9921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9924 dynamic_linker='NetBSD (a.out) ld.so'
9925 else
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 dynamic_linker='NetBSD ld.elf_so'
9929 fi
9930 shlibpath_var=LD_LIBRARY_PATH
9931 shlibpath_overrides_runpath=yes
9932 hardcode_into_libs=yes
9933 ;;
9934
9935 newsos6)
9936 version_type=linux
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=yes
9940 ;;
9941
9942 *nto* | *qnx*)
9943 version_type=qnx
9944 need_lib_prefix=no
9945 need_version=no
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 shlibpath_var=LD_LIBRARY_PATH
9949 shlibpath_overrides_runpath=no
9950 hardcode_into_libs=yes
9951 dynamic_linker='ldqnx.so'
9952 ;;
9953
9954 openbsd*)
9955 version_type=sunos
9956 sys_lib_dlsearch_path_spec="/usr/lib"
9957 need_lib_prefix=no
9958 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9959 case $host_os in
9960 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9961 *) need_version=no ;;
9962 esac
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9967 case $host_os in
9968 openbsd2.[89] | openbsd2.[89].*)
9969 shlibpath_overrides_runpath=no
9970 ;;
9971 *)
9972 shlibpath_overrides_runpath=yes
9973 ;;
9974 esac
9975 else
9976 shlibpath_overrides_runpath=yes
9977 fi
9978 ;;
9979
9980 os2*)
9981 libname_spec='$name'
9982 shrext_cmds=".dll"
9983 need_lib_prefix=no
9984 library_names_spec='$libname${shared_ext} $libname.a'
9985 dynamic_linker='OS/2 ld.exe'
9986 shlibpath_var=LIBPATH
9987 ;;
9988
9989 osf3* | osf4* | osf5*)
9990 version_type=osf
9991 need_lib_prefix=no
9992 need_version=no
9993 soname_spec='${libname}${release}${shared_ext}$major'
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995 shlibpath_var=LD_LIBRARY_PATH
9996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9997 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9998 ;;
9999
10000 rdos*)
10001 dynamic_linker=no
10002 ;;
10003
10004 solaris*)
10005 version_type=linux
10006 need_lib_prefix=no
10007 need_version=no
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009 soname_spec='${libname}${release}${shared_ext}$major'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 shlibpath_overrides_runpath=yes
10012 hardcode_into_libs=yes
10013 # ldd complains unless libraries are executable
10014 postinstall_cmds='chmod +x $lib'
10015 ;;
10016
10017 sunos4*)
10018 version_type=sunos
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10020 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 shlibpath_overrides_runpath=yes
10023 if test "$with_gnu_ld" = yes; then
10024 need_lib_prefix=no
10025 fi
10026 need_version=yes
10027 ;;
10028
10029 sysv4 | sysv4.3*)
10030 version_type=linux
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032 soname_spec='${libname}${release}${shared_ext}$major'
10033 shlibpath_var=LD_LIBRARY_PATH
10034 case $host_vendor in
10035 sni)
10036 shlibpath_overrides_runpath=no
10037 need_lib_prefix=no
10038 runpath_var=LD_RUN_PATH
10039 ;;
10040 siemens)
10041 need_lib_prefix=no
10042 ;;
10043 motorola)
10044 need_lib_prefix=no
10045 need_version=no
10046 shlibpath_overrides_runpath=no
10047 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10048 ;;
10049 esac
10050 ;;
10051
10052 sysv4*MP*)
10053 if test -d /usr/nec ;then
10054 version_type=linux
10055 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10056 soname_spec='$libname${shared_ext}.$major'
10057 shlibpath_var=LD_LIBRARY_PATH
10058 fi
10059 ;;
10060
10061 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10062 version_type=freebsd-elf
10063 need_lib_prefix=no
10064 need_version=no
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10066 soname_spec='${libname}${release}${shared_ext}$major'
10067 shlibpath_var=LD_LIBRARY_PATH
10068 shlibpath_overrides_runpath=yes
10069 hardcode_into_libs=yes
10070 if test "$with_gnu_ld" = yes; then
10071 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10072 else
10073 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10074 case $host_os in
10075 sco3.2v5*)
10076 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10077 ;;
10078 esac
10079 fi
10080 sys_lib_dlsearch_path_spec='/usr/lib'
10081 ;;
10082
10083 tpf*)
10084 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10085 version_type=linux
10086 need_lib_prefix=no
10087 need_version=no
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089 shlibpath_var=LD_LIBRARY_PATH
10090 shlibpath_overrides_runpath=no
10091 hardcode_into_libs=yes
10092 ;;
10093
10094 uts4*)
10095 version_type=linux
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10098 shlibpath_var=LD_LIBRARY_PATH
10099 ;;
10100
10101 *)
10102 dynamic_linker=no
10103 ;;
10104 esac
10105 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10106 $as_echo "$dynamic_linker" >&6; }
10107 test "$dynamic_linker" = no && can_build_shared=no
10108
10109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10110 if test "$GCC" = yes; then
10111 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10112 fi
10113
10114 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10115 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10116 fi
10117 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10118 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10119 fi
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10208 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10209 hardcode_action=
10210 if test -n "$hardcode_libdir_flag_spec" ||
10211 test -n "$runpath_var" ||
10212 test "X$hardcode_automatic" = "Xyes" ; then
10213
10214 # We can hardcode non-existent directories.
10215 if test "$hardcode_direct" != no &&
10216 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10217 # have to relink, otherwise we might link with an installed library
10218 # when we should be linking with a yet-to-be-installed one
10219 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10220 test "$hardcode_minus_L" != no; then
10221 # Linking always hardcodes the temporary library directory.
10222 hardcode_action=relink
10223 else
10224 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10225 hardcode_action=immediate
10226 fi
10227 else
10228 # We cannot hardcode anything, or else we can only hardcode existing
10229 # directories.
10230 hardcode_action=unsupported
10231 fi
10232 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10233 $as_echo "$hardcode_action" >&6; }
10234
10235 if test "$hardcode_action" = relink ||
10236 test "$inherit_rpath" = yes; then
10237 # Fast installation is not supported
10238 enable_fast_install=no
10239 elif test "$shlibpath_overrides_runpath" = yes ||
10240 test "$enable_shared" = no; then
10241 # Fast installation is not necessary
10242 enable_fast_install=needless
10243 fi
10244
10245
10246
10247
10248
10249
10250 if test "x$enable_dlopen" != xyes; then
10251 enable_dlopen=unknown
10252 enable_dlopen_self=unknown
10253 enable_dlopen_self_static=unknown
10254 else
10255 lt_cv_dlopen=no
10256 lt_cv_dlopen_libs=
10257
10258 case $host_os in
10259 beos*)
10260 lt_cv_dlopen="load_add_on"
10261 lt_cv_dlopen_libs=
10262 lt_cv_dlopen_self=yes
10263 ;;
10264
10265 mingw* | pw32* | cegcc*)
10266 lt_cv_dlopen="LoadLibrary"
10267 lt_cv_dlopen_libs=
10268 ;;
10269
10270 cygwin*)
10271 lt_cv_dlopen="dlopen"
10272 lt_cv_dlopen_libs=
10273 ;;
10274
10275 darwin*)
10276 # if libdl is installed we need to link against it
10277 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10278 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10279 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10280 $as_echo_n "(cached) " >&6
10281 else
10282 ac_check_lib_save_LIBS=$LIBS
10283 LIBS="-ldl $LIBS"
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h. */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290
10291 /* Override any GCC internal prototype to avoid an error.
10292 Use char because int might match the return type of a GCC
10293 builtin and then its argument prototype would still apply. */
10294 #ifdef __cplusplus
10295 extern "C"
10296 #endif
10297 char dlopen ();
10298 int
10299 main ()
10300 {
10301 return dlopen ();
10302 ;
10303 return 0;
10304 }
10305 _ACEOF
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (ac_try="$ac_link"
10308 case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311 esac
10312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10313 $as_echo "$ac_try_echo") >&5
10314 (eval "$ac_link") 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } && {
10321 test -z "$ac_c_werror_flag" ||
10322 test ! -s conftest.err
10323 } && test -s conftest$ac_exeext && {
10324 test "$cross_compiling" = yes ||
10325 $as_test_x conftest$ac_exeext
10326 }; then
10327 ac_cv_lib_dl_dlopen=yes
10328 else
10329 $as_echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10331
10332 ac_cv_lib_dl_dlopen=no
10333 fi
10334
10335 rm -rf conftest.dSYM
10336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10339 fi
10340 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10341 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10342 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10344 else
10345
10346 lt_cv_dlopen="dyld"
10347 lt_cv_dlopen_libs=
10348 lt_cv_dlopen_self=yes
10349
10350 fi
10351
10352 ;;
10353
10354 *)
10355 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10356 $as_echo_n "checking for shl_load... " >&6; }
10357 if test "${ac_cv_func_shl_load+set}" = set; then
10358 $as_echo_n "(cached) " >&6
10359 else
10360 cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h. */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10368 #define shl_load innocuous_shl_load
10369
10370 /* System header to define __stub macros and hopefully few prototypes,
10371 which can conflict with char shl_load (); below.
10372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10373 <limits.h> exists even on freestanding compilers. */
10374
10375 #ifdef __STDC__
10376 # include <limits.h>
10377 #else
10378 # include <assert.h>
10379 #endif
10380
10381 #undef shl_load
10382
10383 /* Override any GCC internal prototype to avoid an error.
10384 Use char because int might match the return type of a GCC
10385 builtin and then its argument prototype would still apply. */
10386 #ifdef __cplusplus
10387 extern "C"
10388 #endif
10389 char shl_load ();
10390 /* The GNU C library defines this for functions which it implements
10391 to always fail with ENOSYS. Some functions are actually named
10392 something starting with __ and the normal name is an alias. */
10393 #if defined __stub_shl_load || defined __stub___shl_load
10394 choke me
10395 #endif
10396
10397 int
10398 main ()
10399 {
10400 return shl_load ();
10401 ;
10402 return 0;
10403 }
10404 _ACEOF
10405 rm -f conftest.$ac_objext conftest$ac_exeext
10406 if { (ac_try="$ac_link"
10407 case "(($ac_try" in
10408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409 *) ac_try_echo=$ac_try;;
10410 esac
10411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10412 $as_echo "$ac_try_echo") >&5
10413 (eval "$ac_link") 2>conftest.er1
10414 ac_status=$?
10415 grep -v '^ *+' conftest.er1 >conftest.err
10416 rm -f conftest.er1
10417 cat conftest.err >&5
10418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && {
10420 test -z "$ac_c_werror_flag" ||
10421 test ! -s conftest.err
10422 } && test -s conftest$ac_exeext && {
10423 test "$cross_compiling" = yes ||
10424 $as_test_x conftest$ac_exeext
10425 }; then
10426 ac_cv_func_shl_load=yes
10427 else
10428 $as_echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10430
10431 ac_cv_func_shl_load=no
10432 fi
10433
10434 rm -rf conftest.dSYM
10435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10436 conftest$ac_exeext conftest.$ac_ext
10437 fi
10438 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10439 $as_echo "$ac_cv_func_shl_load" >&6; }
10440 if test "x$ac_cv_func_shl_load" = x""yes; then
10441 lt_cv_dlopen="shl_load"
10442 else
10443 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10444 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10445 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10446 $as_echo_n "(cached) " >&6
10447 else
10448 ac_check_lib_save_LIBS=$LIBS
10449 LIBS="-ldld $LIBS"
10450 cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h. */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10456
10457 /* Override any GCC internal prototype to avoid an error.
10458 Use char because int might match the return type of a GCC
10459 builtin and then its argument prototype would still apply. */
10460 #ifdef __cplusplus
10461 extern "C"
10462 #endif
10463 char shl_load ();
10464 int
10465 main ()
10466 {
10467 return shl_load ();
10468 ;
10469 return 0;
10470 }
10471 _ACEOF
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (ac_try="$ac_link"
10474 case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10477 esac
10478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10479 $as_echo "$ac_try_echo") >&5
10480 (eval "$ac_link") 2>conftest.er1
10481 ac_status=$?
10482 grep -v '^ *+' conftest.er1 >conftest.err
10483 rm -f conftest.er1
10484 cat conftest.err >&5
10485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest$ac_exeext && {
10490 test "$cross_compiling" = yes ||
10491 $as_test_x conftest$ac_exeext
10492 }; then
10493 ac_cv_lib_dld_shl_load=yes
10494 else
10495 $as_echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10497
10498 ac_cv_lib_dld_shl_load=no
10499 fi
10500
10501 rm -rf conftest.dSYM
10502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10503 conftest$ac_exeext conftest.$ac_ext
10504 LIBS=$ac_check_lib_save_LIBS
10505 fi
10506 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10507 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10508 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10509 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10510 else
10511 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10512 $as_echo_n "checking for dlopen... " >&6; }
10513 if test "${ac_cv_func_dlopen+set}" = set; then
10514 $as_echo_n "(cached) " >&6
10515 else
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10524 #define dlopen innocuous_dlopen
10525
10526 /* System header to define __stub macros and hopefully few prototypes,
10527 which can conflict with char dlopen (); below.
10528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10529 <limits.h> exists even on freestanding compilers. */
10530
10531 #ifdef __STDC__
10532 # include <limits.h>
10533 #else
10534 # include <assert.h>
10535 #endif
10536
10537 #undef dlopen
10538
10539 /* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
10542 #ifdef __cplusplus
10543 extern "C"
10544 #endif
10545 char dlopen ();
10546 /* The GNU C library defines this for functions which it implements
10547 to always fail with ENOSYS. Some functions are actually named
10548 something starting with __ and the normal name is an alias. */
10549 #if defined __stub_dlopen || defined __stub___dlopen
10550 choke me
10551 #endif
10552
10553 int
10554 main ()
10555 {
10556 return dlopen ();
10557 ;
10558 return 0;
10559 }
10560 _ACEOF
10561 rm -f conftest.$ac_objext conftest$ac_exeext
10562 if { (ac_try="$ac_link"
10563 case "(($ac_try" in
10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565 *) ac_try_echo=$ac_try;;
10566 esac
10567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10568 $as_echo "$ac_try_echo") >&5
10569 (eval "$ac_link") 2>conftest.er1
10570 ac_status=$?
10571 grep -v '^ *+' conftest.er1 >conftest.err
10572 rm -f conftest.er1
10573 cat conftest.err >&5
10574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } && {
10576 test -z "$ac_c_werror_flag" ||
10577 test ! -s conftest.err
10578 } && test -s conftest$ac_exeext && {
10579 test "$cross_compiling" = yes ||
10580 $as_test_x conftest$ac_exeext
10581 }; then
10582 ac_cv_func_dlopen=yes
10583 else
10584 $as_echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10586
10587 ac_cv_func_dlopen=no
10588 fi
10589
10590 rm -rf conftest.dSYM
10591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10592 conftest$ac_exeext conftest.$ac_ext
10593 fi
10594 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10595 $as_echo "$ac_cv_func_dlopen" >&6; }
10596 if test "x$ac_cv_func_dlopen" = x""yes; then
10597 lt_cv_dlopen="dlopen"
10598 else
10599 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10600 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10601 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10602 $as_echo_n "(cached) " >&6
10603 else
10604 ac_check_lib_save_LIBS=$LIBS
10605 LIBS="-ldl $LIBS"
10606 cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h. */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10612
10613 /* Override any GCC internal prototype to avoid an error.
10614 Use char because int might match the return type of a GCC
10615 builtin and then its argument prototype would still apply. */
10616 #ifdef __cplusplus
10617 extern "C"
10618 #endif
10619 char dlopen ();
10620 int
10621 main ()
10622 {
10623 return dlopen ();
10624 ;
10625 return 0;
10626 }
10627 _ACEOF
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (ac_try="$ac_link"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10633 esac
10634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10635 $as_echo "$ac_try_echo") >&5
10636 (eval "$ac_link") 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } && {
10643 test -z "$ac_c_werror_flag" ||
10644 test ! -s conftest.err
10645 } && test -s conftest$ac_exeext && {
10646 test "$cross_compiling" = yes ||
10647 $as_test_x conftest$ac_exeext
10648 }; then
10649 ac_cv_lib_dl_dlopen=yes
10650 else
10651 $as_echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10653
10654 ac_cv_lib_dl_dlopen=no
10655 fi
10656
10657 rm -rf conftest.dSYM
10658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10659 conftest$ac_exeext conftest.$ac_ext
10660 LIBS=$ac_check_lib_save_LIBS
10661 fi
10662 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10663 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10664 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10665 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10666 else
10667 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10668 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10669 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10670 $as_echo_n "(cached) " >&6
10671 else
10672 ac_check_lib_save_LIBS=$LIBS
10673 LIBS="-lsvld $LIBS"
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h. */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680
10681 /* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
10684 #ifdef __cplusplus
10685 extern "C"
10686 #endif
10687 char dlopen ();
10688 int
10689 main ()
10690 {
10691 return dlopen ();
10692 ;
10693 return 0;
10694 }
10695 _ACEOF
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (ac_try="$ac_link"
10698 case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701 esac
10702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10703 $as_echo "$ac_try_echo") >&5
10704 (eval "$ac_link") 2>conftest.er1
10705 ac_status=$?
10706 grep -v '^ *+' conftest.er1 >conftest.err
10707 rm -f conftest.er1
10708 cat conftest.err >&5
10709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10713 } && test -s conftest$ac_exeext && {
10714 test "$cross_compiling" = yes ||
10715 $as_test_x conftest$ac_exeext
10716 }; then
10717 ac_cv_lib_svld_dlopen=yes
10718 else
10719 $as_echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10721
10722 ac_cv_lib_svld_dlopen=no
10723 fi
10724
10725 rm -rf conftest.dSYM
10726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10727 conftest$ac_exeext conftest.$ac_ext
10728 LIBS=$ac_check_lib_save_LIBS
10729 fi
10730 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10731 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10732 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10733 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10734 else
10735 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10736 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10737 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10738 $as_echo_n "(cached) " >&6
10739 else
10740 ac_check_lib_save_LIBS=$LIBS
10741 LIBS="-ldld $LIBS"
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748
10749 /* Override any GCC internal prototype to avoid an error.
10750 Use char because int might match the return type of a GCC
10751 builtin and then its argument prototype would still apply. */
10752 #ifdef __cplusplus
10753 extern "C"
10754 #endif
10755 char dld_link ();
10756 int
10757 main ()
10758 {
10759 return dld_link ();
10760 ;
10761 return 0;
10762 }
10763 _ACEOF
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (ac_try="$ac_link"
10766 case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769 esac
10770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10771 $as_echo "$ac_try_echo") >&5
10772 (eval "$ac_link") 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } && {
10779 test -z "$ac_c_werror_flag" ||
10780 test ! -s conftest.err
10781 } && test -s conftest$ac_exeext && {
10782 test "$cross_compiling" = yes ||
10783 $as_test_x conftest$ac_exeext
10784 }; then
10785 ac_cv_lib_dld_dld_link=yes
10786 else
10787 $as_echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10789
10790 ac_cv_lib_dld_dld_link=no
10791 fi
10792
10793 rm -rf conftest.dSYM
10794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10795 conftest$ac_exeext conftest.$ac_ext
10796 LIBS=$ac_check_lib_save_LIBS
10797 fi
10798 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10799 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10800 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10801 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10802 fi
10803
10804
10805 fi
10806
10807
10808 fi
10809
10810
10811 fi
10812
10813
10814 fi
10815
10816
10817 fi
10818
10819 ;;
10820 esac
10821
10822 if test "x$lt_cv_dlopen" != xno; then
10823 enable_dlopen=yes
10824 else
10825 enable_dlopen=no
10826 fi
10827
10828 case $lt_cv_dlopen in
10829 dlopen)
10830 save_CPPFLAGS="$CPPFLAGS"
10831 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10832
10833 save_LDFLAGS="$LDFLAGS"
10834 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10835
10836 save_LIBS="$LIBS"
10837 LIBS="$lt_cv_dlopen_libs $LIBS"
10838
10839 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10840 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10841 if test "${lt_cv_dlopen_self+set}" = set; then
10842 $as_echo_n "(cached) " >&6
10843 else
10844 if test "$cross_compiling" = yes; then :
10845 lt_cv_dlopen_self=cross
10846 else
10847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10848 lt_status=$lt_dlunknown
10849 cat > conftest.$ac_ext <<_LT_EOF
10850 #line 10850 "configure"
10851 #include "confdefs.h"
10852
10853 #if HAVE_DLFCN_H
10854 #include <dlfcn.h>
10855 #endif
10856
10857 #include <stdio.h>
10858
10859 #ifdef RTLD_GLOBAL
10860 # define LT_DLGLOBAL RTLD_GLOBAL
10861 #else
10862 # ifdef DL_GLOBAL
10863 # define LT_DLGLOBAL DL_GLOBAL
10864 # else
10865 # define LT_DLGLOBAL 0
10866 # endif
10867 #endif
10868
10869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10870 find out it does not work in some platform. */
10871 #ifndef LT_DLLAZY_OR_NOW
10872 # ifdef RTLD_LAZY
10873 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10874 # else
10875 # ifdef DL_LAZY
10876 # define LT_DLLAZY_OR_NOW DL_LAZY
10877 # else
10878 # ifdef RTLD_NOW
10879 # define LT_DLLAZY_OR_NOW RTLD_NOW
10880 # else
10881 # ifdef DL_NOW
10882 # define LT_DLLAZY_OR_NOW DL_NOW
10883 # else
10884 # define LT_DLLAZY_OR_NOW 0
10885 # endif
10886 # endif
10887 # endif
10888 # endif
10889 #endif
10890
10891 void fnord() { int i=42;}
10892 int main ()
10893 {
10894 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10895 int status = $lt_dlunknown;
10896
10897 if (self)
10898 {
10899 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10900 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10901 /* dlclose (self); */
10902 }
10903 else
10904 puts (dlerror ());
10905
10906 return status;
10907 }
10908 _LT_EOF
10909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10910 (eval $ac_link) 2>&5
10911 ac_status=$?
10912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10914 (./conftest; exit; ) >&5 2>/dev/null
10915 lt_status=$?
10916 case x$lt_status in
10917 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10918 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10919 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10920 esac
10921 else :
10922 # compilation failed
10923 lt_cv_dlopen_self=no
10924 fi
10925 fi
10926 rm -fr conftest*
10927
10928
10929 fi
10930 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10931 $as_echo "$lt_cv_dlopen_self" >&6; }
10932
10933 if test "x$lt_cv_dlopen_self" = xyes; then
10934 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10935 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10936 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10937 if test "${lt_cv_dlopen_self_static+set}" = set; then
10938 $as_echo_n "(cached) " >&6
10939 else
10940 if test "$cross_compiling" = yes; then :
10941 lt_cv_dlopen_self_static=cross
10942 else
10943 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10944 lt_status=$lt_dlunknown
10945 cat > conftest.$ac_ext <<_LT_EOF
10946 #line 10946 "configure"
10947 #include "confdefs.h"
10948
10949 #if HAVE_DLFCN_H
10950 #include <dlfcn.h>
10951 #endif
10952
10953 #include <stdio.h>
10954
10955 #ifdef RTLD_GLOBAL
10956 # define LT_DLGLOBAL RTLD_GLOBAL
10957 #else
10958 # ifdef DL_GLOBAL
10959 # define LT_DLGLOBAL DL_GLOBAL
10960 # else
10961 # define LT_DLGLOBAL 0
10962 # endif
10963 #endif
10964
10965 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10966 find out it does not work in some platform. */
10967 #ifndef LT_DLLAZY_OR_NOW
10968 # ifdef RTLD_LAZY
10969 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10970 # else
10971 # ifdef DL_LAZY
10972 # define LT_DLLAZY_OR_NOW DL_LAZY
10973 # else
10974 # ifdef RTLD_NOW
10975 # define LT_DLLAZY_OR_NOW RTLD_NOW
10976 # else
10977 # ifdef DL_NOW
10978 # define LT_DLLAZY_OR_NOW DL_NOW
10979 # else
10980 # define LT_DLLAZY_OR_NOW 0
10981 # endif
10982 # endif
10983 # endif
10984 # endif
10985 #endif
10986
10987 void fnord() { int i=42;}
10988 int main ()
10989 {
10990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10991 int status = $lt_dlunknown;
10992
10993 if (self)
10994 {
10995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10996 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10997 /* dlclose (self); */
10998 }
10999 else
11000 puts (dlerror ());
11001
11002 return status;
11003 }
11004 _LT_EOF
11005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11006 (eval $ac_link) 2>&5
11007 ac_status=$?
11008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11010 (./conftest; exit; ) >&5 2>/dev/null
11011 lt_status=$?
11012 case x$lt_status in
11013 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11014 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11015 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11016 esac
11017 else :
11018 # compilation failed
11019 lt_cv_dlopen_self_static=no
11020 fi
11021 fi
11022 rm -fr conftest*
11023
11024
11025 fi
11026 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11027 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11028 fi
11029
11030 CPPFLAGS="$save_CPPFLAGS"
11031 LDFLAGS="$save_LDFLAGS"
11032 LIBS="$save_LIBS"
11033 ;;
11034 esac
11035
11036 case $lt_cv_dlopen_self in
11037 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11038 *) enable_dlopen_self=unknown ;;
11039 esac
11040
11041 case $lt_cv_dlopen_self_static in
11042 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11043 *) enable_dlopen_self_static=unknown ;;
11044 esac
11045 fi
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063 striplib=
11064 old_striplib=
11065 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11066 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11067 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11068 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11069 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11070 { $as_echo "$as_me:$LINENO: result: yes" >&5
11071 $as_echo "yes" >&6; }
11072 else
11073 # FIXME - insert some real tests, host_os isn't really good enough
11074 case $host_os in
11075 darwin*)
11076 if test -n "$STRIP" ; then
11077 striplib="$STRIP -x"
11078 old_striplib="$STRIP -S"
11079 { $as_echo "$as_me:$LINENO: result: yes" >&5
11080 $as_echo "yes" >&6; }
11081 else
11082 { $as_echo "$as_me:$LINENO: result: no" >&5
11083 $as_echo "no" >&6; }
11084 fi
11085 ;;
11086 *)
11087 { $as_echo "$as_me:$LINENO: result: no" >&5
11088 $as_echo "no" >&6; }
11089 ;;
11090 esac
11091 fi
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104 # Report which library types will actually be built
11105 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11106 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11107 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11108 $as_echo "$can_build_shared" >&6; }
11109
11110 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11111 $as_echo_n "checking whether to build shared libraries... " >&6; }
11112 test "$can_build_shared" = "no" && enable_shared=no
11113
11114 # On AIX, shared libraries and static libraries use the same namespace, and
11115 # are all built from PIC.
11116 case $host_os in
11117 aix3*)
11118 test "$enable_shared" = yes && enable_static=no
11119 if test -n "$RANLIB"; then
11120 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11121 postinstall_cmds='$RANLIB $lib'
11122 fi
11123 ;;
11124
11125 aix[4-9]*)
11126 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11127 test "$enable_shared" = yes && enable_static=no
11128 fi
11129 ;;
11130 esac
11131 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11132 $as_echo "$enable_shared" >&6; }
11133
11134 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11135 $as_echo_n "checking whether to build static libraries... " >&6; }
11136 # Make sure either enable_shared or enable_static is yes.
11137 test "$enable_shared" = yes || enable_static=yes
11138 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11139 $as_echo "$enable_static" >&6; }
11140
11141
11142
11143
11144 fi
11145 ac_ext=c
11146 ac_cpp='$CPP $CPPFLAGS'
11147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11150
11151 CC="$lt_save_CC"
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165 ac_config_commands="$ac_config_commands libtool"
11166
11167
11168
11169
11170 # Only expand once:
11171
11172
11173
11174
11175 # dolt, a replacement for libtool
11176 # Josh Triplett <josh (at] freedesktop.org>
11177 # Extract the first word of "bash", so it can be a program name with args.
11178 set dummy bash; ac_word=$2
11179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11180 $as_echo_n "checking for $ac_word... " >&6; }
11181 if test "${ac_cv_path_DOLT_BASH+set}" = set; then
11182 $as_echo_n "(cached) " >&6
11183 else
11184 case $DOLT_BASH in
11185 [\\/]* | ?:[\\/]*)
11186 ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
11187 ;;
11188 *)
11189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190 for as_dir in $PATH
11191 do
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11196 ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
11197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11198 break 2
11199 fi
11200 done
11201 done
11202 IFS=$as_save_IFS
11203
11204 ;;
11205 esac
11206 fi
11207 DOLT_BASH=$ac_cv_path_DOLT_BASH
11208 if test -n "$DOLT_BASH"; then
11209 { $as_echo "$as_me:$LINENO: result: $DOLT_BASH" >&5
11210 $as_echo "$DOLT_BASH" >&6; }
11211 else
11212 { $as_echo "$as_me:$LINENO: result: no" >&5
11213 $as_echo "no" >&6; }
11214 fi
11215
11216
11217 { $as_echo "$as_me:$LINENO: checking if libtool sucks" >&5
11218 $as_echo_n "checking if libtool sucks... " >&6; }
11219 { $as_echo "$as_me:$LINENO: result: yup, it does" >&5
11220 $as_echo "yup, it does" >&6; }
11221 { $as_echo "$as_me:$LINENO: checking if dolt supports this host" >&5
11222 $as_echo_n "checking if dolt supports this host... " >&6; }
11223 dolt_supported=yes
11224 if test x$DOLT_BASH = x; then
11225 dolt_supported=no
11226 fi
11227 if test x$GCC != xyes; then
11228 dolt_supported=no
11229 fi
11230 case $host in
11231 i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*) ;;
11232 amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*) ;;
11233 *) dolt_supported=no ;;
11234 esac
11235 if test x$dolt_supported = xno ; then
11236 { $as_echo "$as_me:$LINENO: result: no, falling back to libtool" >&5
11237 $as_echo "no, falling back to libtool" >&6; }
11238 LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
11239 LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
11240 else
11241 { $as_echo "$as_me:$LINENO: result: yes, replacing libtool" >&5
11242 $as_echo "yes, replacing libtool" >&6; }
11243
11244 cat <<__DOLTCOMPILE__EOF__ >doltcompile
11245 #!$DOLT_BASH
11246 __DOLTCOMPILE__EOF__
11247 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11248 args=("$@")
11249 for ((arg=0; arg<${#args[@]}; arg++)) ; do
11250 if test x"${args[$arg]}" = x-o ; then
11251 objarg=$((arg+1))
11252 break
11253 fi
11254 done
11255 if test x$objarg = x ; then
11256 echo 'Error: no -o on compiler command line' 1>&2
11257 exit 1
11258 fi
11259 lo="${args[$objarg]}"
11260 obj="${lo%.lo}"
11261 if test x"$lo" = x"$obj" ; then
11262 echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
11263 exit 1
11264 fi
11265 objbase="${obj##*/}"
11266 __DOLTCOMPILE__EOF__
11267
11268 if test x$enable_shared = xyes; then
11269 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11270 libobjdir="${obj%$objbase}.libs"
11271 if test ! -d "$libobjdir" ; then
11272 mkdir_out="$(mkdir "$libobjdir" 2>&1)"
11273 mkdir_ret=$?
11274 if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
11275 echo "$mkdir_out" 1>&2
11276 exit $mkdir_ret
11277 fi
11278 fi
11279 pic_object="$libobjdir/$objbase.o"
11280 args[$objarg]="$pic_object"
11281 "${args[@]}" -fPIC -DPIC || exit $?
11282 __DOLTCOMPILE__EOF__
11283 fi
11284
11285 if test x$enable_static = xyes; then
11286 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11287 non_pic_object="$obj.o"
11288 args[$objarg]="$non_pic_object"
11289 __DOLTCOMPILE__EOF__
11290 if test x$enable_shared = xyes; then
11291 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11292 "${args[@]}" >/dev/null 2>&1 || exit $?
11293 __DOLTCOMPILE__EOF__
11294 else
11295 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11296 "${args[@]}" || exit $?
11297 __DOLTCOMPILE__EOF__
11298 fi
11299 fi
11300
11301 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11302 {
11303 echo "# $lo - a libtool object file"
11304 echo "# Generated by doltcompile, not libtool"
11305 __DOLTCOMPILE__EOF__
11306
11307 if test x$enable_shared = xyes; then
11308 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11309 echo "pic_object='$pic_object'"
11310 __DOLTCOMPILE__EOF__
11311 else
11312 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11313 echo pic_object=none
11314 __DOLTCOMPILE__EOF__
11315 fi
11316
11317 if test x$enable_static = xyes; then
11318 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11319 echo "non_pic_object='$non_pic_object'"
11320 __DOLTCOMPILE__EOF__
11321 else
11322 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11323 echo non_pic_object=none
11324 __DOLTCOMPILE__EOF__
11325 fi
11326
11327 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11328 } > "$lo"
11329 __DOLTCOMPILE__EOF__
11330
11331 chmod +x doltcompile
11332 LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
11333 LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
11334 fi
11335
11336
11337 # end dolt
11338
11339 ac_ext=c
11340 ac_cpp='$CPP $CPPFLAGS'
11341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11344 if test -n "$ac_tool_prefix"; then
11345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11346 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11348 $as_echo_n "checking for $ac_word... " >&6; }
11349 if test "${ac_cv_prog_CC+set}" = set; then
11350 $as_echo_n "(cached) " >&6
11351 else
11352 if test -n "$CC"; then
11353 ac_cv_prog_CC="$CC" # Let the user override the test.
11354 else
11355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356 for as_dir in $PATH
11357 do
11358 IFS=$as_save_IFS
11359 test -z "$as_dir" && as_dir=.
11360 for ac_exec_ext in '' $ac_executable_extensions; do
11361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11362 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11364 break 2
11365 fi
11366 done
11367 done
11368 IFS=$as_save_IFS
11369
11370 fi
11371 fi
11372 CC=$ac_cv_prog_CC
11373 if test -n "$CC"; then
11374 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11375 $as_echo "$CC" >&6; }
11376 else
11377 { $as_echo "$as_me:$LINENO: result: no" >&5
11378 $as_echo "no" >&6; }
11379 fi
11380
11381
11382 fi
11383 if test -z "$ac_cv_prog_CC"; then
11384 ac_ct_CC=$CC
11385 # Extract the first word of "gcc", so it can be a program name with args.
11386 set dummy gcc; ac_word=$2
11387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11388 $as_echo_n "checking for $ac_word... " >&6; }
11389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11390 $as_echo_n "(cached) " >&6
11391 else
11392 if test -n "$ac_ct_CC"; then
11393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11394 else
11395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396 for as_dir in $PATH
11397 do
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11402 ac_cv_prog_ac_ct_CC="gcc"
11403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 break 2
11405 fi
11406 done
11407 done
11408 IFS=$as_save_IFS
11409
11410 fi
11411 fi
11412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11413 if test -n "$ac_ct_CC"; then
11414 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11415 $as_echo "$ac_ct_CC" >&6; }
11416 else
11417 { $as_echo "$as_me:$LINENO: result: no" >&5
11418 $as_echo "no" >&6; }
11419 fi
11420
11421 if test "x$ac_ct_CC" = x; then
11422 CC=""
11423 else
11424 case $cross_compiling:$ac_tool_warned in
11425 yes:)
11426 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11428 ac_tool_warned=yes ;;
11429 esac
11430 CC=$ac_ct_CC
11431 fi
11432 else
11433 CC="$ac_cv_prog_CC"
11434 fi
11435
11436 if test -z "$CC"; then
11437 if test -n "$ac_tool_prefix"; then
11438 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11439 set dummy ${ac_tool_prefix}cc; ac_word=$2
11440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11441 $as_echo_n "checking for $ac_word... " >&6; }
11442 if test "${ac_cv_prog_CC+set}" = set; then
11443 $as_echo_n "(cached) " >&6
11444 else
11445 if test -n "$CC"; then
11446 ac_cv_prog_CC="$CC" # Let the user override the test.
11447 else
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11450 do
11451 IFS=$as_save_IFS
11452 test -z "$as_dir" && as_dir=.
11453 for ac_exec_ext in '' $ac_executable_extensions; do
11454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11455 ac_cv_prog_CC="${ac_tool_prefix}cc"
11456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11457 break 2
11458 fi
11459 done
11460 done
11461 IFS=$as_save_IFS
11462
11463 fi
11464 fi
11465 CC=$ac_cv_prog_CC
11466 if test -n "$CC"; then
11467 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11468 $as_echo "$CC" >&6; }
11469 else
11470 { $as_echo "$as_me:$LINENO: result: no" >&5
11471 $as_echo "no" >&6; }
11472 fi
11473
11474
11475 fi
11476 fi
11477 if test -z "$CC"; then
11478 # Extract the first word of "cc", so it can be a program name with args.
11479 set dummy cc; ac_word=$2
11480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if test "${ac_cv_prog_CC+set}" = set; then
11483 $as_echo_n "(cached) " >&6
11484 else
11485 if test -n "$CC"; then
11486 ac_cv_prog_CC="$CC" # Let the user override the test.
11487 else
11488 ac_prog_rejected=no
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492 IFS=$as_save_IFS
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11497 ac_prog_rejected=yes
11498 continue
11499 fi
11500 ac_cv_prog_CC="cc"
11501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11502 break 2
11503 fi
11504 done
11505 done
11506 IFS=$as_save_IFS
11507
11508 if test $ac_prog_rejected = yes; then
11509 # We found a bogon in the path, so make sure we never use it.
11510 set dummy $ac_cv_prog_CC
11511 shift
11512 if test $# != 0; then
11513 # We chose a different compiler from the bogus one.
11514 # However, it has the same basename, so the bogon will be chosen
11515 # first if we set CC to just the basename; use the full file name.
11516 shift
11517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11518 fi
11519 fi
11520 fi
11521 fi
11522 CC=$ac_cv_prog_CC
11523 if test -n "$CC"; then
11524 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11525 $as_echo "$CC" >&6; }
11526 else
11527 { $as_echo "$as_me:$LINENO: result: no" >&5
11528 $as_echo "no" >&6; }
11529 fi
11530
11531
11532 fi
11533 if test -z "$CC"; then
11534 if test -n "$ac_tool_prefix"; then
11535 for ac_prog in cl.exe
11536 do
11537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11540 $as_echo_n "checking for $ac_word... " >&6; }
11541 if test "${ac_cv_prog_CC+set}" = set; then
11542 $as_echo_n "(cached) " >&6
11543 else
11544 if test -n "$CC"; then
11545 ac_cv_prog_CC="$CC" # Let the user override the test.
11546 else
11547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548 for as_dir in $PATH
11549 do
11550 IFS=$as_save_IFS
11551 test -z "$as_dir" && as_dir=.
11552 for ac_exec_ext in '' $ac_executable_extensions; do
11553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11556 break 2
11557 fi
11558 done
11559 done
11560 IFS=$as_save_IFS
11561
11562 fi
11563 fi
11564 CC=$ac_cv_prog_CC
11565 if test -n "$CC"; then
11566 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11567 $as_echo "$CC" >&6; }
11568 else
11569 { $as_echo "$as_me:$LINENO: result: no" >&5
11570 $as_echo "no" >&6; }
11571 fi
11572
11573
11574 test -n "$CC" && break
11575 done
11576 fi
11577 if test -z "$CC"; then
11578 ac_ct_CC=$CC
11579 for ac_prog in cl.exe
11580 do
11581 # Extract the first word of "$ac_prog", so it can be a program name with args.
11582 set dummy $ac_prog; ac_word=$2
11583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11584 $as_echo_n "checking for $ac_word... " >&6; }
11585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11586 $as_echo_n "(cached) " >&6
11587 else
11588 if test -n "$ac_ct_CC"; then
11589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11590 else
11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11593 do
11594 IFS=$as_save_IFS
11595 test -z "$as_dir" && as_dir=.
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11598 ac_cv_prog_ac_ct_CC="$ac_prog"
11599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11600 break 2
11601 fi
11602 done
11603 done
11604 IFS=$as_save_IFS
11605
11606 fi
11607 fi
11608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11609 if test -n "$ac_ct_CC"; then
11610 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11611 $as_echo "$ac_ct_CC" >&6; }
11612 else
11613 { $as_echo "$as_me:$LINENO: result: no" >&5
11614 $as_echo "no" >&6; }
11615 fi
11616
11617
11618 test -n "$ac_ct_CC" && break
11619 done
11620
11621 if test "x$ac_ct_CC" = x; then
11622 CC=""
11623 else
11624 case $cross_compiling:$ac_tool_warned in
11625 yes:)
11626 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11628 ac_tool_warned=yes ;;
11629 esac
11630 CC=$ac_ct_CC
11631 fi
11632 fi
11633
11634 fi
11635
11636
11637 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11639 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11640 See \`config.log' for more details." >&5
11641 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11642 See \`config.log' for more details." >&2;}
11643 { (exit 1); exit 1; }; }; }
11644
11645 # Provide some information about the compiler.
11646 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11647 set X $ac_compile
11648 ac_compiler=$2
11649 { (ac_try="$ac_compiler --version >&5"
11650 case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11653 esac
11654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11655 $as_echo "$ac_try_echo") >&5
11656 (eval "$ac_compiler --version >&5") 2>&5
11657 ac_status=$?
11658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }
11660 { (ac_try="$ac_compiler -v >&5"
11661 case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11664 esac
11665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11666 $as_echo "$ac_try_echo") >&5
11667 (eval "$ac_compiler -v >&5") 2>&5
11668 ac_status=$?
11669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }
11671 { (ac_try="$ac_compiler -V >&5"
11672 case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11675 esac
11676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11677 $as_echo "$ac_try_echo") >&5
11678 (eval "$ac_compiler -V >&5") 2>&5
11679 ac_status=$?
11680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }
11682
11683 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11684 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11685 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11686 $as_echo_n "(cached) " >&6
11687 else
11688 cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h. */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694
11695 int
11696 main ()
11697 {
11698 #ifndef __GNUC__
11699 choke me
11700 #endif
11701
11702 ;
11703 return 0;
11704 }
11705 _ACEOF
11706 rm -f conftest.$ac_objext
11707 if { (ac_try="$ac_compile"
11708 case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11711 esac
11712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11713 $as_echo "$ac_try_echo") >&5
11714 (eval "$ac_compile") 2>conftest.er1
11715 ac_status=$?
11716 grep -v '^ *+' conftest.er1 >conftest.err
11717 rm -f conftest.er1
11718 cat conftest.err >&5
11719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } && {
11721 test -z "$ac_c_werror_flag" ||
11722 test ! -s conftest.err
11723 } && test -s conftest.$ac_objext; then
11724 ac_compiler_gnu=yes
11725 else
11726 $as_echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11728
11729 ac_compiler_gnu=no
11730 fi
11731
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11734
11735 fi
11736 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11737 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11738 if test $ac_compiler_gnu = yes; then
11739 GCC=yes
11740 else
11741 GCC=
11742 fi
11743 ac_test_CFLAGS=${CFLAGS+set}
11744 ac_save_CFLAGS=$CFLAGS
11745 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11746 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11747 if test "${ac_cv_prog_cc_g+set}" = set; then
11748 $as_echo_n "(cached) " >&6
11749 else
11750 ac_save_c_werror_flag=$ac_c_werror_flag
11751 ac_c_werror_flag=yes
11752 ac_cv_prog_cc_g=no
11753 CFLAGS="-g"
11754 cat >conftest.$ac_ext <<_ACEOF
11755 /* confdefs.h. */
11756 _ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760
11761 int
11762 main ()
11763 {
11764
11765 ;
11766 return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext
11770 if { (ac_try="$ac_compile"
11771 case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774 esac
11775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11776 $as_echo "$ac_try_echo") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest.$ac_objext; then
11787 ac_cv_prog_cc_g=yes
11788 else
11789 $as_echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11791
11792 CFLAGS=""
11793 cat >conftest.$ac_ext <<_ACEOF
11794 /* confdefs.h. */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11799
11800 int
11801 main ()
11802 {
11803
11804 ;
11805 return 0;
11806 }
11807 _ACEOF
11808 rm -f conftest.$ac_objext
11809 if { (ac_try="$ac_compile"
11810 case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813 esac
11814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11815 $as_echo "$ac_try_echo") >&5
11816 (eval "$ac_compile") 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && {
11823 test -z "$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11825 } && test -s conftest.$ac_objext; then
11826 :
11827 else
11828 $as_echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11830
11831 ac_c_werror_flag=$ac_save_c_werror_flag
11832 CFLAGS="-g"
11833 cat >conftest.$ac_ext <<_ACEOF
11834 /* confdefs.h. */
11835 _ACEOF
11836 cat confdefs.h >>conftest.$ac_ext
11837 cat >>conftest.$ac_ext <<_ACEOF
11838 /* end confdefs.h. */
11839
11840 int
11841 main ()
11842 {
11843
11844 ;
11845 return 0;
11846 }
11847 _ACEOF
11848 rm -f conftest.$ac_objext
11849 if { (ac_try="$ac_compile"
11850 case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853 esac
11854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11855 $as_echo "$ac_try_echo") >&5
11856 (eval "$ac_compile") 2>conftest.er1
11857 ac_status=$?
11858 grep -v '^ *+' conftest.er1 >conftest.err
11859 rm -f conftest.er1
11860 cat conftest.err >&5
11861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } && {
11863 test -z "$ac_c_werror_flag" ||
11864 test ! -s conftest.err
11865 } && test -s conftest.$ac_objext; then
11866 ac_cv_prog_cc_g=yes
11867 else
11868 $as_echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11870
11871
11872 fi
11873
11874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11875 fi
11876
11877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878 fi
11879
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 ac_c_werror_flag=$ac_save_c_werror_flag
11882 fi
11883 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11884 $as_echo "$ac_cv_prog_cc_g" >&6; }
11885 if test "$ac_test_CFLAGS" = set; then
11886 CFLAGS=$ac_save_CFLAGS
11887 elif test $ac_cv_prog_cc_g = yes; then
11888 if test "$GCC" = yes; then
11889 CFLAGS="-g -O2"
11890 else
11891 CFLAGS="-g"
11892 fi
11893 else
11894 if test "$GCC" = yes; then
11895 CFLAGS="-O2"
11896 else
11897 CFLAGS=
11898 fi
11899 fi
11900 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11901 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11902 if test "${ac_cv_prog_cc_c89+set}" = set; then
11903 $as_echo_n "(cached) " >&6
11904 else
11905 ac_cv_prog_cc_c89=no
11906 ac_save_CC=$CC
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h. */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 #include <stdarg.h>
11914 #include <stdio.h>
11915 #include <sys/types.h>
11916 #include <sys/stat.h>
11917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11918 struct buf { int x; };
11919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11920 static char *e (p, i)
11921 char **p;
11922 int i;
11923 {
11924 return p[i];
11925 }
11926 static char *f (char * (*g) (char **, int), char **p, ...)
11927 {
11928 char *s;
11929 va_list v;
11930 va_start (v,p);
11931 s = g (p, va_arg (v,int));
11932 va_end (v);
11933 return s;
11934 }
11935
11936 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11937 function prototypes and stuff, but not '\xHH' hex character constants.
11938 These don't provoke an error unfortunately, instead are silently treated
11939 as 'x'. The following induces an error, until -std is added to get
11940 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11941 array size at least. It's necessary to write '\x00'==0 to get something
11942 that's true only with -std. */
11943 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11944
11945 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11946 inside strings and character constants. */
11947 #define FOO(x) 'x'
11948 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11949
11950 int test (int i, double x);
11951 struct s1 {int (*f) (int a);};
11952 struct s2 {int (*f) (double a);};
11953 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11954 int argc;
11955 char **argv;
11956 int
11957 main ()
11958 {
11959 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11960 ;
11961 return 0;
11962 }
11963 _ACEOF
11964 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11965 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11966 do
11967 CC="$ac_save_CC $ac_arg"
11968 rm -f conftest.$ac_objext
11969 if { (ac_try="$ac_compile"
11970 case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973 esac
11974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11975 $as_echo "$ac_try_echo") >&5
11976 (eval "$ac_compile") 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } && {
11983 test -z "$ac_c_werror_flag" ||
11984 test ! -s conftest.err
11985 } && test -s conftest.$ac_objext; then
11986 ac_cv_prog_cc_c89=$ac_arg
11987 else
11988 $as_echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11990
11991
11992 fi
11993
11994 rm -f core conftest.err conftest.$ac_objext
11995 test "x$ac_cv_prog_cc_c89" != "xno" && break
11996 done
11997 rm -f conftest.$ac_ext
11998 CC=$ac_save_CC
11999
12000 fi
12001 # AC_CACHE_VAL
12002 case "x$ac_cv_prog_cc_c89" in
12003 x)
12004 { $as_echo "$as_me:$LINENO: result: none needed" >&5
12005 $as_echo "none needed" >&6; } ;;
12006 xno)
12007 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12008 $as_echo "unsupported" >&6; } ;;
12009 *)
12010 CC="$CC $ac_cv_prog_cc_c89"
12011 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12012 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12013 esac
12014
12015
12016 ac_ext=c
12017 ac_cpp='$CPP $CPPFLAGS'
12018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12021
12022 depcc="$CC" am_compiler_list=
12023
12024 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12025 $as_echo_n "checking dependency style of $depcc... " >&6; }
12026 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12027 $as_echo_n "(cached) " >&6
12028 else
12029 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12030 # We make a subdir and do the tests there. Otherwise we can end up
12031 # making bogus files that we don't know about and never remove. For
12032 # instance it was reported that on HP-UX the gcc test will end up
12033 # making a dummy file named `D' -- because `-MD' means `put the output
12034 # in D'.
12035 mkdir conftest.dir
12036 # Copy depcomp to subdir because otherwise we won't find it if we're
12037 # using a relative directory.
12038 cp "$am_depcomp" conftest.dir
12039 cd conftest.dir
12040 # We will build objects and dependencies in a subdirectory because
12041 # it helps to detect inapplicable dependency modes. For instance
12042 # both Tru64's cc and ICC support -MD to output dependencies as a
12043 # side effect of compilation, but ICC will put the dependencies in
12044 # the current directory while Tru64 will put them in the object
12045 # directory.
12046 mkdir sub
12047
12048 am_cv_CC_dependencies_compiler_type=none
12049 if test "$am_compiler_list" = ""; then
12050 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12051 fi
12052 for depmode in $am_compiler_list; do
12053 # Setup a source with many dependencies, because some compilers
12054 # like to wrap large dependency lists on column 80 (with \), and
12055 # we should not choose a depcomp mode which is confused by this.
12056 #
12057 # We need to recreate these files for each test, as the compiler may
12058 # overwrite some of them when testing with obscure command lines.
12059 # This happens at least with the AIX C compiler.
12060 : > sub/conftest.c
12061 for i in 1 2 3 4 5 6; do
12062 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12063 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12064 # Solaris 8's {/usr,}/bin/sh.
12065 touch sub/conftst$i.h
12066 done
12067 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12068
12069 case $depmode in
12070 nosideeffect)
12071 # after this tag, mechanisms are not by side-effect, so they'll
12072 # only be used when explicitly requested
12073 if test "x$enable_dependency_tracking" = xyes; then
12074 continue
12075 else
12076 break
12077 fi
12078 ;;
12079 none) break ;;
12080 esac
12081 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12082 # mode. It turns out that the SunPro C++ compiler does not properly
12083 # handle `-M -o', and we need to detect this.
12084 if depmode=$depmode \
12085 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12086 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12087 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12088 >/dev/null 2>conftest.err &&
12089 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12090 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12091 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12092 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12093 # icc doesn't choke on unknown options, it will just issue warnings
12094 # or remarks (even with -Werror). So we grep stderr for any message
12095 # that says an option was ignored or not supported.
12096 # When given -MP, icc 7.0 and 7.1 complain thusly:
12097 # icc: Command line warning: ignoring option '-M'; no argument required
12098 # The diagnosis changed in icc 8.0:
12099 # icc: Command line remark: option '-MP' not supported
12100 if (grep 'ignoring option' conftest.err ||
12101 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12102 am_cv_CC_dependencies_compiler_type=$depmode
12103 break
12104 fi
12105 fi
12106 done
12107
12108 cd ..
12109 rm -rf conftest.dir
12110 else
12111 am_cv_CC_dependencies_compiler_type=none
12112 fi
12113
12114 fi
12115 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12116 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12117 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12118
12119 if
12120 test "x$enable_dependency_tracking" != xno \
12121 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12122 am__fastdepCC_TRUE=
12123 am__fastdepCC_FALSE='#'
12124 else
12125 am__fastdepCC_TRUE='#'
12126 am__fastdepCC_FALSE=
12127 fi
12128
12129
12130 if test "x$CC" != xcc; then
12131 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12132 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12133 else
12134 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12135 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12136 fi
12137 set dummy $CC; ac_cc=`$as_echo "$2" |
12138 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12139 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
12140 $as_echo_n "(cached) " >&6
12141 else
12142 cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h. */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12148
12149 int
12150 main ()
12151 {
12152
12153 ;
12154 return 0;
12155 }
12156 _ACEOF
12157 # Make sure it works both with $CC and with simple cc.
12158 # We do the test twice because some compilers refuse to overwrite an
12159 # existing .o file with -o, though they will create one.
12160 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12161 rm -f conftest2.*
12162 if { (case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12165 esac
12166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12167 $as_echo "$ac_try_echo") >&5
12168 (eval "$ac_try") 2>&5
12169 ac_status=$?
12170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } &&
12172 test -f conftest2.$ac_objext && { (case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12175 esac
12176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12177 $as_echo "$ac_try_echo") >&5
12178 (eval "$ac_try") 2>&5
12179 ac_status=$?
12180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); };
12182 then
12183 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12184 if test "x$CC" != xcc; then
12185 # Test first that cc exists at all.
12186 if { ac_try='cc -c conftest.$ac_ext >&5'
12187 { (case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12190 esac
12191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12192 $as_echo "$ac_try_echo") >&5
12193 (eval "$ac_try") 2>&5
12194 ac_status=$?
12195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12198 rm -f conftest2.*
12199 if { (case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202 esac
12203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12204 $as_echo "$ac_try_echo") >&5
12205 (eval "$ac_try") 2>&5
12206 ac_status=$?
12207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 test -f conftest2.$ac_objext && { (case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212 esac
12213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12214 $as_echo "$ac_try_echo") >&5
12215 (eval "$ac_try") 2>&5
12216 ac_status=$?
12217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); };
12219 then
12220 # cc works too.
12221 :
12222 else
12223 # cc exists but doesn't like -o.
12224 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12225 fi
12226 fi
12227 fi
12228 else
12229 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12230 fi
12231 rm -f core conftest*
12232
12233 fi
12234 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12235 { $as_echo "$as_me:$LINENO: result: yes" >&5
12236 $as_echo "yes" >&6; }
12237 else
12238 { $as_echo "$as_me:$LINENO: result: no" >&5
12239 $as_echo "no" >&6; }
12240
12241 cat >>confdefs.h <<\_ACEOF
12242 #define NO_MINUS_C_MINUS_O 1
12243 _ACEOF
12244
12245 fi
12246
12247 # FIXME: we rely on the cache variable name because
12248 # there is no other way.
12249 set dummy $CC
12250 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12251 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12252 if test "$am_t" != yes; then
12253 # Losing compiler, so override with the script.
12254 # FIXME: It is wrong to rewrite CC.
12255 # But if we don't then we get into trouble of one sort or another.
12256 # A longer-term fix would be to have automake use am__CC in this case,
12257 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12258 CC="$am_aux_dir/compile $CC"
12259 fi
12260
12261
12262
12263 # Extract the first word of "intel-gen4asm", so it can be a program name with args.
12264 set dummy intel-gen4asm; ac_word=$2
12265 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12266 $as_echo_n "checking for $ac_word... " >&6; }
12267 if test "${ac_cv_prog_gen4asm+set}" = set; then
12268 $as_echo_n "(cached) " >&6
12269 else
12270 if test -n "$gen4asm"; then
12271 ac_cv_prog_gen4asm="$gen4asm" # Let the user override the test.
12272 else
12273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274 for as_dir in $PATH
12275 do
12276 IFS=$as_save_IFS
12277 test -z "$as_dir" && as_dir=.
12278 for ac_exec_ext in '' $ac_executable_extensions; do
12279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12280 ac_cv_prog_gen4asm="yes"
12281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12282 break 2
12283 fi
12284 done
12285 done
12286 IFS=$as_save_IFS
12287
12288 test -z "$ac_cv_prog_gen4asm" && ac_cv_prog_gen4asm="no"
12289 fi
12290 fi
12291 gen4asm=$ac_cv_prog_gen4asm
12292 if test -n "$gen4asm"; then
12293 { $as_echo "$as_me:$LINENO: result: $gen4asm" >&5
12294 $as_echo "$gen4asm" >&6; }
12295 else
12296 { $as_echo "$as_me:$LINENO: result: no" >&5
12297 $as_echo "no" >&6; }
12298 fi
12299
12300
12301 if test x$gen4asm = xyes; then
12302 HAVE_GEN4ASM_TRUE=
12303 HAVE_GEN4ASM_FALSE='#'
12304 else
12305 HAVE_GEN4ASM_TRUE='#'
12306 HAVE_GEN4ASM_FALSE=
12307 fi
12308
12309
12310
12311 for ac_header in sys/mman.h
12312 do
12313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12315 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12316 $as_echo_n "checking for $ac_header... " >&6; }
12317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12318 $as_echo_n "(cached) " >&6
12319 fi
12320 ac_res=`eval 'as_val=${'$as_ac_Header'}
12321 $as_echo "$as_val"'`
12322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12323 $as_echo "$ac_res" >&6; }
12324 else
12325 # Is the header compilable?
12326 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12327 $as_echo_n "checking $ac_header usability... " >&6; }
12328 cat >conftest.$ac_ext <<_ACEOF
12329 /* confdefs.h. */
12330 _ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12334 $ac_includes_default
12335 #include <$ac_header>
12336 _ACEOF
12337 rm -f conftest.$ac_objext
12338 if { (ac_try="$ac_compile"
12339 case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12342 esac
12343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12344 $as_echo "$ac_try_echo") >&5
12345 (eval "$ac_compile") 2>conftest.er1
12346 ac_status=$?
12347 grep -v '^ *+' conftest.er1 >conftest.err
12348 rm -f conftest.er1
12349 cat conftest.err >&5
12350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } && {
12352 test -z "$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12354 } && test -s conftest.$ac_objext; then
12355 ac_header_compiler=yes
12356 else
12357 $as_echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12359
12360 ac_header_compiler=no
12361 fi
12362
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12364 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12365 $as_echo "$ac_header_compiler" >&6; }
12366
12367 # Is the header present?
12368 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12369 $as_echo_n "checking $ac_header presence... " >&6; }
12370 cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h. */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376 #include <$ac_header>
12377 _ACEOF
12378 if { (ac_try="$ac_cpp conftest.$ac_ext"
12379 case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12382 esac
12383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12384 $as_echo "$ac_try_echo") >&5
12385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12386 ac_status=$?
12387 grep -v '^ *+' conftest.er1 >conftest.err
12388 rm -f conftest.er1
12389 cat conftest.err >&5
12390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } >/dev/null && {
12392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12393 test ! -s conftest.err
12394 }; then
12395 ac_header_preproc=yes
12396 else
12397 $as_echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12399
12400 ac_header_preproc=no
12401 fi
12402
12403 rm -f conftest.err conftest.$ac_ext
12404 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12405 $as_echo "$ac_header_preproc" >&6; }
12406
12407 # So? What about this header?
12408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12409 yes:no: )
12410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12411 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12413 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12414 ac_header_preproc=yes
12415 ;;
12416 no:yes:* )
12417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12418 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12420 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12422 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12424 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12426 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12428 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12429 ( cat <<\_ASBOX
12430 ## ---------------------------------------------------------------------- ##
12431 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
12432 ## ---------------------------------------------------------------------- ##
12433 _ASBOX
12434 ) | sed "s/^/$as_me: WARNING: /" >&2
12435 ;;
12436 esac
12437 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12438 $as_echo_n "checking for $ac_header... " >&6; }
12439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12440 $as_echo_n "(cached) " >&6
12441 else
12442 eval "$as_ac_Header=\$ac_header_preproc"
12443 fi
12444 ac_res=`eval 'as_val=${'$as_ac_Header'}
12445 $as_echo "$as_val"'`
12446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12447 $as_echo "$ac_res" >&6; }
12448
12449 fi
12450 as_val=`eval 'as_val=${'$as_ac_Header'}
12451 $as_echo "$as_val"'`
12452 if test "x$as_val" = x""yes; then
12453 cat >>confdefs.h <<_ACEOF
12454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12455 _ACEOF
12456
12457 fi
12458
12459 done
12460
12461
12462 for ac_func in mprotect
12463 do
12464 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12465 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12466 $as_echo_n "checking for $ac_func... " >&6; }
12467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12468 $as_echo_n "(cached) " >&6
12469 else
12470 cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h. */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12478 #define $ac_func innocuous_$ac_func
12479
12480 /* System header to define __stub macros and hopefully few prototypes,
12481 which can conflict with char $ac_func (); below.
12482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12483 <limits.h> exists even on freestanding compilers. */
12484
12485 #ifdef __STDC__
12486 # include <limits.h>
12487 #else
12488 # include <assert.h>
12489 #endif
12490
12491 #undef $ac_func
12492
12493 /* Override any GCC internal prototype to avoid an error.
12494 Use char because int might match the return type of a GCC
12495 builtin and then its argument prototype would still apply. */
12496 #ifdef __cplusplus
12497 extern "C"
12498 #endif
12499 char $ac_func ();
12500 /* The GNU C library defines this for functions which it implements
12501 to always fail with ENOSYS. Some functions are actually named
12502 something starting with __ and the normal name is an alias. */
12503 #if defined __stub_$ac_func || defined __stub___$ac_func
12504 choke me
12505 #endif
12506
12507 int
12508 main ()
12509 {
12510 return $ac_func ();
12511 ;
12512 return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (ac_try="$ac_link"
12517 case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12520 esac
12521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12522 $as_echo "$ac_try_echo") >&5
12523 (eval "$ac_link") 2>conftest.er1
12524 ac_status=$?
12525 grep -v '^ *+' conftest.er1 >conftest.err
12526 rm -f conftest.er1
12527 cat conftest.err >&5
12528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } && {
12530 test -z "$ac_c_werror_flag" ||
12531 test ! -s conftest.err
12532 } && test -s conftest$ac_exeext && {
12533 test "$cross_compiling" = yes ||
12534 $as_test_x conftest$ac_exeext
12535 }; then
12536 eval "$as_ac_var=yes"
12537 else
12538 $as_echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12540
12541 eval "$as_ac_var=no"
12542 fi
12543
12544 rm -rf conftest.dSYM
12545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12546 conftest$ac_exeext conftest.$ac_ext
12547 fi
12548 ac_res=`eval 'as_val=${'$as_ac_var'}
12549 $as_echo "$as_val"'`
12550 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12551 $as_echo "$ac_res" >&6; }
12552 as_val=`eval 'as_val=${'$as_ac_var'}
12553 $as_echo "$as_val"'`
12554 if test "x$as_val" = x""yes; then
12555 cat >>confdefs.h <<_ACEOF
12556 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12557 _ACEOF
12558
12559 fi
12560 done
12561
12562
12563
12564
12565
12566
12567 # Check whether --with-xorg-module-dir was given.
12568 if test "${with_xorg_module_dir+set}" = set; then
12569 withval=$with_xorg_module_dir; moduledir="$withval"
12570 else
12571 moduledir="$libdir/xorg/modules"
12572 fi
12573
12574
12575 # Check whether --enable-dri was given.
12576 if test "${enable_dri+set}" = set; then
12577 enableval=$enable_dri; DRI="$enableval"
12578 else
12579 DRI=auto
12580 fi
12581
12582
12583 # Check whether --enable-video-debug was given.
12584 if test "${enable_video_debug+set}" = set; then
12585 enableval=$enable_video_debug; VIDEO_DEBUG="$enableval"
12586 else
12587 VIDEO_DEBUG=no
12588 fi
12589
12590
12591
12592 # Check whether --with-xserver-source was given.
12593 if test "${with_xserver_source+set}" = set; then
12594 withval=$with_xserver_source; XSERVER_SOURCE="$withval"
12595 else
12596 XSERVER_SOURCE=""
12597 fi
12598
12599
12600 # Check whether --enable-xvmc was given.
12601 if test "${enable_xvmc+set}" = set; then
12602 enableval=$enable_xvmc; XVMC="$enableval"
12603 else
12604 XVMC=auto
12605 fi
12606
12607
12608 # Checks for extensions
12609
12610 SAVE_CFLAGS="$CFLAGS"
12611 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12612 cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h. */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618
12619 #include "xorg-server.h"
12620 #if !defined XINERAMA
12621 #error XINERAMA not defined
12622 #endif
12623
12624 int
12625 main ()
12626 {
12627
12628 ;
12629 return 0;
12630 }
12631 _ACEOF
12632 rm -f conftest.$ac_objext
12633 if { (ac_try="$ac_compile"
12634 case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12637 esac
12638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12639 $as_echo "$ac_try_echo") >&5
12640 (eval "$ac_compile") 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } && {
12647 test -z "$ac_c_werror_flag" ||
12648 test ! -s conftest.err
12649 } && test -s conftest.$ac_objext; then
12650 _EXT_CHECK=yes
12651 else
12652 $as_echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655 _EXT_CHECK=no
12656 fi
12657
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659 CFLAGS="$SAVE_CFLAGS"
12660 { $as_echo "$as_me:$LINENO: checking if XINERAMA is defined" >&5
12661 $as_echo_n "checking if XINERAMA is defined... " >&6; }
12662 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12663 $as_echo "$_EXT_CHECK" >&6; }
12664 if test "$_EXT_CHECK" != no; then
12665 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
12666 fi
12667
12668
12669 SAVE_CFLAGS="$CFLAGS"
12670 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12671 cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h. */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677
12678 #include "xorg-server.h"
12679 #if !defined RANDR
12680 #error RANDR not defined
12681 #endif
12682
12683 int
12684 main ()
12685 {
12686
12687 ;
12688 return 0;
12689 }
12690 _ACEOF
12691 rm -f conftest.$ac_objext
12692 if { (ac_try="$ac_compile"
12693 case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12696 esac
12697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12698 $as_echo "$ac_try_echo") >&5
12699 (eval "$ac_compile") 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } && {
12706 test -z "$ac_c_werror_flag" ||
12707 test ! -s conftest.err
12708 } && test -s conftest.$ac_objext; then
12709 _EXT_CHECK=yes
12710 else
12711 $as_echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12713
12714 _EXT_CHECK=no
12715 fi
12716
12717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12718 CFLAGS="$SAVE_CFLAGS"
12719 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
12720 $as_echo_n "checking if RANDR is defined... " >&6; }
12721 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12722 $as_echo "$_EXT_CHECK" >&6; }
12723 if test "$_EXT_CHECK" != no; then
12724 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
12725 fi
12726
12727
12728 SAVE_CFLAGS="$CFLAGS"
12729 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12730 cat >conftest.$ac_ext <<_ACEOF
12731 /* confdefs.h. */
12732 _ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12736
12737 #include "xorg-server.h"
12738 #if !defined RENDER
12739 #error RENDER not defined
12740 #endif
12741
12742 int
12743 main ()
12744 {
12745
12746 ;
12747 return 0;
12748 }
12749 _ACEOF
12750 rm -f conftest.$ac_objext
12751 if { (ac_try="$ac_compile"
12752 case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755 esac
12756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12757 $as_echo "$ac_try_echo") >&5
12758 (eval "$ac_compile") 2>conftest.er1
12759 ac_status=$?
12760 grep -v '^ *+' conftest.er1 >conftest.err
12761 rm -f conftest.er1
12762 cat conftest.err >&5
12763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } && {
12765 test -z "$ac_c_werror_flag" ||
12766 test ! -s conftest.err
12767 } && test -s conftest.$ac_objext; then
12768 _EXT_CHECK=yes
12769 else
12770 $as_echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12772
12773 _EXT_CHECK=no
12774 fi
12775
12776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777 CFLAGS="$SAVE_CFLAGS"
12778 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12779 $as_echo_n "checking if RENDER is defined... " >&6; }
12780 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12781 $as_echo "$_EXT_CHECK" >&6; }
12782 if test "$_EXT_CHECK" != no; then
12783 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12784 fi
12785
12786
12787 SAVE_CFLAGS="$CFLAGS"
12788 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12789 cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h. */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12795
12796 #include "xorg-server.h"
12797 #if !defined XF86DRI
12798 #error XF86DRI not defined
12799 #endif
12800
12801 int
12802 main ()
12803 {
12804
12805 ;
12806 return 0;
12807 }
12808 _ACEOF
12809 rm -f conftest.$ac_objext
12810 if { (ac_try="$ac_compile"
12811 case "(($ac_try" in
12812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12813 *) ac_try_echo=$ac_try;;
12814 esac
12815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12816 $as_echo "$ac_try_echo") >&5
12817 (eval "$ac_compile") 2>conftest.er1
12818 ac_status=$?
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
12822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } && {
12824 test -z "$ac_c_werror_flag" ||
12825 test ! -s conftest.err
12826 } && test -s conftest.$ac_objext; then
12827 _EXT_CHECK=yes
12828 else
12829 $as_echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12831
12832 _EXT_CHECK=no
12833 fi
12834
12835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12836 CFLAGS="$SAVE_CFLAGS"
12837 { $as_echo "$as_me:$LINENO: checking if XF86DRI is defined" >&5
12838 $as_echo_n "checking if XF86DRI is defined... " >&6; }
12839 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12840 $as_echo "$_EXT_CHECK" >&6; }
12841 if test "$_EXT_CHECK" != no; then
12842 REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11"
12843 fi
12844
12845
12846 SAVE_CFLAGS="$CFLAGS"
12847 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h. */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854
12855 #include "xorg-server.h"
12856 #if !defined DPMSExtension
12857 #error DPMSExtension not defined
12858 #endif
12859
12860 int
12861 main ()
12862 {
12863
12864 ;
12865 return 0;
12866 }
12867 _ACEOF
12868 rm -f conftest.$ac_objext
12869 if { (ac_try="$ac_compile"
12870 case "(($ac_try" in
12871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12873 esac
12874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12875 $as_echo "$ac_try_echo") >&5
12876 (eval "$ac_compile") 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } && {
12883 test -z "$ac_c_werror_flag" ||
12884 test ! -s conftest.err
12885 } && test -s conftest.$ac_objext; then
12886 _EXT_CHECK=yes
12887 else
12888 $as_echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12890
12891 _EXT_CHECK=no
12892 fi
12893
12894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895 CFLAGS="$SAVE_CFLAGS"
12896 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12897 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
12898 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12899 $as_echo "$_EXT_CHECK" >&6; }
12900 if test "$_EXT_CHECK" != no; then
12901 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12902 fi
12903
12904
12905 # Checks for pkg-config packages
12906
12907
12908 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12909 if test -n "$ac_tool_prefix"; then
12910 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12911 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12913 $as_echo_n "checking for $ac_word... " >&6; }
12914 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12915 $as_echo_n "(cached) " >&6
12916 else
12917 case $PKG_CONFIG in
12918 [\\/]* | ?:[\\/]*)
12919 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12920 ;;
12921 *)
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12924 do
12925 IFS=$as_save_IFS
12926 test -z "$as_dir" && as_dir=.
12927 for ac_exec_ext in '' $ac_executable_extensions; do
12928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12929 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12930 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12931 break 2
12932 fi
12933 done
12934 done
12935 IFS=$as_save_IFS
12936
12937 ;;
12938 esac
12939 fi
12940 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12941 if test -n "$PKG_CONFIG"; then
12942 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12943 $as_echo "$PKG_CONFIG" >&6; }
12944 else
12945 { $as_echo "$as_me:$LINENO: result: no" >&5
12946 $as_echo "no" >&6; }
12947 fi
12948
12949
12950 fi
12951 if test -z "$ac_cv_path_PKG_CONFIG"; then
12952 ac_pt_PKG_CONFIG=$PKG_CONFIG
12953 # Extract the first word of "pkg-config", so it can be a program name with args.
12954 set dummy pkg-config; ac_word=$2
12955 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12956 $as_echo_n "checking for $ac_word... " >&6; }
12957 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12958 $as_echo_n "(cached) " >&6
12959 else
12960 case $ac_pt_PKG_CONFIG in
12961 [\\/]* | ?:[\\/]*)
12962 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12963 ;;
12964 *)
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $PATH
12967 do
12968 IFS=$as_save_IFS
12969 test -z "$as_dir" && as_dir=.
12970 for ac_exec_ext in '' $ac_executable_extensions; do
12971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12972 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12973 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12974 break 2
12975 fi
12976 done
12977 done
12978 IFS=$as_save_IFS
12979
12980 ;;
12981 esac
12982 fi
12983 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12984 if test -n "$ac_pt_PKG_CONFIG"; then
12985 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12986 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12987 else
12988 { $as_echo "$as_me:$LINENO: result: no" >&5
12989 $as_echo "no" >&6; }
12990 fi
12991
12992 if test "x$ac_pt_PKG_CONFIG" = x; then
12993 PKG_CONFIG=""
12994 else
12995 case $cross_compiling:$ac_tool_warned in
12996 yes:)
12997 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12999 ac_tool_warned=yes ;;
13000 esac
13001 PKG_CONFIG=$ac_pt_PKG_CONFIG
13002 fi
13003 else
13004 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13005 fi
13006
13007 fi
13008 if test -n "$PKG_CONFIG"; then
13009 _pkg_min_version=0.9.0
13010 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
13011 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13012 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13013 { $as_echo "$as_me:$LINENO: result: yes" >&5
13014 $as_echo "yes" >&6; }
13015 else
13016 { $as_echo "$as_me:$LINENO: result: no" >&5
13017 $as_echo "no" >&6; }
13018 PKG_CONFIG=""
13019 fi
13020
13021 fi
13022
13023 pkg_failed=no
13024 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
13025 $as_echo_n "checking for XORG... " >&6; }
13026
13027 if test -n "$PKG_CONFIG"; then
13028 if test -n "$XORG_CFLAGS"; then
13029 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
13030 else
13031 if test -n "$PKG_CONFIG" && \
13032 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\"") >&5
13033 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
13034 ac_status=$?
13035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; then
13037 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
13038 else
13039 pkg_failed=yes
13040 fi
13041 fi
13042 else
13043 pkg_failed=untried
13044 fi
13045 if test -n "$PKG_CONFIG"; then
13046 if test -n "$XORG_LIBS"; then
13047 pkg_cv_XORG_LIBS="$XORG_LIBS"
13048 else
13049 if test -n "$PKG_CONFIG" && \
13050 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\"") >&5
13051 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
13052 ac_status=$?
13053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; then
13055 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
13056 else
13057 pkg_failed=yes
13058 fi
13059 fi
13060 else
13061 pkg_failed=untried
13062 fi
13063
13064
13065
13066 if test $pkg_failed = yes; then
13067
13068 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13069 _pkg_short_errors_supported=yes
13070 else
13071 _pkg_short_errors_supported=no
13072 fi
13073 if test $_pkg_short_errors_supported = yes; then
13074 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES"`
13075 else
13076 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES"`
13077 fi
13078 # Put the nasty error message in config.log where it belongs
13079 echo "$XORG_PKG_ERRORS" >&5
13080
13081 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
13082
13083 $XORG_PKG_ERRORS
13084
13085 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13086 installed software in a non-standard prefix.
13087
13088 Alternatively, you may set the environment variables XORG_CFLAGS
13089 and XORG_LIBS to avoid the need to call pkg-config.
13090 See the pkg-config man page for more details.
13091 " >&5
13092 $as_echo "$as_me: error: Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
13093
13094 $XORG_PKG_ERRORS
13095
13096 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13097 installed software in a non-standard prefix.
13098
13099 Alternatively, you may set the environment variables XORG_CFLAGS
13100 and XORG_LIBS to avoid the need to call pkg-config.
13101 See the pkg-config man page for more details.
13102 " >&2;}
13103 { (exit 1); exit 1; }; }
13104 elif test $pkg_failed = untried; then
13105 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13107 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13108 is in your PATH or set the PKG_CONFIG environment variable to the full
13109 path to pkg-config.
13110
13111 Alternatively, you may set the environment variables XORG_CFLAGS
13112 and XORG_LIBS to avoid the need to call pkg-config.
13113 See the pkg-config man page for more details.
13114
13115 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13116 See \`config.log' for more details." >&5
13117 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13118 is in your PATH or set the PKG_CONFIG environment variable to the full
13119 path to pkg-config.
13120
13121 Alternatively, you may set the environment variables XORG_CFLAGS
13122 and XORG_LIBS to avoid the need to call pkg-config.
13123 See the pkg-config man page for more details.
13124
13125 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13126 See \`config.log' for more details." >&2;}
13127 { (exit 1); exit 1; }; }; }
13128 else
13129 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
13130 XORG_LIBS=$pkg_cv_XORG_LIBS
13131 { $as_echo "$as_me:$LINENO: result: yes" >&5
13132 $as_echo "yes" >&6; }
13133 :
13134 fi
13135
13136
13137 pkg_failed=no
13138 { $as_echo "$as_me:$LINENO: checking for SERVER_1_5" >&5
13139 $as_echo_n "checking for SERVER_1_5... " >&6; }
13140
13141 if test -n "$PKG_CONFIG"; then
13142 if test -n "$SERVER_1_5_CFLAGS"; then
13143 pkg_cv_SERVER_1_5_CFLAGS="$SERVER_1_5_CFLAGS"
13144 else
13145 if test -n "$PKG_CONFIG" && \
13146 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.5\"") >&5
13147 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.5") 2>&5
13148 ac_status=$?
13149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; then
13151 pkg_cv_SERVER_1_5_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.5" 2>/dev/null`
13152 else
13153 pkg_failed=yes
13154 fi
13155 fi
13156 else
13157 pkg_failed=untried
13158 fi
13159 if test -n "$PKG_CONFIG"; then
13160 if test -n "$SERVER_1_5_LIBS"; then
13161 pkg_cv_SERVER_1_5_LIBS="$SERVER_1_5_LIBS"
13162 else
13163 if test -n "$PKG_CONFIG" && \
13164 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.5\"") >&5
13165 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.5") 2>&5
13166 ac_status=$?
13167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; then
13169 pkg_cv_SERVER_1_5_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.5" 2>/dev/null`
13170 else
13171 pkg_failed=yes
13172 fi
13173 fi
13174 else
13175 pkg_failed=untried
13176 fi
13177
13178
13179
13180 if test $pkg_failed = yes; then
13181
13182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13183 _pkg_short_errors_supported=yes
13184 else
13185 _pkg_short_errors_supported=no
13186 fi
13187 if test $_pkg_short_errors_supported = yes; then
13188 SERVER_1_5_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.5"`
13189 else
13190 SERVER_1_5_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.5"`
13191 fi
13192 # Put the nasty error message in config.log where it belongs
13193 echo "$SERVER_1_5_PKG_ERRORS" >&5
13194
13195 { $as_echo "$as_me:$LINENO: result: no" >&5
13196 $as_echo "no" >&6; }
13197 SERVER_1_5=no
13198 elif test $pkg_failed = untried; then
13199 SERVER_1_5=no
13200 else
13201 SERVER_1_5_CFLAGS=$pkg_cv_SERVER_1_5_CFLAGS
13202 SERVER_1_5_LIBS=$pkg_cv_SERVER_1_5_LIBS
13203 { $as_echo "$as_me:$LINENO: result: yes" >&5
13204 $as_echo "yes" >&6; }
13205 SERVER_1_5=yes
13206 fi
13207
13208 if test "$SERVER_1_5" = yes; then
13209
13210 cat >>confdefs.h <<\_ACEOF
13211 #define SERVER_1_5 1
13212 _ACEOF
13213
13214 fi
13215
13216 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
13217 drm_cflags=$(pkg-config --cflags libdrm)
13218
13219 # Checks for libraries.
13220
13221 # Checks for header files.
13222 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13223 $as_echo_n "checking for ANSI C header files... " >&6; }
13224 if test "${ac_cv_header_stdc+set}" = set; then
13225 $as_echo_n "(cached) " >&6
13226 else
13227 cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h. */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13233 #include <stdlib.h>
13234 #include <stdarg.h>
13235 #include <string.h>
13236 #include <float.h>
13237
13238 int
13239 main ()
13240 {
13241
13242 ;
13243 return 0;
13244 }
13245 _ACEOF
13246 rm -f conftest.$ac_objext
13247 if { (ac_try="$ac_compile"
13248 case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13251 esac
13252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13253 $as_echo "$ac_try_echo") >&5
13254 (eval "$ac_compile") 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } && {
13261 test -z "$ac_c_werror_flag" ||
13262 test ! -s conftest.err
13263 } && test -s conftest.$ac_objext; then
13264 ac_cv_header_stdc=yes
13265 else
13266 $as_echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13268
13269 ac_cv_header_stdc=no
13270 fi
13271
13272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13273
13274 if test $ac_cv_header_stdc = yes; then
13275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h. */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 #include <string.h>
13283
13284 _ACEOF
13285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13286 $EGREP "memchr" >/dev/null 2>&1; then
13287 :
13288 else
13289 ac_cv_header_stdc=no
13290 fi
13291 rm -f conftest*
13292
13293 fi
13294
13295 if test $ac_cv_header_stdc = yes; then
13296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13297 cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h. */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13303 #include <stdlib.h>
13304
13305 _ACEOF
13306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13307 $EGREP "free" >/dev/null 2>&1; then
13308 :
13309 else
13310 ac_cv_header_stdc=no
13311 fi
13312 rm -f conftest*
13313
13314 fi
13315
13316 if test $ac_cv_header_stdc = yes; then
13317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13318 if test "$cross_compiling" = yes; then
13319 :
13320 else
13321 cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h. */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327 #include <ctype.h>
13328 #include <stdlib.h>
13329 #if ((' ' & 0x0FF) == 0x020)
13330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13332 #else
13333 # define ISLOWER(c) \
13334 (('a' <= (c) && (c) <= 'i') \
13335 || ('j' <= (c) && (c) <= 'r') \
13336 || ('s' <= (c) && (c) <= 'z'))
13337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13338 #endif
13339
13340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13341 int
13342 main ()
13343 {
13344 int i;
13345 for (i = 0; i < 256; i++)
13346 if (XOR (islower (i), ISLOWER (i))
13347 || toupper (i) != TOUPPER (i))
13348 return 2;
13349 return 0;
13350 }
13351 _ACEOF
13352 rm -f conftest$ac_exeext
13353 if { (ac_try="$ac_link"
13354 case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356 *) ac_try_echo=$ac_try;;
13357 esac
13358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13359 $as_echo "$ac_try_echo") >&5
13360 (eval "$ac_link") 2>&5
13361 ac_status=$?
13362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13364 { (case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13367 esac
13368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13369 $as_echo "$ac_try_echo") >&5
13370 (eval "$ac_try") 2>&5
13371 ac_status=$?
13372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 :
13375 else
13376 $as_echo "$as_me: program exited with status $ac_status" >&5
13377 $as_echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13379
13380 ( exit $ac_status )
13381 ac_cv_header_stdc=no
13382 fi
13383 rm -rf conftest.dSYM
13384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13385 fi
13386
13387
13388 fi
13389 fi
13390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13391 $as_echo "$ac_cv_header_stdc" >&6; }
13392 if test $ac_cv_header_stdc = yes; then
13393
13394 cat >>confdefs.h <<\_ACEOF
13395 #define STDC_HEADERS 1
13396 _ACEOF
13397
13398 fi
13399
13400
13401 save_CFLAGS="$CFLAGS"
13402 CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $drm_cflags"
13403 CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS $drm_cflags"
13404 { $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
13405 $as_echo_n "checking whether to include DRI support... " >&6; }
13406 if test x$DRI != xno; then
13407 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
13408 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
13409 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
13410 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13411 $as_echo_n "(cached) " >&6
13412 else
13413 test "$cross_compiling" = yes &&
13414 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13415 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13416 { (exit 1); exit 1; }; }
13417 if test -r "${sdkdir}/dri.h"; then
13418 eval "$as_ac_File=yes"
13419 else
13420 eval "$as_ac_File=no"
13421 fi
13422 fi
13423 ac_res=`eval 'as_val=${'$as_ac_File'}
13424 $as_echo "$as_val"'`
13425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13426 $as_echo "$ac_res" >&6; }
13427 as_val=`eval 'as_val=${'$as_ac_File'}
13428 $as_echo "$as_val"'`
13429 if test "x$as_val" = x""yes; then
13430 have_dri_h="yes"
13431 else
13432 have_dri_h="no"
13433 fi
13434
13435 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
13436 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
13437 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
13438 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13439 $as_echo_n "(cached) " >&6
13440 else
13441 test "$cross_compiling" = yes &&
13442 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13443 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13444 { (exit 1); exit 1; }; }
13445 if test -r "${sdkdir}/sarea.h"; then
13446 eval "$as_ac_File=yes"
13447 else
13448 eval "$as_ac_File=no"
13449 fi
13450 fi
13451 ac_res=`eval 'as_val=${'$as_ac_File'}
13452 $as_echo "$as_val"'`
13453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13454 $as_echo "$ac_res" >&6; }
13455 as_val=`eval 'as_val=${'$as_ac_File'}
13456 $as_echo "$as_val"'`
13457 if test "x$as_val" = x""yes; then
13458 have_sarea_h="yes"
13459 else
13460 have_sarea_h="no"
13461 fi
13462
13463 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
13464 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
13465 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
13466 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13467 $as_echo_n "(cached) " >&6
13468 else
13469 test "$cross_compiling" = yes &&
13470 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13471 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13472 { (exit 1); exit 1; }; }
13473 if test -r "${sdkdir}/dristruct.h"; then
13474 eval "$as_ac_File=yes"
13475 else
13476 eval "$as_ac_File=no"
13477 fi
13478 fi
13479 ac_res=`eval 'as_val=${'$as_ac_File'}
13480 $as_echo "$as_val"'`
13481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13482 $as_echo "$ac_res" >&6; }
13483 as_val=`eval 'as_val=${'$as_ac_File'}
13484 $as_echo "$as_val"'`
13485 if test "x$as_val" = x""yes; then
13486 have_dristruct_h="yes"
13487 else
13488 have_dristruct_h="no"
13489 fi
13490
13491 fi
13492 { $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
13493 $as_echo_n "checking whether to include DRI support... " >&6; }
13494 if test x$DRI = xauto; then
13495 if test "$have_dri_h" = yes -a \
13496 "$have_sarea_h" = yes -a \
13497 "$have_dristruct_h" = yes; then
13498 DRI="yes"
13499 else
13500 DRI="no"
13501 fi
13502 fi
13503 { $as_echo "$as_me:$LINENO: result: $DRI" >&5
13504 $as_echo "$DRI" >&6; }
13505
13506 { $as_echo "$as_me:$LINENO: checking for xf86Modes.h" >&5
13507 $as_echo_n "checking for xf86Modes.h... " >&6; }
13508 if test "${ac_cv_header_xf86Modes_h+set}" = set; then
13509 $as_echo_n "(cached) " >&6
13510 else
13511 cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h. */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 #include "xorg-server.h"
13518
13519 #include <xf86Modes.h>
13520 _ACEOF
13521 rm -f conftest.$ac_objext
13522 if { (ac_try="$ac_compile"
13523 case "(($ac_try" in
13524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525 *) ac_try_echo=$ac_try;;
13526 esac
13527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13528 $as_echo "$ac_try_echo") >&5
13529 (eval "$ac_compile") 2>conftest.er1
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } && {
13536 test -z "$ac_c_werror_flag" ||
13537 test ! -s conftest.err
13538 } && test -s conftest.$ac_objext; then
13539 ac_cv_header_xf86Modes_h=yes
13540 else
13541 $as_echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13543
13544 ac_cv_header_xf86Modes_h=no
13545 fi
13546
13547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548 fi
13549 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf86Modes_h" >&5
13550 $as_echo "$ac_cv_header_xf86Modes_h" >&6; }
13551 if test "x$ac_cv_header_xf86Modes_h" = x""yes; then
13552 XMODES=yes
13553 else
13554 XMODES=no
13555 fi
13556
13557
13558 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
13559 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
13560 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
13561 $as_echo_n "(cached) " >&6
13562 else
13563 cat >conftest.$ac_ext <<_ACEOF
13564 /* confdefs.h. */
13565 _ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13569 #include "xorg-server.h"
13570
13571 int
13572 main ()
13573 {
13574 #ifndef XSERVER_LIBPCIACCESS
13575 (void) XSERVER_LIBPCIACCESS;
13576 #endif
13577
13578 ;
13579 return 0;
13580 }
13581 _ACEOF
13582 rm -f conftest.$ac_objext
13583 if { (ac_try="$ac_compile"
13584 case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587 esac
13588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13589 $as_echo "$ac_try_echo") >&5
13590 (eval "$ac_compile") 2>conftest.er1
13591 ac_status=$?
13592 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1
13594 cat conftest.err >&5
13595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } && {
13597 test -z "$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13599 } && test -s conftest.$ac_objext; then
13600 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
13601 else
13602 $as_echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
13606 fi
13607
13608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13609 fi
13610 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
13611 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
13612 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
13613 XSERVER_LIBPCIACCESS=yes
13614 else
13615 XSERVER_LIBPCIACCESS=no
13616 fi
13617
13618 CFLAGS="$save_CFLAGS"
13619
13620 if test x$XSERVER_LIBPCIACCESS = xyes; then
13621
13622 pkg_failed=no
13623 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
13624 $as_echo_n "checking for PCIACCESS... " >&6; }
13625
13626 if test -n "$PKG_CONFIG"; then
13627 if test -n "$PCIACCESS_CFLAGS"; then
13628 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
13629 else
13630 if test -n "$PKG_CONFIG" && \
13631 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
13632 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
13633 ac_status=$?
13634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; then
13636 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
13637 else
13638 pkg_failed=yes
13639 fi
13640 fi
13641 else
13642 pkg_failed=untried
13643 fi
13644 if test -n "$PKG_CONFIG"; then
13645 if test -n "$PCIACCESS_LIBS"; then
13646 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
13647 else
13648 if test -n "$PKG_CONFIG" && \
13649 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
13650 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
13651 ac_status=$?
13652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; then
13654 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
13655 else
13656 pkg_failed=yes
13657 fi
13658 fi
13659 else
13660 pkg_failed=untried
13661 fi
13662
13663
13664
13665 if test $pkg_failed = yes; then
13666
13667 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13668 _pkg_short_errors_supported=yes
13669 else
13670 _pkg_short_errors_supported=no
13671 fi
13672 if test $_pkg_short_errors_supported = yes; then
13673 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.10"`
13674 else
13675 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.10"`
13676 fi
13677 # Put the nasty error message in config.log where it belongs
13678 echo "$PCIACCESS_PKG_ERRORS" >&5
13679
13680 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.10) were not met:
13681
13682 $PCIACCESS_PKG_ERRORS
13683
13684 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13685 installed software in a non-standard prefix.
13686
13687 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13688 and PCIACCESS_LIBS to avoid the need to call pkg-config.
13689 See the pkg-config man page for more details.
13690 " >&5
13691 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.10) were not met:
13692
13693 $PCIACCESS_PKG_ERRORS
13694
13695 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13696 installed software in a non-standard prefix.
13697
13698 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13699 and PCIACCESS_LIBS to avoid the need to call pkg-config.
13700 See the pkg-config man page for more details.
13701 " >&2;}
13702 { (exit 1); exit 1; }; }
13703 elif test $pkg_failed = untried; then
13704 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13706 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13707 is in your PATH or set the PKG_CONFIG environment variable to the full
13708 path to pkg-config.
13709
13710 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13711 and PCIACCESS_LIBS to avoid the need to call pkg-config.
13712 See the pkg-config man page for more details.
13713
13714 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13715 See \`config.log' for more details." >&5
13716 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13717 is in your PATH or set the PKG_CONFIG environment variable to the full
13718 path to pkg-config.
13719
13720 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13721 and PCIACCESS_LIBS to avoid the need to call pkg-config.
13722 See the pkg-config man page for more details.
13723
13724 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13725 See \`config.log' for more details." >&2;}
13726 { (exit 1); exit 1; }; }; }
13727 else
13728 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
13729 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
13730 { $as_echo "$as_me:$LINENO: result: yes" >&5
13731 $as_echo "yes" >&6; }
13732 :
13733 fi
13734 else
13735
13736 pkg_failed=no
13737 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
13738 $as_echo_n "checking for PCIACCESS... " >&6; }
13739
13740 if test -n "$PKG_CONFIG"; then
13741 if test -n "$PCIACCESS_CFLAGS"; then
13742 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
13743 else
13744 if test -n "$PKG_CONFIG" && \
13745 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
13746 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
13747 ac_status=$?
13748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; then
13750 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
13751 else
13752 pkg_failed=yes
13753 fi
13754 fi
13755 else
13756 pkg_failed=untried
13757 fi
13758 if test -n "$PKG_CONFIG"; then
13759 if test -n "$PCIACCESS_LIBS"; then
13760 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
13761 else
13762 if test -n "$PKG_CONFIG" && \
13763 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
13764 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
13765 ac_status=$?
13766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; then
13768 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
13769 else
13770 pkg_failed=yes
13771 fi
13772 fi
13773 else
13774 pkg_failed=untried
13775 fi
13776
13777
13778
13779 if test $pkg_failed = yes; then
13780
13781 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13782 _pkg_short_errors_supported=yes
13783 else
13784 _pkg_short_errors_supported=no
13785 fi
13786 if test $_pkg_short_errors_supported = yes; then
13787 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.10"`
13788 else
13789 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.10"`
13790 fi
13791 # Put the nasty error message in config.log where it belongs
13792 echo "$PCIACCESS_PKG_ERRORS" >&5
13793
13794 { $as_echo "$as_me:$LINENO: result: no" >&5
13795 $as_echo "no" >&6; }
13796 have_libpciaccess=no
13797 elif test $pkg_failed = untried; then
13798 have_libpciaccess=no
13799 else
13800 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
13801 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
13802 { $as_echo "$as_me:$LINENO: result: yes" >&5
13803 $as_echo "yes" >&6; }
13804 have_libpciaccess=yes
13805 fi
13806 fi
13807 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
13808 XSERVER_LIBPCIACCESS_TRUE=
13809 XSERVER_LIBPCIACCESS_FALSE='#'
13810 else
13811 XSERVER_LIBPCIACCESS_TRUE='#'
13812 XSERVER_LIBPCIACCESS_FALSE=
13813 fi
13814
13815 if test "x$XSERVER_LIBPCIACCESS" = xyes -o "x$have_libpciaccess" = xyes; then
13816 LIBPCIACCESS_TRUE=
13817 LIBPCIACCESS_FALSE='#'
13818 else
13819 LIBPCIACCESS_TRUE='#'
13820 LIBPCIACCESS_FALSE=
13821 fi
13822
13823 if test "x$XMODES" = xno; then
13824 XMODES_TRUE=
13825 XMODES_FALSE='#'
13826 else
13827 XMODES_TRUE='#'
13828 XMODES_FALSE=
13829 fi
13830
13831
13832 if test "x$XSERVER_SOURCE" = x; then
13833 if test -d ../../xserver; then
13834 XSERVER_SOURCE="`cd ../../xserver && pwd`"
13835 fi
13836 fi
13837
13838 if test -d "$XSERVER_SOURCE"; then
13839 case "$XSERVER_SOURCE" in
13840 /*)
13841 ;;
13842 *)
13843 XSERVER_SOURCE="`cd $XSERVER_SOURCE && pwd`"
13844 ;;
13845 esac
13846 if test -f $srcdir/src/modes/xf86Modes.h; then
13847 :
13848 else
13849 ln -sf $XSERVER_SOURCE/hw/xfree86/modes $srcdir/src/modes
13850 fi
13851
13852 if test -f $srcdir/src/parser/xf86Parser.h; then
13853 :
13854 else
13855 ln -sf $XSERVER_SOURCE/hw/xfree86/parser $srcdir/src/parser
13856 fi
13857 fi
13858
13859 if test "x$XMODES" = xyes; then
13860 { $as_echo "$as_me:$LINENO: X server has new mode code" >&5
13861 $as_echo "$as_me: X server has new mode code" >&6;}
13862
13863 cat >>confdefs.h <<\_ACEOF
13864 #define XMODES 1
13865 _ACEOF
13866
13867 XMODES_CFLAGS=
13868 else
13869 if test -f $srcdir/src/modes/xf86Modes.h -a -f $srcdir/src/parser/xf86Parser.h; then
13870 { $as_echo "$as_me:$LINENO: X server is missing new mode code, using local copy" >&5
13871 $as_echo "$as_me: X server is missing new mode code, using local copy" >&6;}
13872 else
13873 { { $as_echo "$as_me:$LINENO: error: Must have X server >= 1.3 source tree for mode setting code. Please specify --with-xserver-source" >&5
13874 $as_echo "$as_me: error: Must have X server >= 1.3 source tree for mode setting code. Please specify --with-xserver-source" >&2;}
13875 { (exit 1); exit 1; }; }
13876 fi
13877 XMODES_CFLAGS='-DXF86_MODES_RENAME -I$(top_srcdir)/src -I$(top_srcdir)/src/modes -I$(top_srcdir)/src/parser'
13878 fi
13879
13880
13881
13882 SAVE_CPPFLAGS="$CPPFLAGS"
13883 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
13884
13885 { $as_echo "$as_me:$LINENO: checking whether xf86RotateFreeShadow is declared" >&5
13886 $as_echo_n "checking whether xf86RotateFreeShadow is declared... " >&6; }
13887 if test "${ac_cv_have_decl_xf86RotateFreeShadow+set}" = set; then
13888 $as_echo_n "(cached) " >&6
13889 else
13890 cat >conftest.$ac_ext <<_ACEOF
13891 /* confdefs.h. */
13892 _ACEOF
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h. */
13896 #include <xorg-server.h>
13897 #include <windowstr.h>
13898 #include <xf86Crtc.h>
13899
13900 int
13901 main ()
13902 {
13903 #ifndef xf86RotateFreeShadow
13904 (void) xf86RotateFreeShadow;
13905 #endif
13906
13907 ;
13908 return 0;
13909 }
13910 _ACEOF
13911 rm -f conftest.$ac_objext
13912 if { (ac_try="$ac_compile"
13913 case "(($ac_try" in
13914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915 *) ac_try_echo=$ac_try;;
13916 esac
13917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13918 $as_echo "$ac_try_echo") >&5
13919 (eval "$ac_compile") 2>conftest.er1
13920 ac_status=$?
13921 grep -v '^ *+' conftest.er1 >conftest.err
13922 rm -f conftest.er1
13923 cat conftest.err >&5
13924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } && {
13926 test -z "$ac_c_werror_flag" ||
13927 test ! -s conftest.err
13928 } && test -s conftest.$ac_objext; then
13929 ac_cv_have_decl_xf86RotateFreeShadow=yes
13930 else
13931 $as_echo "$as_me: failed program was:" >&5
13932 sed 's/^/| /' conftest.$ac_ext >&5
13933
13934 ac_cv_have_decl_xf86RotateFreeShadow=no
13935 fi
13936
13937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13938 fi
13939 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86RotateFreeShadow" >&5
13940 $as_echo "$ac_cv_have_decl_xf86RotateFreeShadow" >&6; }
13941 if test "x$ac_cv_have_decl_xf86RotateFreeShadow" = x""yes; then
13942
13943 cat >>confdefs.h <<\_ACEOF
13944 #define HAVE_FREE_SHADOW 1
13945 _ACEOF
13946
13947 fi
13948
13949
13950 CPPFLAGS="$SAVE_CPPFLAGS"
13951
13952
13953 WARN_CFLAGS=""
13954
13955 if test "x$GCC" = "xyes"; then
13956 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
13957 -Wmissing-prototypes -Wmissing-declarations \
13958 -Wnested-externs -fno-strict-aliasing"
13959 fi
13960
13961
13962 pkg_failed=no
13963 { $as_echo "$as_me:$LINENO: checking for DRM" >&5
13964 $as_echo_n "checking for DRM... " >&6; }
13965
13966 if test -n "$PKG_CONFIG"; then
13967 if test -n "$DRM_CFLAGS"; then
13968 pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
13969 else
13970 if test -n "$PKG_CONFIG" && \
13971 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.6\"") >&5
13972 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.6") 2>&5
13973 ac_status=$?
13974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; then
13976 pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.6" 2>/dev/null`
13977 else
13978 pkg_failed=yes
13979 fi
13980 fi
13981 else
13982 pkg_failed=untried
13983 fi
13984 if test -n "$PKG_CONFIG"; then
13985 if test -n "$DRM_LIBS"; then
13986 pkg_cv_DRM_LIBS="$DRM_LIBS"
13987 else
13988 if test -n "$PKG_CONFIG" && \
13989 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.6\"") >&5
13990 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.6") 2>&5
13991 ac_status=$?
13992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; then
13994 pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.6" 2>/dev/null`
13995 else
13996 pkg_failed=yes
13997 fi
13998 fi
13999 else
14000 pkg_failed=untried
14001 fi
14002
14003
14004
14005 if test $pkg_failed = yes; then
14006
14007 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14008 _pkg_short_errors_supported=yes
14009 else
14010 _pkg_short_errors_supported=no
14011 fi
14012 if test $_pkg_short_errors_supported = yes; then
14013 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= 2.4.6"`
14014 else
14015 DRM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= 2.4.6"`
14016 fi
14017 # Put the nasty error message in config.log where it belongs
14018 echo "$DRM_PKG_ERRORS" >&5
14019
14020 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.4.6) were not met:
14021
14022 $DRM_PKG_ERRORS
14023
14024 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14025 installed software in a non-standard prefix.
14026
14027 Alternatively, you may set the environment variables DRM_CFLAGS
14028 and DRM_LIBS to avoid the need to call pkg-config.
14029 See the pkg-config man page for more details.
14030 " >&5
14031 $as_echo "$as_me: error: Package requirements (libdrm >= 2.4.6) were not met:
14032
14033 $DRM_PKG_ERRORS
14034
14035 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14036 installed software in a non-standard prefix.
14037
14038 Alternatively, you may set the environment variables DRM_CFLAGS
14039 and DRM_LIBS to avoid the need to call pkg-config.
14040 See the pkg-config man page for more details.
14041 " >&2;}
14042 { (exit 1); exit 1; }; }
14043 elif test $pkg_failed = untried; then
14044 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14046 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14047 is in your PATH or set the PKG_CONFIG environment variable to the full
14048 path to pkg-config.
14049
14050 Alternatively, you may set the environment variables DRM_CFLAGS
14051 and DRM_LIBS to avoid the need to call pkg-config.
14052 See the pkg-config man page for more details.
14053
14054 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14055 See \`config.log' for more details." >&5
14056 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14057 is in your PATH or set the PKG_CONFIG environment variable to the full
14058 path to pkg-config.
14059
14060 Alternatively, you may set the environment variables DRM_CFLAGS
14061 and DRM_LIBS to avoid the need to call pkg-config.
14062 See the pkg-config man page for more details.
14063
14064 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14065 See \`config.log' for more details." >&2;}
14066 { (exit 1); exit 1; }; }; }
14067 else
14068 DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
14069 DRM_LIBS=$pkg_cv_DRM_LIBS
14070 { $as_echo "$as_me:$LINENO: result: yes" >&5
14071 $as_echo "yes" >&6; }
14072 :
14073 fi
14074 if test x$DRI = xyes; then
14075 DRI_TRUE=
14076 DRI_FALSE='#'
14077 else
14078 DRI_TRUE='#'
14079 DRI_FALSE=
14080 fi
14081
14082 if test "$DRI" = yes; then
14083
14084 pkg_failed=no
14085 { $as_echo "$as_me:$LINENO: checking for DRI" >&5
14086 $as_echo_n "checking for DRI... " >&6; }
14087
14088 if test -n "$PKG_CONFIG"; then
14089 if test -n "$DRI_CFLAGS"; then
14090 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
14091 else
14092 if test -n "$PKG_CONFIG" && \
14093 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86driproto glproto\"") >&5
14094 ($PKG_CONFIG --exists --print-errors "xf86driproto glproto") 2>&5
14095 ac_status=$?
14096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; then
14098 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto glproto" 2>/dev/null`
14099 else
14100 pkg_failed=yes
14101 fi
14102 fi
14103 else
14104 pkg_failed=untried
14105 fi
14106 if test -n "$PKG_CONFIG"; then
14107 if test -n "$DRI_LIBS"; then
14108 pkg_cv_DRI_LIBS="$DRI_LIBS"
14109 else
14110 if test -n "$PKG_CONFIG" && \
14111 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86driproto glproto\"") >&5
14112 ($PKG_CONFIG --exists --print-errors "xf86driproto glproto") 2>&5
14113 ac_status=$?
14114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; then
14116 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "xf86driproto glproto" 2>/dev/null`
14117 else
14118 pkg_failed=yes
14119 fi
14120 fi
14121 else
14122 pkg_failed=untried
14123 fi
14124
14125
14126
14127 if test $pkg_failed = yes; then
14128
14129 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14130 _pkg_short_errors_supported=yes
14131 else
14132 _pkg_short_errors_supported=no
14133 fi
14134 if test $_pkg_short_errors_supported = yes; then
14135 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xf86driproto glproto"`
14136 else
14137 DRI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xf86driproto glproto"`
14138 fi
14139 # Put the nasty error message in config.log where it belongs
14140 echo "$DRI_PKG_ERRORS" >&5
14141
14142 { { $as_echo "$as_me:$LINENO: error: Package requirements (xf86driproto glproto) were not met:
14143
14144 $DRI_PKG_ERRORS
14145
14146 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14147 installed software in a non-standard prefix.
14148
14149 Alternatively, you may set the environment variables DRI_CFLAGS
14150 and DRI_LIBS to avoid the need to call pkg-config.
14151 See the pkg-config man page for more details.
14152 " >&5
14153 $as_echo "$as_me: error: Package requirements (xf86driproto glproto) were not met:
14154
14155 $DRI_PKG_ERRORS
14156
14157 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14158 installed software in a non-standard prefix.
14159
14160 Alternatively, you may set the environment variables DRI_CFLAGS
14161 and DRI_LIBS to avoid the need to call pkg-config.
14162 See the pkg-config man page for more details.
14163 " >&2;}
14164 { (exit 1); exit 1; }; }
14165 elif test $pkg_failed = untried; then
14166 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14168 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14169 is in your PATH or set the PKG_CONFIG environment variable to the full
14170 path to pkg-config.
14171
14172 Alternatively, you may set the environment variables DRI_CFLAGS
14173 and DRI_LIBS to avoid the need to call pkg-config.
14174 See the pkg-config man page for more details.
14175
14176 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14177 See \`config.log' for more details." >&5
14178 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14179 is in your PATH or set the PKG_CONFIG environment variable to the full
14180 path to pkg-config.
14181
14182 Alternatively, you may set the environment variables DRI_CFLAGS
14183 and DRI_LIBS to avoid the need to call pkg-config.
14184 See the pkg-config man page for more details.
14185
14186 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14187 See \`config.log' for more details." >&2;}
14188 { (exit 1); exit 1; }; }; }
14189 else
14190 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
14191 DRI_LIBS=$pkg_cv_DRI_LIBS
14192 { $as_echo "$as_me:$LINENO: result: yes" >&5
14193 $as_echo "yes" >&6; }
14194 :
14195 fi
14196
14197 cat >>confdefs.h <<\_ACEOF
14198 #define XF86DRI 1
14199 _ACEOF
14200
14201
14202 cat >>confdefs.h <<\_ACEOF
14203 #define XF86DRI_DEVEL 1
14204 _ACEOF
14205
14206 fi
14207
14208
14209 pkg_failed=no
14210 { $as_echo "$as_me:$LINENO: checking for DRM_MODE" >&5
14211 $as_echo_n "checking for DRM_MODE... " >&6; }
14212
14213 if test -n "$PKG_CONFIG"; then
14214 if test -n "$DRM_MODE_CFLAGS"; then
14215 pkg_cv_DRM_MODE_CFLAGS="$DRM_MODE_CFLAGS"
14216 else
14217 if test -n "$PKG_CONFIG" && \
14218 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.5\"") >&5
14219 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.5") 2>&5
14220 ac_status=$?
14221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; then
14223 pkg_cv_DRM_MODE_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.5" 2>/dev/null`
14224 else
14225 pkg_failed=yes
14226 fi
14227 fi
14228 else
14229 pkg_failed=untried
14230 fi
14231 if test -n "$PKG_CONFIG"; then
14232 if test -n "$DRM_MODE_LIBS"; then
14233 pkg_cv_DRM_MODE_LIBS="$DRM_MODE_LIBS"
14234 else
14235 if test -n "$PKG_CONFIG" && \
14236 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.5\"") >&5
14237 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.5") 2>&5
14238 ac_status=$?
14239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; then
14241 pkg_cv_DRM_MODE_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.5" 2>/dev/null`
14242 else
14243 pkg_failed=yes
14244 fi
14245 fi
14246 else
14247 pkg_failed=untried
14248 fi
14249
14250
14251
14252 if test $pkg_failed = yes; then
14253
14254 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14255 _pkg_short_errors_supported=yes
14256 else
14257 _pkg_short_errors_supported=no
14258 fi
14259 if test $_pkg_short_errors_supported = yes; then
14260 DRM_MODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.5"`
14261 else
14262 DRM_MODE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.5"`
14263 fi
14264 # Put the nasty error message in config.log where it belongs
14265 echo "$DRM_MODE_PKG_ERRORS" >&5
14266
14267 { $as_echo "$as_me:$LINENO: result: no" >&5
14268 $as_echo "no" >&6; }
14269 DRM_MODE=no
14270 elif test $pkg_failed = untried; then
14271 DRM_MODE=no
14272 else
14273 DRM_MODE_CFLAGS=$pkg_cv_DRM_MODE_CFLAGS
14274 DRM_MODE_LIBS=$pkg_cv_DRM_MODE_LIBS
14275 { $as_echo "$as_me:$LINENO: result: yes" >&5
14276 $as_echo "yes" >&6; }
14277 DRM_MODE=yes
14278 fi
14279 if test "x$DRM_MODE" = xyes; then
14280
14281 cat >>confdefs.h <<\_ACEOF
14282 #define XF86DRM_MODE 1
14283 _ACEOF
14284
14285 fi
14286
14287 if test x$VIDEO_DEBUG = xyes; then
14288 VIDEO_DEBUG_TRUE=
14289 VIDEO_DEBUG_FALSE='#'
14290 else
14291 VIDEO_DEBUG_TRUE='#'
14292 VIDEO_DEBUG_FALSE=
14293 fi
14294
14295 if test "$VIDEO_DEBUG" = yes; then
14296
14297 cat >>confdefs.h <<\_ACEOF
14298 #define VIDEO_DEBUG 1
14299 _ACEOF
14300
14301 fi
14302
14303 if test "$XVMC" = auto; then
14304 XVMC="$DRI"
14305 fi
14306 if test "$XVMC" = yes && test "$DRI" = no; then
14307 { { $as_echo "$as_me:$LINENO: error: XvMC can't be enabled without DRI" >&5
14308 $as_echo "$as_me: error: XvMC can't be enabled without DRI" >&2;}
14309 { (exit 1); exit 1; }; }
14310 fi
14311 if test "$XVMC" = yes; then
14312
14313 pkg_failed=no
14314 { $as_echo "$as_me:$LINENO: checking for XVMCLIB" >&5
14315 $as_echo_n "checking for XVMCLIB... " >&6; }
14316
14317 if test -n "$PKG_CONFIG"; then
14318 if test -n "$XVMCLIB_CFLAGS"; then
14319 pkg_cv_XVMCLIB_CFLAGS="$XVMCLIB_CFLAGS"
14320 else
14321 if test -n "$PKG_CONFIG" && \
14322 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xvmc\"") >&5
14323 ($PKG_CONFIG --exists --print-errors "xvmc") 2>&5
14324 ac_status=$?
14325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; then
14327 pkg_cv_XVMCLIB_CFLAGS=`$PKG_CONFIG --cflags "xvmc" 2>/dev/null`
14328 else
14329 pkg_failed=yes
14330 fi
14331 fi
14332 else
14333 pkg_failed=untried
14334 fi
14335 if test -n "$PKG_CONFIG"; then
14336 if test -n "$XVMCLIB_LIBS"; then
14337 pkg_cv_XVMCLIB_LIBS="$XVMCLIB_LIBS"
14338 else
14339 if test -n "$PKG_CONFIG" && \
14340 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xvmc\"") >&5
14341 ($PKG_CONFIG --exists --print-errors "xvmc") 2>&5
14342 ac_status=$?
14343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; then
14345 pkg_cv_XVMCLIB_LIBS=`$PKG_CONFIG --libs "xvmc" 2>/dev/null`
14346 else
14347 pkg_failed=yes
14348 fi
14349 fi
14350 else
14351 pkg_failed=untried
14352 fi
14353
14354
14355
14356 if test $pkg_failed = yes; then
14357
14358 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14359 _pkg_short_errors_supported=yes
14360 else
14361 _pkg_short_errors_supported=no
14362 fi
14363 if test $_pkg_short_errors_supported = yes; then
14364 XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xvmc"`
14365 else
14366 XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xvmc"`
14367 fi
14368 # Put the nasty error message in config.log where it belongs
14369 echo "$XVMCLIB_PKG_ERRORS" >&5
14370
14371 { $as_echo "$as_me:$LINENO: result: no" >&5
14372 $as_echo "no" >&6; }
14373 XVMC=no
14374 elif test $pkg_failed = untried; then
14375 XVMC=no
14376 else
14377 XVMCLIB_CFLAGS=$pkg_cv_XVMCLIB_CFLAGS
14378 XVMCLIB_LIBS=$pkg_cv_XVMCLIB_LIBS
14379 { $as_echo "$as_me:$LINENO: result: yes" >&5
14380 $as_echo "yes" >&6; }
14381 XVMC=yes
14382 fi
14383
14384 pkg_failed=no
14385 { $as_echo "$as_me:$LINENO: checking for XEXT" >&5
14386 $as_echo_n "checking for XEXT... " >&6; }
14387
14388 if test -n "$PKG_CONFIG"; then
14389 if test -n "$XEXT_CFLAGS"; then
14390 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
14391 else
14392 if test -n "$PKG_CONFIG" && \
14393 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext\"") >&5
14394 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
14395 ac_status=$?
14396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; then
14398 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
14399 else
14400 pkg_failed=yes
14401 fi
14402 fi
14403 else
14404 pkg_failed=untried
14405 fi
14406 if test -n "$PKG_CONFIG"; then
14407 if test -n "$XEXT_LIBS"; then
14408 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
14409 else
14410 if test -n "$PKG_CONFIG" && \
14411 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext\"") >&5
14412 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
14413 ac_status=$?
14414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; then
14416 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
14417 else
14418 pkg_failed=yes
14419 fi
14420 fi
14421 else
14422 pkg_failed=untried
14423 fi
14424
14425
14426
14427 if test $pkg_failed = yes; then
14428
14429 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14430 _pkg_short_errors_supported=yes
14431 else
14432 _pkg_short_errors_supported=no
14433 fi
14434 if test $_pkg_short_errors_supported = yes; then
14435 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xext"`
14436 else
14437 XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext"`
14438 fi
14439 # Put the nasty error message in config.log where it belongs
14440 echo "$XEXT_PKG_ERRORS" >&5
14441
14442 { { $as_echo "$as_me:$LINENO: error: Package requirements (xext) were not met:
14443
14444 $XEXT_PKG_ERRORS
14445
14446 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14447 installed software in a non-standard prefix.
14448
14449 Alternatively, you may set the environment variables XEXT_CFLAGS
14450 and XEXT_LIBS to avoid the need to call pkg-config.
14451 See the pkg-config man page for more details.
14452 " >&5
14453 $as_echo "$as_me: error: Package requirements (xext) were not met:
14454
14455 $XEXT_PKG_ERRORS
14456
14457 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14458 installed software in a non-standard prefix.
14459
14460 Alternatively, you may set the environment variables XEXT_CFLAGS
14461 and XEXT_LIBS to avoid the need to call pkg-config.
14462 See the pkg-config man page for more details.
14463 " >&2;}
14464 { (exit 1); exit 1; }; }
14465 elif test $pkg_failed = untried; then
14466 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14468 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14469 is in your PATH or set the PKG_CONFIG environment variable to the full
14470 path to pkg-config.
14471
14472 Alternatively, you may set the environment variables XEXT_CFLAGS
14473 and XEXT_LIBS to avoid the need to call pkg-config.
14474 See the pkg-config man page for more details.
14475
14476 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14477 See \`config.log' for more details." >&5
14478 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14479 is in your PATH or set the PKG_CONFIG environment variable to the full
14480 path to pkg-config.
14481
14482 Alternatively, you may set the environment variables XEXT_CFLAGS
14483 and XEXT_LIBS to avoid the need to call pkg-config.
14484 See the pkg-config man page for more details.
14485
14486 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14487 See \`config.log' for more details." >&2;}
14488 { (exit 1); exit 1; }; }; }
14489 else
14490 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
14491 XEXT_LIBS=$pkg_cv_XEXT_LIBS
14492 { $as_echo "$as_me:$LINENO: result: yes" >&5
14493 $as_echo "yes" >&6; }
14494 :
14495 fi
14496 fi
14497 { $as_echo "$as_me:$LINENO: checking whether to include XvMC support" >&5
14498 $as_echo_n "checking whether to include XvMC support... " >&6; }
14499 { $as_echo "$as_me:$LINENO: result: $XVMC" >&5
14500 $as_echo "$XVMC" >&6; }
14501 if test x$XVMC = xyes; then
14502 XVMC_TRUE=
14503 XVMC_FALSE='#'
14504 else
14505 XVMC_TRUE='#'
14506 XVMC_FALSE=
14507 fi
14508
14509 if test "$XVMC" = yes; then
14510
14511 cat >>confdefs.h <<\_ACEOF
14512 #define ENABLE_XVMC 1
14513 _ACEOF
14514
14515
14516 fi
14517
14518
14519
14520
14521
14522
14523 DRIVER_NAME=intel
14524
14525
14526
14527
14528 XORG_MACROS_needed_version=1.1.3
14529 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
14530 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
14531 { $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
14532 $as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
14533 XORG_MACROS_version=1.2.1
14534 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
14535 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
14536 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
14537 { { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_needed_major}.x" >&5
14538 $as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_needed_major}.x" >&2;}
14539 { (exit 1); exit 1; }; }
14540 fi
14541 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
14542 { { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}.0 or newer" >&5
14543 $as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}.0 or newer" >&2;}
14544 { (exit 1); exit 1; }; }
14545 fi
14546 { $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
14547 $as_echo "yes, $XORG_MACROS_version" >&6; }
14548
14549
14550
14551
14552 if test x$APP_MAN_SUFFIX = x ; then
14553 APP_MAN_SUFFIX=1
14554 fi
14555 if test x$APP_MAN_DIR = x ; then
14556 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
14557 fi
14558
14559 if test x$LIB_MAN_SUFFIX = x ; then
14560 LIB_MAN_SUFFIX=3
14561 fi
14562 if test x$LIB_MAN_DIR = x ; then
14563 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
14564 fi
14565
14566 if test x$FILE_MAN_SUFFIX = x ; then
14567 case $host_os in
14568 solaris*) FILE_MAN_SUFFIX=4 ;;
14569 *) FILE_MAN_SUFFIX=5 ;;
14570 esac
14571 fi
14572 if test x$FILE_MAN_DIR = x ; then
14573 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
14574 fi
14575
14576 if test x$MISC_MAN_SUFFIX = x ; then
14577 case $host_os in
14578 solaris*) MISC_MAN_SUFFIX=5 ;;
14579 *) MISC_MAN_SUFFIX=7 ;;
14580 esac
14581 fi
14582 if test x$MISC_MAN_DIR = x ; then
14583 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
14584 fi
14585
14586 if test x$DRIVER_MAN_SUFFIX = x ; then
14587 case $host_os in
14588 solaris*) DRIVER_MAN_SUFFIX=7 ;;
14589 *) DRIVER_MAN_SUFFIX=4 ;;
14590 esac
14591 fi
14592 if test x$DRIVER_MAN_DIR = x ; then
14593 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
14594 fi
14595
14596 if test x$ADMIN_MAN_SUFFIX = x ; then
14597 case $host_os in
14598 solaris*) ADMIN_MAN_SUFFIX=1m ;;
14599 *) ADMIN_MAN_SUFFIX=8 ;;
14600 esac
14601 fi
14602 if test x$ADMIN_MAN_DIR = x ; then
14603 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
14604 fi
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622 # Check whether --with-release-version was given.
14623 if test "${with_release_version+set}" = set; then
14624 withval=$with_release_version; RELEASE_VERSION="$withval"
14625 else
14626 RELEASE_VERSION=""
14627 fi
14628
14629 if test "x$RELEASE_VERSION" != "x"; then
14630 PACKAGE="$PACKAGE-$RELEASE_VERSION"
14631 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
14632 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
14633 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
14634 fi
14635
14636 cat >>confdefs.h <<_ACEOF
14637 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
14638 _ACEOF
14639
14640 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
14641 if test "x$PVM" = "x"; then
14642 PVM="0"
14643 fi
14644
14645 cat >>confdefs.h <<_ACEOF
14646 #define PACKAGE_VERSION_MINOR $PVM
14647 _ACEOF
14648
14649 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
14650 if test "x$PVP" = "x"; then
14651 PVP="0"
14652 fi
14653
14654 cat >>confdefs.h <<_ACEOF
14655 #define PACKAGE_VERSION_PATCHLEVEL $PVP
14656 _ACEOF
14657
14658
14659
14660
14661 if test x$XORG_SGML_PATH = x ; then
14662 XORG_SGML_PATH=$prefix/share/sgml
14663 fi
14664 HAVE_DEFS_ENT=
14665
14666 if test x"$cross_compiling" = x"yes" ; then
14667 HAVE_DEFS_ENT=no
14668 else
14669 as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
14670 { $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
14671 $as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; }
14672 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
14673 $as_echo_n "(cached) " >&6
14674 else
14675 test "$cross_compiling" = yes &&
14676 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
14677 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
14678 { (exit 1); exit 1; }; }
14679 if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
14680 eval "$as_ac_File=yes"
14681 else
14682 eval "$as_ac_File=no"
14683 fi
14684 fi
14685 ac_res=`eval 'as_val=${'$as_ac_File'}
14686 $as_echo "$as_val"'`
14687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14688 $as_echo "$ac_res" >&6; }
14689 as_val=`eval 'as_val=${'$as_ac_File'}
14690 $as_echo "$as_val"'`
14691 if test "x$as_val" = x""yes; then
14692 HAVE_DEFS_ENT=yes
14693 fi
14694
14695 fi
14696
14697 # Extract the first word of "linuxdoc", so it can be a program name with args.
14698 set dummy linuxdoc; ac_word=$2
14699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14700 $as_echo_n "checking for $ac_word... " >&6; }
14701 if test "${ac_cv_path_LINUXDOC+set}" = set; then
14702 $as_echo_n "(cached) " >&6
14703 else
14704 case $LINUXDOC in
14705 [\\/]* | ?:[\\/]*)
14706 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
14707 ;;
14708 *)
14709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14710 for as_dir in $PATH
14711 do
14712 IFS=$as_save_IFS
14713 test -z "$as_dir" && as_dir=.
14714 for ac_exec_ext in '' $ac_executable_extensions; do
14715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14716 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
14717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14718 break 2
14719 fi
14720 done
14721 done
14722 IFS=$as_save_IFS
14723
14724 ;;
14725 esac
14726 fi
14727 LINUXDOC=$ac_cv_path_LINUXDOC
14728 if test -n "$LINUXDOC"; then
14729 { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5
14730 $as_echo "$LINUXDOC" >&6; }
14731 else
14732 { $as_echo "$as_me:$LINENO: result: no" >&5
14733 $as_echo "no" >&6; }
14734 fi
14735
14736
14737 # Extract the first word of "ps2pdf", so it can be a program name with args.
14738 set dummy ps2pdf; ac_word=$2
14739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14740 $as_echo_n "checking for $ac_word... " >&6; }
14741 if test "${ac_cv_path_PS2PDF+set}" = set; then
14742 $as_echo_n "(cached) " >&6
14743 else
14744 case $PS2PDF in
14745 [\\/]* | ?:[\\/]*)
14746 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
14747 ;;
14748 *)
14749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14750 for as_dir in $PATH
14751 do
14752 IFS=$as_save_IFS
14753 test -z "$as_dir" && as_dir=.
14754 for ac_exec_ext in '' $ac_executable_extensions; do
14755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14756 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
14757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14758 break 2
14759 fi
14760 done
14761 done
14762 IFS=$as_save_IFS
14763
14764 ;;
14765 esac
14766 fi
14767 PS2PDF=$ac_cv_path_PS2PDF
14768 if test -n "$PS2PDF"; then
14769 { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
14770 $as_echo "$PS2PDF" >&6; }
14771 else
14772 { $as_echo "$as_me:$LINENO: result: no" >&5
14773 $as_echo "no" >&6; }
14774 fi
14775
14776
14777
14778 { $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5
14779 $as_echo_n "checking Whether to build documentation... " >&6; }
14780
14781 if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
14782 BUILDDOC=yes
14783 else
14784 BUILDDOC=no
14785 fi
14786
14787 if test x$BUILDDOC = xyes; then
14788 BUILD_LINUXDOC_TRUE=
14789 BUILD_LINUXDOC_FALSE='#'
14790 else
14791 BUILD_LINUXDOC_TRUE='#'
14792 BUILD_LINUXDOC_FALSE=
14793 fi
14794
14795
14796 { $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5
14797 $as_echo "$BUILDDOC" >&6; }
14798
14799 { $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
14800 $as_echo_n "checking Whether to build pdf documentation... " >&6; }
14801
14802 if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
14803 BUILDPDFDOC=yes
14804 else
14805 BUILDPDFDOC=no
14806 fi
14807
14808 if test x$BUILDPDFDOC = xyes; then
14809 BUILD_PDFDOC_TRUE=
14810 BUILD_PDFDOC_FALSE='#'
14811 else
14812 BUILD_PDFDOC_TRUE='#'
14813 BUILD_PDFDOC_FALSE=
14814 fi
14815
14816
14817 { $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
14818 $as_echo "$BUILDPDFDOC" >&6; }
14819
14820 MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
14821 MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
14822 MAKE_PDF="$PS2PDF"
14823 MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
14824
14825
14826
14827
14828
14829
14830
14831 ac_config_files="$ac_config_files Makefile uxa/Makefile src/Makefile src/xvmc/Makefile src/bios_reader/Makefile src/ch7017/Makefile src/ch7xxx/Makefile src/ivch/Makefile src/reg_dumper/Makefile src/sil164/Makefile src/tfp410/Makefile man/Makefile"
14832
14833 cat >confcache <<\_ACEOF
14834 # This file is a shell script that caches the results of configure
14835 # tests run on this system so they can be shared between configure
14836 # scripts and configure runs, see configure's option --config-cache.
14837 # It is not useful on other systems. If it contains results you don't
14838 # want to keep, you may remove or edit it.
14839 #
14840 # config.status only pays attention to the cache file if you give it
14841 # the --recheck option to rerun configure.
14842 #
14843 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14844 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14845 # following values.
14846
14847 _ACEOF
14848
14849 # The following way of writing the cache mishandles newlines in values,
14850 # but we know of no workaround that is simple, portable, and efficient.
14851 # So, we kill variables containing newlines.
14852 # Ultrix sh set writes to stderr and can't be redirected directly,
14853 # and sets the high bit in the cache file unless we assign to the vars.
14854 (
14855 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14856 eval ac_val=\$$ac_var
14857 case $ac_val in #(
14858 *${as_nl}*)
14859 case $ac_var in #(
14860 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14861 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14862 esac
14863 case $ac_var in #(
14864 _ | IFS | as_nl) ;; #(
14865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14866 *) $as_unset $ac_var ;;
14867 esac ;;
14868 esac
14869 done
14870
14871 (set) 2>&1 |
14872 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14873 *${as_nl}ac_space=\ *)
14874 # `set' does not quote correctly, so add quotes (double-quote
14875 # substitution turns \\\\ into \\, and sed turns \\ into \).
14876 sed -n \
14877 "s/'/'\\\\''/g;
14878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14879 ;; #(
14880 *)
14881 # `set' quotes correctly as required by POSIX, so do not add quotes.
14882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14883 ;;
14884 esac |
14885 sort
14886 ) |
14887 sed '
14888 /^ac_cv_env_/b end
14889 t clear
14890 :clear
14891 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14892 t end
14893 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14894 :end' >>confcache
14895 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14896 if test -w "$cache_file"; then
14897 test "x$cache_file" != "x/dev/null" &&
14898 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14899 $as_echo "$as_me: updating cache $cache_file" >&6;}
14900 cat confcache >$cache_file
14901 else
14902 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14903 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14904 fi
14905 fi
14906 rm -f confcache
14907
14908 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14909 # Let make expand exec_prefix.
14910 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14911
14912 DEFS=-DHAVE_CONFIG_H
14913
14914 ac_libobjs=
14915 ac_ltlibobjs=
14916 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14917 # 1. Remove the extension, and $U if already installed.
14918 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14919 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14920 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14921 # will be set to the directory where LIBOBJS objects are built.
14922 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14923 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14924 done
14925 LIBOBJS=$ac_libobjs
14926
14927 LTLIBOBJS=$ac_ltlibobjs
14928
14929
14930 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14931 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14932 Usually this means the macro was only invoked conditionally." >&5
14933 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14934 Usually this means the macro was only invoked conditionally." >&2;}
14935 { (exit 1); exit 1; }; }
14936 fi
14937 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14938 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14939 Usually this means the macro was only invoked conditionally." >&5
14940 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14941 Usually this means the macro was only invoked conditionally." >&2;}
14942 { (exit 1); exit 1; }; }
14943 fi
14944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14945 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14946 Usually this means the macro was only invoked conditionally." >&5
14947 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14948 Usually this means the macro was only invoked conditionally." >&2;}
14949 { (exit 1); exit 1; }; }
14950 fi
14951 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14952 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14953 Usually this means the macro was only invoked conditionally." >&5
14954 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14955 Usually this means the macro was only invoked conditionally." >&2;}
14956 { (exit 1); exit 1; }; }
14957 fi
14958 if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then
14959 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GEN4ASM\" was never defined.
14960 Usually this means the macro was only invoked conditionally." >&5
14961 $as_echo "$as_me: error: conditional \"HAVE_GEN4ASM\" was never defined.
14962 Usually this means the macro was only invoked conditionally." >&2;}
14963 { (exit 1); exit 1; }; }
14964 fi
14965 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
14966 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
14967 Usually this means the macro was only invoked conditionally." >&5
14968 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
14969 Usually this means the macro was only invoked conditionally." >&2;}
14970 { (exit 1); exit 1; }; }
14971 fi
14972 if test -z "${LIBPCIACCESS_TRUE}" && test -z "${LIBPCIACCESS_FALSE}"; then
14973 { { $as_echo "$as_me:$LINENO: error: conditional \"LIBPCIACCESS\" was never defined.
14974 Usually this means the macro was only invoked conditionally." >&5
14975 $as_echo "$as_me: error: conditional \"LIBPCIACCESS\" was never defined.
14976 Usually this means the macro was only invoked conditionally." >&2;}
14977 { (exit 1); exit 1; }; }
14978 fi
14979 if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then
14980 { { $as_echo "$as_me:$LINENO: error: conditional \"XMODES\" was never defined.
14981 Usually this means the macro was only invoked conditionally." >&5
14982 $as_echo "$as_me: error: conditional \"XMODES\" was never defined.
14983 Usually this means the macro was only invoked conditionally." >&2;}
14984 { (exit 1); exit 1; }; }
14985 fi
14986 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
14987 { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
14988 Usually this means the macro was only invoked conditionally." >&5
14989 $as_echo "$as_me: error: conditional \"DRI\" was never defined.
14990 Usually this means the macro was only invoked conditionally." >&2;}
14991 { (exit 1); exit 1; }; }
14992 fi
14993 if test -z "${VIDEO_DEBUG_TRUE}" && test -z "${VIDEO_DEBUG_FALSE}"; then
14994 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_DEBUG\" was never defined.
14995 Usually this means the macro was only invoked conditionally." >&5
14996 $as_echo "$as_me: error: conditional \"VIDEO_DEBUG\" was never defined.
14997 Usually this means the macro was only invoked conditionally." >&2;}
14998 { (exit 1); exit 1; }; }
14999 fi
15000 if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
15001 { { $as_echo "$as_me:$LINENO: error: conditional \"XVMC\" was never defined.
15002 Usually this means the macro was only invoked conditionally." >&5
15003 $as_echo "$as_me: error: conditional \"XVMC\" was never defined.
15004 Usually this means the macro was only invoked conditionally." >&2;}
15005 { (exit 1); exit 1; }; }
15006 fi
15007 if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
15008 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
15009 Usually this means the macro was only invoked conditionally." >&5
15010 $as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
15011 Usually this means the macro was only invoked conditionally." >&2;}
15012 { (exit 1); exit 1; }; }
15013 fi
15014 if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
15015 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
15016 Usually this means the macro was only invoked conditionally." >&5
15017 $as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
15018 Usually this means the macro was only invoked conditionally." >&2;}
15019 { (exit 1); exit 1; }; }
15020 fi
15021
15022 : ${CONFIG_STATUS=./config.status}
15023 ac_write_fail=0
15024 ac_clean_files_save=$ac_clean_files
15025 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15026 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15027 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15028 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15029 #! $SHELL
15030 # Generated by $as_me.
15031 # Run this file to recreate the current configuration.
15032 # Compiler output produced by configure, useful for debugging
15033 # configure, is in config.log if it exists.
15034
15035 debug=false
15036 ac_cs_recheck=false
15037 ac_cs_silent=false
15038 SHELL=\${CONFIG_SHELL-$SHELL}
15039 _ACEOF
15040
15041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15042 ## --------------------- ##
15043 ## M4sh Initialization. ##
15044 ## --------------------- ##
15045
15046 # Be more Bourne compatible
15047 DUALCASE=1; export DUALCASE # for MKS sh
15048 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15049 emulate sh
15050 NULLCMD=:
15051 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15052 # is contrary to our usage. Disable this feature.
15053 alias -g '${1+"$@"}'='"$@"'
15054 setopt NO_GLOB_SUBST
15055 else
15056 case `(set -o) 2>/dev/null` in
15057 *posix*) set -o posix ;;
15058 esac
15059
15060 fi
15061
15062
15063
15064
15065 # PATH needs CR
15066 # Avoid depending upon Character Ranges.
15067 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15068 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15069 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15070 as_cr_digits='0123456789'
15071 as_cr_alnum=$as_cr_Letters$as_cr_digits
15072
15073 as_nl='
15074 '
15075 export as_nl
15076 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15077 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15078 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15079 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15080 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15081 as_echo='printf %s\n'
15082 as_echo_n='printf %s'
15083 else
15084 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15085 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15086 as_echo_n='/usr/ucb/echo -n'
15087 else
15088 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15089 as_echo_n_body='eval
15090 arg=$1;
15091 case $arg in
15092 *"$as_nl"*)
15093 expr "X$arg" : "X\\(.*\\)$as_nl";
15094 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15095 esac;
15096 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15097 '
15098 export as_echo_n_body
15099 as_echo_n='sh -c $as_echo_n_body as_echo'
15100 fi
15101 export as_echo_body
15102 as_echo='sh -c $as_echo_body as_echo'
15103 fi
15104
15105 # The user is always right.
15106 if test "${PATH_SEPARATOR+set}" != set; then
15107 PATH_SEPARATOR=:
15108 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15109 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15110 PATH_SEPARATOR=';'
15111 }
15112 fi
15113
15114 # Support unset when possible.
15115 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15116 as_unset=unset
15117 else
15118 as_unset=false
15119 fi
15120
15121
15122 # IFS
15123 # We need space, tab and new line, in precisely that order. Quoting is
15124 # there to prevent editors from complaining about space-tab.
15125 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15126 # splitting by setting IFS to empty value.)
15127 IFS=" "" $as_nl"
15128
15129 # Find who we are. Look in the path if we contain no directory separator.
15130 case $0 in
15131 *[\\/]* ) as_myself=$0 ;;
15132 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15133 for as_dir in $PATH
15134 do
15135 IFS=$as_save_IFS
15136 test -z "$as_dir" && as_dir=.
15137 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15138 done
15139 IFS=$as_save_IFS
15140
15141 ;;
15142 esac
15143 # We did not find ourselves, most probably we were run as `sh COMMAND'
15144 # in which case we are not to be found in the path.
15145 if test "x$as_myself" = x; then
15146 as_myself=$0
15147 fi
15148 if test ! -f "$as_myself"; then
15149 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15150 { (exit 1); exit 1; }
15151 fi
15152
15153 # Work around bugs in pre-3.0 UWIN ksh.
15154 for as_var in ENV MAIL MAILPATH
15155 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15156 done
15157 PS1='$ '
15158 PS2='> '
15159 PS4='+ '
15160
15161 # NLS nuisances.
15162 LC_ALL=C
15163 export LC_ALL
15164 LANGUAGE=C
15165 export LANGUAGE
15166
15167 # Required to use basename.
15168 if expr a : '\(a\)' >/dev/null 2>&1 &&
15169 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15170 as_expr=expr
15171 else
15172 as_expr=false
15173 fi
15174
15175 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15176 as_basename=basename
15177 else
15178 as_basename=false
15179 fi
15180
15181
15182 # Name of the executable.
15183 as_me=`$as_basename -- "$0" ||
15184 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15185 X"$0" : 'X\(//\)$' \| \
15186 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15187 $as_echo X/"$0" |
15188 sed '/^.*\/\([^/][^/]*\)\/*$/{
15189 s//\1/
15190 q
15191 }
15192 /^X\/\(\/\/\)$/{
15193 s//\1/
15194 q
15195 }
15196 /^X\/\(\/\).*/{
15197 s//\1/
15198 q
15199 }
15200 s/.*/./; q'`
15201
15202 # CDPATH.
15203 $as_unset CDPATH
15204
15205
15206
15207 as_lineno_1=$LINENO
15208 as_lineno_2=$LINENO
15209 test "x$as_lineno_1" != "x$as_lineno_2" &&
15210 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15211
15212 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15213 # uniformly replaced by the line number. The first 'sed' inserts a
15214 # line-number line after each line using $LINENO; the second 'sed'
15215 # does the real work. The second script uses 'N' to pair each
15216 # line-number line with the line containing $LINENO, and appends
15217 # trailing '-' during substitution so that $LINENO is not a special
15218 # case at line end.
15219 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15220 # scripts with optimization help from Paolo Bonzini. Blame Lee
15221 # E. McMahon (1931-1989) for sed's syntax. :-)
15222 sed -n '
15223 p
15224 /[$]LINENO/=
15225 ' <$as_myself |
15226 sed '
15227 s/[$]LINENO.*/&-/
15228 t lineno
15229 b
15230 :lineno
15231 N
15232 :loop
15233 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15234 t loop
15235 s/-\n.*//
15236 ' >$as_me.lineno &&
15237 chmod +x "$as_me.lineno" ||
15238 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15239 { (exit 1); exit 1; }; }
15240
15241 # Don't try to exec as it changes $[0], causing all sort of problems
15242 # (the dirname of $[0] is not the place where we might find the
15243 # original and so on. Autoconf is especially sensitive to this).
15244 . "./$as_me.lineno"
15245 # Exit status is that of the last command.
15246 exit
15247 }
15248
15249
15250 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15251 as_dirname=dirname
15252 else
15253 as_dirname=false
15254 fi
15255
15256 ECHO_C= ECHO_N= ECHO_T=
15257 case `echo -n x` in
15258 -n*)
15259 case `echo 'x\c'` in
15260 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15261 *) ECHO_C='\c';;
15262 esac;;
15263 *)
15264 ECHO_N='-n';;
15265 esac
15266 if expr a : '\(a\)' >/dev/null 2>&1 &&
15267 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15268 as_expr=expr
15269 else
15270 as_expr=false
15271 fi
15272
15273 rm -f conf$$ conf$$.exe conf$$.file
15274 if test -d conf$$.dir; then
15275 rm -f conf$$.dir/conf$$.file
15276 else
15277 rm -f conf$$.dir
15278 mkdir conf$$.dir 2>/dev/null
15279 fi
15280 if (echo >conf$$.file) 2>/dev/null; then
15281 if ln -s conf$$.file conf$$ 2>/dev/null; then
15282 as_ln_s='ln -s'
15283 # ... but there are two gotchas:
15284 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15285 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15286 # In both cases, we have to default to `cp -p'.
15287 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15288 as_ln_s='cp -p'
15289 elif ln conf$$.file conf$$ 2>/dev/null; then
15290 as_ln_s=ln
15291 else
15292 as_ln_s='cp -p'
15293 fi
15294 else
15295 as_ln_s='cp -p'
15296 fi
15297 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15298 rmdir conf$$.dir 2>/dev/null
15299
15300 if mkdir -p . 2>/dev/null; then
15301 as_mkdir_p=:
15302 else
15303 test -d ./-p && rmdir ./-p
15304 as_mkdir_p=false
15305 fi
15306
15307 if test -x / >/dev/null 2>&1; then
15308 as_test_x='test -x'
15309 else
15310 if ls -dL / >/dev/null 2>&1; then
15311 as_ls_L_option=L
15312 else
15313 as_ls_L_option=
15314 fi
15315 as_test_x='
15316 eval sh -c '\''
15317 if test -d "$1"; then
15318 test -d "$1/.";
15319 else
15320 case $1 in
15321 -*)set "./$1";;
15322 esac;
15323 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15324 ???[sx]*):;;*)false;;esac;fi
15325 '\'' sh
15326 '
15327 fi
15328 as_executable_p=$as_test_x
15329
15330 # Sed expression to map a string onto a valid CPP name.
15331 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15332
15333 # Sed expression to map a string onto a valid variable name.
15334 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15335
15336
15337 exec 6>&1
15338
15339 # Save the log message, to keep $[0] and so on meaningful, and to
15340 # report actual input values of CONFIG_FILES etc. instead of their
15341 # values after options handling.
15342 ac_log="
15343 This file was extended by xf86-video-intel $as_me 2.7.1, which was
15344 generated by GNU Autoconf 2.63. Invocation command line was
15345
15346 CONFIG_FILES = $CONFIG_FILES
15347 CONFIG_HEADERS = $CONFIG_HEADERS
15348 CONFIG_LINKS = $CONFIG_LINKS
15349 CONFIG_COMMANDS = $CONFIG_COMMANDS
15350 $ $0 $@
15351
15352 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15353 "
15354
15355 _ACEOF
15356
15357 case $ac_config_files in *"
15358 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15359 esac
15360
15361 case $ac_config_headers in *"
15362 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15363 esac
15364
15365
15366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15367 # Files that config.status was made for.
15368 config_files="$ac_config_files"
15369 config_headers="$ac_config_headers"
15370 config_commands="$ac_config_commands"
15371
15372 _ACEOF
15373
15374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15375 ac_cs_usage="\
15376 \`$as_me' instantiates files from templates according to the
15377 current configuration.
15378
15379 Usage: $0 [OPTION]... [FILE]...
15380
15381 -h, --help print this help, then exit
15382 -V, --version print version number and configuration settings, then exit
15383 -q, --quiet, --silent
15384 do not print progress messages
15385 -d, --debug don't remove temporary files
15386 --recheck update $as_me by reconfiguring in the same conditions
15387 --file=FILE[:TEMPLATE]
15388 instantiate the configuration file FILE
15389 --header=FILE[:TEMPLATE]
15390 instantiate the configuration header FILE
15391
15392 Configuration files:
15393 $config_files
15394
15395 Configuration headers:
15396 $config_headers
15397
15398 Configuration commands:
15399 $config_commands
15400
15401 Report bugs to <bug-autoconf (at] gnu.org>."
15402
15403 _ACEOF
15404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15405 ac_cs_version="\\
15406 xf86-video-intel config.status 2.7.1
15407 configured by $0, generated by GNU Autoconf 2.63,
15408 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15409
15410 Copyright (C) 2008 Free Software Foundation, Inc.
15411 This config.status script is free software; the Free Software Foundation
15412 gives unlimited permission to copy, distribute and modify it."
15413
15414 ac_pwd='$ac_pwd'
15415 srcdir='$srcdir'
15416 INSTALL='$INSTALL'
15417 MKDIR_P='$MKDIR_P'
15418 AWK='$AWK'
15419 test -n "\$AWK" || AWK=awk
15420 _ACEOF
15421
15422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15423 # The default lists apply if the user does not specify any file.
15424 ac_need_defaults=:
15425 while test $# != 0
15426 do
15427 case $1 in
15428 --*=*)
15429 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15430 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15431 ac_shift=:
15432 ;;
15433 *)
15434 ac_option=$1
15435 ac_optarg=$2
15436 ac_shift=shift
15437 ;;
15438 esac
15439
15440 case $ac_option in
15441 # Handling of the options.
15442 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15443 ac_cs_recheck=: ;;
15444 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15445 $as_echo "$ac_cs_version"; exit ;;
15446 --debug | --debu | --deb | --de | --d | -d )
15447 debug=: ;;
15448 --file | --fil | --fi | --f )
15449 $ac_shift
15450 case $ac_optarg in
15451 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15452 esac
15453 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15454 ac_need_defaults=false;;
15455 --header | --heade | --head | --hea )
15456 $ac_shift
15457 case $ac_optarg in
15458 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15459 esac
15460 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15461 ac_need_defaults=false;;
15462 --he | --h)
15463 # Conflict between --help and --header
15464 { $as_echo "$as_me: error: ambiguous option: $1
15465 Try \`$0 --help' for more information." >&2
15466 { (exit 1); exit 1; }; };;
15467 --help | --hel | -h )
15468 $as_echo "$ac_cs_usage"; exit ;;
15469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15470 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15471 ac_cs_silent=: ;;
15472
15473 # This is an error.
15474 -*) { $as_echo "$as_me: error: unrecognized option: $1
15475 Try \`$0 --help' for more information." >&2
15476 { (exit 1); exit 1; }; } ;;
15477
15478 *) ac_config_targets="$ac_config_targets $1"
15479 ac_need_defaults=false ;;
15480
15481 esac
15482 shift
15483 done
15484
15485 ac_configure_extra_args=
15486
15487 if $ac_cs_silent; then
15488 exec 6>/dev/null
15489 ac_configure_extra_args="$ac_configure_extra_args --silent"
15490 fi
15491
15492 _ACEOF
15493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15494 if \$ac_cs_recheck; then
15495 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15496 shift
15497 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15498 CONFIG_SHELL='$SHELL'
15499 export CONFIG_SHELL
15500 exec "\$@"
15501 fi
15502
15503 _ACEOF
15504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15505 exec 5>>config.log
15506 {
15507 echo
15508 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15509 ## Running $as_me. ##
15510 _ASBOX
15511 $as_echo "$ac_log"
15512 } >&5
15513
15514 _ACEOF
15515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15516 #
15517 # INIT-COMMANDS
15518 #
15519 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15520
15521
15522 # The HP-UX ksh and POSIX shell print the target directory to stdout
15523 # if CDPATH is set.
15524 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15525
15526 sed_quote_subst='$sed_quote_subst'
15527 double_quote_subst='$double_quote_subst'
15528 delay_variable_subst='$delay_variable_subst'
15529 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15530 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15531 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15532 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15533 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15534 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15535 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15536 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15537 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15538 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15539 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15540 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15541 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15542 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15543 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15544 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15545 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15546 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15547 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15548 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15549 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15550 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15551 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15552 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15553 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15554 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15555 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15556 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15557 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15558 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15559 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15560 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15561 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15562 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15563 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15564 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15565 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15566 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15567 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15568 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15569 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15570 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15571 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15572 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15573 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"`'
15574 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"`'
15575 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15576 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15577 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15578 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15579 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15580 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15581 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15582 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15583 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15584 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15585 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15586 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15587 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15588 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15589 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15590 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15591 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15592 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15593 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15594 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15595 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15596 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15597 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15598 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15599 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15600 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15601 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15602 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15603 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15604 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15605 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15606 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15607 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15608 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15609 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15610 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15611 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15612 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15613 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15614 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15615 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15616 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15617 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15618 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15619 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15620 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15621 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15622 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15623 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15624 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15625 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15626 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15627 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15628 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15629 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15630 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15631 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15632 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15633 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15634 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15635 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15636 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15637 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15638 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15639 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15640 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15641 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15642 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15643 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15644 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15645 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15646 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15647
15648 LTCC='$LTCC'
15649 LTCFLAGS='$LTCFLAGS'
15650 compiler='$compiler_DEFAULT'
15651
15652 # Quote evaled strings.
15653 for var in SED \
15654 GREP \
15655 EGREP \
15656 FGREP \
15657 LD \
15658 NM \
15659 LN_S \
15660 lt_SP2NL \
15661 lt_NL2SP \
15662 reload_flag \
15663 OBJDUMP \
15664 deplibs_check_method \
15665 file_magic_cmd \
15666 AR \
15667 AR_FLAGS \
15668 STRIP \
15669 RANLIB \
15670 CC \
15671 CFLAGS \
15672 compiler \
15673 lt_cv_sys_global_symbol_pipe \
15674 lt_cv_sys_global_symbol_to_cdecl \
15675 lt_cv_sys_global_symbol_to_c_name_address \
15676 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15677 SHELL \
15678 ECHO \
15679 lt_prog_compiler_no_builtin_flag \
15680 lt_prog_compiler_wl \
15681 lt_prog_compiler_pic \
15682 lt_prog_compiler_static \
15683 lt_cv_prog_compiler_c_o \
15684 need_locks \
15685 DSYMUTIL \
15686 NMEDIT \
15687 LIPO \
15688 OTOOL \
15689 OTOOL64 \
15690 shrext_cmds \
15691 export_dynamic_flag_spec \
15692 whole_archive_flag_spec \
15693 compiler_needs_object \
15694 with_gnu_ld \
15695 allow_undefined_flag \
15696 no_undefined_flag \
15697 hardcode_libdir_flag_spec \
15698 hardcode_libdir_flag_spec_ld \
15699 hardcode_libdir_separator \
15700 fix_srcfile_path \
15701 exclude_expsyms \
15702 include_expsyms \
15703 file_list_spec \
15704 variables_saved_for_relink \
15705 libname_spec \
15706 library_names_spec \
15707 soname_spec \
15708 finish_eval \
15709 old_striplib \
15710 striplib; do
15711 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15712 *[\\\\\\\`\\"\\\$]*)
15713 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15714 ;;
15715 *)
15716 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15717 ;;
15718 esac
15719 done
15720
15721 # Double-quote double-evaled strings.
15722 for var in reload_cmds \
15723 old_postinstall_cmds \
15724 old_postuninstall_cmds \
15725 old_archive_cmds \
15726 extract_expsyms_cmds \
15727 old_archive_from_new_cmds \
15728 old_archive_from_expsyms_cmds \
15729 archive_cmds \
15730 archive_expsym_cmds \
15731 module_cmds \
15732 module_expsym_cmds \
15733 export_symbols_cmds \
15734 prelink_cmds \
15735 postinstall_cmds \
15736 postuninstall_cmds \
15737 finish_cmds \
15738 sys_lib_search_path_spec \
15739 sys_lib_dlsearch_path_spec; do
15740 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15741 *[\\\\\\\`\\"\\\$]*)
15742 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15743 ;;
15744 *)
15745 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15746 ;;
15747 esac
15748 done
15749
15750 # Fix-up fallback echo if it was mangled by the above quoting rules.
15751 case \$lt_ECHO in
15752 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15753 ;;
15754 esac
15755
15756 ac_aux_dir='$ac_aux_dir'
15757 xsi_shell='$xsi_shell'
15758 lt_shell_append='$lt_shell_append'
15759
15760 # See if we are running on zsh, and set the options which allow our
15761 # commands through without removal of \ escapes INIT.
15762 if test -n "\${ZSH_VERSION+set}" ; then
15763 setopt NO_GLOB_SUBST
15764 fi
15765
15766
15767 PACKAGE='$PACKAGE'
15768 VERSION='$VERSION'
15769 TIMESTAMP='$TIMESTAMP'
15770 RM='$RM'
15771 ofile='$ofile'
15772
15773
15774
15775
15776 _ACEOF
15777
15778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15779
15780 # Handling of arguments.
15781 for ac_config_target in $ac_config_targets
15782 do
15783 case $ac_config_target in
15784 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15785 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15786 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15787 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15788 "uxa/Makefile") CONFIG_FILES="$CONFIG_FILES uxa/Makefile" ;;
15789 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15790 "src/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/Makefile" ;;
15791 "src/bios_reader/Makefile") CONFIG_FILES="$CONFIG_FILES src/bios_reader/Makefile" ;;
15792 "src/ch7017/Makefile") CONFIG_FILES="$CONFIG_FILES src/ch7017/Makefile" ;;
15793 "src/ch7xxx/Makefile") CONFIG_FILES="$CONFIG_FILES src/ch7xxx/Makefile" ;;
15794 "src/ivch/Makefile") CONFIG_FILES="$CONFIG_FILES src/ivch/Makefile" ;;
15795 "src/reg_dumper/Makefile") CONFIG_FILES="$CONFIG_FILES src/reg_dumper/Makefile" ;;
15796 "src/sil164/Makefile") CONFIG_FILES="$CONFIG_FILES src/sil164/Makefile" ;;
15797 "src/tfp410/Makefile") CONFIG_FILES="$CONFIG_FILES src/tfp410/Makefile" ;;
15798 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15799
15800 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15801 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15802 { (exit 1); exit 1; }; };;
15803 esac
15804 done
15805
15806
15807 # If the user did not use the arguments to specify the items to instantiate,
15808 # then the envvar interface is used. Set only those that are not.
15809 # We use the long form for the default assignment because of an extremely
15810 # bizarre bug on SunOS 4.1.3.
15811 if $ac_need_defaults; then
15812 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15813 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15814 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15815 fi
15816
15817 # Have a temporary directory for convenience. Make it in the build tree
15818 # simply because there is no reason against having it here, and in addition,
15819 # creating and moving files from /tmp can sometimes cause problems.
15820 # Hook for its removal unless debugging.
15821 # Note that there is a small window in which the directory will not be cleaned:
15822 # after its creation but before its name has been assigned to `$tmp'.
15823 $debug ||
15824 {
15825 tmp=
15826 trap 'exit_status=$?
15827 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15828 ' 0
15829 trap '{ (exit 1); exit 1; }' 1 2 13 15
15830 }
15831 # Create a (secure) tmp directory for tmp files.
15832
15833 {
15834 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15835 test -n "$tmp" && test -d "$tmp"
15836 } ||
15837 {
15838 tmp=./conf$$-$RANDOM
15839 (umask 077 && mkdir "$tmp")
15840 } ||
15841 {
15842 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15843 { (exit 1); exit 1; }
15844 }
15845
15846 # Set up the scripts for CONFIG_FILES section.
15847 # No need to generate them if there are no CONFIG_FILES.
15848 # This happens for instance with `./config.status config.h'.
15849 if test -n "$CONFIG_FILES"; then
15850
15851
15852 ac_cr='
'
15854 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15855 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15856 ac_cs_awk_cr='\\r'
15857 else
15858 ac_cs_awk_cr=$ac_cr
15859 fi
15860
15861 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15862 _ACEOF
15863
15864
15865 {
15866 echo "cat >conf$$subs.awk <<_ACEOF" &&
15867 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15868 echo "_ACEOF"
15869 } >conf$$subs.sh ||
15870 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15871 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15872 { (exit 1); exit 1; }; }
15873 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15874 ac_delim='%!_!# '
15875 for ac_last_try in false false false false false :; do
15876 . ./conf$$subs.sh ||
15877 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15878 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15879 { (exit 1); exit 1; }; }
15880
15881 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15882 if test $ac_delim_n = $ac_delim_num; then
15883 break
15884 elif $ac_last_try; then
15885 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15886 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15887 { (exit 1); exit 1; }; }
15888 else
15889 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15890 fi
15891 done
15892 rm -f conf$$subs.sh
15893
15894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15895 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15896 _ACEOF
15897 sed -n '
15898 h
15899 s/^/S["/; s/!.*/"]=/
15900 p
15901 g
15902 s/^[^!]*!//
15903 :repl
15904 t repl
15905 s/'"$ac_delim"'$//
15906 t delim
15907 :nl
15908 h
15909 s/\(.\{148\}\).*/\1/
15910 t more1
15911 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15912 p
15913 n
15914 b repl
15915 :more1
15916 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15917 p
15918 g
15919 s/.\{148\}//
15920 t nl
15921 :delim
15922 h
15923 s/\(.\{148\}\).*/\1/
15924 t more2
15925 s/["\\]/\\&/g; s/^/"/; s/$/"/
15926 p
15927 b
15928 :more2
15929 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15930 p
15931 g
15932 s/.\{148\}//
15933 t delim
15934 ' <conf$$subs.awk | sed '
15935 /^[^""]/{
15936 N
15937 s/\n//
15938 }
15939 ' >>$CONFIG_STATUS || ac_write_fail=1
15940 rm -f conf$$subs.awk
15941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15942 _ACAWK
15943 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15944 for (key in S) S_is_set[key] = 1
15945 FS = ""
15946
15947 }
15948 {
15949 line = $ 0
15950 nfields = split(line, field, "@")
15951 substed = 0
15952 len = length(field[1])
15953 for (i = 2; i < nfields; i++) {
15954 key = field[i]
15955 keylen = length(key)
15956 if (S_is_set[key]) {
15957 value = S[key]
15958 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15959 len += length(value) + length(field[++i])
15960 substed = 1
15961 } else
15962 len += 1 + keylen
15963 }
15964
15965 print line
15966 }
15967
15968 _ACAWK
15969 _ACEOF
15970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15971 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15972 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15973 else
15974 cat
15975 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15976 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15977 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15978 { (exit 1); exit 1; }; }
15979 _ACEOF
15980
15981 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15982 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15983 # trailing colons and then remove the whole line if VPATH becomes empty
15984 # (actually we leave an empty line to preserve line numbers).
15985 if test "x$srcdir" = x.; then
15986 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15987 s/:*\$(srcdir):*/:/
15988 s/:*\${srcdir}:*/:/
15989 s/:*@srcdir@:*/:/
15990 s/^\([^=]*=[ ]*\):*/\1/
15991 s/:*$//
15992 s/^[^=]*=[ ]*$//
15993 }'
15994 fi
15995
15996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15997 fi # test -n "$CONFIG_FILES"
15998
15999 # Set up the scripts for CONFIG_HEADERS section.
16000 # No need to generate them if there are no CONFIG_HEADERS.
16001 # This happens for instance with `./config.status Makefile'.
16002 if test -n "$CONFIG_HEADERS"; then
16003 cat >"$tmp/defines.awk" <<\_ACAWK ||
16004 BEGIN {
16005 _ACEOF
16006
16007 # Transform confdefs.h into an awk script `defines.awk', embedded as
16008 # here-document in config.status, that substitutes the proper values into
16009 # config.h.in to produce config.h.
16010
16011 # Create a delimiter string that does not exist in confdefs.h, to ease
16012 # handling of long lines.
16013 ac_delim='%!_!# '
16014 for ac_last_try in false false :; do
16015 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16016 if test -z "$ac_t"; then
16017 break
16018 elif $ac_last_try; then
16019 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16020 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16021 { (exit 1); exit 1; }; }
16022 else
16023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16024 fi
16025 done
16026
16027 # For the awk script, D is an array of macro values keyed by name,
16028 # likewise P contains macro parameters if any. Preserve backslash
16029 # newline sequences.
16030
16031 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16032 sed -n '
16033 s/.\{148\}/&'"$ac_delim"'/g
16034 t rset
16035 :rset
16036 s/^[ ]*#[ ]*define[ ][ ]*/ /
16037 t def
16038 d
16039 :def
16040 s/\\$//
16041 t bsnl
16042 s/["\\]/\\&/g
16043 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16044 D["\1"]=" \3"/p
16045 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16046 d
16047 :bsnl
16048 s/["\\]/\\&/g
16049 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16050 D["\1"]=" \3\\\\\\n"\\/p
16051 t cont
16052 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16053 t cont
16054 d
16055 :cont
16056 n
16057 s/.\{148\}/&'"$ac_delim"'/g
16058 t clear
16059 :clear
16060 s/\\$//
16061 t bsnlc
16062 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16063 d
16064 :bsnlc
16065 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16066 b cont
16067 ' <confdefs.h | sed '
16068 s/'"$ac_delim"'/"\\\
16069 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16070
16071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16072 for (key in D) D_is_set[key] = 1
16073 FS = ""
16074 }
16075 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16076 line = \$ 0
16077 split(line, arg, " ")
16078 if (arg[1] == "#") {
16079 defundef = arg[2]
16080 mac1 = arg[3]
16081 } else {
16082 defundef = substr(arg[1], 2)
16083 mac1 = arg[2]
16084 }
16085 split(mac1, mac2, "(") #)
16086 macro = mac2[1]
16087 prefix = substr(line, 1, index(line, defundef) - 1)
16088 if (D_is_set[macro]) {
16089 # Preserve the white space surrounding the "#".
16090 print prefix "define", macro P[macro] D[macro]
16091 next
16092 } else {
16093 # Replace #undef with comments. This is necessary, for example,
16094 # in the case of _POSIX_SOURCE, which is predefined and required
16095 # on some systems where configure will not decide to define it.
16096 if (defundef == "undef") {
16097 print "/*", prefix defundef, macro, "*/"
16098 next
16099 }
16100 }
16101 }
16102 { print }
16103 _ACAWK
16104 _ACEOF
16105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16106 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16107 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16108 { (exit 1); exit 1; }; }
16109 fi # test -n "$CONFIG_HEADERS"
16110
16111
16112 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16113 shift
16114 for ac_tag
16115 do
16116 case $ac_tag in
16117 :[FHLC]) ac_mode=$ac_tag; continue;;
16118 esac
16119 case $ac_mode$ac_tag in
16120 :[FHL]*:*);;
16121 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16122 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16123 { (exit 1); exit 1; }; };;
16124 :[FH]-) ac_tag=-:-;;
16125 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16126 esac
16127 ac_save_IFS=$IFS
16128 IFS=:
16129 set x $ac_tag
16130 IFS=$ac_save_IFS
16131 shift
16132 ac_file=$1
16133 shift
16134
16135 case $ac_mode in
16136 :L) ac_source=$1;;
16137 :[FH])
16138 ac_file_inputs=
16139 for ac_f
16140 do
16141 case $ac_f in
16142 -) ac_f="$tmp/stdin";;
16143 *) # Look for the file first in the build tree, then in the source tree
16144 # (if the path is not absolute). The absolute path cannot be DOS-style,
16145 # because $ac_f cannot contain `:'.
16146 test -f "$ac_f" ||
16147 case $ac_f in
16148 [\\/$]*) false;;
16149 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16150 esac ||
16151 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16152 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16153 { (exit 1); exit 1; }; };;
16154 esac
16155 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16156 ac_file_inputs="$ac_file_inputs '$ac_f'"
16157 done
16158
16159 # Let's still pretend it is `configure' which instantiates (i.e., don't
16160 # use $as_me), people would be surprised to read:
16161 # /* config.h. Generated by config.status. */
16162 configure_input='Generated from '`
16163 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16164 `' by configure.'
16165 if test x"$ac_file" != x-; then
16166 configure_input="$ac_file. $configure_input"
16167 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16168 $as_echo "$as_me: creating $ac_file" >&6;}
16169 fi
16170 # Neutralize special characters interpreted by sed in replacement strings.
16171 case $configure_input in #(
16172 *\&* | *\|* | *\\* )
16173 ac_sed_conf_input=`$as_echo "$configure_input" |
16174 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16175 *) ac_sed_conf_input=$configure_input;;
16176 esac
16177
16178 case $ac_tag in
16179 *:-:* | *:-) cat >"$tmp/stdin" \
16180 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16181 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16182 { (exit 1); exit 1; }; } ;;
16183 esac
16184 ;;
16185 esac
16186
16187 ac_dir=`$as_dirname -- "$ac_file" ||
16188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16189 X"$ac_file" : 'X\(//\)[^/]' \| \
16190 X"$ac_file" : 'X\(//\)$' \| \
16191 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16192 $as_echo X"$ac_file" |
16193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16194 s//\1/
16195 q
16196 }
16197 /^X\(\/\/\)[^/].*/{
16198 s//\1/
16199 q
16200 }
16201 /^X\(\/\/\)$/{
16202 s//\1/
16203 q
16204 }
16205 /^X\(\/\).*/{
16206 s//\1/
16207 q
16208 }
16209 s/.*/./; q'`
16210 { as_dir="$ac_dir"
16211 case $as_dir in #(
16212 -*) as_dir=./$as_dir;;
16213 esac
16214 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16215 as_dirs=
16216 while :; do
16217 case $as_dir in #(
16218 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16219 *) as_qdir=$as_dir;;
16220 esac
16221 as_dirs="'$as_qdir' $as_dirs"
16222 as_dir=`$as_dirname -- "$as_dir" ||
16223 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16224 X"$as_dir" : 'X\(//\)[^/]' \| \
16225 X"$as_dir" : 'X\(//\)$' \| \
16226 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16227 $as_echo X"$as_dir" |
16228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16229 s//\1/
16230 q
16231 }
16232 /^X\(\/\/\)[^/].*/{
16233 s//\1/
16234 q
16235 }
16236 /^X\(\/\/\)$/{
16237 s//\1/
16238 q
16239 }
16240 /^X\(\/\).*/{
16241 s//\1/
16242 q
16243 }
16244 s/.*/./; q'`
16245 test -d "$as_dir" && break
16246 done
16247 test -z "$as_dirs" || eval "mkdir $as_dirs"
16248 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16249 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16250 { (exit 1); exit 1; }; }; }
16251 ac_builddir=.
16252
16253 case "$ac_dir" in
16254 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16255 *)
16256 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16257 # A ".." for each directory in $ac_dir_suffix.
16258 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16259 case $ac_top_builddir_sub in
16260 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16261 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16262 esac ;;
16263 esac
16264 ac_abs_top_builddir=$ac_pwd
16265 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16266 # for backward compatibility:
16267 ac_top_builddir=$ac_top_build_prefix
16268
16269 case $srcdir in
16270 .) # We are building in place.
16271 ac_srcdir=.
16272 ac_top_srcdir=$ac_top_builddir_sub
16273 ac_abs_top_srcdir=$ac_pwd ;;
16274 [\\/]* | ?:[\\/]* ) # Absolute name.
16275 ac_srcdir=$srcdir$ac_dir_suffix;
16276 ac_top_srcdir=$srcdir
16277 ac_abs_top_srcdir=$srcdir ;;
16278 *) # Relative name.
16279 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16280 ac_top_srcdir=$ac_top_build_prefix$srcdir
16281 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16282 esac
16283 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16284
16285
16286 case $ac_mode in
16287 :F)
16288 #
16289 # CONFIG_FILE
16290 #
16291
16292 case $INSTALL in
16293 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16294 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16295 esac
16296 ac_MKDIR_P=$MKDIR_P
16297 case $MKDIR_P in
16298 [\\/$]* | ?:[\\/]* ) ;;
16299 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16300 esac
16301 _ACEOF
16302
16303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16304 # If the template does not know about datarootdir, expand it.
16305 # FIXME: This hack should be removed a few years after 2.60.
16306 ac_datarootdir_hack=; ac_datarootdir_seen=
16307
16308 ac_sed_dataroot='
16309 /datarootdir/ {
16310 p
16311 q
16312 }
16313 /@datadir@/p
16314 /@docdir@/p
16315 /@infodir@/p
16316 /@localedir@/p
16317 /@mandir@/p
16318 '
16319 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16320 *datarootdir*) ac_datarootdir_seen=yes;;
16321 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16322 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16323 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16324 _ACEOF
16325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16326 ac_datarootdir_hack='
16327 s&@datadir@&$datadir&g
16328 s&@docdir@&$docdir&g
16329 s&@infodir@&$infodir&g
16330 s&@localedir@&$localedir&g
16331 s&@mandir@&$mandir&g
16332 s&\\\${datarootdir}&$datarootdir&g' ;;
16333 esac
16334 _ACEOF
16335
16336 # Neutralize VPATH when `$srcdir' = `.'.
16337 # Shell code in configure.ac might set extrasub.
16338 # FIXME: do we really want to maintain this feature?
16339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16340 ac_sed_extra="$ac_vpsub
16341 $extrasub
16342 _ACEOF
16343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16344 :t
16345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16346 s|@configure_input@|$ac_sed_conf_input|;t t
16347 s&@top_builddir@&$ac_top_builddir_sub&;t t
16348 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16349 s&@srcdir@&$ac_srcdir&;t t
16350 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16351 s&@top_srcdir@&$ac_top_srcdir&;t t
16352 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16353 s&@builddir@&$ac_builddir&;t t
16354 s&@abs_builddir@&$ac_abs_builddir&;t t
16355 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16356 s&@INSTALL@&$ac_INSTALL&;t t
16357 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16358 $ac_datarootdir_hack
16359 "
16360 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16361 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16362 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16363 { (exit 1); exit 1; }; }
16364
16365 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16366 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16368 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16369 which seems to be undefined. Please make sure it is defined." >&5
16370 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16371 which seems to be undefined. Please make sure it is defined." >&2;}
16372
16373 rm -f "$tmp/stdin"
16374 case $ac_file in
16375 -) cat "$tmp/out" && rm -f "$tmp/out";;
16376 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16377 esac \
16378 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16379 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16380 { (exit 1); exit 1; }; }
16381 ;;
16382 :H)
16383 #
16384 # CONFIG_HEADER
16385 #
16386 if test x"$ac_file" != x-; then
16387 {
16388 $as_echo "/* $configure_input */" \
16389 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16390 } >"$tmp/config.h" \
16391 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16392 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16393 { (exit 1); exit 1; }; }
16394 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16395 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16396 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16397 else
16398 rm -f "$ac_file"
16399 mv "$tmp/config.h" "$ac_file" \
16400 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16401 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16402 { (exit 1); exit 1; }; }
16403 fi
16404 else
16405 $as_echo "/* $configure_input */" \
16406 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16407 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16408 $as_echo "$as_me: error: could not create -" >&2;}
16409 { (exit 1); exit 1; }; }
16410 fi
16411 # Compute "$ac_file"'s index in $config_headers.
16412 _am_arg="$ac_file"
16413 _am_stamp_count=1
16414 for _am_header in $config_headers :; do
16415 case $_am_header in
16416 $_am_arg | $_am_arg:* )
16417 break ;;
16418 * )
16419 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16420 esac
16421 done
16422 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16423 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16424 X"$_am_arg" : 'X\(//\)[^/]' \| \
16425 X"$_am_arg" : 'X\(//\)$' \| \
16426 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16427 $as_echo X"$_am_arg" |
16428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16429 s//\1/
16430 q
16431 }
16432 /^X\(\/\/\)[^/].*/{
16433 s//\1/
16434 q
16435 }
16436 /^X\(\/\/\)$/{
16437 s//\1/
16438 q
16439 }
16440 /^X\(\/\).*/{
16441 s//\1/
16442 q
16443 }
16444 s/.*/./; q'`/stamp-h$_am_stamp_count
16445 ;;
16446
16447 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16448 $as_echo "$as_me: executing $ac_file commands" >&6;}
16449 ;;
16450 esac
16451
16452
16453 case $ac_file$ac_mode in
16454 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
16455 # are listed without --file. Let's play safe and only enable the eval
16456 # if we detect the quoting.
16457 case $CONFIG_FILES in
16458 *\'*) eval set x "$CONFIG_FILES" ;;
16459 *) set x $CONFIG_FILES ;;
16460 esac
16461 shift
16462 for mf
16463 do
16464 # Strip MF so we end up with the name of the file.
16465 mf=`echo "$mf" | sed -e 's/:.*$//'`
16466 # Check whether this is an Automake generated Makefile or not.
16467 # We used to match only the files named `Makefile.in', but
16468 # some people rename them; so instead we look at the file content.
16469 # Grep'ing the first line is not enough: some people post-process
16470 # each Makefile.in and add a new line on top of each file to say so.
16471 # Grep'ing the whole file is not good either: AIX grep has a line
16472 # limit of 2048, but all sed's we know have understand at least 4000.
16473 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16474 dirpart=`$as_dirname -- "$mf" ||
16475 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16476 X"$mf" : 'X\(//\)[^/]' \| \
16477 X"$mf" : 'X\(//\)$' \| \
16478 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16479 $as_echo X"$mf" |
16480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16481 s//\1/
16482 q
16483 }
16484 /^X\(\/\/\)[^/].*/{
16485 s//\1/
16486 q
16487 }
16488 /^X\(\/\/\)$/{
16489 s//\1/
16490 q
16491 }
16492 /^X\(\/\).*/{
16493 s//\1/
16494 q
16495 }
16496 s/.*/./; q'`
16497 else
16498 continue
16499 fi
16500 # Extract the definition of DEPDIR, am__include, and am__quote
16501 # from the Makefile without running `make'.
16502 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16503 test -z "$DEPDIR" && continue
16504 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16505 test -z "am__include" && continue
16506 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16507 # When using ansi2knr, U may be empty or an underscore; expand it
16508 U=`sed -n 's/^U = //p' < "$mf"`
16509 # Find all dependency output files, they are included files with
16510 # $(DEPDIR) in their names. We invoke sed twice because it is the
16511 # simplest approach to changing $(DEPDIR) to its actual value in the
16512 # expansion.
16513 for file in `sed -n "
16514 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16515 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16516 # Make sure the directory exists.
16517 test -f "$dirpart/$file" && continue
16518 fdir=`$as_dirname -- "$file" ||
16519 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16520 X"$file" : 'X\(//\)[^/]' \| \
16521 X"$file" : 'X\(//\)$' \| \
16522 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16523 $as_echo X"$file" |
16524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16525 s//\1/
16526 q
16527 }
16528 /^X\(\/\/\)[^/].*/{
16529 s//\1/
16530 q
16531 }
16532 /^X\(\/\/\)$/{
16533 s//\1/
16534 q
16535 }
16536 /^X\(\/\).*/{
16537 s//\1/
16538 q
16539 }
16540 s/.*/./; q'`
16541 { as_dir=$dirpart/$fdir
16542 case $as_dir in #(
16543 -*) as_dir=./$as_dir;;
16544 esac
16545 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16546 as_dirs=
16547 while :; do
16548 case $as_dir in #(
16549 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16550 *) as_qdir=$as_dir;;
16551 esac
16552 as_dirs="'$as_qdir' $as_dirs"
16553 as_dir=`$as_dirname -- "$as_dir" ||
16554 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16555 X"$as_dir" : 'X\(//\)[^/]' \| \
16556 X"$as_dir" : 'X\(//\)$' \| \
16557 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16558 $as_echo X"$as_dir" |
16559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16560 s//\1/
16561 q
16562 }
16563 /^X\(\/\/\)[^/].*/{
16564 s//\1/
16565 q
16566 }
16567 /^X\(\/\/\)$/{
16568 s//\1/
16569 q
16570 }
16571 /^X\(\/\).*/{
16572 s//\1/
16573 q
16574 }
16575 s/.*/./; q'`
16576 test -d "$as_dir" && break
16577 done
16578 test -z "$as_dirs" || eval "mkdir $as_dirs"
16579 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16580 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16581 { (exit 1); exit 1; }; }; }
16582 # echo "creating $dirpart/$file"
16583 echo '# dummy' > "$dirpart/$file"
16584 done
16585 done
16586 ;;
16587 "libtool":C)
16588
16589 # See if we are running on zsh, and set the options which allow our
16590 # commands through without removal of \ escapes.
16591 if test -n "${ZSH_VERSION+set}" ; then
16592 setopt NO_GLOB_SUBST
16593 fi
16594
16595 cfgfile="${ofile}T"
16596 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16597 $RM "$cfgfile"
16598
16599 cat <<_LT_EOF >> "$cfgfile"
16600 #! $SHELL
16601
16602 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16603 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16604 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16605 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16606 #
16607 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16608 # 2006, 2007, 2008 Free Software Foundation, Inc.
16609 # Written by Gordon Matzigkeit, 1996
16610 #
16611 # This file is part of GNU Libtool.
16612 #
16613 # GNU Libtool is free software; you can redistribute it and/or
16614 # modify it under the terms of the GNU General Public License as
16615 # published by the Free Software Foundation; either version 2 of
16616 # the License, or (at your option) any later version.
16617 #
16618 # As a special exception to the GNU General Public License,
16619 # if you distribute this file as part of a program or library that
16620 # is built using GNU Libtool, you may include this file under the
16621 # same distribution terms that you use for the rest of that program.
16622 #
16623 # GNU Libtool is distributed in the hope that it will be useful,
16624 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16625 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16626 # GNU General Public License for more details.
16627 #
16628 # You should have received a copy of the GNU General Public License
16629 # along with GNU Libtool; see the file COPYING. If not, a copy
16630 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16631 # obtained by writing to the Free Software Foundation, Inc.,
16632 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16633
16634
16635 # The names of the tagged configurations supported by this script.
16636 available_tags=""
16637
16638 # ### BEGIN LIBTOOL CONFIG
16639
16640 # Whether or not to build static libraries.
16641 build_old_libs=$enable_static
16642
16643 # Which release of libtool.m4 was used?
16644 macro_version=$macro_version
16645 macro_revision=$macro_revision
16646
16647 # Whether or not to build shared libraries.
16648 build_libtool_libs=$enable_shared
16649
16650 # What type of objects to build.
16651 pic_mode=$pic_mode
16652
16653 # Whether or not to optimize for fast installation.
16654 fast_install=$enable_fast_install
16655
16656 # The host system.
16657 host_alias=$host_alias
16658 host=$host
16659 host_os=$host_os
16660
16661 # The build system.
16662 build_alias=$build_alias
16663 build=$build
16664 build_os=$build_os
16665
16666 # A sed program that does not truncate output.
16667 SED=$lt_SED
16668
16669 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16670 Xsed="\$SED -e 1s/^X//"
16671
16672 # A grep program that handles long lines.
16673 GREP=$lt_GREP
16674
16675 # An ERE matcher.
16676 EGREP=$lt_EGREP
16677
16678 # A literal string matcher.
16679 FGREP=$lt_FGREP
16680
16681 # A BSD- or MS-compatible name lister.
16682 NM=$lt_NM
16683
16684 # Whether we need soft or hard links.
16685 LN_S=$lt_LN_S
16686
16687 # What is the maximum length of a command?
16688 max_cmd_len=$max_cmd_len
16689
16690 # Object file suffix (normally "o").
16691 objext=$ac_objext
16692
16693 # Executable file suffix (normally "").
16694 exeext=$exeext
16695
16696 # whether the shell understands "unset".
16697 lt_unset=$lt_unset
16698
16699 # turn spaces into newlines.
16700 SP2NL=$lt_lt_SP2NL
16701
16702 # turn newlines into spaces.
16703 NL2SP=$lt_lt_NL2SP
16704
16705 # How to create reloadable object files.
16706 reload_flag=$lt_reload_flag
16707 reload_cmds=$lt_reload_cmds
16708
16709 # An object symbol dumper.
16710 OBJDUMP=$lt_OBJDUMP
16711
16712 # Method to check whether dependent libraries are shared objects.
16713 deplibs_check_method=$lt_deplibs_check_method
16714
16715 # Command to use when deplibs_check_method == "file_magic".
16716 file_magic_cmd=$lt_file_magic_cmd
16717
16718 # The archiver.
16719 AR=$lt_AR
16720 AR_FLAGS=$lt_AR_FLAGS
16721
16722 # A symbol stripping program.
16723 STRIP=$lt_STRIP
16724
16725 # Commands used to install an old-style archive.
16726 RANLIB=$lt_RANLIB
16727 old_postinstall_cmds=$lt_old_postinstall_cmds
16728 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16729
16730 # A C compiler.
16731 LTCC=$lt_CC
16732
16733 # LTCC compiler flags.
16734 LTCFLAGS=$lt_CFLAGS
16735
16736 # Take the output of nm and produce a listing of raw symbols and C names.
16737 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16738
16739 # Transform the output of nm in a proper C declaration.
16740 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16741
16742 # Transform the output of nm in a C name address pair.
16743 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16744
16745 # Transform the output of nm in a C name address pair when lib prefix is needed.
16746 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16747
16748 # The name of the directory that contains temporary libtool files.
16749 objdir=$objdir
16750
16751 # Shell to use when invoking shell scripts.
16752 SHELL=$lt_SHELL
16753
16754 # An echo program that does not interpret backslashes.
16755 ECHO=$lt_ECHO
16756
16757 # Used to examine libraries when file_magic_cmd begins with "file".
16758 MAGIC_CMD=$MAGIC_CMD
16759
16760 # Must we lock files when doing compilation?
16761 need_locks=$lt_need_locks
16762
16763 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16764 DSYMUTIL=$lt_DSYMUTIL
16765
16766 # Tool to change global to local symbols on Mac OS X.
16767 NMEDIT=$lt_NMEDIT
16768
16769 # Tool to manipulate fat objects and archives on Mac OS X.
16770 LIPO=$lt_LIPO
16771
16772 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16773 OTOOL=$lt_OTOOL
16774
16775 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16776 OTOOL64=$lt_OTOOL64
16777
16778 # Old archive suffix (normally "a").
16779 libext=$libext
16780
16781 # Shared library suffix (normally ".so").
16782 shrext_cmds=$lt_shrext_cmds
16783
16784 # The commands to extract the exported symbol list from a shared archive.
16785 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16786
16787 # Variables whose values should be saved in libtool wrapper scripts and
16788 # restored at link time.
16789 variables_saved_for_relink=$lt_variables_saved_for_relink
16790
16791 # Do we need the "lib" prefix for modules?
16792 need_lib_prefix=$need_lib_prefix
16793
16794 # Do we need a version for libraries?
16795 need_version=$need_version
16796
16797 # Library versioning type.
16798 version_type=$version_type
16799
16800 # Shared library runtime path variable.
16801 runpath_var=$runpath_var
16802
16803 # Shared library path variable.
16804 shlibpath_var=$shlibpath_var
16805
16806 # Is shlibpath searched before the hard-coded library search path?
16807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16808
16809 # Format of library name prefix.
16810 libname_spec=$lt_libname_spec
16811
16812 # List of archive names. First name is the real one, the rest are links.
16813 # The last name is the one that the linker finds with -lNAME
16814 library_names_spec=$lt_library_names_spec
16815
16816 # The coded name of the library, if different from the real name.
16817 soname_spec=$lt_soname_spec
16818
16819 # Command to use after installation of a shared archive.
16820 postinstall_cmds=$lt_postinstall_cmds
16821
16822 # Command to use after uninstallation of a shared archive.
16823 postuninstall_cmds=$lt_postuninstall_cmds
16824
16825 # Commands used to finish a libtool library installation in a directory.
16826 finish_cmds=$lt_finish_cmds
16827
16828 # As "finish_cmds", except a single script fragment to be evaled but
16829 # not shown.
16830 finish_eval=$lt_finish_eval
16831
16832 # Whether we should hardcode library paths into libraries.
16833 hardcode_into_libs=$hardcode_into_libs
16834
16835 # Compile-time system search path for libraries.
16836 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16837
16838 # Run-time system search path for libraries.
16839 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16840
16841 # Whether dlopen is supported.
16842 dlopen_support=$enable_dlopen
16843
16844 # Whether dlopen of programs is supported.
16845 dlopen_self=$enable_dlopen_self
16846
16847 # Whether dlopen of statically linked programs is supported.
16848 dlopen_self_static=$enable_dlopen_self_static
16849
16850 # Commands to strip libraries.
16851 old_striplib=$lt_old_striplib
16852 striplib=$lt_striplib
16853
16854
16855 # The linker used to build libraries.
16856 LD=$lt_LD
16857
16858 # Commands used to build an old-style archive.
16859 old_archive_cmds=$lt_old_archive_cmds
16860
16861 # A language specific compiler.
16862 CC=$lt_compiler
16863
16864 # Is the compiler the GNU compiler?
16865 with_gcc=$GCC
16866
16867 # Compiler flag to turn off builtin functions.
16868 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16869
16870 # How to pass a linker flag through the compiler.
16871 wl=$lt_lt_prog_compiler_wl
16872
16873 # Additional compiler flags for building library objects.
16874 pic_flag=$lt_lt_prog_compiler_pic
16875
16876 # Compiler flag to prevent dynamic linking.
16877 link_static_flag=$lt_lt_prog_compiler_static
16878
16879 # Does compiler simultaneously support -c and -o options?
16880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16881
16882 # Whether or not to add -lc for building shared libraries.
16883 build_libtool_need_lc=$archive_cmds_need_lc
16884
16885 # Whether or not to disallow shared libs when runtime libs are static.
16886 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16887
16888 # Compiler flag to allow reflexive dlopens.
16889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16890
16891 # Compiler flag to generate shared objects directly from archives.
16892 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16893
16894 # Whether the compiler copes with passing no objects directly.
16895 compiler_needs_object=$lt_compiler_needs_object
16896
16897 # Create an old-style archive from a shared archive.
16898 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16899
16900 # Create a temporary old-style archive to link instead of a shared archive.
16901 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16902
16903 # Commands used to build a shared archive.
16904 archive_cmds=$lt_archive_cmds
16905 archive_expsym_cmds=$lt_archive_expsym_cmds
16906
16907 # Commands used to build a loadable module if different from building
16908 # a shared archive.
16909 module_cmds=$lt_module_cmds
16910 module_expsym_cmds=$lt_module_expsym_cmds
16911
16912 # Whether we are building with GNU ld or not.
16913 with_gnu_ld=$lt_with_gnu_ld
16914
16915 # Flag that allows shared libraries with undefined symbols to be built.
16916 allow_undefined_flag=$lt_allow_undefined_flag
16917
16918 # Flag that enforces no undefined symbols.
16919 no_undefined_flag=$lt_no_undefined_flag
16920
16921 # Flag to hardcode \$libdir into a binary during linking.
16922 # This must work even if \$libdir does not exist
16923 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16924
16925 # If ld is used when linking, flag to hardcode \$libdir into a binary
16926 # during linking. This must work even if \$libdir does not exist.
16927 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16928
16929 # Whether we need a single "-rpath" flag with a separated argument.
16930 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16931
16932 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16933 # DIR into the resulting binary.
16934 hardcode_direct=$hardcode_direct
16935
16936 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16937 # DIR into the resulting binary and the resulting library dependency is
16938 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16939 # library is relocated.
16940 hardcode_direct_absolute=$hardcode_direct_absolute
16941
16942 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16943 # into the resulting binary.
16944 hardcode_minus_L=$hardcode_minus_L
16945
16946 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16947 # into the resulting binary.
16948 hardcode_shlibpath_var=$hardcode_shlibpath_var
16949
16950 # Set to "yes" if building a shared library automatically hardcodes DIR
16951 # into the library and all subsequent libraries and executables linked
16952 # against it.
16953 hardcode_automatic=$hardcode_automatic
16954
16955 # Set to yes if linker adds runtime paths of dependent libraries
16956 # to runtime path list.
16957 inherit_rpath=$inherit_rpath
16958
16959 # Whether libtool must link a program against all its dependency libraries.
16960 link_all_deplibs=$link_all_deplibs
16961
16962 # Fix the shell variable \$srcfile for the compiler.
16963 fix_srcfile_path=$lt_fix_srcfile_path
16964
16965 # Set to "yes" if exported symbols are required.
16966 always_export_symbols=$always_export_symbols
16967
16968 # The commands to list exported symbols.
16969 export_symbols_cmds=$lt_export_symbols_cmds
16970
16971 # Symbols that should not be listed in the preloaded symbols.
16972 exclude_expsyms=$lt_exclude_expsyms
16973
16974 # Symbols that must always be exported.
16975 include_expsyms=$lt_include_expsyms
16976
16977 # Commands necessary for linking programs (against libraries) with templates.
16978 prelink_cmds=$lt_prelink_cmds
16979
16980 # Specify filename containing input files.
16981 file_list_spec=$lt_file_list_spec
16982
16983 # How to hardcode a shared library path into an executable.
16984 hardcode_action=$hardcode_action
16985
16986 # ### END LIBTOOL CONFIG
16987
16988 _LT_EOF
16989
16990 case $host_os in
16991 aix3*)
16992 cat <<\_LT_EOF >> "$cfgfile"
16993 # AIX sometimes has problems with the GCC collect2 program. For some
16994 # reason, if we set the COLLECT_NAMES environment variable, the problems
16995 # vanish in a puff of smoke.
16996 if test "X${COLLECT_NAMES+set}" != Xset; then
16997 COLLECT_NAMES=
16998 export COLLECT_NAMES
16999 fi
17000 _LT_EOF
17001 ;;
17002 esac
17003
17004
17005 ltmain="$ac_aux_dir/ltmain.sh"
17006
17007
17008 # We use sed instead of cat because bash on DJGPP gets confused if
17009 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17010 # text mode, it properly converts lines to CR/LF. This bash problem
17011 # is reportedly fixed, but why not run on old versions too?
17012 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17013 || (rm -f "$cfgfile"; exit 1)
17014
17015 case $xsi_shell in
17016 yes)
17017 cat << \_LT_EOF >> "$cfgfile"
17018
17019 # func_dirname file append nondir_replacement
17020 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17021 # otherwise set result to NONDIR_REPLACEMENT.
17022 func_dirname ()
17023 {
17024 case ${1} in
17025 */*) func_dirname_result="${1%/*}${2}" ;;
17026 * ) func_dirname_result="${3}" ;;
17027 esac
17028 }
17029
17030 # func_basename file
17031 func_basename ()
17032 {
17033 func_basename_result="${1##*/}"
17034 }
17035
17036 # func_dirname_and_basename file append nondir_replacement
17037 # perform func_basename and func_dirname in a single function
17038 # call:
17039 # dirname: Compute the dirname of FILE. If nonempty,
17040 # add APPEND to the result, otherwise set result
17041 # to NONDIR_REPLACEMENT.
17042 # value returned in "$func_dirname_result"
17043 # basename: Compute filename of FILE.
17044 # value retuned in "$func_basename_result"
17045 # Implementation must be kept synchronized with func_dirname
17046 # and func_basename. For efficiency, we do not delegate to
17047 # those functions but instead duplicate the functionality here.
17048 func_dirname_and_basename ()
17049 {
17050 case ${1} in
17051 */*) func_dirname_result="${1%/*}${2}" ;;
17052 * ) func_dirname_result="${3}" ;;
17053 esac
17054 func_basename_result="${1##*/}"
17055 }
17056
17057 # func_stripname prefix suffix name
17058 # strip PREFIX and SUFFIX off of NAME.
17059 # PREFIX and SUFFIX must not contain globbing or regex special
17060 # characters, hashes, percent signs, but SUFFIX may contain a leading
17061 # dot (in which case that matches only a dot).
17062 func_stripname ()
17063 {
17064 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17065 # positional parameters, so assign one to ordinary parameter first.
17066 func_stripname_result=${3}
17067 func_stripname_result=${func_stripname_result#"${1}"}
17068 func_stripname_result=${func_stripname_result%"${2}"}
17069 }
17070
17071 # func_opt_split
17072 func_opt_split ()
17073 {
17074 func_opt_split_opt=${1%%=*}
17075 func_opt_split_arg=${1#*=}
17076 }
17077
17078 # func_lo2o object
17079 func_lo2o ()
17080 {
17081 case ${1} in
17082 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17083 *) func_lo2o_result=${1} ;;
17084 esac
17085 }
17086
17087 # func_xform libobj-or-source
17088 func_xform ()
17089 {
17090 func_xform_result=${1%.*}.lo
17091 }
17092
17093 # func_arith arithmetic-term...
17094 func_arith ()
17095 {
17096 func_arith_result=$(( $* ))
17097 }
17098
17099 # func_len string
17100 # STRING may not start with a hyphen.
17101 func_len ()
17102 {
17103 func_len_result=${#1}
17104 }
17105
17106 _LT_EOF
17107 ;;
17108 *) # Bourne compatible functions.
17109 cat << \_LT_EOF >> "$cfgfile"
17110
17111 # func_dirname file append nondir_replacement
17112 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17113 # otherwise set result to NONDIR_REPLACEMENT.
17114 func_dirname ()
17115 {
17116 # Extract subdirectory from the argument.
17117 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17118 if test "X$func_dirname_result" = "X${1}"; then
17119 func_dirname_result="${3}"
17120 else
17121 func_dirname_result="$func_dirname_result${2}"
17122 fi
17123 }
17124
17125 # func_basename file
17126 func_basename ()
17127 {
17128 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17129 }
17130
17131
17132 # func_stripname prefix suffix name
17133 # strip PREFIX and SUFFIX off of NAME.
17134 # PREFIX and SUFFIX must not contain globbing or regex special
17135 # characters, hashes, percent signs, but SUFFIX may contain a leading
17136 # dot (in which case that matches only a dot).
17137 # func_strip_suffix prefix name
17138 func_stripname ()
17139 {
17140 case ${2} in
17141 .*) func_stripname_result=`$ECHO "X${3}" \
17142 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17143 *) func_stripname_result=`$ECHO "X${3}" \
17144 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17145 esac
17146 }
17147
17148 # sed scripts:
17149 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17150 my_sed_long_arg='1s/^-[^=]*=//'
17151
17152 # func_opt_split
17153 func_opt_split ()
17154 {
17155 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17156 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17157 }
17158
17159 # func_lo2o object
17160 func_lo2o ()
17161 {
17162 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17163 }
17164
17165 # func_xform libobj-or-source
17166 func_xform ()
17167 {
17168 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17169 }
17170
17171 # func_arith arithmetic-term...
17172 func_arith ()
17173 {
17174 func_arith_result=`expr "$@"`
17175 }
17176
17177 # func_len string
17178 # STRING may not start with a hyphen.
17179 func_len ()
17180 {
17181 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17182 }
17183
17184 _LT_EOF
17185 esac
17186
17187 case $lt_shell_append in
17188 yes)
17189 cat << \_LT_EOF >> "$cfgfile"
17190
17191 # func_append var value
17192 # Append VALUE to the end of shell variable VAR.
17193 func_append ()
17194 {
17195 eval "$1+=\$2"
17196 }
17197 _LT_EOF
17198 ;;
17199 *)
17200 cat << \_LT_EOF >> "$cfgfile"
17201
17202 # func_append var value
17203 # Append VALUE to the end of shell variable VAR.
17204 func_append ()
17205 {
17206 eval "$1=\$$1\$2"
17207 }
17208
17209 _LT_EOF
17210 ;;
17211 esac
17212
17213
17214 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17215 || (rm -f "$cfgfile"; exit 1)
17216
17217 mv -f "$cfgfile" "$ofile" ||
17218 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17219 chmod +x "$ofile"
17220
17221 ;;
17222
17223 esac
17224 done # for ac_tag
17225
17226
17227 { (exit 0); exit 0; }
17228 _ACEOF
17229 chmod +x $CONFIG_STATUS
17230 ac_clean_files=$ac_clean_files_save
17231
17232 test $ac_write_fail = 0 ||
17233 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17234 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17235 { (exit 1); exit 1; }; }
17236
17237
17238 # configure is writing to config.log, and then calls config.status.
17239 # config.status does its own redirection, appending to config.log.
17240 # Unfortunately, on DOS this fails, as config.log is still kept open
17241 # by configure, so config.status won't be able to write to it; its
17242 # output is simply discarded. So we exec the FD to /dev/null,
17243 # effectively closing config.log, so it can be properly (re)opened and
17244 # appended to by config.status. When coming back to configure, we
17245 # need to make the FD available again.
17246 if test "$no_create" != yes; then
17247 ac_cs_success=:
17248 ac_config_status_args=
17249 test "$silent" = yes &&
17250 ac_config_status_args="$ac_config_status_args --quiet"
17251 exec 5>/dev/null
17252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17253 exec 5>>config.log
17254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17255 # would make configure fail if this is the last instruction.
17256 $ac_cs_success || { (exit 1); exit 1; }
17257 fi
17258 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17259 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17260 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17261 fi
17262
17263