configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-video-i740 1.3.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 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-i740'
747 PACKAGE_TARNAME='xf86-video-i740'
748 PACKAGE_VERSION='1.3.0'
749 PACKAGE_STRING='xf86-video-i740 1.3.0'
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 XSERVER_LIBPCIACCESS_FALSE
816 XSERVER_LIBPCIACCESS_TRUE
817 PCIACCESS_LIBS
818 PCIACCESS_CFLAGS
819 XORG_LIBS
820 XORG_CFLAGS
821 PKG_CONFIG
822 CPP
823 OTOOL64
824 OTOOL
825 LIPO
826 NMEDIT
827 DSYMUTIL
828 lt_ECHO
829 RANLIB
830 AR
831 OBJDUMP
832 LN_S
833 NM
834 ac_ct_DUMPBIN
835 DUMPBIN
836 LD
837 FGREP
838 EGREP
839 GREP
840 SED
841 am__fastdepCC_FALSE
842 am__fastdepCC_TRUE
843 CCDEPMODE
844 AMDEPBACKSLASH
845 AMDEP_FALSE
846 AMDEP_TRUE
847 am__quote
848 am__include
849 DEPDIR
850 OBJEXT
851 EXEEXT
852 ac_ct_CC
853 CPPFLAGS
854 LDFLAGS
855 CFLAGS
856 CC
857 host_os
858 host_vendor
859 host_cpu
860 host
861 build_os
862 build_vendor
863 build_cpu
864 build
865 LIBTOOL
866 MAINT
867 MAINTAINER_MODE_FALSE
868 MAINTAINER_MODE_TRUE
869 am__untar
870 am__tar
871 AMTAR
872 am__leading_dot
873 SET_MAKE
874 AWK
875 mkdir_p
876 MKDIR_P
877 INSTALL_STRIP_PROGRAM
878 STRIP
879 install_sh
880 MAKEINFO
881 AUTOHEADER
882 AUTOMAKE
883 AUTOCONF
884 ACLOCAL
885 VERSION
886 PACKAGE
887 CYGPATH_W
888 am__isrc
889 INSTALL_DATA
890 INSTALL_SCRIPT
891 INSTALL_PROGRAM
892 target_alias
893 host_alias
894 build_alias
895 LIBS
896 ECHO_T
897 ECHO_N
898 ECHO_C
899 DEFS
900 mandir
901 localedir
902 libdir
903 psdir
904 pdfdir
905 dvidir
906 htmldir
907 infodir
908 docdir
909 oldincludedir
910 includedir
911 localstatedir
912 sharedstatedir
913 sysconfdir
914 datadir
915 datarootdir
916 libexecdir
917 sbindir
918 bindir
919 program_transform_name
920 prefix
921 exec_prefix
922 PACKAGE_BUGREPORT
923 PACKAGE_STRING
924 PACKAGE_VERSION
925 PACKAGE_TARNAME
926 PACKAGE_NAME
927 PATH_SEPARATOR
928 SHELL'
929 ac_subst_files=''
930 ac_user_opts='
931 enable_option_checking
932 enable_maintainer_mode
933 enable_static
934 enable_shared
935 with_pic
936 enable_fast_install
937 enable_dependency_tracking
938 with_gnu_ld
939 enable_libtool_lock
940 with_xorg_module_dir
941 with_release_version
942 '
943 ac_precious_vars='build_alias
944 host_alias
945 target_alias
946 CC
947 CFLAGS
948 LDFLAGS
949 LIBS
950 CPPFLAGS
951 CPP
952 PKG_CONFIG
953 XORG_CFLAGS
954 XORG_LIBS
955 PCIACCESS_CFLAGS
956 PCIACCESS_LIBS'
957
958
959 # Initialize some variables set by options.
960 ac_init_help=
961 ac_init_version=false
962 ac_unrecognized_opts=
963 ac_unrecognized_sep=
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
966 cache_file=/dev/null
967 exec_prefix=NONE
968 no_create=
969 no_recursion=
970 prefix=NONE
971 program_prefix=NONE
972 program_suffix=NONE
973 program_transform_name=s,x,x,
974 silent=
975 site=
976 srcdir=
977 verbose=
978 x_includes=NONE
979 x_libraries=NONE
980
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir='${datarootdir}/info'
999 htmldir='${docdir}'
1000 dvidir='${docdir}'
1001 pdfdir='${docdir}'
1002 psdir='${docdir}'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1006
1007 ac_prev=
1008 ac_dashdash=
1009 for ac_option
1010 do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1014 ac_prev=
1015 continue
1016 fi
1017
1018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
1022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
1028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
1049 -datadir | --datadir | --datadi | --datad)
1050 ac_prev=datadir ;;
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1053
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
1061 -disable-* | --disable-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1070 *"
1071 "enable_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=no ;;
1077
1078 -docdir | --docdir | --docdi | --doc | --do)
1079 ac_prev=docdir ;;
1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081 docdir=$ac_optarg ;;
1082
1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084 ac_prev=dvidir ;;
1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086 dvidir=$ac_optarg ;;
1087
1088 -enable-* | --enable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1093 { (exit 1); exit 1; }; }
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1097 *"
1098 "enable_$ac_useropt"
1099 "*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1103 eval enable_$ac_useropt=\$ac_optarg ;;
1104
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1113
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1116 with_gas=yes ;;
1117
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1124
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1129
1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 ac_prev=htmldir ;;
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 | --ht=*)
1134 htmldir=$ac_optarg ;;
1135
1136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1142
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 ac_prev=infodir ;;
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1147
1148 -libdir | --libdir | --libdi | --libd)
1149 ac_prev=libdir ;;
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1152
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1159
1160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1164
1165 -localstatedir | --localstatedir | --localstatedi | --localstated \
1166 | --localstate | --localstat | --localsta | --localst | --locals)
1167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170 localstatedir=$ac_optarg ;;
1171
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 ac_prev=mandir ;;
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1176
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1179 with_fp=no ;;
1180
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1183 no_create=yes ;;
1184
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 no_recursion=yes ;;
1188
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1197
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 ac_prev=prefix ;;
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1202
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1209
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1216
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1233
1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 ac_prev=pdfdir ;;
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1238
1239 -psdir | --psdir | --psdi | --psd | --ps)
1240 ac_prev=psdir ;;
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242 psdir=$ac_optarg ;;
1243
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 silent=yes ;;
1247
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 ac_prev=sbindir ;;
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 | --sbi=* | --sb=*)
1252 sbindir=$ac_optarg ;;
1253
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1257 | --sha | --sh)
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 | --sha=* | --sh=*)
1263 sharedstatedir=$ac_optarg ;;
1264
1265 -site | --site | --sit)
1266 ac_prev=site ;;
1267 -site=* | --site=* | --sit=*)
1268 site=$ac_optarg ;;
1269
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 ac_prev=srcdir ;;
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1274
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1281
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1286
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 verbose=yes ;;
1289
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1292
1293 -with-* | --with-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1298 { (exit 1); exit 1; }; }
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1302 *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=\$ac_optarg ;;
1309
1310 -without-* | --without-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1315 { (exit 1); exit 1; }; }
1316 ac_useropt_orig=$ac_useropt
1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1319 *"
1320 "with_$ac_useropt"
1321 "*) ;;
1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323 ac_unrecognized_sep=', ';;
1324 esac
1325 eval with_$ac_useropt=no ;;
1326
1327 --x)
1328 # Obsolete; use --with-x.
1329 with_x=yes ;;
1330
1331 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1332 | --x-incl | --x-inc | --x-in | --x-i)
1333 ac_prev=x_includes ;;
1334 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1335 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1336 x_includes=$ac_optarg ;;
1337
1338 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1339 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1340 ac_prev=x_libraries ;;
1341 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1342 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1343 x_libraries=$ac_optarg ;;
1344
1345 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1346 Try \`$0 --help' for more information." >&2
1347 { (exit 1); exit 1; }; }
1348 ;;
1349
1350 *=*)
1351 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1354 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1355 { (exit 1); exit 1; }; }
1356 eval $ac_envvar=\$ac_optarg
1357 export $ac_envvar ;;
1358
1359 *)
1360 # FIXME: should be removed in autoconf 3.0.
1361 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1363 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1365 ;;
1366
1367 esac
1368 done
1369
1370 if test -n "$ac_prev"; then
1371 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1372 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1373 { (exit 1); exit 1; }; }
1374 fi
1375
1376 if test -n "$ac_unrecognized_opts"; then
1377 case $enable_option_checking in
1378 no) ;;
1379 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1380 { (exit 1); exit 1; }; } ;;
1381 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 esac
1383 fi
1384
1385 # Check all directory arguments for consistency.
1386 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387 datadir sysconfdir sharedstatedir localstatedir includedir \
1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389 libdir localedir mandir
1390 do
1391 eval ac_val=\$$ac_var
1392 # Remove trailing slashes.
1393 case $ac_val in
1394 */ )
1395 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396 eval $ac_var=\$ac_val;;
1397 esac
1398 # Be sure to have absolute directory names.
1399 case $ac_val in
1400 [\\/$]* | ?:[\\/]* ) continue;;
1401 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402 esac
1403 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1404 { (exit 1); exit 1; }; }
1405 done
1406
1407 # There might be people who depend on the old broken behavior: `$host'
1408 # used to hold the argument of --host etc.
1409 # FIXME: To remove some day.
1410 build=$build_alias
1411 host=$host_alias
1412 target=$target_alias
1413
1414 # FIXME: To remove some day.
1415 if test "x$host_alias" != x; then
1416 if test "x$build_alias" = x; then
1417 cross_compiling=maybe
1418 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1419 If a cross compiler is detected then cross compile mode will be used." >&2
1420 elif test "x$build_alias" != "x$host_alias"; then
1421 cross_compiling=yes
1422 fi
1423 fi
1424
1425 ac_tool_prefix=
1426 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1427
1428 test "$silent" = yes && exec 6>/dev/null
1429
1430
1431 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1432 ac_ls_di=`ls -di .` &&
1433 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1434 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1435 { (exit 1); exit 1; }; }
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1438 { (exit 1); exit 1; }; }
1439
1440
1441 # Find the source files, if location was not specified.
1442 if test -z "$srcdir"; then
1443 ac_srcdir_defaulted=yes
1444 # Try the directory containing this script, then the parent directory.
1445 ac_confdir=`$as_dirname -- "$as_myself" ||
1446 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1447 X"$as_myself" : 'X\(//\)[^/]' \| \
1448 X"$as_myself" : 'X\(//\)$' \| \
1449 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1450 $as_echo X"$as_myself" |
1451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1452 s//\1/
1453 q
1454 }
1455 /^X\(\/\/\)[^/].*/{
1456 s//\1/
1457 q
1458 }
1459 /^X\(\/\/\)$/{
1460 s//\1/
1461 q
1462 }
1463 /^X\(\/\).*/{
1464 s//\1/
1465 q
1466 }
1467 s/.*/./; q'`
1468 srcdir=$ac_confdir
1469 if test ! -r "$srcdir/$ac_unique_file"; then
1470 srcdir=..
1471 fi
1472 else
1473 ac_srcdir_defaulted=no
1474 fi
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1477 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1478 { (exit 1); exit 1; }; }
1479 fi
1480 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1481 ac_abs_confdir=`(
1482 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1483 { (exit 1); exit 1; }; }
1484 pwd)`
1485 # When building in place, set srcdir=.
1486 if test "$ac_abs_confdir" = "$ac_pwd"; then
1487 srcdir=.
1488 fi
1489 # Remove unnecessary trailing slashes from srcdir.
1490 # Double slashes in file names in object file debugging info
1491 # mess up M-x gdb in Emacs.
1492 case $srcdir in
1493 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1494 esac
1495 for ac_var in $ac_precious_vars; do
1496 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1497 eval ac_env_${ac_var}_value=\$${ac_var}
1498 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1499 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1500 done
1501
1502 #
1503 # Report the --help message.
1504 #
1505 if test "$ac_init_help" = "long"; then
1506 # Omit some internal or obsolete options to make the list less imposing.
1507 # This message is too long to be a string in the A/UX 3.1 sh.
1508 cat <<_ACEOF
1509 \`configure' configures xf86-video-i740 1.3.0 to adapt to many kinds of systems.
1510
1511 Usage: $0 [OPTION]... [VAR=VALUE]...
1512
1513 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1514 VAR=VALUE. See below for descriptions of some of the useful variables.
1515
1516 Defaults for the options are specified in brackets.
1517
1518 Configuration:
1519 -h, --help display this help and exit
1520 --help=short display options specific to this package
1521 --help=recursive display the short help of all the included packages
1522 -V, --version display version information and exit
1523 -q, --quiet, --silent do not print \`checking...' messages
1524 --cache-file=FILE cache test results in FILE [disabled]
1525 -C, --config-cache alias for \`--cache-file=config.cache'
1526 -n, --no-create do not create output files
1527 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1528
1529 Installation directories:
1530 --prefix=PREFIX install architecture-independent files in PREFIX
1531 [$ac_default_prefix]
1532 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1533 [PREFIX]
1534
1535 By default, \`make install' will install all the files in
1536 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1537 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1538 for instance \`--prefix=\$HOME'.
1539
1540 For better control, use the options below.
1541
1542 Fine tuning of the installation directories:
1543 --bindir=DIR user executables [EPREFIX/bin]
1544 --sbindir=DIR system admin executables [EPREFIX/sbin]
1545 --libexecdir=DIR program executables [EPREFIX/libexec]
1546 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1547 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1548 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1549 --libdir=DIR object code libraries [EPREFIX/lib]
1550 --includedir=DIR C header files [PREFIX/include]
1551 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1552 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1553 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1554 --infodir=DIR info documentation [DATAROOTDIR/info]
1555 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1556 --mandir=DIR man documentation [DATAROOTDIR/man]
1557 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-i740]
1558 --htmldir=DIR html documentation [DOCDIR]
1559 --dvidir=DIR dvi documentation [DOCDIR]
1560 --pdfdir=DIR pdf documentation [DOCDIR]
1561 --psdir=DIR ps documentation [DOCDIR]
1562 _ACEOF
1563
1564 cat <<\_ACEOF
1565
1566 Program names:
1567 --program-prefix=PREFIX prepend PREFIX to installed program names
1568 --program-suffix=SUFFIX append SUFFIX to installed program names
1569 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1570
1571 System types:
1572 --build=BUILD configure for building on BUILD [guessed]
1573 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1574 _ACEOF
1575 fi
1576
1577 if test -n "$ac_init_help"; then
1578 case $ac_init_help in
1579 short | recursive ) echo "Configuration of xf86-video-i740 1.3.0:";;
1580 esac
1581 cat <<\_ACEOF
1582
1583 Optional Features:
1584 --disable-option-checking ignore unrecognized --enable/--with options
1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1587 --enable-maintainer-mode enable make rules and dependencies not useful
1588 (and sometimes confusing) to the casual installer
1589 --enable-static[=PKGS] build static libraries [default=no]
1590 --enable-shared[=PKGS] build shared libraries [default=yes]
1591 --enable-fast-install[=PKGS]
1592 optimize for fast installation [default=yes]
1593 --disable-dependency-tracking speeds up one-time build
1594 --enable-dependency-tracking do not reject slow dependency extractors
1595 --disable-libtool-lock avoid locking (might break parallel builds)
1596
1597 Optional Packages:
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600 --with-pic try to use only PIC/non-PIC objects [default=use
1601 both]
1602 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1603 --with-xorg-module-dir=DIR
1604 Default xorg module directory
1605 [default=$libdir/xorg/modules]
1606 --with-release-version=STRING
1607 Use release version string in package name
1608
1609 Some influential environment variables:
1610 CC C compiler command
1611 CFLAGS C compiler flags
1612 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1613 nonstandard directory <lib dir>
1614 LIBS libraries to pass to the linker, e.g. -l<library>
1615 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1616 you have headers in a nonstandard directory <include dir>
1617 CPP C preprocessor
1618 PKG_CONFIG path to pkg-config utility
1619 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1620 XORG_LIBS linker flags for XORG, overriding pkg-config
1621 PCIACCESS_CFLAGS
1622 C compiler flags for PCIACCESS, overriding pkg-config
1623 PCIACCESS_LIBS
1624 linker flags for PCIACCESS, overriding pkg-config
1625
1626 Use these variables to override the choices made by `configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1628
1629 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1630 _ACEOF
1631 ac_status=$?
1632 fi
1633
1634 if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" ||
1638 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639 continue
1640 ac_builddir=.
1641
1642 case "$ac_dir" in
1643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *)
1645 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646 # A ".." for each directory in $ac_dir_suffix.
1647 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648 case $ac_top_builddir_sub in
1649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 esac ;;
1652 esac
1653 ac_abs_top_builddir=$ac_pwd
1654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655 # for backward compatibility:
1656 ac_top_builddir=$ac_top_build_prefix
1657
1658 case $srcdir in
1659 .) # We are building in place.
1660 ac_srcdir=.
1661 ac_top_srcdir=$ac_top_builddir_sub
1662 ac_abs_top_srcdir=$ac_pwd ;;
1663 [\\/]* | ?:[\\/]* ) # Absolute name.
1664 ac_srcdir=$srcdir$ac_dir_suffix;
1665 ac_top_srcdir=$srcdir
1666 ac_abs_top_srcdir=$srcdir ;;
1667 *) # Relative name.
1668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669 ac_top_srcdir=$ac_top_build_prefix$srcdir
1670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671 esac
1672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673
1674 cd "$ac_dir" || { ac_status=$?; continue; }
1675 # Check for guested configure.
1676 if test -f "$ac_srcdir/configure.gnu"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679 elif test -f "$ac_srcdir/configure"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure" --help=recursive
1682 else
1683 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684 fi || ac_status=$?
1685 cd "$ac_pwd" || { ac_status=$?; break; }
1686 done
1687 fi
1688
1689 test -n "$ac_init_help" && exit $ac_status
1690 if $ac_init_version; then
1691 cat <<\_ACEOF
1692 xf86-video-i740 configure 1.3.0
1693 generated by GNU Autoconf 2.63
1694
1695 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1696 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1699 _ACEOF
1700 exit
1701 fi
1702 cat >config.log <<_ACEOF
1703 This file contains any messages produced by compilers while
1704 running configure, to aid debugging if configure makes a mistake.
1705
1706 It was created by xf86-video-i740 $as_me 1.3.0, which was
1707 generated by GNU Autoconf 2.63. Invocation command line was
1708
1709 $ $0 $@
1710
1711 _ACEOF
1712 exec 5>>config.log
1713 {
1714 cat <<_ASUNAME
1715 ## --------- ##
1716 ## Platform. ##
1717 ## --------- ##
1718
1719 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
1725 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1727
1728 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1729 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1730 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1732 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1733 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1734 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1735
1736 _ASUNAME
1737
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 for as_dir in $PATH
1740 do
1741 IFS=$as_save_IFS
1742 test -z "$as_dir" && as_dir=.
1743 $as_echo "PATH: $as_dir"
1744 done
1745 IFS=$as_save_IFS
1746
1747 } >&5
1748
1749 cat >&5 <<_ACEOF
1750
1751
1752 ## ----------- ##
1753 ## Core tests. ##
1754 ## ----------- ##
1755
1756 _ACEOF
1757
1758
1759 # Keep a trace of the command line.
1760 # Strip out --no-create and --no-recursion so they do not pile up.
1761 # Strip out --silent because we don't want to record it for future runs.
1762 # Also quote any args containing shell meta-characters.
1763 # Make two passes to allow for proper duplicate-argument suppression.
1764 ac_configure_args=
1765 ac_configure_args0=
1766 ac_configure_args1=
1767 ac_must_keep_next=false
1768 for ac_pass in 1 2
1769 do
1770 for ac_arg
1771 do
1772 case $ac_arg in
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1776 continue ;;
1777 *\'*)
1778 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 esac
1780 case $ac_pass in
1781 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1782 2)
1783 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
1785 ac_must_keep_next=false # Got value, back to normal.
1786 else
1787 case $ac_arg in
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794 esac
1795 ;;
1796 -* ) ac_must_keep_next=true ;;
1797 esac
1798 fi
1799 ac_configure_args="$ac_configure_args '$ac_arg'"
1800 ;;
1801 esac
1802 done
1803 done
1804 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1806
1807 # When interrupted or exit'd, cleanup temporary files, and complete
1808 # config.log. We remove comments because anyway the quotes in there
1809 # would cause problems or look ugly.
1810 # WARNING: Use '\'' to represent an apostrophe within the trap.
1811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812 trap 'exit_status=$?
1813 # Save into config.log some information that might help in debugging.
1814 {
1815 echo
1816
1817 cat <<\_ASBOX
1818 ## ---------------- ##
1819 ## Cache variables. ##
1820 ## ---------------- ##
1821 _ASBOX
1822 echo
1823 # The following way of writing the cache mishandles newlines in values,
1824 (
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in #(
1828 *${as_nl}*)
1829 case $ac_var in #(
1830 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1831 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1832 esac
1833 case $ac_var in #(
1834 _ | IFS | as_nl) ;; #(
1835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1836 *) $as_unset $ac_var ;;
1837 esac ;;
1838 esac
1839 done
1840 (set) 2>&1 |
1841 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1842 *${as_nl}ac_space=\ *)
1843 sed -n \
1844 "s/'\''/'\''\\\\'\'''\''/g;
1845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1846 ;; #(
1847 *)
1848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849 ;;
1850 esac |
1851 sort
1852 )
1853 echo
1854
1855 cat <<\_ASBOX
1856 ## ----------------- ##
1857 ## Output variables. ##
1858 ## ----------------- ##
1859 _ASBOX
1860 echo
1861 for ac_var in $ac_subst_vars
1862 do
1863 eval ac_val=\$$ac_var
1864 case $ac_val in
1865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866 esac
1867 $as_echo "$ac_var='\''$ac_val'\''"
1868 done | sort
1869 echo
1870
1871 if test -n "$ac_subst_files"; then
1872 cat <<\_ASBOX
1873 ## ------------------- ##
1874 ## File substitutions. ##
1875 ## ------------------- ##
1876 _ASBOX
1877 echo
1878 for ac_var in $ac_subst_files
1879 do
1880 eval ac_val=\$$ac_var
1881 case $ac_val in
1882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883 esac
1884 $as_echo "$ac_var='\''$ac_val'\''"
1885 done | sort
1886 echo
1887 fi
1888
1889 if test -s confdefs.h; then
1890 cat <<\_ASBOX
1891 ## ----------- ##
1892 ## confdefs.h. ##
1893 ## ----------- ##
1894 _ASBOX
1895 echo
1896 cat confdefs.h
1897 echo
1898 fi
1899 test "$ac_signal" != 0 &&
1900 $as_echo "$as_me: caught signal $ac_signal"
1901 $as_echo "$as_me: exit $exit_status"
1902 } >&5
1903 rm -f core *.core core.conftest.* &&
1904 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1905 exit $exit_status
1906 ' 0
1907 for ac_signal in 1 2 13 15; do
1908 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1909 done
1910 ac_signal=0
1911
1912 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1913 rm -f -r conftest* confdefs.h
1914
1915 # Predefined preprocessor variables.
1916
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_NAME "$PACKAGE_NAME"
1919 _ACEOF
1920
1921
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1924 _ACEOF
1925
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1929 _ACEOF
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_STRING "$PACKAGE_STRING"
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1939 _ACEOF
1940
1941
1942 # Let the site file select an alternate cache file if it wants to.
1943 # Prefer an explicitly selected file to automatically selected ones.
1944 ac_site_file1=NONE
1945 ac_site_file2=NONE
1946 if test -n "$CONFIG_SITE"; then
1947 ac_site_file1=$CONFIG_SITE
1948 elif test "x$prefix" != xNONE; then
1949 ac_site_file1=$prefix/share/config.site
1950 ac_site_file2=$prefix/etc/config.site
1951 else
1952 ac_site_file1=$ac_default_prefix/share/config.site
1953 ac_site_file2=$ac_default_prefix/etc/config.site
1954 fi
1955 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1956 do
1957 test "x$ac_site_file" = xNONE && continue
1958 if test -r "$ac_site_file"; then
1959 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1960 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1961 sed 's/^/| /' "$ac_site_file" >&5
1962 . "$ac_site_file"
1963 fi
1964 done
1965
1966 if test -r "$cache_file"; then
1967 # Some versions of bash will fail to source /dev/null (special
1968 # files actually), so we avoid doing that.
1969 if test -f "$cache_file"; then
1970 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1971 $as_echo "$as_me: loading cache $cache_file" >&6;}
1972 case $cache_file in
1973 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1974 *) . "./$cache_file";;
1975 esac
1976 fi
1977 else
1978 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1979 $as_echo "$as_me: creating cache $cache_file" >&6;}
1980 >$cache_file
1981 fi
1982
1983 # Check that the precious variables saved in the cache have kept the same
1984 # value.
1985 ac_cache_corrupted=false
1986 for ac_var in $ac_precious_vars; do
1987 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1988 eval ac_new_set=\$ac_env_${ac_var}_set
1989 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1990 eval ac_new_val=\$ac_env_${ac_var}_value
1991 case $ac_old_set,$ac_new_set in
1992 set,)
1993 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1994 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1996 ,set)
1997 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1998 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1999 ac_cache_corrupted=: ;;
2000 ,);;
2001 *)
2002 if test "x$ac_old_val" != "x$ac_new_val"; then
2003 # differences in whitespace do not lead to failure.
2004 ac_old_val_w=`echo x $ac_old_val`
2005 ac_new_val_w=`echo x $ac_new_val`
2006 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2008 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2009 ac_cache_corrupted=:
2010 else
2011 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2012 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2013 eval $ac_var=\$ac_old_val
2014 fi
2015 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2016 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2017 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2018 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2019 fi;;
2020 esac
2021 # Pass precious variables to config.status.
2022 if test "$ac_new_set" = set; then
2023 case $ac_new_val in
2024 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2025 *) ac_arg=$ac_var=$ac_new_val ;;
2026 esac
2027 case " $ac_configure_args " in
2028 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2029 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2030 esac
2031 fi
2032 done
2033 if $ac_cache_corrupted; then
2034 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2037 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2038 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2039 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2040 { (exit 1); exit 1; }; }
2041 fi
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067 ac_ext=c
2068 ac_cpp='$CPP $CPPFLAGS'
2069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2072
2073
2074
2075
2076 ac_config_headers="$ac_config_headers config.h"
2077
2078 ac_aux_dir=
2079 for ac_dir in . "$srcdir"/.; do
2080 if test -f "$ac_dir/install-sh"; then
2081 ac_aux_dir=$ac_dir
2082 ac_install_sh="$ac_aux_dir/install-sh -c"
2083 break
2084 elif test -f "$ac_dir/install.sh"; then
2085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/install.sh -c"
2087 break
2088 elif test -f "$ac_dir/shtool"; then
2089 ac_aux_dir=$ac_dir
2090 ac_install_sh="$ac_aux_dir/shtool install -c"
2091 break
2092 fi
2093 done
2094 if test -z "$ac_aux_dir"; then
2095 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2096 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2097 { (exit 1); exit 1; }; }
2098 fi
2099
2100 # These three variables are undocumented and unsupported,
2101 # and are intended to be withdrawn in a future Autoconf release.
2102 # They can cause serious problems if a builder's source tree is in a directory
2103 # whose full name contains unusual characters.
2104 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2105 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2106 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2107
2108
2109
2110 am__api_version='1.10'
2111
2112 # Find a good install program. We prefer a C program (faster),
2113 # so one script is as good as another. But avoid the broken or
2114 # incompatible versions:
2115 # SysV /etc/install, /usr/sbin/install
2116 # SunOS /usr/etc/install
2117 # IRIX /sbin/install
2118 # AIX /bin/install
2119 # AmigaOS /C/install, which installs bootblocks on floppy discs
2120 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2121 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2122 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2123 # OS/2's system install, which has a completely different semantic
2124 # ./install, which can be erroneously created by make from ./install.sh.
2125 # Reject install programs that cannot install multiple files.
2126 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2127 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2128 if test -z "$INSTALL"; then
2129 if test "${ac_cv_path_install+set}" = set; then
2130 $as_echo_n "(cached) " >&6
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2134 do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 # Account for people who put trailing slashes in PATH elements.
2138 case $as_dir/ in
2139 ./ | .// | /cC/* | \
2140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2141 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2142 /usr/ucb/* ) ;;
2143 *)
2144 # OSF1 and SCO ODT 3.0 have their own names for install.
2145 # Don't use installbsd from OSF since it installs stuff as root
2146 # by default.
2147 for ac_prog in ginstall scoinst install; do
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2150 if test $ac_prog = install &&
2151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2152 # AIX install. It has an incompatible calling convention.
2153 :
2154 elif test $ac_prog = install &&
2155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2156 # program-specific install script used by HP pwplus--don't use.
2157 :
2158 else
2159 rm -rf conftest.one conftest.two conftest.dir
2160 echo one > conftest.one
2161 echo two > conftest.two
2162 mkdir conftest.dir
2163 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2164 test -s conftest.one && test -s conftest.two &&
2165 test -s conftest.dir/conftest.one &&
2166 test -s conftest.dir/conftest.two
2167 then
2168 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2169 break 3
2170 fi
2171 fi
2172 fi
2173 done
2174 done
2175 ;;
2176 esac
2177
2178 done
2179 IFS=$as_save_IFS
2180
2181 rm -rf conftest.one conftest.two conftest.dir
2182
2183 fi
2184 if test "${ac_cv_path_install+set}" = set; then
2185 INSTALL=$ac_cv_path_install
2186 else
2187 # As a last resort, use the slow shell script. Don't cache a
2188 # value for INSTALL within a source directory, because that will
2189 # break other packages using the cache if that directory is
2190 # removed, or if the value is a relative name.
2191 INSTALL=$ac_install_sh
2192 fi
2193 fi
2194 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2195 $as_echo "$INSTALL" >&6; }
2196
2197 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2198 # It thinks the first close brace ends the variable substitution.
2199 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2200
2201 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2202
2203 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2204
2205 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2206 $as_echo_n "checking whether build environment is sane... " >&6; }
2207 # Just in case
2208 sleep 1
2209 echo timestamp > conftest.file
2210 # Do `set' in a subshell so we don't clobber the current shell's
2211 # arguments. Must try -L first in case configure is actually a
2212 # symlink; some systems play weird games with the mod time of symlinks
2213 # (eg FreeBSD returns the mod time of the symlink's containing
2214 # directory).
2215 if (
2216 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2217 if test "$*" = "X"; then
2218 # -L didn't work.
2219 set X `ls -t $srcdir/configure conftest.file`
2220 fi
2221 rm -f conftest.file
2222 if test "$*" != "X $srcdir/configure conftest.file" \
2223 && test "$*" != "X conftest.file $srcdir/configure"; then
2224
2225 # If neither matched, then we have a broken ls. This can happen
2226 # if, for instance, CONFIG_SHELL is bash and it inherits a
2227 # broken ls alias from the environment. This has actually
2228 # happened. Such a system could not be considered "sane".
2229 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2230 alias in your environment" >&5
2231 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2232 alias in your environment" >&2;}
2233 { (exit 1); exit 1; }; }
2234 fi
2235
2236 test "$2" = conftest.file
2237 )
2238 then
2239 # Ok.
2240 :
2241 else
2242 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2243 Check your system clock" >&5
2244 $as_echo "$as_me: error: newly created file is older than distributed files!
2245 Check your system clock" >&2;}
2246 { (exit 1); exit 1; }; }
2247 fi
2248 { $as_echo "$as_me:$LINENO: result: yes" >&5
2249 $as_echo "yes" >&6; }
2250 test "$program_prefix" != NONE &&
2251 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2252 # Use a double $ so make ignores it.
2253 test "$program_suffix" != NONE &&
2254 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2255 # Double any \ or $.
2256 # By default was `s,x,x', remove it if useless.
2257 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2258 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2259
2260 # expand $ac_aux_dir to an absolute path
2261 am_aux_dir=`cd $ac_aux_dir && pwd`
2262
2263 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2264 # Use eval to expand $SHELL
2265 if eval "$MISSING --run true"; then
2266 am_missing_run="$MISSING --run "
2267 else
2268 am_missing_run=
2269 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2270 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2271 fi
2272
2273 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2274 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2275 if test -z "$MKDIR_P"; then
2276 if test "${ac_cv_path_mkdir+set}" = set; then
2277 $as_echo_n "(cached) " >&6
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2281 do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_prog in mkdir gmkdir; do
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2287 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2288 'mkdir (GNU coreutils) '* | \
2289 'mkdir (coreutils) '* | \
2290 'mkdir (fileutils) '4.1*)
2291 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2292 break 3;;
2293 esac
2294 done
2295 done
2296 done
2297 IFS=$as_save_IFS
2298
2299 fi
2300
2301 if test "${ac_cv_path_mkdir+set}" = set; then
2302 MKDIR_P="$ac_cv_path_mkdir -p"
2303 else
2304 # As a last resort, use the slow shell script. Don't cache a
2305 # value for MKDIR_P within a source directory, because that will
2306 # break other packages using the cache if that directory is
2307 # removed, or if the value is a relative name.
2308 test -d ./--version && rmdir ./--version
2309 MKDIR_P="$ac_install_sh -d"
2310 fi
2311 fi
2312 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2313 $as_echo "$MKDIR_P" >&6; }
2314
2315 mkdir_p="$MKDIR_P"
2316 case $mkdir_p in
2317 [\\/$]* | ?:[\\/]*) ;;
2318 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2319 esac
2320
2321 for ac_prog in gawk mawk nawk awk
2322 do
2323 # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 $as_echo_n "checking for $ac_word... " >&6; }
2327 if test "${ac_cv_prog_AWK+set}" = set; then
2328 $as_echo_n "(cached) " >&6
2329 else
2330 if test -n "$AWK"; then
2331 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_AWK="$ac_prog"
2341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2343 fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 AWK=$ac_cv_prog_AWK
2351 if test -n "$AWK"; then
2352 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2353 $as_echo "$AWK" >&6; }
2354 else
2355 { $as_echo "$as_me:$LINENO: result: no" >&5
2356 $as_echo "no" >&6; }
2357 fi
2358
2359
2360 test -n "$AWK" && break
2361 done
2362
2363 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2364 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2365 set x ${MAKE-make}
2366 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2367 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2368 $as_echo_n "(cached) " >&6
2369 else
2370 cat >conftest.make <<\_ACEOF
2371 SHELL = /bin/sh
2372 all:
2373 @echo '@@@%%%=$(MAKE)=@@@%%%'
2374 _ACEOF
2375 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2376 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2377 *@@@%%%=?*=@@@%%%*)
2378 eval ac_cv_prog_make_${ac_make}_set=yes;;
2379 *)
2380 eval ac_cv_prog_make_${ac_make}_set=no;;
2381 esac
2382 rm -f conftest.make
2383 fi
2384 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2385 { $as_echo "$as_me:$LINENO: result: yes" >&5
2386 $as_echo "yes" >&6; }
2387 SET_MAKE=
2388 else
2389 { $as_echo "$as_me:$LINENO: result: no" >&5
2390 $as_echo "no" >&6; }
2391 SET_MAKE="MAKE=${MAKE-make}"
2392 fi
2393
2394 rm -rf .tst 2>/dev/null
2395 mkdir .tst 2>/dev/null
2396 if test -d .tst; then
2397 am__leading_dot=.
2398 else
2399 am__leading_dot=_
2400 fi
2401 rmdir .tst 2>/dev/null
2402
2403 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2404 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2405 # is not polluted with repeated "-I."
2406 am__isrc=' -I$(srcdir)'
2407 # test to see if srcdir already configured
2408 if test -f $srcdir/config.status; then
2409 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2410 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2411 { (exit 1); exit 1; }; }
2412 fi
2413 fi
2414
2415 # test whether we have cygpath
2416 if test -z "$CYGPATH_W"; then
2417 if (cygpath --version) >/dev/null 2>/dev/null; then
2418 CYGPATH_W='cygpath -w'
2419 else
2420 CYGPATH_W=echo
2421 fi
2422 fi
2423
2424
2425 # Define the identity of the package.
2426 PACKAGE='xf86-video-i740'
2427 VERSION='1.3.0'
2428
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE "$PACKAGE"
2432 _ACEOF
2433
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define VERSION "$VERSION"
2437 _ACEOF
2438
2439 # Some tools Automake needs.
2440
2441 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2442
2443
2444 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2445
2446
2447 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2448
2449
2450 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2451
2452
2453 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2454
2455 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2456
2457 # Installed binaries are usually stripped using `strip' when the user
2458 # run `make install-strip'. However `strip' might not be the right
2459 # tool to use in cross-compilation environments, therefore Automake
2460 # will honor the `STRIP' environment variable to overrule this program.
2461 if test "$cross_compiling" != no; then
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}strip; ac_word=$2
2465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if test "${ac_cv_prog_STRIP+set}" = set; then
2468 $as_echo_n "(cached) " >&6
2469 else
2470 if test -n "$STRIP"; then
2471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 STRIP=$ac_cv_prog_STRIP
2491 if test -n "$STRIP"; then
2492 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2493 $as_echo "$STRIP" >&6; }
2494 else
2495 { $as_echo "$as_me:$LINENO: result: no" >&5
2496 $as_echo "no" >&6; }
2497 fi
2498
2499
2500 fi
2501 if test -z "$ac_cv_prog_STRIP"; then
2502 ac_ct_STRIP=$STRIP
2503 # Extract the first word of "strip", so it can be a program name with args.
2504 set dummy strip; ac_word=$2
2505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2508 $as_echo_n "(cached) " >&6
2509 else
2510 if test -n "$ac_ct_STRIP"; then
2511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_ac_ct_STRIP="strip"
2521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2523 fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2531 if test -n "$ac_ct_STRIP"; then
2532 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2533 $as_echo "$ac_ct_STRIP" >&6; }
2534 else
2535 { $as_echo "$as_me:$LINENO: result: no" >&5
2536 $as_echo "no" >&6; }
2537 fi
2538
2539 if test "x$ac_ct_STRIP" = x; then
2540 STRIP=":"
2541 else
2542 case $cross_compiling:$ac_tool_warned in
2543 yes:)
2544 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2546 ac_tool_warned=yes ;;
2547 esac
2548 STRIP=$ac_ct_STRIP
2549 fi
2550 else
2551 STRIP="$ac_cv_prog_STRIP"
2552 fi
2553
2554 fi
2555 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2556
2557 # We need awk for the "check" target. The system "awk" is bad on
2558 # some platforms.
2559 # Always define AMTAR for backward compatibility.
2560
2561 AMTAR=${AMTAR-"${am_missing_run}tar"}
2562
2563 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2564
2565
2566
2567
2568
2569
2570 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2571 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2572 # Check whether --enable-maintainer-mode was given.
2573 if test "${enable_maintainer_mode+set}" = set; then
2574 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2575 else
2576 USE_MAINTAINER_MODE=no
2577 fi
2578
2579 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2580 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2581 if test $USE_MAINTAINER_MODE = yes; then
2582 MAINTAINER_MODE_TRUE=
2583 MAINTAINER_MODE_FALSE='#'
2584 else
2585 MAINTAINER_MODE_TRUE='#'
2586 MAINTAINER_MODE_FALSE=
2587 fi
2588
2589 MAINT=$MAINTAINER_MODE_TRUE
2590
2591
2592
2593 # Checks for programs.
2594 # Check whether --enable-static was given.
2595 if test "${enable_static+set}" = set; then
2596 enableval=$enable_static; p=${PACKAGE-default}
2597 case $enableval in
2598 yes) enable_static=yes ;;
2599 no) enable_static=no ;;
2600 *)
2601 enable_static=no
2602 # Look at the argument we got. We use all the common list separators.
2603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2604 for pkg in $enableval; do
2605 IFS="$lt_save_ifs"
2606 if test "X$pkg" = "X$p"; then
2607 enable_static=yes
2608 fi
2609 done
2610 IFS="$lt_save_ifs"
2611 ;;
2612 esac
2613 else
2614 enable_static=no
2615 fi
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625 case `pwd` in
2626 *\ * | *\ *)
2627 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2628 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2629 esac
2630
2631
2632
2633 macro_version='2.2.6'
2634 macro_revision='1.3012'
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648 ltmain="$ac_aux_dir/ltmain.sh"
2649
2650 # Make sure we can run config.sub.
2651 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2652 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2653 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2654 { (exit 1); exit 1; }; }
2655
2656 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2657 $as_echo_n "checking build system type... " >&6; }
2658 if test "${ac_cv_build+set}" = set; then
2659 $as_echo_n "(cached) " >&6
2660 else
2661 ac_build_alias=$build_alias
2662 test "x$ac_build_alias" = x &&
2663 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2664 test "x$ac_build_alias" = x &&
2665 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2666 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2667 { (exit 1); exit 1; }; }
2668 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2669 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2670 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2671 { (exit 1); exit 1; }; }
2672
2673 fi
2674 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2675 $as_echo "$ac_cv_build" >&6; }
2676 case $ac_cv_build in
2677 *-*-*) ;;
2678 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2679 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2680 { (exit 1); exit 1; }; };;
2681 esac
2682 build=$ac_cv_build
2683 ac_save_IFS=$IFS; IFS='-'
2684 set x $ac_cv_build
2685 shift
2686 build_cpu=$1
2687 build_vendor=$2
2688 shift; shift
2689 # Remember, the first character of IFS is used to create $*,
2690 # except with old shells:
2691 build_os=$*
2692 IFS=$ac_save_IFS
2693 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2694
2695
2696 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2697 $as_echo_n "checking host system type... " >&6; }
2698 if test "${ac_cv_host+set}" = set; then
2699 $as_echo_n "(cached) " >&6
2700 else
2701 if test "x$host_alias" = x; then
2702 ac_cv_host=$ac_cv_build
2703 else
2704 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2705 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2706 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2707 { (exit 1); exit 1; }; }
2708 fi
2709
2710 fi
2711 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2712 $as_echo "$ac_cv_host" >&6; }
2713 case $ac_cv_host in
2714 *-*-*) ;;
2715 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2716 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2717 { (exit 1); exit 1; }; };;
2718 esac
2719 host=$ac_cv_host
2720 ac_save_IFS=$IFS; IFS='-'
2721 set x $ac_cv_host
2722 shift
2723 host_cpu=$1
2724 host_vendor=$2
2725 shift; shift
2726 # Remember, the first character of IFS is used to create $*,
2727 # except with old shells:
2728 host_os=$*
2729 IFS=$ac_save_IFS
2730 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2731
2732
2733 DEPDIR="${am__leading_dot}deps"
2734
2735 ac_config_commands="$ac_config_commands depfiles"
2736
2737
2738 am_make=${MAKE-make}
2739 cat > confinc << 'END'
2740 am__doit:
2741 @echo done
2742 .PHONY: am__doit
2743 END
2744 # If we don't find an include directive, just comment out the code.
2745 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2746 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2747 am__include="#"
2748 am__quote=
2749 _am_result=none
2750 # First try GNU make style include.
2751 echo "include confinc" > confmf
2752 # We grep out `Entering directory' and `Leaving directory'
2753 # messages which can occur if `w' ends up in MAKEFLAGS.
2754 # In particular we don't look at `^make:' because GNU make might
2755 # be invoked under some other name (usually "gmake"), in which
2756 # case it prints its new name instead of `make'.
2757 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2758 am__include=include
2759 am__quote=
2760 _am_result=GNU
2761 fi
2762 # Now try BSD make style include.
2763 if test "$am__include" = "#"; then
2764 echo '.include "confinc"' > confmf
2765 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2766 am__include=.include
2767 am__quote="\""
2768 _am_result=BSD
2769 fi
2770 fi
2771
2772
2773 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2774 $as_echo "$_am_result" >&6; }
2775 rm -f confinc confmf
2776
2777 # Check whether --enable-dependency-tracking was given.
2778 if test "${enable_dependency_tracking+set}" = set; then
2779 enableval=$enable_dependency_tracking;
2780 fi
2781
2782 if test "x$enable_dependency_tracking" != xno; then
2783 am_depcomp="$ac_aux_dir/depcomp"
2784 AMDEPBACKSLASH='\'
2785 fi
2786 if test "x$enable_dependency_tracking" != xno; then
2787 AMDEP_TRUE=
2788 AMDEP_FALSE='#'
2789 else
2790 AMDEP_TRUE='#'
2791 AMDEP_FALSE=
2792 fi
2793
2794
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 if test -n "$ac_tool_prefix"; then
2801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2803 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if test "${ac_cv_prog_CC+set}" = set; then
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test -n "$CC"; then
2809 ac_cv_prog_CC="$CC" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2821 fi
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 CC=$ac_cv_prog_CC
2829 if test -n "$CC"; then
2830 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2831 $as_echo "$CC" >&6; }
2832 else
2833 { $as_echo "$as_me:$LINENO: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838 fi
2839 if test -z "$ac_cv_prog_CC"; then
2840 ac_ct_CC=$CC
2841 # Extract the first word of "gcc", so it can be a program name with args.
2842 set dummy gcc; ac_word=$2
2843 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test -n "$ac_ct_CC"; then
2849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_ac_ct_CC="gcc"
2859 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2861 fi
2862 done
2863 done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 $as_echo "$ac_ct_CC" >&6; }
2872 else
2873 { $as_echo "$as_me:$LINENO: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877 if test "x$ac_ct_CC" = x; then
2878 CC=""
2879 else
2880 case $cross_compiling:$ac_tool_warned in
2881 yes:)
2882 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884 ac_tool_warned=yes ;;
2885 esac
2886 CC=$ac_ct_CC
2887 fi
2888 else
2889 CC="$ac_cv_prog_CC"
2890 fi
2891
2892 if test -z "$CC"; then
2893 if test -n "$ac_tool_prefix"; then
2894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2895 set dummy ${ac_tool_prefix}cc; ac_word=$2
2896 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if test "${ac_cv_prog_CC+set}" = set; then
2899 $as_echo_n "(cached) " >&6
2900 else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911 ac_cv_prog_CC="${ac_tool_prefix}cc"
2912 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915 done
2916 done
2917 IFS=$as_save_IFS
2918
2919 fi
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2925 else
2926 { $as_echo "$as_me:$LINENO: result: no" >&5
2927 $as_echo "no" >&6; }
2928 fi
2929
2930
2931 fi
2932 fi
2933 if test -z "$CC"; then
2934 # Extract the first word of "cc", so it can be a program name with args.
2935 set dummy cc; ac_word=$2
2936 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 ac_prog_rejected=no
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2953 ac_prog_rejected=yes
2954 continue
2955 fi
2956 ac_cv_prog_CC="cc"
2957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 if test $ac_prog_rejected = yes; then
2965 # We found a bogon in the path, so make sure we never use it.
2966 set dummy $ac_cv_prog_CC
2967 shift
2968 if test $# != 0; then
2969 # We chose a different compiler from the bogus one.
2970 # However, it has the same basename, so the bogon will be chosen
2971 # first if we set CC to just the basename; use the full file name.
2972 shift
2973 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2974 fi
2975 fi
2976 fi
2977 fi
2978 CC=$ac_cv_prog_CC
2979 if test -n "$CC"; then
2980 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2982 else
2983 { $as_echo "$as_me:$LINENO: result: no" >&5
2984 $as_echo "no" >&6; }
2985 fi
2986
2987
2988 fi
2989 if test -z "$CC"; then
2990 if test -n "$ac_tool_prefix"; then
2991 for ac_prog in cl.exe
2992 do
2993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2995 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if test "${ac_cv_prog_CC+set}" = set; then
2998 $as_echo_n "(cached) " >&6
2999 else
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3011 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3013 fi
3014 done
3015 done
3016 IFS=$as_save_IFS
3017
3018 fi
3019 fi
3020 CC=$ac_cv_prog_CC
3021 if test -n "$CC"; then
3022 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3023 $as_echo "$CC" >&6; }
3024 else
3025 { $as_echo "$as_me:$LINENO: result: no" >&5
3026 $as_echo "no" >&6; }
3027 fi
3028
3029
3030 test -n "$CC" && break
3031 done
3032 fi
3033 if test -z "$CC"; then
3034 ac_ct_CC=$CC
3035 for ac_prog in cl.exe
3036 do
3037 # Extract the first word of "$ac_prog", so it can be a program name with args.
3038 set dummy $ac_prog; ac_word=$2
3039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3042 $as_echo_n "(cached) " >&6
3043 else
3044 if test -n "$ac_ct_CC"; then
3045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_ac_ct_CC="$ac_prog"
3055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058 done
3059 done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3065 if test -n "$ac_ct_CC"; then
3066 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3067 $as_echo "$ac_ct_CC" >&6; }
3068 else
3069 { $as_echo "$as_me:$LINENO: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074 test -n "$ac_ct_CC" && break
3075 done
3076
3077 if test "x$ac_ct_CC" = x; then
3078 CC=""
3079 else
3080 case $cross_compiling:$ac_tool_warned in
3081 yes:)
3082 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3085 esac
3086 CC=$ac_ct_CC
3087 fi
3088 fi
3089
3090 fi
3091
3092
3093 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3096 See \`config.log' for more details." >&5
3097 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }; }
3100
3101 # Provide some information about the compiler.
3102 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3103 set X $ac_compile
3104 ac_compiler=$2
3105 { (ac_try="$ac_compiler --version >&5"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3111 $as_echo "$ac_try_echo") >&5
3112 (eval "$ac_compiler --version >&5") 2>&5
3113 ac_status=$?
3114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }
3116 { (ac_try="$ac_compiler -v >&5"
3117 case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3122 $as_echo "$ac_try_echo") >&5
3123 (eval "$ac_compiler -v >&5") 2>&5
3124 ac_status=$?
3125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }
3127 { (ac_try="$ac_compiler -V >&5"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3133 $as_echo "$ac_try_echo") >&5
3134 (eval "$ac_compiler -V >&5") 2>&5
3135 ac_status=$?
3136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3138
3139 cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h. */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3145
3146 int
3147 main ()
3148 {
3149
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 ac_clean_files_save=$ac_clean_files
3155 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3156 # Try to create an executable without -o first, disregard a.out.
3157 # It will help us diagnose broken compilers, and finding out an intuition
3158 # of exeext.
3159 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3160 $as_echo_n "checking for C compiler default output file name... " >&6; }
3161 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3162
3163 # The possible output files:
3164 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3165
3166 ac_rmfiles=
3167 for ac_file in $ac_files
3168 do
3169 case $ac_file in
3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3171 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3172 esac
3173 done
3174 rm -f $ac_rmfiles
3175
3176 if { (ac_try="$ac_link_default"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3182 $as_echo "$ac_try_echo") >&5
3183 (eval "$ac_link_default") 2>&5
3184 ac_status=$?
3185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; then
3187 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3188 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3189 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3190 # so that the user can short-circuit this test for compilers unknown to
3191 # Autoconf.
3192 for ac_file in $ac_files ''
3193 do
3194 test -f "$ac_file" || continue
3195 case $ac_file in
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3197 ;;
3198 [ab].out )
3199 # We found the default executable, but exeext='' is most
3200 # certainly right.
3201 break;;
3202 *.* )
3203 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3204 then :; else
3205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206 fi
3207 # We set ac_cv_exeext here because the later test for it is not
3208 # safe: cross compilers may not add the suffix if given an `-o'
3209 # argument, so we may need to know it at that point already.
3210 # Even if this section looks crufty: it has the advantage of
3211 # actually working.
3212 break;;
3213 * )
3214 break;;
3215 esac
3216 done
3217 test "$ac_cv_exeext" = no && ac_cv_exeext=
3218
3219 else
3220 ac_file=''
3221 fi
3222
3223 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3224 $as_echo "$ac_file" >&6; }
3225 if test -z "$ac_file"; then
3226 $as_echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3232 See \`config.log' for more details." >&5
3233 $as_echo "$as_me: error: C compiler cannot create executables
3234 See \`config.log' for more details." >&2;}
3235 { (exit 77); exit 77; }; }; }
3236 fi
3237
3238 ac_exeext=$ac_cv_exeext
3239
3240 # Check that the compiler produces executables we can run. If not, either
3241 # the compiler is broken, or we cross compile.
3242 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3243 $as_echo_n "checking whether the C compiler works... " >&6; }
3244 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3245 # If not cross compiling, check that we can run a simple program.
3246 if test "$cross_compiling" != yes; then
3247 if { ac_try='./$ac_file'
3248 { (case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253 $as_echo "$ac_try_echo") >&5
3254 (eval "$ac_try") 2>&5
3255 ac_status=$?
3256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 cross_compiling=no
3259 else
3260 if test "$cross_compiling" = maybe; then
3261 cross_compiling=yes
3262 else
3263 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3266 If you meant to cross compile, use \`--host'.
3267 See \`config.log' for more details." >&5
3268 $as_echo "$as_me: error: cannot run C compiled programs.
3269 If you meant to cross compile, use \`--host'.
3270 See \`config.log' for more details." >&2;}
3271 { (exit 1); exit 1; }; }; }
3272 fi
3273 fi
3274 fi
3275 { $as_echo "$as_me:$LINENO: result: yes" >&5
3276 $as_echo "yes" >&6; }
3277
3278 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3279 ac_clean_files=$ac_clean_files_save
3280 # Check that the compiler produces executables we can run. If not, either
3281 # the compiler is broken, or we cross compile.
3282 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3283 $as_echo_n "checking whether we are cross compiling... " >&6; }
3284 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3285 $as_echo "$cross_compiling" >&6; }
3286
3287 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3288 $as_echo_n "checking for suffix of executables... " >&6; }
3289 if { (ac_try="$ac_link"
3290 case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3295 $as_echo "$ac_try_echo") >&5
3296 (eval "$ac_link") 2>&5
3297 ac_status=$?
3298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; then
3300 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3301 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3302 # work properly (i.e., refer to `conftest.exe'), while it won't with
3303 # `rm'.
3304 for ac_file in conftest.exe conftest conftest.*; do
3305 test -f "$ac_file" || continue
3306 case $ac_file in
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3309 break;;
3310 * ) break;;
3311 esac
3312 done
3313 else
3314 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3317 See \`config.log' for more details." >&5
3318 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3319 See \`config.log' for more details." >&2;}
3320 { (exit 1); exit 1; }; }; }
3321 fi
3322
3323 rm -f conftest$ac_cv_exeext
3324 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3325 $as_echo "$ac_cv_exeext" >&6; }
3326
3327 rm -f conftest.$ac_ext
3328 EXEEXT=$ac_cv_exeext
3329 ac_exeext=$EXEEXT
3330 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3331 $as_echo_n "checking for suffix of object files... " >&6; }
3332 if test "${ac_cv_objext+set}" = set; then
3333 $as_echo_n "(cached) " >&6
3334 else
3335 cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341
3342 int
3343 main ()
3344 {
3345
3346 ;
3347 return 0;
3348 }
3349 _ACEOF
3350 rm -f conftest.o conftest.obj
3351 if { (ac_try="$ac_compile"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3357 $as_echo "$ac_try_echo") >&5
3358 (eval "$ac_compile") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; then
3362 for ac_file in conftest.o conftest.obj conftest.*; do
3363 test -f "$ac_file" || continue;
3364 case $ac_file in
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3367 break;;
3368 esac
3369 done
3370 else
3371 $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3377 See \`config.log' for more details." >&5
3378 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3379 See \`config.log' for more details." >&2;}
3380 { (exit 1); exit 1; }; }; }
3381 fi
3382
3383 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3384 fi
3385 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3386 $as_echo "$ac_cv_objext" >&6; }
3387 OBJEXT=$ac_cv_objext
3388 ac_objext=$OBJEXT
3389 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3390 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3391 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3392 $as_echo_n "(cached) " >&6
3393 else
3394 cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h. */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3400
3401 int
3402 main ()
3403 {
3404 #ifndef __GNUC__
3405 choke me
3406 #endif
3407
3408 ;
3409 return 0;
3410 }
3411 _ACEOF
3412 rm -f conftest.$ac_objext
3413 if { (ac_try="$ac_compile"
3414 case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3419 $as_echo "$ac_try_echo") >&5
3420 (eval "$ac_compile") 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
3425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } && {
3427 test -z "$ac_c_werror_flag" ||
3428 test ! -s conftest.err
3429 } && test -s conftest.$ac_objext; then
3430 ac_compiler_gnu=yes
3431 else
3432 $as_echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3434
3435 ac_compiler_gnu=no
3436 fi
3437
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3440
3441 fi
3442 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3443 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3444 if test $ac_compiler_gnu = yes; then
3445 GCC=yes
3446 else
3447 GCC=
3448 fi
3449 ac_test_CFLAGS=${CFLAGS+set}
3450 ac_save_CFLAGS=$CFLAGS
3451 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3452 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3453 if test "${ac_cv_prog_cc_g+set}" = set; then
3454 $as_echo_n "(cached) " >&6
3455 else
3456 ac_save_c_werror_flag=$ac_c_werror_flag
3457 ac_c_werror_flag=yes
3458 ac_cv_prog_cc_g=no
3459 CFLAGS="-g"
3460 cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h. */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (ac_try="$ac_compile"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483 (eval "$ac_compile") 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } && {
3490 test -z "$ac_c_werror_flag" ||
3491 test ! -s conftest.err
3492 } && test -s conftest.$ac_objext; then
3493 ac_cv_prog_cc_g=yes
3494 else
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 CFLAGS=""
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h. */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 rm -f conftest.$ac_objext
3515 if { (ac_try="$ac_compile"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3521 $as_echo "$ac_try_echo") >&5
3522 (eval "$ac_compile") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest.$ac_objext; then
3532 :
3533 else
3534 $as_echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3536
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3538 CFLAGS="-g"
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545
3546 int
3547 main ()
3548 {
3549
3550 ;
3551 return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3561 $as_echo "$ac_try_echo") >&5
3562 (eval "$ac_compile") 2>conftest.er1
3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest.$ac_objext; then
3572 ac_cv_prog_cc_g=yes
3573 else
3574 $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577
3578 fi
3579
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 fi
3582
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 fi
3585
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_c_werror_flag=$ac_save_c_werror_flag
3588 fi
3589 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3590 $as_echo "$ac_cv_prog_cc_g" >&6; }
3591 if test "$ac_test_CFLAGS" = set; then
3592 CFLAGS=$ac_save_CFLAGS
3593 elif test $ac_cv_prog_cc_g = yes; then
3594 if test "$GCC" = yes; then
3595 CFLAGS="-g -O2"
3596 else
3597 CFLAGS="-g"
3598 fi
3599 else
3600 if test "$GCC" = yes; then
3601 CFLAGS="-O2"
3602 else
3603 CFLAGS=
3604 fi
3605 fi
3606 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3607 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3608 if test "${ac_cv_prog_cc_c89+set}" = set; then
3609 $as_echo_n "(cached) " >&6
3610 else
3611 ac_cv_prog_cc_c89=no
3612 ac_save_CC=$CC
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619 #include <stdarg.h>
3620 #include <stdio.h>
3621 #include <sys/types.h>
3622 #include <sys/stat.h>
3623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3624 struct buf { int x; };
3625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626 static char *e (p, i)
3627 char **p;
3628 int i;
3629 {
3630 return p[i];
3631 }
3632 static char *f (char * (*g) (char **, int), char **p, ...)
3633 {
3634 char *s;
3635 va_list v;
3636 va_start (v,p);
3637 s = g (p, va_arg (v,int));
3638 va_end (v);
3639 return s;
3640 }
3641
3642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3643 function prototypes and stuff, but not '\xHH' hex character constants.
3644 These don't provoke an error unfortunately, instead are silently treated
3645 as 'x'. The following induces an error, until -std is added to get
3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3647 array size at least. It's necessary to write '\x00'==0 to get something
3648 that's true only with -std. */
3649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3650
3651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652 inside strings and character constants. */
3653 #define FOO(x) 'x'
3654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3655
3656 int test (int i, double x);
3657 struct s1 {int (*f) (int a);};
3658 struct s2 {int (*f) (double a);};
3659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3660 int argc;
3661 char **argv;
3662 int
3663 main ()
3664 {
3665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3666 ;
3667 return 0;
3668 }
3669 _ACEOF
3670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3672 do
3673 CC="$ac_save_CC $ac_arg"
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3681 $as_echo "$ac_try_echo") >&5
3682 (eval "$ac_compile") 2>conftest.er1
3683 ac_status=$?
3684 grep -v '^ *+' conftest.er1 >conftest.err
3685 rm -f conftest.er1
3686 cat conftest.err >&5
3687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } && {
3689 test -z "$ac_c_werror_flag" ||
3690 test ! -s conftest.err
3691 } && test -s conftest.$ac_objext; then
3692 ac_cv_prog_cc_c89=$ac_arg
3693 else
3694 $as_echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697
3698 fi
3699
3700 rm -f core conftest.err conftest.$ac_objext
3701 test "x$ac_cv_prog_cc_c89" != "xno" && break
3702 done
3703 rm -f conftest.$ac_ext
3704 CC=$ac_save_CC
3705
3706 fi
3707 # AC_CACHE_VAL
3708 case "x$ac_cv_prog_cc_c89" in
3709 x)
3710 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3711 $as_echo "none needed" >&6; } ;;
3712 xno)
3713 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3714 $as_echo "unsupported" >&6; } ;;
3715 *)
3716 CC="$CC $ac_cv_prog_cc_c89"
3717 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3718 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3719 esac
3720
3721
3722 ac_ext=c
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727
3728 depcc="$CC" am_compiler_list=
3729
3730 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3731 $as_echo_n "checking dependency style of $depcc... " >&6; }
3732 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3733 $as_echo_n "(cached) " >&6
3734 else
3735 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3736 # We make a subdir and do the tests there. Otherwise we can end up
3737 # making bogus files that we don't know about and never remove. For
3738 # instance it was reported that on HP-UX the gcc test will end up
3739 # making a dummy file named `D' -- because `-MD' means `put the output
3740 # in D'.
3741 mkdir conftest.dir
3742 # Copy depcomp to subdir because otherwise we won't find it if we're
3743 # using a relative directory.
3744 cp "$am_depcomp" conftest.dir
3745 cd conftest.dir
3746 # We will build objects and dependencies in a subdirectory because
3747 # it helps to detect inapplicable dependency modes. For instance
3748 # both Tru64's cc and ICC support -MD to output dependencies as a
3749 # side effect of compilation, but ICC will put the dependencies in
3750 # the current directory while Tru64 will put them in the object
3751 # directory.
3752 mkdir sub
3753
3754 am_cv_CC_dependencies_compiler_type=none
3755 if test "$am_compiler_list" = ""; then
3756 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3757 fi
3758 for depmode in $am_compiler_list; do
3759 # Setup a source with many dependencies, because some compilers
3760 # like to wrap large dependency lists on column 80 (with \), and
3761 # we should not choose a depcomp mode which is confused by this.
3762 #
3763 # We need to recreate these files for each test, as the compiler may
3764 # overwrite some of them when testing with obscure command lines.
3765 # This happens at least with the AIX C compiler.
3766 : > sub/conftest.c
3767 for i in 1 2 3 4 5 6; do
3768 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3769 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3770 # Solaris 8's {/usr,}/bin/sh.
3771 touch sub/conftst$i.h
3772 done
3773 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3774
3775 case $depmode in
3776 nosideeffect)
3777 # after this tag, mechanisms are not by side-effect, so they'll
3778 # only be used when explicitly requested
3779 if test "x$enable_dependency_tracking" = xyes; then
3780 continue
3781 else
3782 break
3783 fi
3784 ;;
3785 none) break ;;
3786 esac
3787 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3788 # mode. It turns out that the SunPro C++ compiler does not properly
3789 # handle `-M -o', and we need to detect this.
3790 if depmode=$depmode \
3791 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3792 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3793 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3794 >/dev/null 2>conftest.err &&
3795 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3796 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3797 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3798 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3799 # icc doesn't choke on unknown options, it will just issue warnings
3800 # or remarks (even with -Werror). So we grep stderr for any message
3801 # that says an option was ignored or not supported.
3802 # When given -MP, icc 7.0 and 7.1 complain thusly:
3803 # icc: Command line warning: ignoring option '-M'; no argument required
3804 # The diagnosis changed in icc 8.0:
3805 # icc: Command line remark: option '-MP' not supported
3806 if (grep 'ignoring option' conftest.err ||
3807 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3808 am_cv_CC_dependencies_compiler_type=$depmode
3809 break
3810 fi
3811 fi
3812 done
3813
3814 cd ..
3815 rm -rf conftest.dir
3816 else
3817 am_cv_CC_dependencies_compiler_type=none
3818 fi
3819
3820 fi
3821 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3822 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3823 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3824
3825 if
3826 test "x$enable_dependency_tracking" != xno \
3827 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3828 am__fastdepCC_TRUE=
3829 am__fastdepCC_FALSE='#'
3830 else
3831 am__fastdepCC_TRUE='#'
3832 am__fastdepCC_FALSE=
3833 fi
3834
3835
3836 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3837 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3838 if test "${ac_cv_path_SED+set}" = set; then
3839 $as_echo_n "(cached) " >&6
3840 else
3841 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3842 for ac_i in 1 2 3 4 5 6 7; do
3843 ac_script="$ac_script$as_nl$ac_script"
3844 done
3845 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3846 $as_unset ac_script || ac_script=
3847 if test -z "$SED"; then
3848 ac_path_SED_found=false
3849 # Loop through the user's path and test for each of PROGNAME-LIST
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3852 do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_prog in sed gsed; do
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3858 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3859 # Check for GNU ac_path_SED and select it if it is found.
3860 # Check for GNU $ac_path_SED
3861 case `"$ac_path_SED" --version 2>&1` in
3862 *GNU*)
3863 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3864 *)
3865 ac_count=0
3866 $as_echo_n 0123456789 >"conftest.in"
3867 while :
3868 do
3869 cat "conftest.in" "conftest.in" >"conftest.tmp"
3870 mv "conftest.tmp" "conftest.in"
3871 cp "conftest.in" "conftest.nl"
3872 $as_echo '' >> "conftest.nl"
3873 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3874 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3875 ac_count=`expr $ac_count + 1`
3876 if test $ac_count -gt ${ac_path_SED_max-0}; then
3877 # Best one so far, save it but keep looking for a better one
3878 ac_cv_path_SED="$ac_path_SED"
3879 ac_path_SED_max=$ac_count
3880 fi
3881 # 10*(2^10) chars as input seems more than enough
3882 test $ac_count -gt 10 && break
3883 done
3884 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3885 esac
3886
3887 $ac_path_SED_found && break 3
3888 done
3889 done
3890 done
3891 IFS=$as_save_IFS
3892 if test -z "$ac_cv_path_SED"; then
3893 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3894 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3895 { (exit 1); exit 1; }; }
3896 fi
3897 else
3898 ac_cv_path_SED=$SED
3899 fi
3900
3901 fi
3902 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3903 $as_echo "$ac_cv_path_SED" >&6; }
3904 SED="$ac_cv_path_SED"
3905 rm -f conftest.sed
3906
3907 test -z "$SED" && SED=sed
3908 Xsed="$SED -e 1s/^X//"
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3921 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3922 if test "${ac_cv_path_GREP+set}" = set; then
3923 $as_echo_n "(cached) " >&6
3924 else
3925 if test -z "$GREP"; then
3926 ac_path_GREP_found=false
3927 # Loop through the user's path and test for each of PROGNAME-LIST
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3930 do
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_prog in grep ggrep; do
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3936 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3937 # Check for GNU ac_path_GREP and select it if it is found.
3938 # Check for GNU $ac_path_GREP
3939 case `"$ac_path_GREP" --version 2>&1` in
3940 *GNU*)
3941 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3942 *)
3943 ac_count=0
3944 $as_echo_n 0123456789 >"conftest.in"
3945 while :
3946 do
3947 cat "conftest.in" "conftest.in" >"conftest.tmp"
3948 mv "conftest.tmp" "conftest.in"
3949 cp "conftest.in" "conftest.nl"
3950 $as_echo 'GREP' >> "conftest.nl"
3951 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3953 ac_count=`expr $ac_count + 1`
3954 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3955 # Best one so far, save it but keep looking for a better one
3956 ac_cv_path_GREP="$ac_path_GREP"
3957 ac_path_GREP_max=$ac_count
3958 fi
3959 # 10*(2^10) chars as input seems more than enough
3960 test $ac_count -gt 10 && break
3961 done
3962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3963 esac
3964
3965 $ac_path_GREP_found && break 3
3966 done
3967 done
3968 done
3969 IFS=$as_save_IFS
3970 if test -z "$ac_cv_path_GREP"; then
3971 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973 { (exit 1); exit 1; }; }
3974 fi
3975 else
3976 ac_cv_path_GREP=$GREP
3977 fi
3978
3979 fi
3980 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3981 $as_echo "$ac_cv_path_GREP" >&6; }
3982 GREP="$ac_cv_path_GREP"
3983
3984
3985 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3986 $as_echo_n "checking for egrep... " >&6; }
3987 if test "${ac_cv_path_EGREP+set}" = set; then
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3991 then ac_cv_path_EGREP="$GREP -E"
3992 else
3993 if test -z "$EGREP"; then
3994 ac_path_EGREP_found=false
3995 # Loop through the user's path and test for each of PROGNAME-LIST
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3998 do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_prog in egrep; do
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4004 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4005 # Check for GNU ac_path_EGREP and select it if it is found.
4006 # Check for GNU $ac_path_EGREP
4007 case `"$ac_path_EGREP" --version 2>&1` in
4008 *GNU*)
4009 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4010 *)
4011 ac_count=0
4012 $as_echo_n 0123456789 >"conftest.in"
4013 while :
4014 do
4015 cat "conftest.in" "conftest.in" >"conftest.tmp"
4016 mv "conftest.tmp" "conftest.in"
4017 cp "conftest.in" "conftest.nl"
4018 $as_echo 'EGREP' >> "conftest.nl"
4019 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4021 ac_count=`expr $ac_count + 1`
4022 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4023 # Best one so far, save it but keep looking for a better one
4024 ac_cv_path_EGREP="$ac_path_EGREP"
4025 ac_path_EGREP_max=$ac_count
4026 fi
4027 # 10*(2^10) chars as input seems more than enough
4028 test $ac_count -gt 10 && break
4029 done
4030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4031 esac
4032
4033 $ac_path_EGREP_found && break 3
4034 done
4035 done
4036 done
4037 IFS=$as_save_IFS
4038 if test -z "$ac_cv_path_EGREP"; then
4039 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041 { (exit 1); exit 1; }; }
4042 fi
4043 else
4044 ac_cv_path_EGREP=$EGREP
4045 fi
4046
4047 fi
4048 fi
4049 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4050 $as_echo "$ac_cv_path_EGREP" >&6; }
4051 EGREP="$ac_cv_path_EGREP"
4052
4053
4054 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4055 $as_echo_n "checking for fgrep... " >&6; }
4056 if test "${ac_cv_path_FGREP+set}" = set; then
4057 $as_echo_n "(cached) " >&6
4058 else
4059 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4060 then ac_cv_path_FGREP="$GREP -F"
4061 else
4062 if test -z "$FGREP"; then
4063 ac_path_FGREP_found=false
4064 # Loop through the user's path and test for each of PROGNAME-LIST
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4067 do
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_prog in fgrep; do
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4073 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4074 # Check for GNU ac_path_FGREP and select it if it is found.
4075 # Check for GNU $ac_path_FGREP
4076 case `"$ac_path_FGREP" --version 2>&1` in
4077 *GNU*)
4078 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4079 *)
4080 ac_count=0
4081 $as_echo_n 0123456789 >"conftest.in"
4082 while :
4083 do
4084 cat "conftest.in" "conftest.in" >"conftest.tmp"
4085 mv "conftest.tmp" "conftest.in"
4086 cp "conftest.in" "conftest.nl"
4087 $as_echo 'FGREP' >> "conftest.nl"
4088 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4090 ac_count=`expr $ac_count + 1`
4091 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4092 # Best one so far, save it but keep looking for a better one
4093 ac_cv_path_FGREP="$ac_path_FGREP"
4094 ac_path_FGREP_max=$ac_count
4095 fi
4096 # 10*(2^10) chars as input seems more than enough
4097 test $ac_count -gt 10 && break
4098 done
4099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4100 esac
4101
4102 $ac_path_FGREP_found && break 3
4103 done
4104 done
4105 done
4106 IFS=$as_save_IFS
4107 if test -z "$ac_cv_path_FGREP"; then
4108 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4109 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4110 { (exit 1); exit 1; }; }
4111 fi
4112 else
4113 ac_cv_path_FGREP=$FGREP
4114 fi
4115
4116 fi
4117 fi
4118 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4119 $as_echo "$ac_cv_path_FGREP" >&6; }
4120 FGREP="$ac_cv_path_FGREP"
4121
4122
4123 test -z "$GREP" && GREP=grep
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143 # Check whether --with-gnu-ld was given.
4144 if test "${with_gnu_ld+set}" = set; then
4145 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4146 else
4147 with_gnu_ld=no
4148 fi
4149
4150 ac_prog=ld
4151 if test "$GCC" = yes; then
4152 # Check if gcc -print-prog-name=ld gives a path.
4153 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4154 $as_echo_n "checking for ld used by $CC... " >&6; }
4155 case $host in
4156 *-*-mingw*)
4157 # gcc leaves a trailing carriage return which upsets mingw
4158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4159 *)
4160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4161 esac
4162 case $ac_prog in
4163 # Accept absolute paths.
4164 [\\/]* | ?:[\\/]*)
4165 re_direlt='/[^/][^/]*/\.\./'
4166 # Canonicalize the pathname of ld
4167 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4168 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4169 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4170 done
4171 test -z "$LD" && LD="$ac_prog"
4172 ;;
4173 "")
4174 # If it fails, then pretend we aren't using GCC.
4175 ac_prog=ld
4176 ;;
4177 *)
4178 # If it is relative, then search for the first ld in PATH.
4179 with_gnu_ld=unknown
4180 ;;
4181 esac
4182 elif test "$with_gnu_ld" = yes; then
4183 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4184 $as_echo_n "checking for GNU ld... " >&6; }
4185 else
4186 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4187 $as_echo_n "checking for non-GNU ld... " >&6; }
4188 fi
4189 if test "${lt_cv_path_LD+set}" = set; then
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test -z "$LD"; then
4193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4194 for ac_dir in $PATH; do
4195 IFS="$lt_save_ifs"
4196 test -z "$ac_dir" && ac_dir=.
4197 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4198 lt_cv_path_LD="$ac_dir/$ac_prog"
4199 # Check to see if the program is GNU ld. I'd rather use --version,
4200 # but apparently some variants of GNU ld only accept -v.
4201 # Break only if it was the GNU/non-GNU ld that we prefer.
4202 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4203 *GNU* | *'with BFD'*)
4204 test "$with_gnu_ld" != no && break
4205 ;;
4206 *)
4207 test "$with_gnu_ld" != yes && break
4208 ;;
4209 esac
4210 fi
4211 done
4212 IFS="$lt_save_ifs"
4213 else
4214 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4215 fi
4216 fi
4217
4218 LD="$lt_cv_path_LD"
4219 if test -n "$LD"; then
4220 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4221 $as_echo "$LD" >&6; }
4222 else
4223 { $as_echo "$as_me:$LINENO: result: no" >&5
4224 $as_echo "no" >&6; }
4225 fi
4226 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4227 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4228 { (exit 1); exit 1; }; }
4229 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4230 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4231 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4232 $as_echo_n "(cached) " >&6
4233 else
4234 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4235 case `$LD -v 2>&1 </dev/null` in
4236 *GNU* | *'with BFD'*)
4237 lt_cv_prog_gnu_ld=yes
4238 ;;
4239 *)
4240 lt_cv_prog_gnu_ld=no
4241 ;;
4242 esac
4243 fi
4244 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4245 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4246 with_gnu_ld=$lt_cv_prog_gnu_ld
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4257 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4258 if test "${lt_cv_path_NM+set}" = set; then
4259 $as_echo_n "(cached) " >&6
4260 else
4261 if test -n "$NM"; then
4262 # Let the user override the test.
4263 lt_cv_path_NM="$NM"
4264 else
4265 lt_nm_to_check="${ac_tool_prefix}nm"
4266 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4267 lt_nm_to_check="$lt_nm_to_check nm"
4268 fi
4269 for lt_tmp_nm in $lt_nm_to_check; do
4270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4271 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4272 IFS="$lt_save_ifs"
4273 test -z "$ac_dir" && ac_dir=.
4274 tmp_nm="$ac_dir/$lt_tmp_nm"
4275 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4276 # Check to see if the nm accepts a BSD-compat flag.
4277 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4278 # nm: unknown option "B" ignored
4279 # Tru64's nm complains that /dev/null is an invalid object file
4280 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4281 */dev/null* | *'Invalid file or object type'*)
4282 lt_cv_path_NM="$tmp_nm -B"
4283 break
4284 ;;
4285 *)
4286 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4287 */dev/null*)
4288 lt_cv_path_NM="$tmp_nm -p"
4289 break
4290 ;;
4291 *)
4292 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4293 continue # so that we can try to find one that supports BSD flags
4294 ;;
4295 esac
4296 ;;
4297 esac
4298 fi
4299 done
4300 IFS="$lt_save_ifs"
4301 done
4302 : ${lt_cv_path_NM=no}
4303 fi
4304 fi
4305 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4306 $as_echo "$lt_cv_path_NM" >&6; }
4307 if test "$lt_cv_path_NM" != "no"; then
4308 NM="$lt_cv_path_NM"
4309 else
4310 # Didn't find any BSD compatible name lister, look for dumpbin.
4311 if test -n "$ac_tool_prefix"; then
4312 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4313 do
4314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$DUMPBIN"; then
4322 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4334 fi
4335 done
4336 done
4337 IFS=$as_save_IFS
4338
4339 fi
4340 fi
4341 DUMPBIN=$ac_cv_prog_DUMPBIN
4342 if test -n "$DUMPBIN"; then
4343 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4344 $as_echo "$DUMPBIN" >&6; }
4345 else
4346 { $as_echo "$as_me:$LINENO: result: no" >&5
4347 $as_echo "no" >&6; }
4348 fi
4349
4350
4351 test -n "$DUMPBIN" && break
4352 done
4353 fi
4354 if test -z "$DUMPBIN"; then
4355 ac_ct_DUMPBIN=$DUMPBIN
4356 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4357 do
4358 # Extract the first word of "$ac_prog", so it can be a program name with args.
4359 set dummy $ac_prog; ac_word=$2
4360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4363 $as_echo_n "(cached) " >&6
4364 else
4365 if test -n "$ac_ct_DUMPBIN"; then
4366 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4378 fi
4379 done
4380 done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4386 if test -n "$ac_ct_DUMPBIN"; then
4387 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4388 $as_echo "$ac_ct_DUMPBIN" >&6; }
4389 else
4390 { $as_echo "$as_me:$LINENO: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395 test -n "$ac_ct_DUMPBIN" && break
4396 done
4397
4398 if test "x$ac_ct_DUMPBIN" = x; then
4399 DUMPBIN=":"
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407 DUMPBIN=$ac_ct_DUMPBIN
4408 fi
4409 fi
4410
4411
4412 if test "$DUMPBIN" != ":"; then
4413 NM="$DUMPBIN"
4414 fi
4415 fi
4416 test -z "$NM" && NM=nm
4417
4418
4419
4420
4421
4422
4423 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4424 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4425 if test "${lt_cv_nm_interface+set}" = set; then
4426 $as_echo_n "(cached) " >&6
4427 else
4428 lt_cv_nm_interface="BSD nm"
4429 echo "int some_variable = 0;" > conftest.$ac_ext
4430 (eval echo "\"\$as_me:4430: $ac_compile\"" >&5)
4431 (eval "$ac_compile" 2>conftest.err)
4432 cat conftest.err >&5
4433 (eval echo "\"\$as_me:4433: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4434 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4435 cat conftest.err >&5
4436 (eval echo "\"\$as_me:4436: output\"" >&5)
4437 cat conftest.out >&5
4438 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4439 lt_cv_nm_interface="MS dumpbin"
4440 fi
4441 rm -f conftest*
4442 fi
4443 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4444 $as_echo "$lt_cv_nm_interface" >&6; }
4445
4446 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4447 $as_echo_n "checking whether ln -s works... " >&6; }
4448 LN_S=$as_ln_s
4449 if test "$LN_S" = "ln -s"; then
4450 { $as_echo "$as_me:$LINENO: result: yes" >&5
4451 $as_echo "yes" >&6; }
4452 else
4453 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4454 $as_echo "no, using $LN_S" >&6; }
4455 fi
4456
4457 # find the maximum length of command line arguments
4458 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4459 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4460 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4461 $as_echo_n "(cached) " >&6
4462 else
4463 i=0
4464 teststring="ABCD"
4465
4466 case $build_os in
4467 msdosdjgpp*)
4468 # On DJGPP, this test can blow up pretty badly due to problems in libc
4469 # (any single argument exceeding 2000 bytes causes a buffer overrun
4470 # during glob expansion). Even if it were fixed, the result of this
4471 # check would be larger than it should be.
4472 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4473 ;;
4474
4475 gnu*)
4476 # Under GNU Hurd, this test is not required because there is
4477 # no limit to the length of command line arguments.
4478 # Libtool will interpret -1 as no limit whatsoever
4479 lt_cv_sys_max_cmd_len=-1;
4480 ;;
4481
4482 cygwin* | mingw* | cegcc*)
4483 # On Win9x/ME, this test blows up -- it succeeds, but takes
4484 # about 5 minutes as the teststring grows exponentially.
4485 # Worse, since 9x/ME are not pre-emptively multitasking,
4486 # you end up with a "frozen" computer, even though with patience
4487 # the test eventually succeeds (with a max line length of 256k).
4488 # Instead, let's just punt: use the minimum linelength reported by
4489 # all of the supported platforms: 8192 (on NT/2K/XP).
4490 lt_cv_sys_max_cmd_len=8192;
4491 ;;
4492
4493 amigaos*)
4494 # On AmigaOS with pdksh, this test takes hours, literally.
4495 # So we just punt and use a minimum line length of 8192.
4496 lt_cv_sys_max_cmd_len=8192;
4497 ;;
4498
4499 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4500 # This has been around since 386BSD, at least. Likely further.
4501 if test -x /sbin/sysctl; then
4502 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4503 elif test -x /usr/sbin/sysctl; then
4504 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4505 else
4506 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4507 fi
4508 # And add a safety zone
4509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4511 ;;
4512
4513 interix*)
4514 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4515 lt_cv_sys_max_cmd_len=196608
4516 ;;
4517
4518 osf*)
4519 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4520 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4521 # nice to cause kernel panics so lets avoid the loop below.
4522 # First set a reasonable default.
4523 lt_cv_sys_max_cmd_len=16384
4524 #
4525 if test -x /sbin/sysconfig; then
4526 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4527 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4528 esac
4529 fi
4530 ;;
4531 sco3.2v5*)
4532 lt_cv_sys_max_cmd_len=102400
4533 ;;
4534 sysv5* | sco5v6* | sysv4.2uw2*)
4535 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4536 if test -n "$kargmax"; then
4537 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4538 else
4539 lt_cv_sys_max_cmd_len=32768
4540 fi
4541 ;;
4542 *)
4543 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4544 if test -n "$lt_cv_sys_max_cmd_len"; then
4545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4547 else
4548 # Make teststring a little bigger before we do anything with it.
4549 # a 1K string should be a reasonable start.
4550 for i in 1 2 3 4 5 6 7 8 ; do
4551 teststring=$teststring$teststring
4552 done
4553 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4554 # If test is not a shell built-in, we'll probably end up computing a
4555 # maximum length that is only half of the actual maximum length, but
4556 # we can't tell.
4557 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4558 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4559 test $i != 17 # 1/2 MB should be enough
4560 do
4561 i=`expr $i + 1`
4562 teststring=$teststring$teststring
4563 done
4564 # Only check the string length outside the loop.
4565 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4566 teststring=
4567 # Add a significant safety factor because C++ compilers can tack on
4568 # massive amounts of additional arguments before passing them to the
4569 # linker. It appears as though 1/2 is a usable value.
4570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4571 fi
4572 ;;
4573 esac
4574
4575 fi
4576
4577 if test -n $lt_cv_sys_max_cmd_len ; then
4578 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4579 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4580 else
4581 { $as_echo "$as_me:$LINENO: result: none" >&5
4582 $as_echo "none" >&6; }
4583 fi
4584 max_cmd_len=$lt_cv_sys_max_cmd_len
4585
4586
4587
4588
4589
4590
4591 : ${CP="cp -f"}
4592 : ${MV="mv -f"}
4593 : ${RM="rm -f"}
4594
4595 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4596 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4597 # Try some XSI features
4598 xsi_shell=no
4599 ( _lt_dummy="a/b/c"
4600 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4601 = c,a/b,, \
4602 && eval 'test $(( 1 + 1 )) -eq 2 \
4603 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4604 && xsi_shell=yes
4605 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4606 $as_echo "$xsi_shell" >&6; }
4607
4608
4609 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4610 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4611 lt_shell_append=no
4612 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4613 >/dev/null 2>&1 \
4614 && lt_shell_append=yes
4615 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4616 $as_echo "$lt_shell_append" >&6; }
4617
4618
4619 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4620 lt_unset=unset
4621 else
4622 lt_unset=false
4623 fi
4624
4625
4626
4627
4628
4629 # test EBCDIC or ASCII
4630 case `echo X|tr X '\101'` in
4631 A) # ASCII based system
4632 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4633 lt_SP2NL='tr \040 \012'
4634 lt_NL2SP='tr \015\012 \040\040'
4635 ;;
4636 *) # EBCDIC based system
4637 lt_SP2NL='tr \100 \n'
4638 lt_NL2SP='tr \r\n \100\100'
4639 ;;
4640 esac
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4651 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4652 if test "${lt_cv_ld_reload_flag+set}" = set; then
4653 $as_echo_n "(cached) " >&6
4654 else
4655 lt_cv_ld_reload_flag='-r'
4656 fi
4657 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4658 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4659 reload_flag=$lt_cv_ld_reload_flag
4660 case $reload_flag in
4661 "" | " "*) ;;
4662 *) reload_flag=" $reload_flag" ;;
4663 esac
4664 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4665 case $host_os in
4666 darwin*)
4667 if test "$GCC" = yes; then
4668 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4669 else
4670 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4671 fi
4672 ;;
4673 esac
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683 if test -n "$ac_tool_prefix"; then
4684 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4685 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test -n "$OBJDUMP"; then
4692 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 OBJDUMP=$ac_cv_prog_OBJDUMP
4712 if test -n "$OBJDUMP"; then
4713 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4714 $as_echo "$OBJDUMP" >&6; }
4715 else
4716 { $as_echo "$as_me:$LINENO: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721 fi
4722 if test -z "$ac_cv_prog_OBJDUMP"; then
4723 ac_ct_OBJDUMP=$OBJDUMP
4724 # Extract the first word of "objdump", so it can be a program name with args.
4725 set dummy objdump; ac_word=$2
4726 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4729 $as_echo_n "(cached) " >&6
4730 else
4731 if test -n "$ac_ct_OBJDUMP"; then
4732 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4742 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 break 2
4744 fi
4745 done
4746 done
4747 IFS=$as_save_IFS
4748
4749 fi
4750 fi
4751 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4752 if test -n "$ac_ct_OBJDUMP"; then
4753 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4754 $as_echo "$ac_ct_OBJDUMP" >&6; }
4755 else
4756 { $as_echo "$as_me:$LINENO: result: no" >&5
4757 $as_echo "no" >&6; }
4758 fi
4759
4760 if test "x$ac_ct_OBJDUMP" = x; then
4761 OBJDUMP="false"
4762 else
4763 case $cross_compiling:$ac_tool_warned in
4764 yes:)
4765 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4767 ac_tool_warned=yes ;;
4768 esac
4769 OBJDUMP=$ac_ct_OBJDUMP
4770 fi
4771 else
4772 OBJDUMP="$ac_cv_prog_OBJDUMP"
4773 fi
4774
4775 test -z "$OBJDUMP" && OBJDUMP=objdump
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4786 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4787 if test "${lt_cv_deplibs_check_method+set}" = set; then
4788 $as_echo_n "(cached) " >&6
4789 else
4790 lt_cv_file_magic_cmd='$MAGIC_CMD'
4791 lt_cv_file_magic_test_file=
4792 lt_cv_deplibs_check_method='unknown'
4793 # Need to set the preceding variable on all platforms that support
4794 # interlibrary dependencies.
4795 # 'none' -- dependencies not supported.
4796 # `unknown' -- same as none, but documents that we really don't know.
4797 # 'pass_all' -- all dependencies passed with no checks.
4798 # 'test_compile' -- check by making test program.
4799 # 'file_magic [[regex]]' -- check by looking for files in library path
4800 # which responds to the $file_magic_cmd with a given extended regex.
4801 # If you have `file' or equivalent on your system and you're not sure
4802 # whether `pass_all' will *always* work, you probably want this one.
4803
4804 case $host_os in
4805 aix[4-9]*)
4806 lt_cv_deplibs_check_method=pass_all
4807 ;;
4808
4809 beos*)
4810 lt_cv_deplibs_check_method=pass_all
4811 ;;
4812
4813 bsdi[45]*)
4814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4815 lt_cv_file_magic_cmd='/usr/bin/file -L'
4816 lt_cv_file_magic_test_file=/shlib/libc.so
4817 ;;
4818
4819 cygwin*)
4820 # func_win32_libid is a shell function defined in ltmain.sh
4821 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4822 lt_cv_file_magic_cmd='func_win32_libid'
4823 ;;
4824
4825 mingw* | pw32*)
4826 # Base MSYS/MinGW do not provide the 'file' command needed by
4827 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4828 # unless we find 'file', for example because we are cross-compiling.
4829 if ( file / ) >/dev/null 2>&1; then
4830 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4831 lt_cv_file_magic_cmd='func_win32_libid'
4832 else
4833 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4834 lt_cv_file_magic_cmd='$OBJDUMP -f'
4835 fi
4836 ;;
4837
4838 cegcc)
4839 # use the weaker test based on 'objdump'. See mingw*.
4840 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4841 lt_cv_file_magic_cmd='$OBJDUMP -f'
4842 ;;
4843
4844 darwin* | rhapsody*)
4845 lt_cv_deplibs_check_method=pass_all
4846 ;;
4847
4848 freebsd* | dragonfly*)
4849 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4850 case $host_cpu in
4851 i*86 )
4852 # Not sure whether the presence of OpenBSD here was a mistake.
4853 # Let's accept both of them until this is cleared up.
4854 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4855 lt_cv_file_magic_cmd=/usr/bin/file
4856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4857 ;;
4858 esac
4859 else
4860 lt_cv_deplibs_check_method=pass_all
4861 fi
4862 ;;
4863
4864 gnu*)
4865 lt_cv_deplibs_check_method=pass_all
4866 ;;
4867
4868 hpux10.20* | hpux11*)
4869 lt_cv_file_magic_cmd=/usr/bin/file
4870 case $host_cpu in
4871 ia64*)
4872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4873 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4874 ;;
4875 hppa*64*)
4876 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]'
4877 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4878 ;;
4879 *)
4880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4881 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4882 ;;
4883 esac
4884 ;;
4885
4886 interix[3-9]*)
4887 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4889 ;;
4890
4891 irix5* | irix6* | nonstopux*)
4892 case $LD in
4893 *-32|*"-32 ") libmagic=32-bit;;
4894 *-n32|*"-n32 ") libmagic=N32;;
4895 *-64|*"-64 ") libmagic=64-bit;;
4896 *) libmagic=never-match;;
4897 esac
4898 lt_cv_deplibs_check_method=pass_all
4899 ;;
4900
4901 # This must be Linux ELF.
4902 linux* | k*bsd*-gnu)
4903 lt_cv_deplibs_check_method=pass_all
4904 ;;
4905
4906 netbsd*)
4907 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4909 else
4910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4911 fi
4912 ;;
4913
4914 newos6*)
4915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4916 lt_cv_file_magic_cmd=/usr/bin/file
4917 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4918 ;;
4919
4920 *nto* | *qnx*)
4921 lt_cv_deplibs_check_method=pass_all
4922 ;;
4923
4924 openbsd*)
4925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4927 else
4928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4929 fi
4930 ;;
4931
4932 osf3* | osf4* | osf5*)
4933 lt_cv_deplibs_check_method=pass_all
4934 ;;
4935
4936 rdos*)
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
4939
4940 solaris*)
4941 lt_cv_deplibs_check_method=pass_all
4942 ;;
4943
4944 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4945 lt_cv_deplibs_check_method=pass_all
4946 ;;
4947
4948 sysv4 | sysv4.3*)
4949 case $host_vendor in
4950 motorola)
4951 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]'
4952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4953 ;;
4954 ncr)
4955 lt_cv_deplibs_check_method=pass_all
4956 ;;
4957 sequent)
4958 lt_cv_file_magic_cmd='/bin/file'
4959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4960 ;;
4961 sni)
4962 lt_cv_file_magic_cmd='/bin/file'
4963 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4964 lt_cv_file_magic_test_file=/lib/libc.so
4965 ;;
4966 siemens)
4967 lt_cv_deplibs_check_method=pass_all
4968 ;;
4969 pc)
4970 lt_cv_deplibs_check_method=pass_all
4971 ;;
4972 esac
4973 ;;
4974
4975 tpf*)
4976 lt_cv_deplibs_check_method=pass_all
4977 ;;
4978 esac
4979
4980 fi
4981 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4982 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4983 file_magic_cmd=$lt_cv_file_magic_cmd
4984 deplibs_check_method=$lt_cv_deplibs_check_method
4985 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998 if test -n "$ac_tool_prefix"; then
4999 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5000 set dummy ${ac_tool_prefix}ar; ac_word=$2
5001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if test "${ac_cv_prog_AR+set}" = set; then
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -n "$AR"; then
5007 ac_cv_prog_AR="$AR" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5011 do
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016 ac_cv_prog_AR="${ac_tool_prefix}ar"
5017 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5019 fi
5020 done
5021 done
5022 IFS=$as_save_IFS
5023
5024 fi
5025 fi
5026 AR=$ac_cv_prog_AR
5027 if test -n "$AR"; then
5028 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5029 $as_echo "$AR" >&6; }
5030 else
5031 { $as_echo "$as_me:$LINENO: result: no" >&5
5032 $as_echo "no" >&6; }
5033 fi
5034
5035
5036 fi
5037 if test -z "$ac_cv_prog_AR"; then
5038 ac_ct_AR=$AR
5039 # Extract the first word of "ar", so it can be a program name with args.
5040 set dummy ar; ac_word=$2
5041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$ac_ct_AR"; then
5047 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_prog_ac_ct_AR="ar"
5057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5059 fi
5060 done
5061 done
5062 IFS=$as_save_IFS
5063
5064 fi
5065 fi
5066 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5067 if test -n "$ac_ct_AR"; then
5068 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5069 $as_echo "$ac_ct_AR" >&6; }
5070 else
5071 { $as_echo "$as_me:$LINENO: result: no" >&5
5072 $as_echo "no" >&6; }
5073 fi
5074
5075 if test "x$ac_ct_AR" = x; then
5076 AR="false"
5077 else
5078 case $cross_compiling:$ac_tool_warned in
5079 yes:)
5080 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5082 ac_tool_warned=yes ;;
5083 esac
5084 AR=$ac_ct_AR
5085 fi
5086 else
5087 AR="$ac_cv_prog_AR"
5088 fi
5089
5090 test -z "$AR" && AR=ar
5091 test -z "$AR_FLAGS" && AR_FLAGS=cru
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103 if test -n "$ac_tool_prefix"; then
5104 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5105 set dummy ${ac_tool_prefix}strip; ac_word=$2
5106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if test "${ac_cv_prog_STRIP+set}" = set; then
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$STRIP"; then
5112 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125 done
5126 done
5127 IFS=$as_save_IFS
5128
5129 fi
5130 fi
5131 STRIP=$ac_cv_prog_STRIP
5132 if test -n "$STRIP"; then
5133 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5134 $as_echo "$STRIP" >&6; }
5135 else
5136 { $as_echo "$as_me:$LINENO: result: no" >&5
5137 $as_echo "no" >&6; }
5138 fi
5139
5140
5141 fi
5142 if test -z "$ac_cv_prog_STRIP"; then
5143 ac_ct_STRIP=$STRIP
5144 # Extract the first word of "strip", so it can be a program name with args.
5145 set dummy strip; ac_word=$2
5146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5149 $as_echo_n "(cached) " >&6
5150 else
5151 if test -n "$ac_ct_STRIP"; then
5152 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_prog_ac_ct_STRIP="strip"
5162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165 done
5166 done
5167 IFS=$as_save_IFS
5168
5169 fi
5170 fi
5171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5172 if test -n "$ac_ct_STRIP"; then
5173 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5174 $as_echo "$ac_ct_STRIP" >&6; }
5175 else
5176 { $as_echo "$as_me:$LINENO: result: no" >&5
5177 $as_echo "no" >&6; }
5178 fi
5179
5180 if test "x$ac_ct_STRIP" = x; then
5181 STRIP=":"
5182 else
5183 case $cross_compiling:$ac_tool_warned in
5184 yes:)
5185 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5187 ac_tool_warned=yes ;;
5188 esac
5189 STRIP=$ac_ct_STRIP
5190 fi
5191 else
5192 STRIP="$ac_cv_prog_STRIP"
5193 fi
5194
5195 test -z "$STRIP" && STRIP=:
5196
5197
5198
5199
5200
5201
5202 if test -n "$ac_tool_prefix"; then
5203 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5204 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5205 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if test "${ac_cv_prog_RANLIB+set}" = set; then
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$RANLIB"; then
5211 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5221 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 fi
5229 fi
5230 RANLIB=$ac_cv_prog_RANLIB
5231 if test -n "$RANLIB"; then
5232 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5233 $as_echo "$RANLIB" >&6; }
5234 else
5235 { $as_echo "$as_me:$LINENO: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238
5239
5240 fi
5241 if test -z "$ac_cv_prog_RANLIB"; then
5242 ac_ct_RANLIB=$RANLIB
5243 # Extract the first word of "ranlib", so it can be a program name with args.
5244 set dummy ranlib; ac_word=$2
5245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5248 $as_echo_n "(cached) " >&6
5249 else
5250 if test -n "$ac_ct_RANLIB"; then
5251 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_prog_ac_ct_RANLIB="ranlib"
5261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5263 fi
5264 done
5265 done
5266 IFS=$as_save_IFS
5267
5268 fi
5269 fi
5270 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5271 if test -n "$ac_ct_RANLIB"; then
5272 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5273 $as_echo "$ac_ct_RANLIB" >&6; }
5274 else
5275 { $as_echo "$as_me:$LINENO: result: no" >&5
5276 $as_echo "no" >&6; }
5277 fi
5278
5279 if test "x$ac_ct_RANLIB" = x; then
5280 RANLIB=":"
5281 else
5282 case $cross_compiling:$ac_tool_warned in
5283 yes:)
5284 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5286 ac_tool_warned=yes ;;
5287 esac
5288 RANLIB=$ac_ct_RANLIB
5289 fi
5290 else
5291 RANLIB="$ac_cv_prog_RANLIB"
5292 fi
5293
5294 test -z "$RANLIB" && RANLIB=:
5295
5296
5297
5298
5299
5300
5301 # Determine commands to create old-style static archives.
5302 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5303 old_postinstall_cmds='chmod 644 $oldlib'
5304 old_postuninstall_cmds=
5305
5306 if test -n "$RANLIB"; then
5307 case $host_os in
5308 openbsd*)
5309 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5310 ;;
5311 *)
5312 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5313 ;;
5314 esac
5315 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5316 fi
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351 # If no C compiler was specified, use CC.
5352 LTCC=${LTCC-"$CC"}
5353
5354 # If no C compiler flags were specified, use CFLAGS.
5355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5356
5357 # Allow CC to be a program name with arguments.
5358 compiler=$CC
5359
5360
5361 # Check for command to grab the raw symbol name followed by C symbol from nm.
5362 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5363 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5364 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5365 $as_echo_n "(cached) " >&6
5366 else
5367
5368 # These are sane defaults that work on at least a few old systems.
5369 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5370
5371 # Character class describing NM global symbol codes.
5372 symcode='[BCDEGRST]'
5373
5374 # Regexp to match symbols that can be accessed directly from C.
5375 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5376
5377 # Define system-specific variables.
5378 case $host_os in
5379 aix*)
5380 symcode='[BCDT]'
5381 ;;
5382 cygwin* | mingw* | pw32* | cegcc*)
5383 symcode='[ABCDGISTW]'
5384 ;;
5385 hpux*)
5386 if test "$host_cpu" = ia64; then
5387 symcode='[ABCDEGRST]'
5388 fi
5389 ;;
5390 irix* | nonstopux*)
5391 symcode='[BCDEGRST]'
5392 ;;
5393 osf*)
5394 symcode='[BCDEGQRST]'
5395 ;;
5396 solaris*)
5397 symcode='[BDRT]'
5398 ;;
5399 sco3.2v5*)
5400 symcode='[DT]'
5401 ;;
5402 sysv4.2uw2*)
5403 symcode='[DT]'
5404 ;;
5405 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5406 symcode='[ABDT]'
5407 ;;
5408 sysv4)
5409 symcode='[DFNSTU]'
5410 ;;
5411 esac
5412
5413 # If we're using GNU nm, then use its standard symbol codes.
5414 case `$NM -V 2>&1` in
5415 *GNU* | *'with BFD'*)
5416 symcode='[ABCDGIRSTW]' ;;
5417 esac
5418
5419 # Transform an extracted symbol line into a proper C declaration.
5420 # Some systems (esp. on ia64) link data and code symbols differently,
5421 # so use this general approach.
5422 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5423
5424 # Transform an extracted symbol line into symbol name and symbol address
5425 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5426 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'"
5427
5428 # Handle CRLF in mingw tool chain
5429 opt_cr=
5430 case $build_os in
5431 mingw*)
5432 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5433 ;;
5434 esac
5435
5436 # Try without a prefix underscore, then with it.
5437 for ac_symprfx in "" "_"; do
5438
5439 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5440 symxfrm="\\1 $ac_symprfx\\2 \\2"
5441
5442 # Write the raw and C identifiers.
5443 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5444 # Fake it for dumpbin and say T for any non-static function
5445 # and D for any global variable.
5446 # Also find C++ and __fastcall symbols from MSVC++,
5447 # which start with @ or ?.
5448 lt_cv_sys_global_symbol_pipe="$AWK '"\
5449 " {last_section=section; section=\$ 3};"\
5450 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5451 " \$ 0!~/External *\|/{next};"\
5452 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5453 " {if(hide[section]) next};"\
5454 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5455 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5456 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5457 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5458 " ' prfx=^$ac_symprfx"
5459 else
5460 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5461 fi
5462
5463 # Check to see that the pipe works correctly.
5464 pipe_works=no
5465
5466 rm -f conftest*
5467 cat > conftest.$ac_ext <<_LT_EOF
5468 #ifdef __cplusplus
5469 extern "C" {
5470 #endif
5471 char nm_test_var;
5472 void nm_test_func(void);
5473 void nm_test_func(void){}
5474 #ifdef __cplusplus
5475 }
5476 #endif
5477 int main(){nm_test_var='a';nm_test_func();return(0);}
5478 _LT_EOF
5479
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481 (eval $ac_compile) 2>&5
5482 ac_status=$?
5483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; then
5485 # Now try to grab the symbols.
5486 nlist=conftest.nm
5487 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5488 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5489 ac_status=$?
5490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } && test -s "$nlist"; then
5492 # Try sorting and uniquifying the output.
5493 if sort "$nlist" | uniq > "$nlist"T; then
5494 mv -f "$nlist"T "$nlist"
5495 else
5496 rm -f "$nlist"T
5497 fi
5498
5499 # Make sure that we snagged all the symbols we need.
5500 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5501 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5502 cat <<_LT_EOF > conftest.$ac_ext
5503 #ifdef __cplusplus
5504 extern "C" {
5505 #endif
5506
5507 _LT_EOF
5508 # Now generate the symbol file.
5509 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5510
5511 cat <<_LT_EOF >> conftest.$ac_ext
5512
5513 /* The mapping between symbol names and symbols. */
5514 const struct {
5515 const char *name;
5516 void *address;
5517 }
5518 lt__PROGRAM__LTX_preloaded_symbols[] =
5519 {
5520 { "@PROGRAM@", (void *) 0 },
5521 _LT_EOF
5522 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5523 cat <<\_LT_EOF >> conftest.$ac_ext
5524 {0, (void *) 0}
5525 };
5526
5527 /* This works around a problem in FreeBSD linker */
5528 #ifdef FREEBSD_WORKAROUND
5529 static const void *lt_preloaded_setup() {
5530 return lt__PROGRAM__LTX_preloaded_symbols;
5531 }
5532 #endif
5533
5534 #ifdef __cplusplus
5535 }
5536 #endif
5537 _LT_EOF
5538 # Now try linking the two files.
5539 mv conftest.$ac_objext conftstm.$ac_objext
5540 lt_save_LIBS="$LIBS"
5541 lt_save_CFLAGS="$CFLAGS"
5542 LIBS="conftstm.$ac_objext"
5543 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545 (eval $ac_link) 2>&5
5546 ac_status=$?
5547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5549 pipe_works=yes
5550 fi
5551 LIBS="$lt_save_LIBS"
5552 CFLAGS="$lt_save_CFLAGS"
5553 else
5554 echo "cannot find nm_test_func in $nlist" >&5
5555 fi
5556 else
5557 echo "cannot find nm_test_var in $nlist" >&5
5558 fi
5559 else
5560 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5561 fi
5562 else
5563 echo "$progname: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5565 fi
5566 rm -rf conftest* conftst*
5567
5568 # Do not use the global_symbol_pipe unless it works.
5569 if test "$pipe_works" = yes; then
5570 break
5571 else
5572 lt_cv_sys_global_symbol_pipe=
5573 fi
5574 done
5575
5576 fi
5577
5578 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5579 lt_cv_sys_global_symbol_to_cdecl=
5580 fi
5581 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5582 { $as_echo "$as_me:$LINENO: result: failed" >&5
5583 $as_echo "failed" >&6; }
5584 else
5585 { $as_echo "$as_me:$LINENO: result: ok" >&5
5586 $as_echo "ok" >&6; }
5587 fi
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611 # Check whether --enable-libtool-lock was given.
5612 if test "${enable_libtool_lock+set}" = set; then
5613 enableval=$enable_libtool_lock;
5614 fi
5615
5616 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5617
5618 # Some flags need to be propagated to the compiler or linker for good
5619 # libtool support.
5620 case $host in
5621 ia64-*-hpux*)
5622 # Find out which ABI we are using.
5623 echo 'int i;' > conftest.$ac_ext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>&5
5626 ac_status=$?
5627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; then
5629 case `/usr/bin/file conftest.$ac_objext` in
5630 *ELF-32*)
5631 HPUX_IA64_MODE="32"
5632 ;;
5633 *ELF-64*)
5634 HPUX_IA64_MODE="64"
5635 ;;
5636 esac
5637 fi
5638 rm -rf conftest*
5639 ;;
5640 *-*-irix6*)
5641 # Find out which ABI we are using.
5642 echo '#line 5642 "configure"' > conftest.$ac_ext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>&5
5645 ac_status=$?
5646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; then
5648 if test "$lt_cv_prog_gnu_ld" = yes; then
5649 case `/usr/bin/file conftest.$ac_objext` in
5650 *32-bit*)
5651 LD="${LD-ld} -melf32bsmip"
5652 ;;
5653 *N32*)
5654 LD="${LD-ld} -melf32bmipn32"
5655 ;;
5656 *64-bit*)
5657 LD="${LD-ld} -melf64bmip"
5658 ;;
5659 esac
5660 else
5661 case `/usr/bin/file conftest.$ac_objext` in
5662 *32-bit*)
5663 LD="${LD-ld} -32"
5664 ;;
5665 *N32*)
5666 LD="${LD-ld} -n32"
5667 ;;
5668 *64-bit*)
5669 LD="${LD-ld} -64"
5670 ;;
5671 esac
5672 fi
5673 fi
5674 rm -rf conftest*
5675 ;;
5676
5677 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5678 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5679 # Find out which ABI we are using.
5680 echo 'int i;' > conftest.$ac_ext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682 (eval $ac_compile) 2>&5
5683 ac_status=$?
5684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; then
5686 case `/usr/bin/file conftest.o` in
5687 *32-bit*)
5688 case $host in
5689 x86_64-*kfreebsd*-gnu)
5690 LD="${LD-ld} -m elf_i386_fbsd"
5691 ;;
5692 x86_64-*linux*)
5693 LD="${LD-ld} -m elf_i386"
5694 ;;
5695 ppc64-*linux*|powerpc64-*linux*)
5696 LD="${LD-ld} -m elf32ppclinux"
5697 ;;
5698 s390x-*linux*)
5699 LD="${LD-ld} -m elf_s390"
5700 ;;
5701 sparc64-*linux*)
5702 LD="${LD-ld} -m elf32_sparc"
5703 ;;
5704 esac
5705 ;;
5706 *64-bit*)
5707 case $host in
5708 x86_64-*kfreebsd*-gnu)
5709 LD="${LD-ld} -m elf_x86_64_fbsd"
5710 ;;
5711 x86_64-*linux*)
5712 LD="${LD-ld} -m elf_x86_64"
5713 ;;
5714 ppc*-*linux*|powerpc*-*linux*)
5715 LD="${LD-ld} -m elf64ppc"
5716 ;;
5717 s390*-*linux*|s390*-*tpf*)
5718 LD="${LD-ld} -m elf64_s390"
5719 ;;
5720 sparc*-*linux*)
5721 LD="${LD-ld} -m elf64_sparc"
5722 ;;
5723 esac
5724 ;;
5725 esac
5726 fi
5727 rm -rf conftest*
5728 ;;
5729
5730 *-*-sco3.2v5*)
5731 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5732 SAVE_CFLAGS="$CFLAGS"
5733 CFLAGS="$CFLAGS -belf"
5734 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5735 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5736 if test "${lt_cv_cc_needs_belf+set}" = set; then
5737 $as_echo_n "(cached) " >&6
5738 else
5739 ac_ext=c
5740 ac_cpp='$CPP $CPPFLAGS'
5741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5744
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h. */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751
5752 int
5753 main ()
5754 {
5755
5756 ;
5757 return 0;
5758 }
5759 _ACEOF
5760 rm -f conftest.$ac_objext conftest$ac_exeext
5761 if { (ac_try="$ac_link"
5762 case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765 esac
5766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5767 $as_echo "$ac_try_echo") >&5
5768 (eval "$ac_link") 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && {
5775 test -z "$ac_c_werror_flag" ||
5776 test ! -s conftest.err
5777 } && test -s conftest$ac_exeext && {
5778 test "$cross_compiling" = yes ||
5779 $as_test_x conftest$ac_exeext
5780 }; then
5781 lt_cv_cc_needs_belf=yes
5782 else
5783 $as_echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5785
5786 lt_cv_cc_needs_belf=no
5787 fi
5788
5789 rm -rf conftest.dSYM
5790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5791 conftest$ac_exeext conftest.$ac_ext
5792 ac_ext=c
5793 ac_cpp='$CPP $CPPFLAGS'
5794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797
5798 fi
5799 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5800 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5801 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5802 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5803 CFLAGS="$SAVE_CFLAGS"
5804 fi
5805 ;;
5806 sparc*-*solaris*)
5807 # Find out which ABI we are using.
5808 echo 'int i;' > conftest.$ac_ext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>&5
5811 ac_status=$?
5812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; then
5814 case `/usr/bin/file conftest.o` in
5815 *64-bit*)
5816 case $lt_cv_prog_gnu_ld in
5817 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5818 *)
5819 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5820 LD="${LD-ld} -64"
5821 fi
5822 ;;
5823 esac
5824 ;;
5825 esac
5826 fi
5827 rm -rf conftest*
5828 ;;
5829 esac
5830
5831 need_locks="$enable_libtool_lock"
5832
5833
5834 case $host_os in
5835 rhapsody* | darwin*)
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5839 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if test -n "$DSYMUTIL"; then
5845 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858 done
5859 done
5860 IFS=$as_save_IFS
5861
5862 fi
5863 fi
5864 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5865 if test -n "$DSYMUTIL"; then
5866 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5867 $as_echo "$DSYMUTIL" >&6; }
5868 else
5869 { $as_echo "$as_me:$LINENO: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873
5874 fi
5875 if test -z "$ac_cv_prog_DSYMUTIL"; then
5876 ac_ct_DSYMUTIL=$DSYMUTIL
5877 # Extract the first word of "dsymutil", so it can be a program name with args.
5878 set dummy dsymutil; ac_word=$2
5879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$ac_ct_DSYMUTIL"; then
5885 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5895 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5905 if test -n "$ac_ct_DSYMUTIL"; then
5906 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5907 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5908 else
5909 { $as_echo "$as_me:$LINENO: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913 if test "x$ac_ct_DSYMUTIL" = x; then
5914 DSYMUTIL=":"
5915 else
5916 case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5921 esac
5922 DSYMUTIL=$ac_ct_DSYMUTIL
5923 fi
5924 else
5925 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5926 fi
5927
5928 if test -n "$ac_tool_prefix"; then
5929 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5930 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if test -n "$NMEDIT"; then
5937 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5947 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 break 2
5949 fi
5950 done
5951 done
5952 IFS=$as_save_IFS
5953
5954 fi
5955 fi
5956 NMEDIT=$ac_cv_prog_NMEDIT
5957 if test -n "$NMEDIT"; then
5958 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5959 $as_echo "$NMEDIT" >&6; }
5960 else
5961 { $as_echo "$as_me:$LINENO: result: no" >&5
5962 $as_echo "no" >&6; }
5963 fi
5964
5965
5966 fi
5967 if test -z "$ac_cv_prog_NMEDIT"; then
5968 ac_ct_NMEDIT=$NMEDIT
5969 # Extract the first word of "nmedit", so it can be a program name with args.
5970 set dummy nmedit; ac_word=$2
5971 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5974 $as_echo_n "(cached) " >&6
5975 else
5976 if test -n "$ac_ct_NMEDIT"; then
5977 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5986 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5987 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 break 2
5989 fi
5990 done
5991 done
5992 IFS=$as_save_IFS
5993
5994 fi
5995 fi
5996 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5997 if test -n "$ac_ct_NMEDIT"; then
5998 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5999 $as_echo "$ac_ct_NMEDIT" >&6; }
6000 else
6001 { $as_echo "$as_me:$LINENO: result: no" >&5
6002 $as_echo "no" >&6; }
6003 fi
6004
6005 if test "x$ac_ct_NMEDIT" = x; then
6006 NMEDIT=":"
6007 else
6008 case $cross_compiling:$ac_tool_warned in
6009 yes:)
6010 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6012 ac_tool_warned=yes ;;
6013 esac
6014 NMEDIT=$ac_ct_NMEDIT
6015 fi
6016 else
6017 NMEDIT="$ac_cv_prog_NMEDIT"
6018 fi
6019
6020 if test -n "$ac_tool_prefix"; then
6021 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6022 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6023 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if test "${ac_cv_prog_LIPO+set}" = set; then
6026 $as_echo_n "(cached) " >&6
6027 else
6028 if test -n "$LIPO"; then
6029 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6030 else
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6033 do
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6038 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6041 fi
6042 done
6043 done
6044 IFS=$as_save_IFS
6045
6046 fi
6047 fi
6048 LIPO=$ac_cv_prog_LIPO
6049 if test -n "$LIPO"; then
6050 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6051 $as_echo "$LIPO" >&6; }
6052 else
6053 { $as_echo "$as_me:$LINENO: result: no" >&5
6054 $as_echo "no" >&6; }
6055 fi
6056
6057
6058 fi
6059 if test -z "$ac_cv_prog_LIPO"; then
6060 ac_ct_LIPO=$LIPO
6061 # Extract the first word of "lipo", so it can be a program name with args.
6062 set dummy lipo; ac_word=$2
6063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6064 $as_echo_n "checking for $ac_word... " >&6; }
6065 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6066 $as_echo_n "(cached) " >&6
6067 else
6068 if test -n "$ac_ct_LIPO"; then
6069 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6070 else
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6073 do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078 ac_cv_prog_ac_ct_LIPO="lipo"
6079 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082 done
6083 done
6084 IFS=$as_save_IFS
6085
6086 fi
6087 fi
6088 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6089 if test -n "$ac_ct_LIPO"; then
6090 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6091 $as_echo "$ac_ct_LIPO" >&6; }
6092 else
6093 { $as_echo "$as_me:$LINENO: result: no" >&5
6094 $as_echo "no" >&6; }
6095 fi
6096
6097 if test "x$ac_ct_LIPO" = x; then
6098 LIPO=":"
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101 yes:)
6102 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104 ac_tool_warned=yes ;;
6105 esac
6106 LIPO=$ac_ct_LIPO
6107 fi
6108 else
6109 LIPO="$ac_cv_prog_LIPO"
6110 fi
6111
6112 if test -n "$ac_tool_prefix"; then
6113 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}otool; ac_word=$2
6115 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if test "${ac_cv_prog_OTOOL+set}" = set; then
6118 $as_echo_n "(cached) " >&6
6119 else
6120 if test -n "$OTOOL"; then
6121 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6133 fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 OTOOL=$ac_cv_prog_OTOOL
6141 if test -n "$OTOOL"; then
6142 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6143 $as_echo "$OTOOL" >&6; }
6144 else
6145 { $as_echo "$as_me:$LINENO: result: no" >&5
6146 $as_echo "no" >&6; }
6147 fi
6148
6149
6150 fi
6151 if test -z "$ac_cv_prog_OTOOL"; then
6152 ac_ct_OTOOL=$OTOOL
6153 # Extract the first word of "otool", so it can be a program name with args.
6154 set dummy otool; ac_word=$2
6155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6158 $as_echo_n "(cached) " >&6
6159 else
6160 if test -n "$ac_ct_OTOOL"; then
6161 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6165 do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_ac_ct_OTOOL="otool"
6171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174 done
6175 done
6176 IFS=$as_save_IFS
6177
6178 fi
6179 fi
6180 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6181 if test -n "$ac_ct_OTOOL"; then
6182 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6183 $as_echo "$ac_ct_OTOOL" >&6; }
6184 else
6185 { $as_echo "$as_me:$LINENO: result: no" >&5
6186 $as_echo "no" >&6; }
6187 fi
6188
6189 if test "x$ac_ct_OTOOL" = x; then
6190 OTOOL=":"
6191 else
6192 case $cross_compiling:$ac_tool_warned in
6193 yes:)
6194 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196 ac_tool_warned=yes ;;
6197 esac
6198 OTOOL=$ac_ct_OTOOL
6199 fi
6200 else
6201 OTOOL="$ac_cv_prog_OTOOL"
6202 fi
6203
6204 if test -n "$ac_tool_prefix"; then
6205 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6206 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6210 $as_echo_n "(cached) " >&6
6211 else
6212 if test -n "$OTOOL64"; then
6213 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6214 else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6217 do
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6225 fi
6226 done
6227 done
6228 IFS=$as_save_IFS
6229
6230 fi
6231 fi
6232 OTOOL64=$ac_cv_prog_OTOOL64
6233 if test -n "$OTOOL64"; then
6234 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6235 $as_echo "$OTOOL64" >&6; }
6236 else
6237 { $as_echo "$as_me:$LINENO: result: no" >&5
6238 $as_echo "no" >&6; }
6239 fi
6240
6241
6242 fi
6243 if test -z "$ac_cv_prog_OTOOL64"; then
6244 ac_ct_OTOOL64=$OTOOL64
6245 # Extract the first word of "otool64", so it can be a program name with args.
6246 set dummy otool64; ac_word=$2
6247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6250 $as_echo_n "(cached) " >&6
6251 else
6252 if test -n "$ac_ct_OTOOL64"; then
6253 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_ac_ct_OTOOL64="otool64"
6263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6273 if test -n "$ac_ct_OTOOL64"; then
6274 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6275 $as_echo "$ac_ct_OTOOL64" >&6; }
6276 else
6277 { $as_echo "$as_me:$LINENO: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280
6281 if test "x$ac_ct_OTOOL64" = x; then
6282 OTOOL64=":"
6283 else
6284 case $cross_compiling:$ac_tool_warned in
6285 yes:)
6286 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288 ac_tool_warned=yes ;;
6289 esac
6290 OTOOL64=$ac_ct_OTOOL64
6291 fi
6292 else
6293 OTOOL64="$ac_cv_prog_OTOOL64"
6294 fi
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6323 $as_echo_n "checking for -single_module linker flag... " >&6; }
6324 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6325 $as_echo_n "(cached) " >&6
6326 else
6327 lt_cv_apple_cc_single_mod=no
6328 if test -z "${LT_MULTI_MODULE}"; then
6329 # By default we will add the -single_module flag. You can override
6330 # by either setting the environment variable LT_MULTI_MODULE
6331 # non-empty at configure time, or by adding -multi_module to the
6332 # link flags.
6333 rm -rf libconftest.dylib*
6334 echo "int foo(void){return 1;}" > conftest.c
6335 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6336 -dynamiclib -Wl,-single_module conftest.c" >&5
6337 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6338 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6339 _lt_result=$?
6340 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6341 lt_cv_apple_cc_single_mod=yes
6342 else
6343 cat conftest.err >&5
6344 fi
6345 rm -rf libconftest.dylib*
6346 rm -f conftest.*
6347 fi
6348 fi
6349 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6350 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6351 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6352 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6353 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6354 $as_echo_n "(cached) " >&6
6355 else
6356 lt_cv_ld_exported_symbols_list=no
6357 save_LDFLAGS=$LDFLAGS
6358 echo "_main" > conftest.sym
6359 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h. */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366
6367 int
6368 main ()
6369 {
6370
6371 ;
6372 return 0;
6373 }
6374 _ACEOF
6375 rm -f conftest.$ac_objext conftest$ac_exeext
6376 if { (ac_try="$ac_link"
6377 case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380 esac
6381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382 $as_echo "$ac_try_echo") >&5
6383 (eval "$ac_link") 2>conftest.er1
6384 ac_status=$?
6385 grep -v '^ *+' conftest.er1 >conftest.err
6386 rm -f conftest.er1
6387 cat conftest.err >&5
6388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } && {
6390 test -z "$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6392 } && test -s conftest$ac_exeext && {
6393 test "$cross_compiling" = yes ||
6394 $as_test_x conftest$ac_exeext
6395 }; then
6396 lt_cv_ld_exported_symbols_list=yes
6397 else
6398 $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6400
6401 lt_cv_ld_exported_symbols_list=no
6402 fi
6403
6404 rm -rf conftest.dSYM
6405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6406 conftest$ac_exeext conftest.$ac_ext
6407 LDFLAGS="$save_LDFLAGS"
6408
6409 fi
6410 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6411 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6412 case $host_os in
6413 rhapsody* | darwin1.[012])
6414 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6415 darwin1.*)
6416 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6417 darwin*) # darwin 5.x on
6418 # if running on 10.5 or later, the deployment target defaults
6419 # to the OS version, if on x86, and 10.4, the deployment
6420 # target defaults to 10.4. Don't you love it?
6421 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6422 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6423 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6424 10.[012]*)
6425 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6426 10.*)
6427 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6428 esac
6429 ;;
6430 esac
6431 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6432 _lt_dar_single_mod='$single_module'
6433 fi
6434 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6435 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6436 else
6437 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6438 fi
6439 if test "$DSYMUTIL" != ":"; then
6440 _lt_dsymutil='~$DSYMUTIL $lib || :'
6441 else
6442 _lt_dsymutil=
6443 fi
6444 ;;
6445 esac
6446
6447 ac_ext=c
6448 ac_cpp='$CPP $CPPFLAGS'
6449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6452 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6453 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6454 # On Suns, sometimes $CPP names a directory.
6455 if test -n "$CPP" && test -d "$CPP"; then
6456 CPP=
6457 fi
6458 if test -z "$CPP"; then
6459 if test "${ac_cv_prog_CPP+set}" = set; then
6460 $as_echo_n "(cached) " >&6
6461 else
6462 # Double quotes because CPP needs to be expanded
6463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6464 do
6465 ac_preproc_ok=false
6466 for ac_c_preproc_warn_flag in '' yes
6467 do
6468 # Use a header file that comes with gcc, so configuring glibc
6469 # with a fresh cross-compiler works.
6470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6471 # <limits.h> exists even on freestanding compilers.
6472 # On the NeXT, cc -E runs the code through the compiler's parser,
6473 # not just through cpp. "Syntax error" is here to catch this case.
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 #ifdef __STDC__
6481 # include <limits.h>
6482 #else
6483 # include <assert.h>
6484 #endif
6485 Syntax error
6486 _ACEOF
6487 if { (ac_try="$ac_cpp conftest.$ac_ext"
6488 case "(($ac_try" in
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6491 esac
6492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6493 $as_echo "$ac_try_echo") >&5
6494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6495 ac_status=$?
6496 grep -v '^ *+' conftest.er1 >conftest.err
6497 rm -f conftest.er1
6498 cat conftest.err >&5
6499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } >/dev/null && {
6501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6502 test ! -s conftest.err
6503 }; then
6504 :
6505 else
6506 $as_echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6508
6509 # Broken: fails on valid input.
6510 continue
6511 fi
6512
6513 rm -f conftest.err conftest.$ac_ext
6514
6515 # OK, works on sane cases. Now check whether nonexistent headers
6516 # can be detected and how.
6517 cat >conftest.$ac_ext <<_ACEOF
6518 /* confdefs.h. */
6519 _ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6523 #include <ac_nonexistent.h>
6524 _ACEOF
6525 if { (ac_try="$ac_cpp conftest.$ac_ext"
6526 case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6529 esac
6530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6531 $as_echo "$ac_try_echo") >&5
6532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6533 ac_status=$?
6534 grep -v '^ *+' conftest.er1 >conftest.err
6535 rm -f conftest.er1
6536 cat conftest.err >&5
6537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } >/dev/null && {
6539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6540 test ! -s conftest.err
6541 }; then
6542 # Broken: success on invalid input.
6543 continue
6544 else
6545 $as_echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 # Passes both tests.
6549 ac_preproc_ok=:
6550 break
6551 fi
6552
6553 rm -f conftest.err conftest.$ac_ext
6554
6555 done
6556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6557 rm -f conftest.err conftest.$ac_ext
6558 if $ac_preproc_ok; then
6559 break
6560 fi
6561
6562 done
6563 ac_cv_prog_CPP=$CPP
6564
6565 fi
6566 CPP=$ac_cv_prog_CPP
6567 else
6568 ac_cv_prog_CPP=$CPP
6569 fi
6570 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6571 $as_echo "$CPP" >&6; }
6572 ac_preproc_ok=false
6573 for ac_c_preproc_warn_flag in '' yes
6574 do
6575 # Use a header file that comes with gcc, so configuring glibc
6576 # with a fresh cross-compiler works.
6577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6578 # <limits.h> exists even on freestanding compilers.
6579 # On the NeXT, cc -E runs the code through the compiler's parser,
6580 # not just through cpp. "Syntax error" is here to catch this case.
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 #ifdef __STDC__
6588 # include <limits.h>
6589 #else
6590 # include <assert.h>
6591 #endif
6592 Syntax error
6593 _ACEOF
6594 if { (ac_try="$ac_cpp conftest.$ac_ext"
6595 case "(($ac_try" in
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6598 esac
6599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6600 $as_echo "$ac_try_echo") >&5
6601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } >/dev/null && {
6608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6609 test ! -s conftest.err
6610 }; then
6611 :
6612 else
6613 $as_echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6615
6616 # Broken: fails on valid input.
6617 continue
6618 fi
6619
6620 rm -f conftest.err conftest.$ac_ext
6621
6622 # OK, works on sane cases. Now check whether nonexistent headers
6623 # can be detected and how.
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <ac_nonexistent.h>
6631 _ACEOF
6632 if { (ac_try="$ac_cpp conftest.$ac_ext"
6633 case "(($ac_try" in
6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635 *) ac_try_echo=$ac_try;;
6636 esac
6637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6638 $as_echo "$ac_try_echo") >&5
6639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } >/dev/null && {
6646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6647 test ! -s conftest.err
6648 }; then
6649 # Broken: success on invalid input.
6650 continue
6651 else
6652 $as_echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6654
6655 # Passes both tests.
6656 ac_preproc_ok=:
6657 break
6658 fi
6659
6660 rm -f conftest.err conftest.$ac_ext
6661
6662 done
6663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6664 rm -f conftest.err conftest.$ac_ext
6665 if $ac_preproc_ok; then
6666 :
6667 else
6668 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6670 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6671 See \`config.log' for more details." >&5
6672 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6673 See \`config.log' for more details." >&2;}
6674 { (exit 1); exit 1; }; }; }
6675 fi
6676
6677 ac_ext=c
6678 ac_cpp='$CPP $CPPFLAGS'
6679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6682
6683
6684 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6685 $as_echo_n "checking for ANSI C header files... " >&6; }
6686 if test "${ac_cv_header_stdc+set}" = set; then
6687 $as_echo_n "(cached) " >&6
6688 else
6689 cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h. */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 #include <stdlib.h>
6696 #include <stdarg.h>
6697 #include <string.h>
6698 #include <float.h>
6699
6700 int
6701 main ()
6702 {
6703
6704 ;
6705 return 0;
6706 }
6707 _ACEOF
6708 rm -f conftest.$ac_objext
6709 if { (ac_try="$ac_compile"
6710 case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6713 esac
6714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6715 $as_echo "$ac_try_echo") >&5
6716 (eval "$ac_compile") 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } && {
6723 test -z "$ac_c_werror_flag" ||
6724 test ! -s conftest.err
6725 } && test -s conftest.$ac_objext; then
6726 ac_cv_header_stdc=yes
6727 else
6728 $as_echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 ac_cv_header_stdc=no
6732 fi
6733
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735
6736 if test $ac_cv_header_stdc = yes; then
6737 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h. */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 #include <string.h>
6745
6746 _ACEOF
6747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6748 $EGREP "memchr" >/dev/null 2>&1; then
6749 :
6750 else
6751 ac_cv_header_stdc=no
6752 fi
6753 rm -f conftest*
6754
6755 fi
6756
6757 if test $ac_cv_header_stdc = yes; then
6758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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
6767 _ACEOF
6768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6769 $EGREP "free" >/dev/null 2>&1; then
6770 :
6771 else
6772 ac_cv_header_stdc=no
6773 fi
6774 rm -f conftest*
6775
6776 fi
6777
6778 if test $ac_cv_header_stdc = yes; then
6779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6780 if test "$cross_compiling" = yes; then
6781 :
6782 else
6783 cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h. */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <ctype.h>
6790 #include <stdlib.h>
6791 #if ((' ' & 0x0FF) == 0x020)
6792 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6793 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6794 #else
6795 # define ISLOWER(c) \
6796 (('a' <= (c) && (c) <= 'i') \
6797 || ('j' <= (c) && (c) <= 'r') \
6798 || ('s' <= (c) && (c) <= 'z'))
6799 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6800 #endif
6801
6802 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6803 int
6804 main ()
6805 {
6806 int i;
6807 for (i = 0; i < 256; i++)
6808 if (XOR (islower (i), ISLOWER (i))
6809 || toupper (i) != TOUPPER (i))
6810 return 2;
6811 return 0;
6812 }
6813 _ACEOF
6814 rm -f conftest$ac_exeext
6815 if { (ac_try="$ac_link"
6816 case "(($ac_try" in
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6819 esac
6820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6821 $as_echo "$ac_try_echo") >&5
6822 (eval "$ac_link") 2>&5
6823 ac_status=$?
6824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6826 { (case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829 esac
6830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6831 $as_echo "$ac_try_echo") >&5
6832 (eval "$ac_try") 2>&5
6833 ac_status=$?
6834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 :
6837 else
6838 $as_echo "$as_me: program exited with status $ac_status" >&5
6839 $as_echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6841
6842 ( exit $ac_status )
6843 ac_cv_header_stdc=no
6844 fi
6845 rm -rf conftest.dSYM
6846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6847 fi
6848
6849
6850 fi
6851 fi
6852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6853 $as_echo "$ac_cv_header_stdc" >&6; }
6854 if test $ac_cv_header_stdc = yes; then
6855
6856 cat >>confdefs.h <<\_ACEOF
6857 #define STDC_HEADERS 1
6858 _ACEOF
6859
6860 fi
6861
6862 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6873 inttypes.h stdint.h unistd.h
6874 do
6875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6876 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6877 $as_echo_n "checking for $ac_header... " >&6; }
6878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6879 $as_echo_n "(cached) " >&6
6880 else
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 $ac_includes_default
6888
6889 #include <$ac_header>
6890 _ACEOF
6891 rm -f conftest.$ac_objext
6892 if { (ac_try="$ac_compile"
6893 case "(($ac_try" in
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6896 esac
6897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898 $as_echo "$ac_try_echo") >&5
6899 (eval "$ac_compile") 2>conftest.er1
6900 ac_status=$?
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
6904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } && {
6906 test -z "$ac_c_werror_flag" ||
6907 test ! -s conftest.err
6908 } && test -s conftest.$ac_objext; then
6909 eval "$as_ac_Header=yes"
6910 else
6911 $as_echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6913
6914 eval "$as_ac_Header=no"
6915 fi
6916
6917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918 fi
6919 ac_res=`eval 'as_val=${'$as_ac_Header'}
6920 $as_echo "$as_val"'`
6921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6922 $as_echo "$ac_res" >&6; }
6923 as_val=`eval 'as_val=${'$as_ac_Header'}
6924 $as_echo "$as_val"'`
6925 if test "x$as_val" = x""yes; then
6926 cat >>confdefs.h <<_ACEOF
6927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6928 _ACEOF
6929
6930 fi
6931
6932 done
6933
6934
6935
6936 for ac_header in dlfcn.h
6937 do
6938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6939 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6940 $as_echo_n "checking for $ac_header... " >&6; }
6941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6942 $as_echo_n "(cached) " >&6
6943 else
6944 cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h. */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 $ac_includes_default
6951
6952 #include <$ac_header>
6953 _ACEOF
6954 rm -f conftest.$ac_objext
6955 if { (ac_try="$ac_compile"
6956 case "(($ac_try" in
6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6959 esac
6960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6961 $as_echo "$ac_try_echo") >&5
6962 (eval "$ac_compile") 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
6972 eval "$as_ac_Header=yes"
6973 else
6974 $as_echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977 eval "$as_ac_Header=no"
6978 fi
6979
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981 fi
6982 ac_res=`eval 'as_val=${'$as_ac_Header'}
6983 $as_echo "$as_val"'`
6984 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6985 $as_echo "$ac_res" >&6; }
6986 as_val=`eval 'as_val=${'$as_ac_Header'}
6987 $as_echo "$as_val"'`
6988 if test "x$as_val" = x""yes; then
6989 cat >>confdefs.h <<_ACEOF
6990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6991 _ACEOF
6992
6993 fi
6994
6995 done
6996
6997
6998
6999 # Set options
7000
7001
7002
7003 enable_dlopen=no
7004
7005
7006 enable_win32_dll=no
7007
7008
7009 # Check whether --enable-shared was given.
7010 if test "${enable_shared+set}" = set; then
7011 enableval=$enable_shared; p=${PACKAGE-default}
7012 case $enableval in
7013 yes) enable_shared=yes ;;
7014 no) enable_shared=no ;;
7015 *)
7016 enable_shared=no
7017 # Look at the argument we got. We use all the common list separators.
7018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7019 for pkg in $enableval; do
7020 IFS="$lt_save_ifs"
7021 if test "X$pkg" = "X$p"; then
7022 enable_shared=yes
7023 fi
7024 done
7025 IFS="$lt_save_ifs"
7026 ;;
7027 esac
7028 else
7029 enable_shared=yes
7030 fi
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042 # Check whether --with-pic was given.
7043 if test "${with_pic+set}" = set; then
7044 withval=$with_pic; pic_mode="$withval"
7045 else
7046 pic_mode=default
7047 fi
7048
7049
7050 test -z "$pic_mode" && pic_mode=default
7051
7052
7053
7054
7055
7056
7057
7058 # Check whether --enable-fast-install was given.
7059 if test "${enable_fast_install+set}" = set; then
7060 enableval=$enable_fast_install; p=${PACKAGE-default}
7061 case $enableval in
7062 yes) enable_fast_install=yes ;;
7063 no) enable_fast_install=no ;;
7064 *)
7065 enable_fast_install=no
7066 # Look at the argument we got. We use all the common list separators.
7067 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7068 for pkg in $enableval; do
7069 IFS="$lt_save_ifs"
7070 if test "X$pkg" = "X$p"; then
7071 enable_fast_install=yes
7072 fi
7073 done
7074 IFS="$lt_save_ifs"
7075 ;;
7076 esac
7077 else
7078 enable_fast_install=yes
7079 fi
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091 # This can be used to rebuild libtool when needed
7092 LIBTOOL_DEPS="$ltmain"
7093
7094 # Always use our own libtool.
7095 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121 test -z "$LN_S" && LN_S="ln -s"
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136 if test -n "${ZSH_VERSION+set}" ; then
7137 setopt NO_GLOB_SUBST
7138 fi
7139
7140 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7141 $as_echo_n "checking for objdir... " >&6; }
7142 if test "${lt_cv_objdir+set}" = set; then
7143 $as_echo_n "(cached) " >&6
7144 else
7145 rm -f .libs 2>/dev/null
7146 mkdir .libs 2>/dev/null
7147 if test -d .libs; then
7148 lt_cv_objdir=.libs
7149 else
7150 # MS-DOS does not allow filenames that begin with a dot.
7151 lt_cv_objdir=_libs
7152 fi
7153 rmdir .libs 2>/dev/null
7154 fi
7155 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7156 $as_echo "$lt_cv_objdir" >&6; }
7157 objdir=$lt_cv_objdir
7158
7159
7160
7161
7162
7163 cat >>confdefs.h <<_ACEOF
7164 #define LT_OBJDIR "$lt_cv_objdir/"
7165 _ACEOF
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183 case $host_os in
7184 aix3*)
7185 # AIX sometimes has problems with the GCC collect2 program. For some
7186 # reason, if we set the COLLECT_NAMES environment variable, the problems
7187 # vanish in a puff of smoke.
7188 if test "X${COLLECT_NAMES+set}" != Xset; then
7189 COLLECT_NAMES=
7190 export COLLECT_NAMES
7191 fi
7192 ;;
7193 esac
7194
7195 # Sed substitution that helps us do robust quoting. It backslashifies
7196 # metacharacters that are still active within double-quoted strings.
7197 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7198
7199 # Same as above, but do not quote variable references.
7200 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7201
7202 # Sed substitution to delay expansion of an escaped shell variable in a
7203 # double_quote_subst'ed string.
7204 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7205
7206 # Sed substitution to delay expansion of an escaped single quote.
7207 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7208
7209 # Sed substitution to avoid accidental globbing in evaled expressions
7210 no_glob_subst='s/\*/\\\*/g'
7211
7212 # Global variables:
7213 ofile=libtool
7214 can_build_shared=yes
7215
7216 # All known linkers require a `.a' archive for static linking (except MSVC,
7217 # which needs '.lib').
7218 libext=a
7219
7220 with_gnu_ld="$lt_cv_prog_gnu_ld"
7221
7222 old_CC="$CC"
7223 old_CFLAGS="$CFLAGS"
7224
7225 # Set sane defaults for various variables
7226 test -z "$CC" && CC=cc
7227 test -z "$LTCC" && LTCC=$CC
7228 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7229 test -z "$LD" && LD=ld
7230 test -z "$ac_objext" && ac_objext=o
7231
7232 for cc_temp in $compiler""; do
7233 case $cc_temp in
7234 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7235 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7236 \-*) ;;
7237 *) break;;
7238 esac
7239 done
7240 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7241
7242
7243 # Only perform the check for file, if the check method requires it
7244 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7245 case $deplibs_check_method in
7246 file_magic*)
7247 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7248 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7249 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7250 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7251 $as_echo_n "(cached) " >&6
7252 else
7253 case $MAGIC_CMD in
7254 [\\/*] | ?:[\\/]*)
7255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7256 ;;
7257 *)
7258 lt_save_MAGIC_CMD="$MAGIC_CMD"
7259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7261 for ac_dir in $ac_dummy; do
7262 IFS="$lt_save_ifs"
7263 test -z "$ac_dir" && ac_dir=.
7264 if test -f $ac_dir/${ac_tool_prefix}file; then
7265 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7266 if test -n "$file_magic_test_file"; then
7267 case $deplibs_check_method in
7268 "file_magic "*)
7269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7272 $EGREP "$file_magic_regex" > /dev/null; then
7273 :
7274 else
7275 cat <<_LT_EOF 1>&2
7276
7277 *** Warning: the command libtool uses to detect shared libraries,
7278 *** $file_magic_cmd, produces output that libtool cannot recognize.
7279 *** The result is that libtool may fail to recognize shared libraries
7280 *** as such. This will affect the creation of libtool libraries that
7281 *** depend on shared libraries, but programs linked with such libtool
7282 *** libraries will work regardless of this problem. Nevertheless, you
7283 *** may want to report the problem to your system manager and/or to
7284 *** bug-libtool@gnu.org
7285
7286 _LT_EOF
7287 fi ;;
7288 esac
7289 fi
7290 break
7291 fi
7292 done
7293 IFS="$lt_save_ifs"
7294 MAGIC_CMD="$lt_save_MAGIC_CMD"
7295 ;;
7296 esac
7297 fi
7298
7299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7300 if test -n "$MAGIC_CMD"; then
7301 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7302 $as_echo "$MAGIC_CMD" >&6; }
7303 else
7304 { $as_echo "$as_me:$LINENO: result: no" >&5
7305 $as_echo "no" >&6; }
7306 fi
7307
7308
7309
7310
7311
7312 if test -z "$lt_cv_path_MAGIC_CMD"; then
7313 if test -n "$ac_tool_prefix"; then
7314 { $as_echo "$as_me:$LINENO: checking for file" >&5
7315 $as_echo_n "checking for file... " >&6; }
7316 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7317 $as_echo_n "(cached) " >&6
7318 else
7319 case $MAGIC_CMD in
7320 [\\/*] | ?:[\\/]*)
7321 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7322 ;;
7323 *)
7324 lt_save_MAGIC_CMD="$MAGIC_CMD"
7325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7326 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7327 for ac_dir in $ac_dummy; do
7328 IFS="$lt_save_ifs"
7329 test -z "$ac_dir" && ac_dir=.
7330 if test -f $ac_dir/file; then
7331 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7332 if test -n "$file_magic_test_file"; then
7333 case $deplibs_check_method in
7334 "file_magic "*)
7335 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7337 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7338 $EGREP "$file_magic_regex" > /dev/null; then
7339 :
7340 else
7341 cat <<_LT_EOF 1>&2
7342
7343 *** Warning: the command libtool uses to detect shared libraries,
7344 *** $file_magic_cmd, produces output that libtool cannot recognize.
7345 *** The result is that libtool may fail to recognize shared libraries
7346 *** as such. This will affect the creation of libtool libraries that
7347 *** depend on shared libraries, but programs linked with such libtool
7348 *** libraries will work regardless of this problem. Nevertheless, you
7349 *** may want to report the problem to your system manager and/or to
7350 *** bug-libtool@gnu.org
7351
7352 _LT_EOF
7353 fi ;;
7354 esac
7355 fi
7356 break
7357 fi
7358 done
7359 IFS="$lt_save_ifs"
7360 MAGIC_CMD="$lt_save_MAGIC_CMD"
7361 ;;
7362 esac
7363 fi
7364
7365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7366 if test -n "$MAGIC_CMD"; then
7367 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7368 $as_echo "$MAGIC_CMD" >&6; }
7369 else
7370 { $as_echo "$as_me:$LINENO: result: no" >&5
7371 $as_echo "no" >&6; }
7372 fi
7373
7374
7375 else
7376 MAGIC_CMD=:
7377 fi
7378 fi
7379
7380 fi
7381 ;;
7382 esac
7383
7384 # Use C for the default configuration in the libtool script
7385
7386 lt_save_CC="$CC"
7387 ac_ext=c
7388 ac_cpp='$CPP $CPPFLAGS'
7389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7392
7393
7394 # Source file extension for C test sources.
7395 ac_ext=c
7396
7397 # Object file extension for compiled C test sources.
7398 objext=o
7399 objext=$objext
7400
7401 # Code to be used in simple compile tests
7402 lt_simple_compile_test_code="int some_variable = 0;"
7403
7404 # Code to be used in simple link tests
7405 lt_simple_link_test_code='int main(){return(0);}'
7406
7407
7408
7409
7410
7411
7412
7413 # If no C compiler was specified, use CC.
7414 LTCC=${LTCC-"$CC"}
7415
7416 # If no C compiler flags were specified, use CFLAGS.
7417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7418
7419 # Allow CC to be a program name with arguments.
7420 compiler=$CC
7421
7422 # Save the default compiler, since it gets overwritten when the other
7423 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7424 compiler_DEFAULT=$CC
7425
7426 # save warnings/boilerplate of simple test code
7427 ac_outfile=conftest.$ac_objext
7428 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7430 _lt_compiler_boilerplate=`cat conftest.err`
7431 $RM conftest*
7432
7433 ac_outfile=conftest.$ac_objext
7434 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7436 _lt_linker_boilerplate=`cat conftest.err`
7437 $RM -r conftest*
7438
7439
7440 if test -n "$compiler"; then
7441
7442 lt_prog_compiler_no_builtin_flag=
7443
7444 if test "$GCC" = yes; then
7445 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7446
7447 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7448 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7449 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7450 $as_echo_n "(cached) " >&6
7451 else
7452 lt_cv_prog_compiler_rtti_exceptions=no
7453 ac_outfile=conftest.$ac_objext
7454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7455 lt_compiler_flag="-fno-rtti -fno-exceptions"
7456 # Insert the option either (1) after the last *FLAGS variable, or
7457 # (2) before a word containing "conftest.", or (3) at the end.
7458 # Note that $ac_compile itself does not contain backslashes and begins
7459 # with a dollar sign (not a hyphen), so the echo should work correctly.
7460 # The option is referenced via a variable to avoid confusing sed.
7461 lt_compile=`echo "$ac_compile" | $SED \
7462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7464 -e 's:$: $lt_compiler_flag:'`
7465 (eval echo "\"\$as_me:7465: $lt_compile\"" >&5)
7466 (eval "$lt_compile" 2>conftest.err)
7467 ac_status=$?
7468 cat conftest.err >&5
7469 echo "$as_me:7469: \$? = $ac_status" >&5
7470 if (exit $ac_status) && test -s "$ac_outfile"; then
7471 # The compiler can only warn and ignore the option if not recognized
7472 # So say no if there are warnings other than the usual output.
7473 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7476 lt_cv_prog_compiler_rtti_exceptions=yes
7477 fi
7478 fi
7479 $RM conftest*
7480
7481 fi
7482 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7483 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7484
7485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7487 else
7488 :
7489 fi
7490
7491 fi
7492
7493
7494
7495
7496
7497
7498 lt_prog_compiler_wl=
7499 lt_prog_compiler_pic=
7500 lt_prog_compiler_static=
7501
7502 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7503 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7504
7505 if test "$GCC" = yes; then
7506 lt_prog_compiler_wl='-Wl,'
7507 lt_prog_compiler_static='-static'
7508
7509 case $host_os in
7510 aix*)
7511 # All AIX code is PIC.
7512 if test "$host_cpu" = ia64; then
7513 # AIX 5 now supports IA64 processor
7514 lt_prog_compiler_static='-Bstatic'
7515 fi
7516 ;;
7517
7518 amigaos*)
7519 case $host_cpu in
7520 powerpc)
7521 # see comment about AmigaOS4 .so support
7522 lt_prog_compiler_pic='-fPIC'
7523 ;;
7524 m68k)
7525 # FIXME: we need at least 68020 code to build shared libraries, but
7526 # adding the `-m68020' flag to GCC prevents building anything better,
7527 # like `-m68040'.
7528 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7529 ;;
7530 esac
7531 ;;
7532
7533 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7534 # PIC is the default for these OSes.
7535 ;;
7536
7537 mingw* | cygwin* | pw32* | os2* | cegcc*)
7538 # This hack is so that the source file can tell whether it is being
7539 # built for inclusion in a dll (and should export symbols for example).
7540 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7541 # (--disable-auto-import) libraries
7542 lt_prog_compiler_pic='-DDLL_EXPORT'
7543 ;;
7544
7545 darwin* | rhapsody*)
7546 # PIC is the default on this platform
7547 # Common symbols not allowed in MH_DYLIB files
7548 lt_prog_compiler_pic='-fno-common'
7549 ;;
7550
7551 hpux*)
7552 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7553 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7554 # sets the default TLS model and affects inlining.
7555 case $host_cpu in
7556 hppa*64*)
7557 # +Z the default
7558 ;;
7559 *)
7560 lt_prog_compiler_pic='-fPIC'
7561 ;;
7562 esac
7563 ;;
7564
7565 interix[3-9]*)
7566 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7567 # Instead, we relocate shared libraries at runtime.
7568 ;;
7569
7570 msdosdjgpp*)
7571 # Just because we use GCC doesn't mean we suddenly get shared libraries
7572 # on systems that don't support them.
7573 lt_prog_compiler_can_build_shared=no
7574 enable_shared=no
7575 ;;
7576
7577 *nto* | *qnx*)
7578 # QNX uses GNU C++, but need to define -shared option too, otherwise
7579 # it will coredump.
7580 lt_prog_compiler_pic='-fPIC -shared'
7581 ;;
7582
7583 sysv4*MP*)
7584 if test -d /usr/nec; then
7585 lt_prog_compiler_pic=-Kconform_pic
7586 fi
7587 ;;
7588
7589 *)
7590 lt_prog_compiler_pic='-fPIC'
7591 ;;
7592 esac
7593 else
7594 # PORTME Check for flag to pass linker flags through the system compiler.
7595 case $host_os in
7596 aix*)
7597 lt_prog_compiler_wl='-Wl,'
7598 if test "$host_cpu" = ia64; then
7599 # AIX 5 now supports IA64 processor
7600 lt_prog_compiler_static='-Bstatic'
7601 else
7602 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7603 fi
7604 ;;
7605
7606 mingw* | cygwin* | pw32* | os2* | cegcc*)
7607 # This hack is so that the source file can tell whether it is being
7608 # built for inclusion in a dll (and should export symbols for example).
7609 lt_prog_compiler_pic='-DDLL_EXPORT'
7610 ;;
7611
7612 hpux9* | hpux10* | hpux11*)
7613 lt_prog_compiler_wl='-Wl,'
7614 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7615 # not for PA HP-UX.
7616 case $host_cpu in
7617 hppa*64*|ia64*)
7618 # +Z the default
7619 ;;
7620 *)
7621 lt_prog_compiler_pic='+Z'
7622 ;;
7623 esac
7624 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7625 lt_prog_compiler_static='${wl}-a ${wl}archive'
7626 ;;
7627
7628 irix5* | irix6* | nonstopux*)
7629 lt_prog_compiler_wl='-Wl,'
7630 # PIC (with -KPIC) is the default.
7631 lt_prog_compiler_static='-non_shared'
7632 ;;
7633
7634 linux* | k*bsd*-gnu)
7635 case $cc_basename in
7636 # old Intel for x86_64 which still supported -KPIC.
7637 ecc*)
7638 lt_prog_compiler_wl='-Wl,'
7639 lt_prog_compiler_pic='-KPIC'
7640 lt_prog_compiler_static='-static'
7641 ;;
7642 # icc used to be incompatible with GCC.
7643 # ICC 10 doesn't accept -KPIC any more.
7644 icc* | ifort*)
7645 lt_prog_compiler_wl='-Wl,'
7646 lt_prog_compiler_pic='-fPIC'
7647 lt_prog_compiler_static='-static'
7648 ;;
7649 # Lahey Fortran 8.1.
7650 lf95*)
7651 lt_prog_compiler_wl='-Wl,'
7652 lt_prog_compiler_pic='--shared'
7653 lt_prog_compiler_static='--static'
7654 ;;
7655 pgcc* | pgf77* | pgf90* | pgf95*)
7656 # Portland Group compilers (*not* the Pentium gcc compiler,
7657 # which looks to be a dead project)
7658 lt_prog_compiler_wl='-Wl,'
7659 lt_prog_compiler_pic='-fpic'
7660 lt_prog_compiler_static='-Bstatic'
7661 ;;
7662 ccc*)
7663 lt_prog_compiler_wl='-Wl,'
7664 # All Alpha code is PIC.
7665 lt_prog_compiler_static='-non_shared'
7666 ;;
7667 xl*)
7668 # IBM XL C 8.0/Fortran 10.1 on PPC
7669 lt_prog_compiler_wl='-Wl,'
7670 lt_prog_compiler_pic='-qpic'
7671 lt_prog_compiler_static='-qstaticlink'
7672 ;;
7673 *)
7674 case `$CC -V 2>&1 | sed 5q` in
7675 *Sun\ C*)
7676 # Sun C 5.9
7677 lt_prog_compiler_pic='-KPIC'
7678 lt_prog_compiler_static='-Bstatic'
7679 lt_prog_compiler_wl='-Wl,'
7680 ;;
7681 *Sun\ F*)
7682 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7683 lt_prog_compiler_pic='-KPIC'
7684 lt_prog_compiler_static='-Bstatic'
7685 lt_prog_compiler_wl=''
7686 ;;
7687 esac
7688 ;;
7689 esac
7690 ;;
7691
7692 newsos6)
7693 lt_prog_compiler_pic='-KPIC'
7694 lt_prog_compiler_static='-Bstatic'
7695 ;;
7696
7697 *nto* | *qnx*)
7698 # QNX uses GNU C++, but need to define -shared option too, otherwise
7699 # it will coredump.
7700 lt_prog_compiler_pic='-fPIC -shared'
7701 ;;
7702
7703 osf3* | osf4* | osf5*)
7704 lt_prog_compiler_wl='-Wl,'
7705 # All OSF/1 code is PIC.
7706 lt_prog_compiler_static='-non_shared'
7707 ;;
7708
7709 rdos*)
7710 lt_prog_compiler_static='-non_shared'
7711 ;;
7712
7713 solaris*)
7714 lt_prog_compiler_pic='-KPIC'
7715 lt_prog_compiler_static='-Bstatic'
7716 case $cc_basename in
7717 f77* | f90* | f95*)
7718 lt_prog_compiler_wl='-Qoption ld ';;
7719 *)
7720 lt_prog_compiler_wl='-Wl,';;
7721 esac
7722 ;;
7723
7724 sunos4*)
7725 lt_prog_compiler_wl='-Qoption ld '
7726 lt_prog_compiler_pic='-PIC'
7727 lt_prog_compiler_static='-Bstatic'
7728 ;;
7729
7730 sysv4 | sysv4.2uw2* | sysv4.3*)
7731 lt_prog_compiler_wl='-Wl,'
7732 lt_prog_compiler_pic='-KPIC'
7733 lt_prog_compiler_static='-Bstatic'
7734 ;;
7735
7736 sysv4*MP*)
7737 if test -d /usr/nec ;then
7738 lt_prog_compiler_pic='-Kconform_pic'
7739 lt_prog_compiler_static='-Bstatic'
7740 fi
7741 ;;
7742
7743 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7744 lt_prog_compiler_wl='-Wl,'
7745 lt_prog_compiler_pic='-KPIC'
7746 lt_prog_compiler_static='-Bstatic'
7747 ;;
7748
7749 unicos*)
7750 lt_prog_compiler_wl='-Wl,'
7751 lt_prog_compiler_can_build_shared=no
7752 ;;
7753
7754 uts4*)
7755 lt_prog_compiler_pic='-pic'
7756 lt_prog_compiler_static='-Bstatic'
7757 ;;
7758
7759 *)
7760 lt_prog_compiler_can_build_shared=no
7761 ;;
7762 esac
7763 fi
7764
7765 case $host_os in
7766 # For platforms which do not support PIC, -DPIC is meaningless:
7767 *djgpp*)
7768 lt_prog_compiler_pic=
7769 ;;
7770 *)
7771 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7772 ;;
7773 esac
7774 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7775 $as_echo "$lt_prog_compiler_pic" >&6; }
7776
7777
7778
7779
7780
7781
7782 #
7783 # Check to make sure the PIC flag actually works.
7784 #
7785 if test -n "$lt_prog_compiler_pic"; then
7786 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7787 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7788 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7789 $as_echo_n "(cached) " >&6
7790 else
7791 lt_cv_prog_compiler_pic_works=no
7792 ac_outfile=conftest.$ac_objext
7793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7794 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7795 # Insert the option either (1) after the last *FLAGS variable, or
7796 # (2) before a word containing "conftest.", or (3) at the end.
7797 # Note that $ac_compile itself does not contain backslashes and begins
7798 # with a dollar sign (not a hyphen), so the echo should work correctly.
7799 # The option is referenced via a variable to avoid confusing sed.
7800 lt_compile=`echo "$ac_compile" | $SED \
7801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7803 -e 's:$: $lt_compiler_flag:'`
7804 (eval echo "\"\$as_me:7804: $lt_compile\"" >&5)
7805 (eval "$lt_compile" 2>conftest.err)
7806 ac_status=$?
7807 cat conftest.err >&5
7808 echo "$as_me:7808: \$? = $ac_status" >&5
7809 if (exit $ac_status) && test -s "$ac_outfile"; then
7810 # The compiler can only warn and ignore the option if not recognized
7811 # So say no if there are warnings other than the usual output.
7812 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7815 lt_cv_prog_compiler_pic_works=yes
7816 fi
7817 fi
7818 $RM conftest*
7819
7820 fi
7821 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7822 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7823
7824 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7825 case $lt_prog_compiler_pic in
7826 "" | " "*) ;;
7827 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7828 esac
7829 else
7830 lt_prog_compiler_pic=
7831 lt_prog_compiler_can_build_shared=no
7832 fi
7833
7834 fi
7835
7836
7837
7838
7839
7840
7841 #
7842 # Check to make sure the static flag actually works.
7843 #
7844 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7845 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7846 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7847 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7848 $as_echo_n "(cached) " >&6
7849 else
7850 lt_cv_prog_compiler_static_works=no
7851 save_LDFLAGS="$LDFLAGS"
7852 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7853 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7854 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7855 # The linker can only warn and ignore the option if not recognized
7856 # So say no if there are warnings
7857 if test -s conftest.err; then
7858 # Append any errors to the config.log.
7859 cat conftest.err 1>&5
7860 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7862 if diff conftest.exp conftest.er2 >/dev/null; then
7863 lt_cv_prog_compiler_static_works=yes
7864 fi
7865 else
7866 lt_cv_prog_compiler_static_works=yes
7867 fi
7868 fi
7869 $RM -r conftest*
7870 LDFLAGS="$save_LDFLAGS"
7871
7872 fi
7873 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7874 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7875
7876 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7877 :
7878 else
7879 lt_prog_compiler_static=
7880 fi
7881
7882
7883
7884
7885
7886
7887
7888 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7889 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7890 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7891 $as_echo_n "(cached) " >&6
7892 else
7893 lt_cv_prog_compiler_c_o=no
7894 $RM -r conftest 2>/dev/null
7895 mkdir conftest
7896 cd conftest
7897 mkdir out
7898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7899
7900 lt_compiler_flag="-o out/conftest2.$ac_objext"
7901 # Insert the option either (1) after the last *FLAGS variable, or
7902 # (2) before a word containing "conftest.", or (3) at the end.
7903 # Note that $ac_compile itself does not contain backslashes and begins
7904 # with a dollar sign (not a hyphen), so the echo should work correctly.
7905 lt_compile=`echo "$ac_compile" | $SED \
7906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7908 -e 's:$: $lt_compiler_flag:'`
7909 (eval echo "\"\$as_me:7909: $lt_compile\"" >&5)
7910 (eval "$lt_compile" 2>out/conftest.err)
7911 ac_status=$?
7912 cat out/conftest.err >&5
7913 echo "$as_me:7913: \$? = $ac_status" >&5
7914 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7915 then
7916 # The compiler can only warn and ignore the option if not recognized
7917 # So say no if there are warnings
7918 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7921 lt_cv_prog_compiler_c_o=yes
7922 fi
7923 fi
7924 chmod u+w . 2>&5
7925 $RM conftest*
7926 # SGI C++ compiler will create directory out/ii_files/ for
7927 # template instantiation
7928 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7929 $RM out/* && rmdir out
7930 cd ..
7931 $RM -r conftest
7932 $RM conftest*
7933
7934 fi
7935 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7936 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7937
7938
7939
7940
7941
7942
7943 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7944 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7945 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7946 $as_echo_n "(cached) " >&6
7947 else
7948 lt_cv_prog_compiler_c_o=no
7949 $RM -r conftest 2>/dev/null
7950 mkdir conftest
7951 cd conftest
7952 mkdir out
7953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7954
7955 lt_compiler_flag="-o out/conftest2.$ac_objext"
7956 # Insert the option either (1) after the last *FLAGS variable, or
7957 # (2) before a word containing "conftest.", or (3) at the end.
7958 # Note that $ac_compile itself does not contain backslashes and begins
7959 # with a dollar sign (not a hyphen), so the echo should work correctly.
7960 lt_compile=`echo "$ac_compile" | $SED \
7961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7963 -e 's:$: $lt_compiler_flag:'`
7964 (eval echo "\"\$as_me:7964: $lt_compile\"" >&5)
7965 (eval "$lt_compile" 2>out/conftest.err)
7966 ac_status=$?
7967 cat out/conftest.err >&5
7968 echo "$as_me:7968: \$? = $ac_status" >&5
7969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7970 then
7971 # The compiler can only warn and ignore the option if not recognized
7972 # So say no if there are warnings
7973 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7976 lt_cv_prog_compiler_c_o=yes
7977 fi
7978 fi
7979 chmod u+w . 2>&5
7980 $RM conftest*
7981 # SGI C++ compiler will create directory out/ii_files/ for
7982 # template instantiation
7983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7984 $RM out/* && rmdir out
7985 cd ..
7986 $RM -r conftest
7987 $RM conftest*
7988
7989 fi
7990 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7991 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7992
7993
7994
7995
7996 hard_links="nottested"
7997 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7998 # do not overwrite the value of need_locks provided by the user
7999 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8000 $as_echo_n "checking if we can lock with hard links... " >&6; }
8001 hard_links=yes
8002 $RM conftest*
8003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8004 touch conftest.a
8005 ln conftest.a conftest.b 2>&5 || hard_links=no
8006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8007 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8008 $as_echo "$hard_links" >&6; }
8009 if test "$hard_links" = no; then
8010 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8011 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8012 need_locks=warn
8013 fi
8014 else
8015 need_locks=no
8016 fi
8017
8018
8019
8020
8021
8022
8023 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8024 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8025
8026 runpath_var=
8027 allow_undefined_flag=
8028 always_export_symbols=no
8029 archive_cmds=
8030 archive_expsym_cmds=
8031 compiler_needs_object=no
8032 enable_shared_with_static_runtimes=no
8033 export_dynamic_flag_spec=
8034 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8035 hardcode_automatic=no
8036 hardcode_direct=no
8037 hardcode_direct_absolute=no
8038 hardcode_libdir_flag_spec=
8039 hardcode_libdir_flag_spec_ld=
8040 hardcode_libdir_separator=
8041 hardcode_minus_L=no
8042 hardcode_shlibpath_var=unsupported
8043 inherit_rpath=no
8044 link_all_deplibs=unknown
8045 module_cmds=
8046 module_expsym_cmds=
8047 old_archive_from_new_cmds=
8048 old_archive_from_expsyms_cmds=
8049 thread_safe_flag_spec=
8050 whole_archive_flag_spec=
8051 # include_expsyms should be a list of space-separated symbols to be *always*
8052 # included in the symbol list
8053 include_expsyms=
8054 # exclude_expsyms can be an extended regexp of symbols to exclude
8055 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8056 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8057 # as well as any symbol that contains `d'.
8058 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8059 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8060 # platforms (ab)use it in PIC code, but their linkers get confused if
8061 # the symbol is explicitly referenced. Since portable code cannot
8062 # rely on this symbol name, it's probably fine to never include it in
8063 # preloaded symbol tables.
8064 # Exclude shared library initialization/finalization symbols.
8065 extract_expsyms_cmds=
8066
8067 case $host_os in
8068 cygwin* | mingw* | pw32* | cegcc*)
8069 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8070 # When not using gcc, we currently assume that we are using
8071 # Microsoft Visual C++.
8072 if test "$GCC" != yes; then
8073 with_gnu_ld=no
8074 fi
8075 ;;
8076 interix*)
8077 # we just hope/assume this is gcc and not c89 (= MSVC++)
8078 with_gnu_ld=yes
8079 ;;
8080 openbsd*)
8081 with_gnu_ld=no
8082 ;;
8083 esac
8084
8085 ld_shlibs=yes
8086 if test "$with_gnu_ld" = yes; then
8087 # If archive_cmds runs LD, not CC, wlarc should be empty
8088 wlarc='${wl}'
8089
8090 # Set some defaults for GNU ld with shared library support. These
8091 # are reset later if shared libraries are not supported. Putting them
8092 # here allows them to be overridden if necessary.
8093 runpath_var=LD_RUN_PATH
8094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8095 export_dynamic_flag_spec='${wl}--export-dynamic'
8096 # ancient GNU ld didn't support --whole-archive et. al.
8097 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8098 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8099 else
8100 whole_archive_flag_spec=
8101 fi
8102 supports_anon_versioning=no
8103 case `$LD -v 2>&1` in
8104 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8105 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8106 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8107 *\ 2.11.*) ;; # other 2.11 versions
8108 *) supports_anon_versioning=yes ;;
8109 esac
8110
8111 # See if GNU ld supports shared libraries.
8112 case $host_os in
8113 aix[3-9]*)
8114 # On AIX/PPC, the GNU linker is very broken
8115 if test "$host_cpu" != ia64; then
8116 ld_shlibs=no
8117 cat <<_LT_EOF 1>&2
8118
8119 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8120 *** to be unable to reliably create shared libraries on AIX.
8121 *** Therefore, libtool is disabling shared libraries support. If you
8122 *** really care for shared libraries, you may want to modify your PATH
8123 *** so that a non-GNU linker is found, and then restart.
8124
8125 _LT_EOF
8126 fi
8127 ;;
8128
8129 amigaos*)
8130 case $host_cpu in
8131 powerpc)
8132 # see comment about AmigaOS4 .so support
8133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8134 archive_expsym_cmds=''
8135 ;;
8136 m68k)
8137 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)'
8138 hardcode_libdir_flag_spec='-L$libdir'
8139 hardcode_minus_L=yes
8140 ;;
8141 esac
8142 ;;
8143
8144 beos*)
8145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8146 allow_undefined_flag=unsupported
8147 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8148 # support --undefined. This deserves some investigation. FIXME
8149 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8150 else
8151 ld_shlibs=no
8152 fi
8153 ;;
8154
8155 cygwin* | mingw* | pw32* | cegcc*)
8156 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8157 # as there is no search path for DLLs.
8158 hardcode_libdir_flag_spec='-L$libdir'
8159 allow_undefined_flag=unsupported
8160 always_export_symbols=no
8161 enable_shared_with_static_runtimes=yes
8162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8163
8164 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8166 # If the export-symbols file already is a .def file (1st line
8167 # is EXPORTS), use it as is; otherwise, prepend...
8168 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8169 cp $export_symbols $output_objdir/$soname.def;
8170 else
8171 echo EXPORTS > $output_objdir/$soname.def;
8172 cat $export_symbols >> $output_objdir/$soname.def;
8173 fi~
8174 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8175 else
8176 ld_shlibs=no
8177 fi
8178 ;;
8179
8180 interix[3-9]*)
8181 hardcode_direct=no
8182 hardcode_shlibpath_var=no
8183 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8184 export_dynamic_flag_spec='${wl}-E'
8185 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8186 # Instead, shared libraries are loaded at an image base (0x10000000 by
8187 # default) and relocated if they conflict, which is a slow very memory
8188 # consuming and fragmenting process. To avoid this, we pick a random,
8189 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8190 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8192 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'
8193 ;;
8194
8195 gnu* | linux* | tpf* | k*bsd*-gnu)
8196 tmp_diet=no
8197 if test "$host_os" = linux-dietlibc; then
8198 case $cc_basename in
8199 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8200 esac
8201 fi
8202 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8203 && test "$tmp_diet" = no
8204 then
8205 tmp_addflag=
8206 tmp_sharedflag='-shared'
8207 case $cc_basename,$host_cpu in
8208 pgcc*) # Portland Group C compiler
8209 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'
8210 tmp_addflag=' $pic_flag'
8211 ;;
8212 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8213 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'
8214 tmp_addflag=' $pic_flag -Mnomain' ;;
8215 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8216 tmp_addflag=' -i_dynamic' ;;
8217 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8218 tmp_addflag=' -i_dynamic -nofor_main' ;;
8219 ifc* | ifort*) # Intel Fortran compiler
8220 tmp_addflag=' -nofor_main' ;;
8221 lf95*) # Lahey Fortran 8.1
8222 whole_archive_flag_spec=
8223 tmp_sharedflag='--shared' ;;
8224 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8225 tmp_sharedflag='-qmkshrobj'
8226 tmp_addflag= ;;
8227 esac
8228 case `$CC -V 2>&1 | sed 5q` in
8229 *Sun\ C*) # Sun C 5.9
8230 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'
8231 compiler_needs_object=yes
8232 tmp_sharedflag='-G' ;;
8233 *Sun\ F*) # Sun Fortran 8.3
8234 tmp_sharedflag='-G' ;;
8235 esac
8236 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237
8238 if test "x$supports_anon_versioning" = xyes; then
8239 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8241 echo "local: *; };" >> $output_objdir/$libname.ver~
8242 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8243 fi
8244
8245 case $cc_basename in
8246 xlf*)
8247 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8248 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8249 hardcode_libdir_flag_spec=
8250 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8251 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8252 if test "x$supports_anon_versioning" = xyes; then
8253 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8254 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8255 echo "local: *; };" >> $output_objdir/$libname.ver~
8256 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8257 fi
8258 ;;
8259 esac
8260 else
8261 ld_shlibs=no
8262 fi
8263 ;;
8264
8265 netbsd*)
8266 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8267 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8268 wlarc=
8269 else
8270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8272 fi
8273 ;;
8274
8275 solaris*)
8276 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8277 ld_shlibs=no
8278 cat <<_LT_EOF 1>&2
8279
8280 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8281 *** create shared libraries on Solaris systems. Therefore, libtool
8282 *** is disabling shared libraries support. We urge you to upgrade GNU
8283 *** binutils to release 2.9.1 or newer. Another option is to modify
8284 *** your PATH or compiler configuration so that the native linker is
8285 *** used, and then restart.
8286
8287 _LT_EOF
8288 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8291 else
8292 ld_shlibs=no
8293 fi
8294 ;;
8295
8296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8297 case `$LD -v 2>&1` in
8298 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8299 ld_shlibs=no
8300 cat <<_LT_EOF 1>&2
8301
8302 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8303 *** reliably create shared libraries on SCO systems. Therefore, libtool
8304 *** is disabling shared libraries support. We urge you to upgrade GNU
8305 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8306 *** your PATH or compiler configuration so that the native linker is
8307 *** used, and then restart.
8308
8309 _LT_EOF
8310 ;;
8311 *)
8312 # For security reasons, it is highly recommended that you always
8313 # use absolute paths for naming shared libraries, and exclude the
8314 # DT_RUNPATH tag from executables and libraries. But doing so
8315 # requires that you compile everything twice, which is a pain.
8316 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8319 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8320 else
8321 ld_shlibs=no
8322 fi
8323 ;;
8324 esac
8325 ;;
8326
8327 sunos4*)
8328 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8329 wlarc=
8330 hardcode_direct=yes
8331 hardcode_shlibpath_var=no
8332 ;;
8333
8334 *)
8335 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8337 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8338 else
8339 ld_shlibs=no
8340 fi
8341 ;;
8342 esac
8343
8344 if test "$ld_shlibs" = no; then
8345 runpath_var=
8346 hardcode_libdir_flag_spec=
8347 export_dynamic_flag_spec=
8348 whole_archive_flag_spec=
8349 fi
8350 else
8351 # PORTME fill in a description of your system's linker (not GNU ld)
8352 case $host_os in
8353 aix3*)
8354 allow_undefined_flag=unsupported
8355 always_export_symbols=yes
8356 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'
8357 # Note: this linker hardcodes the directories in LIBPATH if there
8358 # are no directories specified by -L.
8359 hardcode_minus_L=yes
8360 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8361 # Neither direct hardcoding nor static linking is supported with a
8362 # broken collect2.
8363 hardcode_direct=unsupported
8364 fi
8365 ;;
8366
8367 aix[4-9]*)
8368 if test "$host_cpu" = ia64; then
8369 # On IA64, the linker does run time linking by default, so we don't
8370 # have to do anything special.
8371 aix_use_runtimelinking=no
8372 exp_sym_flag='-Bexport'
8373 no_entry_flag=""
8374 else
8375 # If we're using GNU nm, then we don't want the "-C" option.
8376 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8377 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8378 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'
8379 else
8380 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'
8381 fi
8382 aix_use_runtimelinking=no
8383
8384 # Test if we are trying to use run time linking or normal
8385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8386 # need to do runtime linking.
8387 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8388 for ld_flag in $LDFLAGS; do
8389 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8390 aix_use_runtimelinking=yes
8391 break
8392 fi
8393 done
8394 ;;
8395 esac
8396
8397 exp_sym_flag='-bexport'
8398 no_entry_flag='-bnoentry'
8399 fi
8400
8401 # When large executables or shared objects are built, AIX ld can
8402 # have problems creating the table of contents. If linking a library
8403 # or program results in "error TOC overflow" add -mminimal-toc to
8404 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8405 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8406
8407 archive_cmds=''
8408 hardcode_direct=yes
8409 hardcode_direct_absolute=yes
8410 hardcode_libdir_separator=':'
8411 link_all_deplibs=yes
8412 file_list_spec='${wl}-f,'
8413
8414 if test "$GCC" = yes; then
8415 case $host_os in aix4.[012]|aix4.[012].*)
8416 # We only want to do this on AIX 4.2 and lower, the check
8417 # below for broken collect2 doesn't work under 4.3+
8418 collect2name=`${CC} -print-prog-name=collect2`
8419 if test -f "$collect2name" &&
8420 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8421 then
8422 # We have reworked collect2
8423 :
8424 else
8425 # We have old collect2
8426 hardcode_direct=unsupported
8427 # It fails to find uninstalled libraries when the uninstalled
8428 # path is not listed in the libpath. Setting hardcode_minus_L
8429 # to unsupported forces relinking
8430 hardcode_minus_L=yes
8431 hardcode_libdir_flag_spec='-L$libdir'
8432 hardcode_libdir_separator=
8433 fi
8434 ;;
8435 esac
8436 shared_flag='-shared'
8437 if test "$aix_use_runtimelinking" = yes; then
8438 shared_flag="$shared_flag "'${wl}-G'
8439 fi
8440 else
8441 # not using gcc
8442 if test "$host_cpu" = ia64; then
8443 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8444 # chokes on -Wl,-G. The following line is correct:
8445 shared_flag='-G'
8446 else
8447 if test "$aix_use_runtimelinking" = yes; then
8448 shared_flag='${wl}-G'
8449 else
8450 shared_flag='${wl}-bM:SRE'
8451 fi
8452 fi
8453 fi
8454
8455 export_dynamic_flag_spec='${wl}-bexpall'
8456 # It seems that -bexpall does not export symbols beginning with
8457 # underscore (_), so it is better to generate a list of symbols to export.
8458 always_export_symbols=yes
8459 if test "$aix_use_runtimelinking" = yes; then
8460 # Warning - without using the other runtime loading flags (-brtl),
8461 # -berok will link without error, but may produce a broken library.
8462 allow_undefined_flag='-berok'
8463 # Determine the default libpath from the value encoded in an
8464 # empty executable.
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h. */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471
8472 int
8473 main ()
8474 {
8475
8476 ;
8477 return 0;
8478 }
8479 _ACEOF
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (ac_try="$ac_link"
8482 case "(($ac_try" in
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8485 esac
8486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8487 $as_echo "$ac_try_echo") >&5
8488 (eval "$ac_link") 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } && {
8495 test -z "$ac_c_werror_flag" ||
8496 test ! -s conftest.err
8497 } && test -s conftest$ac_exeext && {
8498 test "$cross_compiling" = yes ||
8499 $as_test_x conftest$ac_exeext
8500 }; then
8501
8502 lt_aix_libpath_sed='
8503 /Import File Strings/,/^$/ {
8504 /^0/ {
8505 s/^0 *\(.*\)$/\1/
8506 p
8507 }
8508 }'
8509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8510 # Check for a 64-bit object if we didn't find anything.
8511 if test -z "$aix_libpath"; then
8512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8513 fi
8514 else
8515 $as_echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518
8519 fi
8520
8521 rm -rf conftest.dSYM
8522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8523 conftest$ac_exeext conftest.$ac_ext
8524 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8525
8526 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8527 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"
8528 else
8529 if test "$host_cpu" = ia64; then
8530 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8531 allow_undefined_flag="-z nodefs"
8532 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"
8533 else
8534 # Determine the default libpath from the value encoded in an
8535 # empty executable.
8536 cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h. */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542
8543 int
8544 main ()
8545 {
8546
8547 ;
8548 return 0;
8549 }
8550 _ACEOF
8551 rm -f conftest.$ac_objext conftest$ac_exeext
8552 if { (ac_try="$ac_link"
8553 case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8556 esac
8557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8558 $as_echo "$ac_try_echo") >&5
8559 (eval "$ac_link") 2>conftest.er1
8560 ac_status=$?
8561 grep -v '^ *+' conftest.er1 >conftest.err
8562 rm -f conftest.er1
8563 cat conftest.err >&5
8564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } && {
8566 test -z "$ac_c_werror_flag" ||
8567 test ! -s conftest.err
8568 } && test -s conftest$ac_exeext && {
8569 test "$cross_compiling" = yes ||
8570 $as_test_x conftest$ac_exeext
8571 }; then
8572
8573 lt_aix_libpath_sed='
8574 /Import File Strings/,/^$/ {
8575 /^0/ {
8576 s/^0 *\(.*\)$/\1/
8577 p
8578 }
8579 }'
8580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8581 # Check for a 64-bit object if we didn't find anything.
8582 if test -z "$aix_libpath"; then
8583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8584 fi
8585 else
8586 $as_echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8588
8589
8590 fi
8591
8592 rm -rf conftest.dSYM
8593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8594 conftest$ac_exeext conftest.$ac_ext
8595 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8596
8597 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8598 # Warning - without using the other run time loading flags,
8599 # -berok will link without error, but may produce a broken library.
8600 no_undefined_flag=' ${wl}-bernotok'
8601 allow_undefined_flag=' ${wl}-berok'
8602 # Exported symbols can be pulled into shared objects from archives
8603 whole_archive_flag_spec='$convenience'
8604 archive_cmds_need_lc=yes
8605 # This is similar to how AIX traditionally builds its shared libraries.
8606 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'
8607 fi
8608 fi
8609 ;;
8610
8611 amigaos*)
8612 case $host_cpu in
8613 powerpc)
8614 # see comment about AmigaOS4 .so support
8615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616 archive_expsym_cmds=''
8617 ;;
8618 m68k)
8619 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)'
8620 hardcode_libdir_flag_spec='-L$libdir'
8621 hardcode_minus_L=yes
8622 ;;
8623 esac
8624 ;;
8625
8626 bsdi[45]*)
8627 export_dynamic_flag_spec=-rdynamic
8628 ;;
8629
8630 cygwin* | mingw* | pw32* | cegcc*)
8631 # When not using gcc, we currently assume that we are using
8632 # Microsoft Visual C++.
8633 # hardcode_libdir_flag_spec is actually meaningless, as there is
8634 # no search path for DLLs.
8635 hardcode_libdir_flag_spec=' '
8636 allow_undefined_flag=unsupported
8637 # Tell ltmain to make .lib files, not .a files.
8638 libext=lib
8639 # Tell ltmain to make .dll files, not .so files.
8640 shrext_cmds=".dll"
8641 # FIXME: Setting linknames here is a bad hack.
8642 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8643 # The linker will automatically build a .lib file if we build a DLL.
8644 old_archive_from_new_cmds='true'
8645 # FIXME: Should let the user specify the lib program.
8646 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8647 fix_srcfile_path='`cygpath -w "$srcfile"`'
8648 enable_shared_with_static_runtimes=yes
8649 ;;
8650
8651 darwin* | rhapsody*)
8652
8653
8654 archive_cmds_need_lc=no
8655 hardcode_direct=no
8656 hardcode_automatic=yes
8657 hardcode_shlibpath_var=unsupported
8658 whole_archive_flag_spec=''
8659 link_all_deplibs=yes
8660 allow_undefined_flag="$_lt_dar_allow_undefined"
8661 case $cc_basename in
8662 ifort*) _lt_dar_can_shared=yes ;;
8663 *) _lt_dar_can_shared=$GCC ;;
8664 esac
8665 if test "$_lt_dar_can_shared" = "yes"; then
8666 output_verbose_link_cmd=echo
8667 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8668 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8669 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}"
8670 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}"
8671
8672 else
8673 ld_shlibs=no
8674 fi
8675
8676 ;;
8677
8678 dgux*)
8679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8680 hardcode_libdir_flag_spec='-L$libdir'
8681 hardcode_shlibpath_var=no
8682 ;;
8683
8684 freebsd1*)
8685 ld_shlibs=no
8686 ;;
8687
8688 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8689 # support. Future versions do this automatically, but an explicit c++rt0.o
8690 # does not break anything, and helps significantly (at the cost of a little
8691 # extra space).
8692 freebsd2.2*)
8693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8694 hardcode_libdir_flag_spec='-R$libdir'
8695 hardcode_direct=yes
8696 hardcode_shlibpath_var=no
8697 ;;
8698
8699 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8700 freebsd2*)
8701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8702 hardcode_direct=yes
8703 hardcode_minus_L=yes
8704 hardcode_shlibpath_var=no
8705 ;;
8706
8707 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8708 freebsd* | dragonfly*)
8709 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8710 hardcode_libdir_flag_spec='-R$libdir'
8711 hardcode_direct=yes
8712 hardcode_shlibpath_var=no
8713 ;;
8714
8715 hpux9*)
8716 if test "$GCC" = yes; then
8717 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'
8718 else
8719 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'
8720 fi
8721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8722 hardcode_libdir_separator=:
8723 hardcode_direct=yes
8724
8725 # hardcode_minus_L: Not really in the search PATH,
8726 # but as the default location of the library.
8727 hardcode_minus_L=yes
8728 export_dynamic_flag_spec='${wl}-E'
8729 ;;
8730
8731 hpux10*)
8732 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8733 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8734 else
8735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8736 fi
8737 if test "$with_gnu_ld" = no; then
8738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8739 hardcode_libdir_flag_spec_ld='+b $libdir'
8740 hardcode_libdir_separator=:
8741 hardcode_direct=yes
8742 hardcode_direct_absolute=yes
8743 export_dynamic_flag_spec='${wl}-E'
8744 # hardcode_minus_L: Not really in the search PATH,
8745 # but as the default location of the library.
8746 hardcode_minus_L=yes
8747 fi
8748 ;;
8749
8750 hpux11*)
8751 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8752 case $host_cpu in
8753 hppa*64*)
8754 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8755 ;;
8756 ia64*)
8757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8758 ;;
8759 *)
8760 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8761 ;;
8762 esac
8763 else
8764 case $host_cpu in
8765 hppa*64*)
8766 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8767 ;;
8768 ia64*)
8769 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8770 ;;
8771 *)
8772 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8773 ;;
8774 esac
8775 fi
8776 if test "$with_gnu_ld" = no; then
8777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8778 hardcode_libdir_separator=:
8779
8780 case $host_cpu in
8781 hppa*64*|ia64*)
8782 hardcode_direct=no
8783 hardcode_shlibpath_var=no
8784 ;;
8785 *)
8786 hardcode_direct=yes
8787 hardcode_direct_absolute=yes
8788 export_dynamic_flag_spec='${wl}-E'
8789
8790 # hardcode_minus_L: Not really in the search PATH,
8791 # but as the default location of the library.
8792 hardcode_minus_L=yes
8793 ;;
8794 esac
8795 fi
8796 ;;
8797
8798 irix5* | irix6* | nonstopux*)
8799 if test "$GCC" = yes; then
8800 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'
8801 # Try to use the -exported_symbol ld option, if it does not
8802 # work, assume that -exports_file does not work either and
8803 # implicitly export all symbols.
8804 save_LDFLAGS="$LDFLAGS"
8805 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8806 cat >conftest.$ac_ext <<_ACEOF
8807 int foo(void) {}
8808 _ACEOF
8809 rm -f conftest.$ac_objext conftest$ac_exeext
8810 if { (ac_try="$ac_link"
8811 case "(($ac_try" in
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8814 esac
8815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8816 $as_echo "$ac_try_echo") >&5
8817 (eval "$ac_link") 2>conftest.er1
8818 ac_status=$?
8819 grep -v '^ *+' conftest.er1 >conftest.err
8820 rm -f conftest.er1
8821 cat conftest.err >&5
8822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } && {
8824 test -z "$ac_c_werror_flag" ||
8825 test ! -s conftest.err
8826 } && test -s conftest$ac_exeext && {
8827 test "$cross_compiling" = yes ||
8828 $as_test_x conftest$ac_exeext
8829 }; then
8830 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'
8831
8832 else
8833 $as_echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8835
8836
8837 fi
8838
8839 rm -rf conftest.dSYM
8840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8841 conftest$ac_exeext conftest.$ac_ext
8842 LDFLAGS="$save_LDFLAGS"
8843 else
8844 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'
8845 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'
8846 fi
8847 archive_cmds_need_lc='no'
8848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8849 hardcode_libdir_separator=:
8850 inherit_rpath=yes
8851 link_all_deplibs=yes
8852 ;;
8853
8854 netbsd*)
8855 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8856 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8857 else
8858 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8859 fi
8860 hardcode_libdir_flag_spec='-R$libdir'
8861 hardcode_direct=yes
8862 hardcode_shlibpath_var=no
8863 ;;
8864
8865 newsos6)
8866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8867 hardcode_direct=yes
8868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8869 hardcode_libdir_separator=:
8870 hardcode_shlibpath_var=no
8871 ;;
8872
8873 *nto* | *qnx*)
8874 ;;
8875
8876 openbsd*)
8877 if test -f /usr/libexec/ld.so; then
8878 hardcode_direct=yes
8879 hardcode_shlibpath_var=no
8880 hardcode_direct_absolute=yes
8881 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8882 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8883 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8884 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8885 export_dynamic_flag_spec='${wl}-E'
8886 else
8887 case $host_os in
8888 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8889 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8890 hardcode_libdir_flag_spec='-R$libdir'
8891 ;;
8892 *)
8893 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8895 ;;
8896 esac
8897 fi
8898 else
8899 ld_shlibs=no
8900 fi
8901 ;;
8902
8903 os2*)
8904 hardcode_libdir_flag_spec='-L$libdir'
8905 hardcode_minus_L=yes
8906 allow_undefined_flag=unsupported
8907 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'
8908 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8909 ;;
8910
8911 osf3*)
8912 if test "$GCC" = yes; then
8913 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8914 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'
8915 else
8916 allow_undefined_flag=' -expect_unresolved \*'
8917 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'
8918 fi
8919 archive_cmds_need_lc='no'
8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921 hardcode_libdir_separator=:
8922 ;;
8923
8924 osf4* | osf5*) # as osf3* with the addition of -msym flag
8925 if test "$GCC" = yes; then
8926 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8927 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'
8928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8929 else
8930 allow_undefined_flag=' -expect_unresolved \*'
8931 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'
8932 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~
8933 $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'
8934
8935 # Both c and cxx compiler support -rpath directly
8936 hardcode_libdir_flag_spec='-rpath $libdir'
8937 fi
8938 archive_cmds_need_lc='no'
8939 hardcode_libdir_separator=:
8940 ;;
8941
8942 solaris*)
8943 no_undefined_flag=' -z defs'
8944 if test "$GCC" = yes; then
8945 wlarc='${wl}'
8946 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8948 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8949 else
8950 case `$CC -V 2>&1` in
8951 *"Compilers 5.0"*)
8952 wlarc=''
8953 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8954 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8955 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8956 ;;
8957 *)
8958 wlarc='${wl}'
8959 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8960 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8961 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8962 ;;
8963 esac
8964 fi
8965 hardcode_libdir_flag_spec='-R$libdir'
8966 hardcode_shlibpath_var=no
8967 case $host_os in
8968 solaris2.[0-5] | solaris2.[0-5].*) ;;
8969 *)
8970 # The compiler driver will combine and reorder linker options,
8971 # but understands `-z linker_flag'. GCC discards it without `$wl',
8972 # but is careful enough not to reorder.
8973 # Supported since Solaris 2.6 (maybe 2.5.1?)
8974 if test "$GCC" = yes; then
8975 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8976 else
8977 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8978 fi
8979 ;;
8980 esac
8981 link_all_deplibs=yes
8982 ;;
8983
8984 sunos4*)
8985 if test "x$host_vendor" = xsequent; then
8986 # Use $CC to link under sequent, because it throws in some extra .o
8987 # files that make .init and .fini sections work.
8988 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8989 else
8990 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8991 fi
8992 hardcode_libdir_flag_spec='-L$libdir'
8993 hardcode_direct=yes
8994 hardcode_minus_L=yes
8995 hardcode_shlibpath_var=no
8996 ;;
8997
8998 sysv4)
8999 case $host_vendor in
9000 sni)
9001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002 hardcode_direct=yes # is this really true???
9003 ;;
9004 siemens)
9005 ## LD is ld it makes a PLAMLIB
9006 ## CC just makes a GrossModule.
9007 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9008 reload_cmds='$CC -r -o $output$reload_objs'
9009 hardcode_direct=no
9010 ;;
9011 motorola)
9012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9014 ;;
9015 esac
9016 runpath_var='LD_RUN_PATH'
9017 hardcode_shlibpath_var=no
9018 ;;
9019
9020 sysv4.3*)
9021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022 hardcode_shlibpath_var=no
9023 export_dynamic_flag_spec='-Bexport'
9024 ;;
9025
9026 sysv4*MP*)
9027 if test -d /usr/nec; then
9028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9029 hardcode_shlibpath_var=no
9030 runpath_var=LD_RUN_PATH
9031 hardcode_runpath_var=yes
9032 ld_shlibs=yes
9033 fi
9034 ;;
9035
9036 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9037 no_undefined_flag='${wl}-z,text'
9038 archive_cmds_need_lc=no
9039 hardcode_shlibpath_var=no
9040 runpath_var='LD_RUN_PATH'
9041
9042 if test "$GCC" = yes; then
9043 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9044 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9045 else
9046 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9047 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9048 fi
9049 ;;
9050
9051 sysv5* | sco3.2v5* | sco5v6*)
9052 # Note: We can NOT use -z defs as we might desire, because we do not
9053 # link with -lc, and that would cause any symbols used from libc to
9054 # always be unresolved, which means just about no library would
9055 # ever link correctly. If we're not using GNU ld we use -z text
9056 # though, which does catch some bad symbols but isn't as heavy-handed
9057 # as -z defs.
9058 no_undefined_flag='${wl}-z,text'
9059 allow_undefined_flag='${wl}-z,nodefs'
9060 archive_cmds_need_lc=no
9061 hardcode_shlibpath_var=no
9062 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9063 hardcode_libdir_separator=':'
9064 link_all_deplibs=yes
9065 export_dynamic_flag_spec='${wl}-Bexport'
9066 runpath_var='LD_RUN_PATH'
9067
9068 if test "$GCC" = yes; then
9069 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9070 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9071 else
9072 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9073 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9074 fi
9075 ;;
9076
9077 uts4*)
9078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079 hardcode_libdir_flag_spec='-L$libdir'
9080 hardcode_shlibpath_var=no
9081 ;;
9082
9083 *)
9084 ld_shlibs=no
9085 ;;
9086 esac
9087
9088 if test x$host_vendor = xsni; then
9089 case $host in
9090 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9091 export_dynamic_flag_spec='${wl}-Blargedynsym'
9092 ;;
9093 esac
9094 fi
9095 fi
9096
9097 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9098 $as_echo "$ld_shlibs" >&6; }
9099 test "$ld_shlibs" = no && can_build_shared=no
9100
9101 with_gnu_ld=$with_gnu_ld
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117 #
9118 # Do we need to explicitly link libc?
9119 #
9120 case "x$archive_cmds_need_lc" in
9121 x|xyes)
9122 # Assume -lc should be added
9123 archive_cmds_need_lc=yes
9124
9125 if test "$enable_shared" = yes && test "$GCC" = yes; then
9126 case $archive_cmds in
9127 *'~'*)
9128 # FIXME: we may have to deal with multi-command sequences.
9129 ;;
9130 '$CC '*)
9131 # Test whether the compiler implicitly links with -lc since on some
9132 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9133 # to ld, don't add -lc before -lgcc.
9134 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9135 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9136 $RM conftest*
9137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9138
9139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9140 (eval $ac_compile) 2>&5
9141 ac_status=$?
9142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } 2>conftest.err; then
9144 soname=conftest
9145 lib=conftest
9146 libobjs=conftest.$ac_objext
9147 deplibs=
9148 wl=$lt_prog_compiler_wl
9149 pic_flag=$lt_prog_compiler_pic
9150 compiler_flags=-v
9151 linker_flags=-v
9152 verstring=
9153 output_objdir=.
9154 libname=conftest
9155 lt_save_allow_undefined_flag=$allow_undefined_flag
9156 allow_undefined_flag=
9157 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9158 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9159 ac_status=$?
9160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }
9162 then
9163 archive_cmds_need_lc=no
9164 else
9165 archive_cmds_need_lc=yes
9166 fi
9167 allow_undefined_flag=$lt_save_allow_undefined_flag
9168 else
9169 cat conftest.err 1>&5
9170 fi
9171 $RM conftest*
9172 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9173 $as_echo "$archive_cmds_need_lc" >&6; }
9174 ;;
9175 esac
9176 fi
9177 ;;
9178 esac
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
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 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9337 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9338
9339 if test "$GCC" = yes; then
9340 case $host_os in
9341 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9342 *) lt_awk_arg="/^libraries:/" ;;
9343 esac
9344 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9345 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9346 # if the path contains ";" then we assume it to be the separator
9347 # otherwise default to the standard path separator (i.e. ":") - it is
9348 # assumed that no part of a normal pathname contains ";" but that should
9349 # okay in the real world where ";" in dirpaths is itself problematic.
9350 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9351 else
9352 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9353 fi
9354 # Ok, now we have the path, separated by spaces, we can step through it
9355 # and add multilib dir if necessary.
9356 lt_tmp_lt_search_path_spec=
9357 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9358 for lt_sys_path in $lt_search_path_spec; do
9359 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9360 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9361 else
9362 test -d "$lt_sys_path" && \
9363 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9364 fi
9365 done
9366 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9367 BEGIN {RS=" "; FS="/|\n";} {
9368 lt_foo="";
9369 lt_count=0;
9370 for (lt_i = NF; lt_i > 0; lt_i--) {
9371 if ($lt_i != "" && $lt_i != ".") {
9372 if ($lt_i == "..") {
9373 lt_count++;
9374 } else {
9375 if (lt_count == 0) {
9376 lt_foo="/" $lt_i lt_foo;
9377 } else {
9378 lt_count--;
9379 }
9380 }
9381 }
9382 }
9383 if (lt_foo != "") { lt_freq[lt_foo]++; }
9384 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9385 }'`
9386 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9387 else
9388 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9389 fi
9390 library_names_spec=
9391 libname_spec='lib$name'
9392 soname_spec=
9393 shrext_cmds=".so"
9394 postinstall_cmds=
9395 postuninstall_cmds=
9396 finish_cmds=
9397 finish_eval=
9398 shlibpath_var=
9399 shlibpath_overrides_runpath=unknown
9400 version_type=none
9401 dynamic_linker="$host_os ld.so"
9402 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9403 need_lib_prefix=unknown
9404 hardcode_into_libs=no
9405
9406 # when you set need_version to no, make sure it does not cause -set_version
9407 # flags to be left without arguments
9408 need_version=unknown
9409
9410 case $host_os in
9411 aix3*)
9412 version_type=linux
9413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9414 shlibpath_var=LIBPATH
9415
9416 # AIX 3 has no versioning support, so we append a major version to the name.
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 ;;
9419
9420 aix[4-9]*)
9421 version_type=linux
9422 need_lib_prefix=no
9423 need_version=no
9424 hardcode_into_libs=yes
9425 if test "$host_cpu" = ia64; then
9426 # AIX 5 supports IA64
9427 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9428 shlibpath_var=LD_LIBRARY_PATH
9429 else
9430 # With GCC up to 2.95.x, collect2 would create an import file
9431 # for dependence libraries. The import file would start with
9432 # the line `#! .'. This would cause the generated library to
9433 # depend on `.', always an invalid library. This was fixed in
9434 # development snapshots of GCC prior to 3.0.
9435 case $host_os in
9436 aix4 | aix4.[01] | aix4.[01].*)
9437 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9438 echo ' yes '
9439 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9440 :
9441 else
9442 can_build_shared=no
9443 fi
9444 ;;
9445 esac
9446 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9447 # soname into executable. Probably we can add versioning support to
9448 # collect2, so additional links can be useful in future.
9449 if test "$aix_use_runtimelinking" = yes; then
9450 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9451 # instead of lib<name>.a to let people know that these are not
9452 # typical AIX shared libraries.
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 else
9455 # We preserve .a as extension for shared libraries through AIX4.2
9456 # and later when we are not doing run time linking.
9457 library_names_spec='${libname}${release}.a $libname.a'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 fi
9460 shlibpath_var=LIBPATH
9461 fi
9462 ;;
9463
9464 amigaos*)
9465 case $host_cpu in
9466 powerpc)
9467 # Since July 2007 AmigaOS4 officially supports .so libraries.
9468 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470 ;;
9471 m68k)
9472 library_names_spec='$libname.ixlibrary $libname.a'
9473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9474 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'
9475 ;;
9476 esac
9477 ;;
9478
9479 beos*)
9480 library_names_spec='${libname}${shared_ext}'
9481 dynamic_linker="$host_os ld.so"
9482 shlibpath_var=LIBRARY_PATH
9483 ;;
9484
9485 bsdi[45]*)
9486 version_type=linux
9487 need_version=no
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489 soname_spec='${libname}${release}${shared_ext}$major'
9490 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9491 shlibpath_var=LD_LIBRARY_PATH
9492 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9493 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9494 # the default ld.so.conf also contains /usr/contrib/lib and
9495 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9496 # libtool to hard-code these into programs
9497 ;;
9498
9499 cygwin* | mingw* | pw32* | cegcc*)
9500 version_type=windows
9501 shrext_cmds=".dll"
9502 need_version=no
9503 need_lib_prefix=no
9504
9505 case $GCC,$host_os in
9506 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9507 library_names_spec='$libname.dll.a'
9508 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9509 postinstall_cmds='base_file=`basename \${file}`~
9510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9511 dldir=$destdir/`dirname \$dlpath`~
9512 test -d \$dldir || mkdir -p \$dldir~
9513 $install_prog $dir/$dlname \$dldir/$dlname~
9514 chmod a+x \$dldir/$dlname~
9515 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9516 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9517 fi'
9518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9519 dlpath=$dir/\$dldll~
9520 $RM \$dlpath'
9521 shlibpath_overrides_runpath=yes
9522
9523 case $host_os in
9524 cygwin*)
9525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9526 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9527 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9528 ;;
9529 mingw* | cegcc*)
9530 # MinGW DLLs use traditional 'lib' prefix
9531 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9532 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9533 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9534 # It is most probably a Windows format PATH printed by
9535 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9536 # path with ; separators, and with drive letters. We can handle the
9537 # drive letters (cygwin fileutils understands them), so leave them,
9538 # especially as we might pass files found there to a mingw objdump,
9539 # which wouldn't understand a cygwinified path. Ahh.
9540 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9541 else
9542 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9543 fi
9544 ;;
9545 pw32*)
9546 # pw32 DLLs use 'pw' prefix rather than 'lib'
9547 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9548 ;;
9549 esac
9550 ;;
9551
9552 *)
9553 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9554 ;;
9555 esac
9556 dynamic_linker='Win32 ld.exe'
9557 # FIXME: first we should search . and the directory the executable is in
9558 shlibpath_var=PATH
9559 ;;
9560
9561 darwin* | rhapsody*)
9562 dynamic_linker="$host_os dyld"
9563 version_type=darwin
9564 need_lib_prefix=no
9565 need_version=no
9566 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9567 soname_spec='${libname}${release}${major}$shared_ext'
9568 shlibpath_overrides_runpath=yes
9569 shlibpath_var=DYLD_LIBRARY_PATH
9570 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9571
9572 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9573 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9574 ;;
9575
9576 dgux*)
9577 version_type=linux
9578 need_lib_prefix=no
9579 need_version=no
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9582 shlibpath_var=LD_LIBRARY_PATH
9583 ;;
9584
9585 freebsd1*)
9586 dynamic_linker=no
9587 ;;
9588
9589 freebsd* | dragonfly*)
9590 # DragonFly does not have aout. When/if they implement a new
9591 # versioning mechanism, adjust this.
9592 if test -x /usr/bin/objformat; then
9593 objformat=`/usr/bin/objformat`
9594 else
9595 case $host_os in
9596 freebsd[123]*) objformat=aout ;;
9597 *) objformat=elf ;;
9598 esac
9599 fi
9600 version_type=freebsd-$objformat
9601 case $version_type in
9602 freebsd-elf*)
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9604 need_version=no
9605 need_lib_prefix=no
9606 ;;
9607 freebsd-*)
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9609 need_version=yes
9610 ;;
9611 esac
9612 shlibpath_var=LD_LIBRARY_PATH
9613 case $host_os in
9614 freebsd2*)
9615 shlibpath_overrides_runpath=yes
9616 ;;
9617 freebsd3.[01]* | freebsdelf3.[01]*)
9618 shlibpath_overrides_runpath=yes
9619 hardcode_into_libs=yes
9620 ;;
9621 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9622 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9623 shlibpath_overrides_runpath=no
9624 hardcode_into_libs=yes
9625 ;;
9626 *) # from 4.6 on, and DragonFly
9627 shlibpath_overrides_runpath=yes
9628 hardcode_into_libs=yes
9629 ;;
9630 esac
9631 ;;
9632
9633 gnu*)
9634 version_type=linux
9635 need_lib_prefix=no
9636 need_version=no
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 shlibpath_var=LD_LIBRARY_PATH
9640 hardcode_into_libs=yes
9641 ;;
9642
9643 hpux9* | hpux10* | hpux11*)
9644 # Give a soname corresponding to the major version so that dld.sl refuses to
9645 # link against other versions.
9646 version_type=sunos
9647 need_lib_prefix=no
9648 need_version=no
9649 case $host_cpu in
9650 ia64*)
9651 shrext_cmds='.so'
9652 hardcode_into_libs=yes
9653 dynamic_linker="$host_os dld.so"
9654 shlibpath_var=LD_LIBRARY_PATH
9655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 if test "X$HPUX_IA64_MODE" = X32; then
9659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9660 else
9661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9662 fi
9663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9664 ;;
9665 hppa*64*)
9666 shrext_cmds='.sl'
9667 hardcode_into_libs=yes
9668 dynamic_linker="$host_os dld.sl"
9669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9672 soname_spec='${libname}${release}${shared_ext}$major'
9673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9675 ;;
9676 *)
9677 shrext_cmds='.sl'
9678 dynamic_linker="$host_os dld.sl"
9679 shlibpath_var=SHLIB_PATH
9680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682 soname_spec='${libname}${release}${shared_ext}$major'
9683 ;;
9684 esac
9685 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9686 postinstall_cmds='chmod 555 $lib'
9687 ;;
9688
9689 interix[3-9]*)
9690 version_type=linux
9691 need_lib_prefix=no
9692 need_version=no
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9694 soname_spec='${libname}${release}${shared_ext}$major'
9695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9696 shlibpath_var=LD_LIBRARY_PATH
9697 shlibpath_overrides_runpath=no
9698 hardcode_into_libs=yes
9699 ;;
9700
9701 irix5* | irix6* | nonstopux*)
9702 case $host_os in
9703 nonstopux*) version_type=nonstopux ;;
9704 *)
9705 if test "$lt_cv_prog_gnu_ld" = yes; then
9706 version_type=linux
9707 else
9708 version_type=irix
9709 fi ;;
9710 esac
9711 need_lib_prefix=no
9712 need_version=no
9713 soname_spec='${libname}${release}${shared_ext}$major'
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9715 case $host_os in
9716 irix5* | nonstopux*)
9717 libsuff= shlibsuff=
9718 ;;
9719 *)
9720 case $LD in # libtool.m4 will add one of these switches to LD
9721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9722 libsuff= shlibsuff= libmagic=32-bit;;
9723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9724 libsuff=32 shlibsuff=N32 libmagic=N32;;
9725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9727 *) libsuff= shlibsuff= libmagic=never-match;;
9728 esac
9729 ;;
9730 esac
9731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9732 shlibpath_overrides_runpath=no
9733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9735 hardcode_into_libs=yes
9736 ;;
9737
9738 # No shared lib support for Linux oldld, aout, or coff.
9739 linux*oldld* | linux*aout* | linux*coff*)
9740 dynamic_linker=no
9741 ;;
9742
9743 # This must be Linux ELF.
9744 linux* | k*bsd*-gnu)
9745 version_type=linux
9746 need_lib_prefix=no
9747 need_version=no
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9751 shlibpath_var=LD_LIBRARY_PATH
9752 shlibpath_overrides_runpath=no
9753 # Some binutils ld are patched to set DT_RUNPATH
9754 save_LDFLAGS=$LDFLAGS
9755 save_libdir=$libdir
9756 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9757 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9758 cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h. */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764
9765 int
9766 main ()
9767 {
9768
9769 ;
9770 return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9775 case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9778 esac
9779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9780 $as_echo "$ac_try_echo") >&5
9781 (eval "$ac_link") 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && {
9788 test -z "$ac_c_werror_flag" ||
9789 test ! -s conftest.err
9790 } && test -s conftest$ac_exeext && {
9791 test "$cross_compiling" = yes ||
9792 $as_test_x conftest$ac_exeext
9793 }; then
9794 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9795 shlibpath_overrides_runpath=yes
9796 fi
9797
9798 else
9799 $as_echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9801
9802
9803 fi
9804
9805 rm -rf conftest.dSYM
9806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9807 conftest$ac_exeext conftest.$ac_ext
9808 LDFLAGS=$save_LDFLAGS
9809 libdir=$save_libdir
9810
9811 # This implies no fast_install, which is unacceptable.
9812 # Some rework will be needed to allow for fast_install
9813 # before this can be enabled.
9814 hardcode_into_libs=yes
9815
9816 # Add ABI-specific directories to the system library path.
9817 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9818
9819 # Append ld.so.conf contents to the search path
9820 if test -f /etc/ld.so.conf; then
9821 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' ' '`
9822 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9823 fi
9824
9825 # We used to test for /lib/ld.so.1 and disable shared libraries on
9826 # powerpc, because MkLinux only supported shared libraries with the
9827 # GNU dynamic linker. Since this was broken with cross compilers,
9828 # most powerpc-linux boxes support dynamic linking these days and
9829 # people can always --disable-shared, the test was removed, and we
9830 # assume the GNU/Linux dynamic linker is in use.
9831 dynamic_linker='GNU/Linux ld.so'
9832 ;;
9833
9834 netbsd*)
9835 version_type=sunos
9836 need_lib_prefix=no
9837 need_version=no
9838 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9841 dynamic_linker='NetBSD (a.out) ld.so'
9842 else
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 dynamic_linker='NetBSD ld.elf_so'
9846 fi
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=yes
9849 hardcode_into_libs=yes
9850 ;;
9851
9852 newsos6)
9853 version_type=linux
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855 shlibpath_var=LD_LIBRARY_PATH
9856 shlibpath_overrides_runpath=yes
9857 ;;
9858
9859 *nto* | *qnx*)
9860 version_type=qnx
9861 need_lib_prefix=no
9862 need_version=no
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9864 soname_spec='${libname}${release}${shared_ext}$major'
9865 shlibpath_var=LD_LIBRARY_PATH
9866 shlibpath_overrides_runpath=no
9867 hardcode_into_libs=yes
9868 dynamic_linker='ldqnx.so'
9869 ;;
9870
9871 openbsd*)
9872 version_type=sunos
9873 sys_lib_dlsearch_path_spec="/usr/lib"
9874 need_lib_prefix=no
9875 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9876 case $host_os in
9877 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9878 *) need_version=no ;;
9879 esac
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9882 shlibpath_var=LD_LIBRARY_PATH
9883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9884 case $host_os in
9885 openbsd2.[89] | openbsd2.[89].*)
9886 shlibpath_overrides_runpath=no
9887 ;;
9888 *)
9889 shlibpath_overrides_runpath=yes
9890 ;;
9891 esac
9892 else
9893 shlibpath_overrides_runpath=yes
9894 fi
9895 ;;
9896
9897 os2*)
9898 libname_spec='$name'
9899 shrext_cmds=".dll"
9900 need_lib_prefix=no
9901 library_names_spec='$libname${shared_ext} $libname.a'
9902 dynamic_linker='OS/2 ld.exe'
9903 shlibpath_var=LIBPATH
9904 ;;
9905
9906 osf3* | osf4* | osf5*)
9907 version_type=osf
9908 need_lib_prefix=no
9909 need_version=no
9910 soname_spec='${libname}${release}${shared_ext}$major'
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 shlibpath_var=LD_LIBRARY_PATH
9913 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9914 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9915 ;;
9916
9917 rdos*)
9918 dynamic_linker=no
9919 ;;
9920
9921 solaris*)
9922 version_type=linux
9923 need_lib_prefix=no
9924 need_version=no
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 shlibpath_var=LD_LIBRARY_PATH
9928 shlibpath_overrides_runpath=yes
9929 hardcode_into_libs=yes
9930 # ldd complains unless libraries are executable
9931 postinstall_cmds='chmod +x $lib'
9932 ;;
9933
9934 sunos4*)
9935 version_type=sunos
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9937 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=yes
9940 if test "$with_gnu_ld" = yes; then
9941 need_lib_prefix=no
9942 fi
9943 need_version=yes
9944 ;;
9945
9946 sysv4 | sysv4.3*)
9947 version_type=linux
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949 soname_spec='${libname}${release}${shared_ext}$major'
9950 shlibpath_var=LD_LIBRARY_PATH
9951 case $host_vendor in
9952 sni)
9953 shlibpath_overrides_runpath=no
9954 need_lib_prefix=no
9955 runpath_var=LD_RUN_PATH
9956 ;;
9957 siemens)
9958 need_lib_prefix=no
9959 ;;
9960 motorola)
9961 need_lib_prefix=no
9962 need_version=no
9963 shlibpath_overrides_runpath=no
9964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9965 ;;
9966 esac
9967 ;;
9968
9969 sysv4*MP*)
9970 if test -d /usr/nec ;then
9971 version_type=linux
9972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9973 soname_spec='$libname${shared_ext}.$major'
9974 shlibpath_var=LD_LIBRARY_PATH
9975 fi
9976 ;;
9977
9978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9979 version_type=freebsd-elf
9980 need_lib_prefix=no
9981 need_version=no
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 shlibpath_overrides_runpath=yes
9986 hardcode_into_libs=yes
9987 if test "$with_gnu_ld" = yes; then
9988 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9989 else
9990 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9991 case $host_os in
9992 sco3.2v5*)
9993 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9994 ;;
9995 esac
9996 fi
9997 sys_lib_dlsearch_path_spec='/usr/lib'
9998 ;;
9999
10000 tpf*)
10001 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10002 version_type=linux
10003 need_lib_prefix=no
10004 need_version=no
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 shlibpath_overrides_runpath=no
10008 hardcode_into_libs=yes
10009 ;;
10010
10011 uts4*)
10012 version_type=linux
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 shlibpath_var=LD_LIBRARY_PATH
10016 ;;
10017
10018 *)
10019 dynamic_linker=no
10020 ;;
10021 esac
10022 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10023 $as_echo "$dynamic_linker" >&6; }
10024 test "$dynamic_linker" = no && can_build_shared=no
10025
10026 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10027 if test "$GCC" = yes; then
10028 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10029 fi
10030
10031 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10032 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10033 fi
10034 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10035 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10036 fi
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10125 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10126 hardcode_action=
10127 if test -n "$hardcode_libdir_flag_spec" ||
10128 test -n "$runpath_var" ||
10129 test "X$hardcode_automatic" = "Xyes" ; then
10130
10131 # We can hardcode non-existent directories.
10132 if test "$hardcode_direct" != no &&
10133 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10134 # have to relink, otherwise we might link with an installed library
10135 # when we should be linking with a yet-to-be-installed one
10136 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10137 test "$hardcode_minus_L" != no; then
10138 # Linking always hardcodes the temporary library directory.
10139 hardcode_action=relink
10140 else
10141 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10142 hardcode_action=immediate
10143 fi
10144 else
10145 # We cannot hardcode anything, or else we can only hardcode existing
10146 # directories.
10147 hardcode_action=unsupported
10148 fi
10149 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10150 $as_echo "$hardcode_action" >&6; }
10151
10152 if test "$hardcode_action" = relink ||
10153 test "$inherit_rpath" = yes; then
10154 # Fast installation is not supported
10155 enable_fast_install=no
10156 elif test "$shlibpath_overrides_runpath" = yes ||
10157 test "$enable_shared" = no; then
10158 # Fast installation is not necessary
10159 enable_fast_install=needless
10160 fi
10161
10162
10163
10164
10165
10166
10167 if test "x$enable_dlopen" != xyes; then
10168 enable_dlopen=unknown
10169 enable_dlopen_self=unknown
10170 enable_dlopen_self_static=unknown
10171 else
10172 lt_cv_dlopen=no
10173 lt_cv_dlopen_libs=
10174
10175 case $host_os in
10176 beos*)
10177 lt_cv_dlopen="load_add_on"
10178 lt_cv_dlopen_libs=
10179 lt_cv_dlopen_self=yes
10180 ;;
10181
10182 mingw* | pw32* | cegcc*)
10183 lt_cv_dlopen="LoadLibrary"
10184 lt_cv_dlopen_libs=
10185 ;;
10186
10187 cygwin*)
10188 lt_cv_dlopen="dlopen"
10189 lt_cv_dlopen_libs=
10190 ;;
10191
10192 darwin*)
10193 # if libdl is installed we need to link against it
10194 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10195 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10197 $as_echo_n "(cached) " >&6
10198 else
10199 ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-ldl $LIBS"
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h. */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10207
10208 /* Override any GCC internal prototype to avoid an error.
10209 Use char because int might match the return type of a GCC
10210 builtin and then its argument prototype would still apply. */
10211 #ifdef __cplusplus
10212 extern "C"
10213 #endif
10214 char dlopen ();
10215 int
10216 main ()
10217 {
10218 return dlopen ();
10219 ;
10220 return 0;
10221 }
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228 esac
10229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10230 $as_echo "$ac_try_echo") >&5
10231 (eval "$ac_link") 2>conftest.er1
10232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
10236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } && {
10238 test -z "$ac_c_werror_flag" ||
10239 test ! -s conftest.err
10240 } && test -s conftest$ac_exeext && {
10241 test "$cross_compiling" = yes ||
10242 $as_test_x conftest$ac_exeext
10243 }; then
10244 ac_cv_lib_dl_dlopen=yes
10245 else
10246 $as_echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249 ac_cv_lib_dl_dlopen=no
10250 fi
10251
10252 rm -rf conftest.dSYM
10253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10254 conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_check_lib_save_LIBS
10256 fi
10257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10258 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10259 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10261 else
10262
10263 lt_cv_dlopen="dyld"
10264 lt_cv_dlopen_libs=
10265 lt_cv_dlopen_self=yes
10266
10267 fi
10268
10269 ;;
10270
10271 *)
10272 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10273 $as_echo_n "checking for shl_load... " >&6; }
10274 if test "${ac_cv_func_shl_load+set}" = set; then
10275 $as_echo_n "(cached) " >&6
10276 else
10277 cat >conftest.$ac_ext <<_ACEOF
10278 /* confdefs.h. */
10279 _ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10285 #define shl_load innocuous_shl_load
10286
10287 /* System header to define __stub macros and hopefully few prototypes,
10288 which can conflict with char shl_load (); below.
10289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10290 <limits.h> exists even on freestanding compilers. */
10291
10292 #ifdef __STDC__
10293 # include <limits.h>
10294 #else
10295 # include <assert.h>
10296 #endif
10297
10298 #undef shl_load
10299
10300 /* Override any GCC internal prototype to avoid an error.
10301 Use char because int might match the return type of a GCC
10302 builtin and then its argument prototype would still apply. */
10303 #ifdef __cplusplus
10304 extern "C"
10305 #endif
10306 char shl_load ();
10307 /* The GNU C library defines this for functions which it implements
10308 to always fail with ENOSYS. Some functions are actually named
10309 something starting with __ and the normal name is an alias. */
10310 #if defined __stub_shl_load || defined __stub___shl_load
10311 choke me
10312 #endif
10313
10314 int
10315 main ()
10316 {
10317 return shl_load ();
10318 ;
10319 return 0;
10320 }
10321 _ACEOF
10322 rm -f conftest.$ac_objext conftest$ac_exeext
10323 if { (ac_try="$ac_link"
10324 case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10327 esac
10328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10329 $as_echo "$ac_try_echo") >&5
10330 (eval "$ac_link") 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest$ac_exeext && {
10340 test "$cross_compiling" = yes ||
10341 $as_test_x conftest$ac_exeext
10342 }; then
10343 ac_cv_func_shl_load=yes
10344 else
10345 $as_echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10347
10348 ac_cv_func_shl_load=no
10349 fi
10350
10351 rm -rf conftest.dSYM
10352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10353 conftest$ac_exeext conftest.$ac_ext
10354 fi
10355 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10356 $as_echo "$ac_cv_func_shl_load" >&6; }
10357 if test "x$ac_cv_func_shl_load" = x""yes; then
10358 lt_cv_dlopen="shl_load"
10359 else
10360 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10361 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10362 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10363 $as_echo_n "(cached) " >&6
10364 else
10365 ac_check_lib_save_LIBS=$LIBS
10366 LIBS="-ldld $LIBS"
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h. */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373
10374 /* Override any GCC internal prototype to avoid an error.
10375 Use char because int might match the return type of a GCC
10376 builtin and then its argument prototype would still apply. */
10377 #ifdef __cplusplus
10378 extern "C"
10379 #endif
10380 char shl_load ();
10381 int
10382 main ()
10383 {
10384 return shl_load ();
10385 ;
10386 return 0;
10387 }
10388 _ACEOF
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390 if { (ac_try="$ac_link"
10391 case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10394 esac
10395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10396 $as_echo "$ac_try_echo") >&5
10397 (eval "$ac_link") 2>conftest.er1
10398 ac_status=$?
10399 grep -v '^ *+' conftest.er1 >conftest.err
10400 rm -f conftest.er1
10401 cat conftest.err >&5
10402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } && {
10404 test -z "$ac_c_werror_flag" ||
10405 test ! -s conftest.err
10406 } && test -s conftest$ac_exeext && {
10407 test "$cross_compiling" = yes ||
10408 $as_test_x conftest$ac_exeext
10409 }; then
10410 ac_cv_lib_dld_shl_load=yes
10411 else
10412 $as_echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10414
10415 ac_cv_lib_dld_shl_load=no
10416 fi
10417
10418 rm -rf conftest.dSYM
10419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10420 conftest$ac_exeext conftest.$ac_ext
10421 LIBS=$ac_check_lib_save_LIBS
10422 fi
10423 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10424 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10425 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10426 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10427 else
10428 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10429 $as_echo_n "checking for dlopen... " >&6; }
10430 if test "${ac_cv_func_dlopen+set}" = set; then
10431 $as_echo_n "(cached) " >&6
10432 else
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10441 #define dlopen innocuous_dlopen
10442
10443 /* System header to define __stub macros and hopefully few prototypes,
10444 which can conflict with char dlopen (); below.
10445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10446 <limits.h> exists even on freestanding compilers. */
10447
10448 #ifdef __STDC__
10449 # include <limits.h>
10450 #else
10451 # include <assert.h>
10452 #endif
10453
10454 #undef dlopen
10455
10456 /* Override any GCC internal prototype to avoid an error.
10457 Use char because int might match the return type of a GCC
10458 builtin and then its argument prototype would still apply. */
10459 #ifdef __cplusplus
10460 extern "C"
10461 #endif
10462 char dlopen ();
10463 /* The GNU C library defines this for functions which it implements
10464 to always fail with ENOSYS. Some functions are actually named
10465 something starting with __ and the normal name is an alias. */
10466 #if defined __stub_dlopen || defined __stub___dlopen
10467 choke me
10468 #endif
10469
10470 int
10471 main ()
10472 {
10473 return dlopen ();
10474 ;
10475 return 0;
10476 }
10477 _ACEOF
10478 rm -f conftest.$ac_objext conftest$ac_exeext
10479 if { (ac_try="$ac_link"
10480 case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483 esac
10484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10485 $as_echo "$ac_try_echo") >&5
10486 (eval "$ac_link") 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext && {
10496 test "$cross_compiling" = yes ||
10497 $as_test_x conftest$ac_exeext
10498 }; then
10499 ac_cv_func_dlopen=yes
10500 else
10501 $as_echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10503
10504 ac_cv_func_dlopen=no
10505 fi
10506
10507 rm -rf conftest.dSYM
10508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10509 conftest$ac_exeext conftest.$ac_ext
10510 fi
10511 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10512 $as_echo "$ac_cv_func_dlopen" >&6; }
10513 if test "x$ac_cv_func_dlopen" = x""yes; then
10514 lt_cv_dlopen="dlopen"
10515 else
10516 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10517 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10518 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10519 $as_echo_n "(cached) " >&6
10520 else
10521 ac_check_lib_save_LIBS=$LIBS
10522 LIBS="-ldl $LIBS"
10523 cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h. */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10529
10530 /* Override any GCC internal prototype to avoid an error.
10531 Use char because int might match the return type of a GCC
10532 builtin and then its argument prototype would still apply. */
10533 #ifdef __cplusplus
10534 extern "C"
10535 #endif
10536 char dlopen ();
10537 int
10538 main ()
10539 {
10540 return dlopen ();
10541 ;
10542 return 0;
10543 }
10544 _ACEOF
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550 esac
10551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10552 $as_echo "$ac_try_echo") >&5
10553 (eval "$ac_link") 2>conftest.er1
10554 ac_status=$?
10555 grep -v '^ *+' conftest.er1 >conftest.err
10556 rm -f conftest.er1
10557 cat conftest.err >&5
10558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } && {
10560 test -z "$ac_c_werror_flag" ||
10561 test ! -s conftest.err
10562 } && test -s conftest$ac_exeext && {
10563 test "$cross_compiling" = yes ||
10564 $as_test_x conftest$ac_exeext
10565 }; then
10566 ac_cv_lib_dl_dlopen=yes
10567 else
10568 $as_echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 ac_cv_lib_dl_dlopen=no
10572 fi
10573
10574 rm -rf conftest.dSYM
10575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10576 conftest$ac_exeext conftest.$ac_ext
10577 LIBS=$ac_check_lib_save_LIBS
10578 fi
10579 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10580 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10581 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10582 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10583 else
10584 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10585 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10586 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10587 $as_echo_n "(cached) " >&6
10588 else
10589 ac_check_lib_save_LIBS=$LIBS
10590 LIBS="-lsvld $LIBS"
10591 cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h. */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597
10598 /* Override any GCC internal prototype to avoid an error.
10599 Use char because int might match the return type of a GCC
10600 builtin and then its argument prototype would still apply. */
10601 #ifdef __cplusplus
10602 extern "C"
10603 #endif
10604 char dlopen ();
10605 int
10606 main ()
10607 {
10608 return dlopen ();
10609 ;
10610 return 0;
10611 }
10612 _ACEOF
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (ac_try="$ac_link"
10615 case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10618 esac
10619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10620 $as_echo "$ac_try_echo") >&5
10621 (eval "$ac_link") 2>conftest.er1
10622 ac_status=$?
10623 grep -v '^ *+' conftest.er1 >conftest.err
10624 rm -f conftest.er1
10625 cat conftest.err >&5
10626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } && {
10628 test -z "$ac_c_werror_flag" ||
10629 test ! -s conftest.err
10630 } && test -s conftest$ac_exeext && {
10631 test "$cross_compiling" = yes ||
10632 $as_test_x conftest$ac_exeext
10633 }; then
10634 ac_cv_lib_svld_dlopen=yes
10635 else
10636 $as_echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10638
10639 ac_cv_lib_svld_dlopen=no
10640 fi
10641
10642 rm -rf conftest.dSYM
10643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10644 conftest$ac_exeext conftest.$ac_ext
10645 LIBS=$ac_check_lib_save_LIBS
10646 fi
10647 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10648 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10649 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10651 else
10652 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10653 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10654 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10655 $as_echo_n "(cached) " >&6
10656 else
10657 ac_check_lib_save_LIBS=$LIBS
10658 LIBS="-ldld $LIBS"
10659 cat >conftest.$ac_ext <<_ACEOF
10660 /* confdefs.h. */
10661 _ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h. */
10665
10666 /* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10669 #ifdef __cplusplus
10670 extern "C"
10671 #endif
10672 char dld_link ();
10673 int
10674 main ()
10675 {
10676 return dld_link ();
10677 ;
10678 return 0;
10679 }
10680 _ACEOF
10681 rm -f conftest.$ac_objext conftest$ac_exeext
10682 if { (ac_try="$ac_link"
10683 case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686 esac
10687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10688 $as_echo "$ac_try_echo") >&5
10689 (eval "$ac_link") 2>conftest.er1
10690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } && {
10696 test -z "$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10698 } && test -s conftest$ac_exeext && {
10699 test "$cross_compiling" = yes ||
10700 $as_test_x conftest$ac_exeext
10701 }; then
10702 ac_cv_lib_dld_dld_link=yes
10703 else
10704 $as_echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10706
10707 ac_cv_lib_dld_dld_link=no
10708 fi
10709
10710 rm -rf conftest.dSYM
10711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10712 conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10714 fi
10715 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10716 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10717 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10718 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10719 fi
10720
10721
10722 fi
10723
10724
10725 fi
10726
10727
10728 fi
10729
10730
10731 fi
10732
10733
10734 fi
10735
10736 ;;
10737 esac
10738
10739 if test "x$lt_cv_dlopen" != xno; then
10740 enable_dlopen=yes
10741 else
10742 enable_dlopen=no
10743 fi
10744
10745 case $lt_cv_dlopen in
10746 dlopen)
10747 save_CPPFLAGS="$CPPFLAGS"
10748 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10749
10750 save_LDFLAGS="$LDFLAGS"
10751 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10752
10753 save_LIBS="$LIBS"
10754 LIBS="$lt_cv_dlopen_libs $LIBS"
10755
10756 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10757 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10758 if test "${lt_cv_dlopen_self+set}" = set; then
10759 $as_echo_n "(cached) " >&6
10760 else
10761 if test "$cross_compiling" = yes; then :
10762 lt_cv_dlopen_self=cross
10763 else
10764 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10765 lt_status=$lt_dlunknown
10766 cat > conftest.$ac_ext <<_LT_EOF
10767 #line 10767 "configure"
10768 #include "confdefs.h"
10769
10770 #if HAVE_DLFCN_H
10771 #include <dlfcn.h>
10772 #endif
10773
10774 #include <stdio.h>
10775
10776 #ifdef RTLD_GLOBAL
10777 # define LT_DLGLOBAL RTLD_GLOBAL
10778 #else
10779 # ifdef DL_GLOBAL
10780 # define LT_DLGLOBAL DL_GLOBAL
10781 # else
10782 # define LT_DLGLOBAL 0
10783 # endif
10784 #endif
10785
10786 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10787 find out it does not work in some platform. */
10788 #ifndef LT_DLLAZY_OR_NOW
10789 # ifdef RTLD_LAZY
10790 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10791 # else
10792 # ifdef DL_LAZY
10793 # define LT_DLLAZY_OR_NOW DL_LAZY
10794 # else
10795 # ifdef RTLD_NOW
10796 # define LT_DLLAZY_OR_NOW RTLD_NOW
10797 # else
10798 # ifdef DL_NOW
10799 # define LT_DLLAZY_OR_NOW DL_NOW
10800 # else
10801 # define LT_DLLAZY_OR_NOW 0
10802 # endif
10803 # endif
10804 # endif
10805 # endif
10806 #endif
10807
10808 void fnord() { int i=42;}
10809 int main ()
10810 {
10811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10812 int status = $lt_dlunknown;
10813
10814 if (self)
10815 {
10816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10817 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10818 /* dlclose (self); */
10819 }
10820 else
10821 puts (dlerror ());
10822
10823 return status;
10824 }
10825 _LT_EOF
10826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10827 (eval $ac_link) 2>&5
10828 ac_status=$?
10829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10831 (./conftest; exit; ) >&5 2>/dev/null
10832 lt_status=$?
10833 case x$lt_status in
10834 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10835 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10836 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10837 esac
10838 else :
10839 # compilation failed
10840 lt_cv_dlopen_self=no
10841 fi
10842 fi
10843 rm -fr conftest*
10844
10845
10846 fi
10847 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10848 $as_echo "$lt_cv_dlopen_self" >&6; }
10849
10850 if test "x$lt_cv_dlopen_self" = xyes; then
10851 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10852 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10853 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10854 if test "${lt_cv_dlopen_self_static+set}" = set; then
10855 $as_echo_n "(cached) " >&6
10856 else
10857 if test "$cross_compiling" = yes; then :
10858 lt_cv_dlopen_self_static=cross
10859 else
10860 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10861 lt_status=$lt_dlunknown
10862 cat > conftest.$ac_ext <<_LT_EOF
10863 #line 10863 "configure"
10864 #include "confdefs.h"
10865
10866 #if HAVE_DLFCN_H
10867 #include <dlfcn.h>
10868 #endif
10869
10870 #include <stdio.h>
10871
10872 #ifdef RTLD_GLOBAL
10873 # define LT_DLGLOBAL RTLD_GLOBAL
10874 #else
10875 # ifdef DL_GLOBAL
10876 # define LT_DLGLOBAL DL_GLOBAL
10877 # else
10878 # define LT_DLGLOBAL 0
10879 # endif
10880 #endif
10881
10882 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10883 find out it does not work in some platform. */
10884 #ifndef LT_DLLAZY_OR_NOW
10885 # ifdef RTLD_LAZY
10886 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10887 # else
10888 # ifdef DL_LAZY
10889 # define LT_DLLAZY_OR_NOW DL_LAZY
10890 # else
10891 # ifdef RTLD_NOW
10892 # define LT_DLLAZY_OR_NOW RTLD_NOW
10893 # else
10894 # ifdef DL_NOW
10895 # define LT_DLLAZY_OR_NOW DL_NOW
10896 # else
10897 # define LT_DLLAZY_OR_NOW 0
10898 # endif
10899 # endif
10900 # endif
10901 # endif
10902 #endif
10903
10904 void fnord() { int i=42;}
10905 int main ()
10906 {
10907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10908 int status = $lt_dlunknown;
10909
10910 if (self)
10911 {
10912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10913 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10914 /* dlclose (self); */
10915 }
10916 else
10917 puts (dlerror ());
10918
10919 return status;
10920 }
10921 _LT_EOF
10922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10923 (eval $ac_link) 2>&5
10924 ac_status=$?
10925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10927 (./conftest; exit; ) >&5 2>/dev/null
10928 lt_status=$?
10929 case x$lt_status in
10930 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10931 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10932 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10933 esac
10934 else :
10935 # compilation failed
10936 lt_cv_dlopen_self_static=no
10937 fi
10938 fi
10939 rm -fr conftest*
10940
10941
10942 fi
10943 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10944 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10945 fi
10946
10947 CPPFLAGS="$save_CPPFLAGS"
10948 LDFLAGS="$save_LDFLAGS"
10949 LIBS="$save_LIBS"
10950 ;;
10951 esac
10952
10953 case $lt_cv_dlopen_self in
10954 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10955 *) enable_dlopen_self=unknown ;;
10956 esac
10957
10958 case $lt_cv_dlopen_self_static in
10959 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10960 *) enable_dlopen_self_static=unknown ;;
10961 esac
10962 fi
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980 striplib=
10981 old_striplib=
10982 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10983 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10984 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10985 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10986 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10987 { $as_echo "$as_me:$LINENO: result: yes" >&5
10988 $as_echo "yes" >&6; }
10989 else
10990 # FIXME - insert some real tests, host_os isn't really good enough
10991 case $host_os in
10992 darwin*)
10993 if test -n "$STRIP" ; then
10994 striplib="$STRIP -x"
10995 old_striplib="$STRIP -S"
10996 { $as_echo "$as_me:$LINENO: result: yes" >&5
10997 $as_echo "yes" >&6; }
10998 else
10999 { $as_echo "$as_me:$LINENO: result: no" >&5
11000 $as_echo "no" >&6; }
11001 fi
11002 ;;
11003 *)
11004 { $as_echo "$as_me:$LINENO: result: no" >&5
11005 $as_echo "no" >&6; }
11006 ;;
11007 esac
11008 fi
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021 # Report which library types will actually be built
11022 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11023 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11024 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11025 $as_echo "$can_build_shared" >&6; }
11026
11027 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11028 $as_echo_n "checking whether to build shared libraries... " >&6; }
11029 test "$can_build_shared" = "no" && enable_shared=no
11030
11031 # On AIX, shared libraries and static libraries use the same namespace, and
11032 # are all built from PIC.
11033 case $host_os in
11034 aix3*)
11035 test "$enable_shared" = yes && enable_static=no
11036 if test -n "$RANLIB"; then
11037 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11038 postinstall_cmds='$RANLIB $lib'
11039 fi
11040 ;;
11041
11042 aix[4-9]*)
11043 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11044 test "$enable_shared" = yes && enable_static=no
11045 fi
11046 ;;
11047 esac
11048 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11049 $as_echo "$enable_shared" >&6; }
11050
11051 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11052 $as_echo_n "checking whether to build static libraries... " >&6; }
11053 # Make sure either enable_shared or enable_static is yes.
11054 test "$enable_shared" = yes || enable_static=yes
11055 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11056 $as_echo "$enable_static" >&6; }
11057
11058
11059
11060
11061 fi
11062 ac_ext=c
11063 ac_cpp='$CPP $CPPFLAGS'
11064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11067
11068 CC="$lt_save_CC"
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082 ac_config_commands="$ac_config_commands libtool"
11083
11084
11085
11086
11087 # Only expand once:
11088
11089
11090 ac_ext=c
11091 ac_cpp='$CPP $CPPFLAGS'
11092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11095 if test -n "$ac_tool_prefix"; then
11096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11099 $as_echo_n "checking for $ac_word... " >&6; }
11100 if test "${ac_cv_prog_CC+set}" = set; then
11101 $as_echo_n "(cached) " >&6
11102 else
11103 if test -n "$CC"; then
11104 ac_cv_prog_CC="$CC" # Let the user override the test.
11105 else
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11108 do
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11115 break 2
11116 fi
11117 done
11118 done
11119 IFS=$as_save_IFS
11120
11121 fi
11122 fi
11123 CC=$ac_cv_prog_CC
11124 if test -n "$CC"; then
11125 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11126 $as_echo "$CC" >&6; }
11127 else
11128 { $as_echo "$as_me:$LINENO: result: no" >&5
11129 $as_echo "no" >&6; }
11130 fi
11131
11132
11133 fi
11134 if test -z "$ac_cv_prog_CC"; then
11135 ac_ct_CC=$CC
11136 # Extract the first word of "gcc", so it can be a program name with args.
11137 set dummy gcc; ac_word=$2
11138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11139 $as_echo_n "checking for $ac_word... " >&6; }
11140 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11141 $as_echo_n "(cached) " >&6
11142 else
11143 if test -n "$ac_ct_CC"; then
11144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11145 else
11146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147 for as_dir in $PATH
11148 do
11149 IFS=$as_save_IFS
11150 test -z "$as_dir" && as_dir=.
11151 for ac_exec_ext in '' $ac_executable_extensions; do
11152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11153 ac_cv_prog_ac_ct_CC="gcc"
11154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11155 break 2
11156 fi
11157 done
11158 done
11159 IFS=$as_save_IFS
11160
11161 fi
11162 fi
11163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11164 if test -n "$ac_ct_CC"; then
11165 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11166 $as_echo "$ac_ct_CC" >&6; }
11167 else
11168 { $as_echo "$as_me:$LINENO: result: no" >&5
11169 $as_echo "no" >&6; }
11170 fi
11171
11172 if test "x$ac_ct_CC" = x; then
11173 CC=""
11174 else
11175 case $cross_compiling:$ac_tool_warned in
11176 yes:)
11177 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11179 ac_tool_warned=yes ;;
11180 esac
11181 CC=$ac_ct_CC
11182 fi
11183 else
11184 CC="$ac_cv_prog_CC"
11185 fi
11186
11187 if test -z "$CC"; then
11188 if test -n "$ac_tool_prefix"; then
11189 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11190 set dummy ${ac_tool_prefix}cc; ac_word=$2
11191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11192 $as_echo_n "checking for $ac_word... " >&6; }
11193 if test "${ac_cv_prog_CC+set}" = set; then
11194 $as_echo_n "(cached) " >&6
11195 else
11196 if test -n "$CC"; then
11197 ac_cv_prog_CC="$CC" # Let the user override the test.
11198 else
11199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200 for as_dir in $PATH
11201 do
11202 IFS=$as_save_IFS
11203 test -z "$as_dir" && as_dir=.
11204 for ac_exec_ext in '' $ac_executable_extensions; do
11205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11206 ac_cv_prog_CC="${ac_tool_prefix}cc"
11207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11208 break 2
11209 fi
11210 done
11211 done
11212 IFS=$as_save_IFS
11213
11214 fi
11215 fi
11216 CC=$ac_cv_prog_CC
11217 if test -n "$CC"; then
11218 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11219 $as_echo "$CC" >&6; }
11220 else
11221 { $as_echo "$as_me:$LINENO: result: no" >&5
11222 $as_echo "no" >&6; }
11223 fi
11224
11225
11226 fi
11227 fi
11228 if test -z "$CC"; then
11229 # Extract the first word of "cc", so it can be a program name with args.
11230 set dummy cc; ac_word=$2
11231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11232 $as_echo_n "checking for $ac_word... " >&6; }
11233 if test "${ac_cv_prog_CC+set}" = set; then
11234 $as_echo_n "(cached) " >&6
11235 else
11236 if test -n "$CC"; then
11237 ac_cv_prog_CC="$CC" # Let the user override the test.
11238 else
11239 ac_prog_rejected=no
11240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241 for as_dir in $PATH
11242 do
11243 IFS=$as_save_IFS
11244 test -z "$as_dir" && as_dir=.
11245 for ac_exec_ext in '' $ac_executable_extensions; do
11246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11247 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11248 ac_prog_rejected=yes
11249 continue
11250 fi
11251 ac_cv_prog_CC="cc"
11252 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11253 break 2
11254 fi
11255 done
11256 done
11257 IFS=$as_save_IFS
11258
11259 if test $ac_prog_rejected = yes; then
11260 # We found a bogon in the path, so make sure we never use it.
11261 set dummy $ac_cv_prog_CC
11262 shift
11263 if test $# != 0; then
11264 # We chose a different compiler from the bogus one.
11265 # However, it has the same basename, so the bogon will be chosen
11266 # first if we set CC to just the basename; use the full file name.
11267 shift
11268 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11269 fi
11270 fi
11271 fi
11272 fi
11273 CC=$ac_cv_prog_CC
11274 if test -n "$CC"; then
11275 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11276 $as_echo "$CC" >&6; }
11277 else
11278 { $as_echo "$as_me:$LINENO: result: no" >&5
11279 $as_echo "no" >&6; }
11280 fi
11281
11282
11283 fi
11284 if test -z "$CC"; then
11285 if test -n "$ac_tool_prefix"; then
11286 for ac_prog in cl.exe
11287 do
11288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11291 $as_echo_n "checking for $ac_word... " >&6; }
11292 if test "${ac_cv_prog_CC+set}" = set; then
11293 $as_echo_n "(cached) " >&6
11294 else
11295 if test -n "$CC"; then
11296 ac_cv_prog_CC="$CC" # Let the user override the test.
11297 else
11298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299 for as_dir in $PATH
11300 do
11301 IFS=$as_save_IFS
11302 test -z "$as_dir" && as_dir=.
11303 for ac_exec_ext in '' $ac_executable_extensions; do
11304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11305 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11307 break 2
11308 fi
11309 done
11310 done
11311 IFS=$as_save_IFS
11312
11313 fi
11314 fi
11315 CC=$ac_cv_prog_CC
11316 if test -n "$CC"; then
11317 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11318 $as_echo "$CC" >&6; }
11319 else
11320 { $as_echo "$as_me:$LINENO: result: no" >&5
11321 $as_echo "no" >&6; }
11322 fi
11323
11324
11325 test -n "$CC" && break
11326 done
11327 fi
11328 if test -z "$CC"; then
11329 ac_ct_CC=$CC
11330 for ac_prog in cl.exe
11331 do
11332 # Extract the first word of "$ac_prog", so it can be a program name with args.
11333 set dummy $ac_prog; ac_word=$2
11334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11335 $as_echo_n "checking for $ac_word... " >&6; }
11336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11337 $as_echo_n "(cached) " >&6
11338 else
11339 if test -n "$ac_ct_CC"; then
11340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11341 else
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11344 do
11345 IFS=$as_save_IFS
11346 test -z "$as_dir" && as_dir=.
11347 for ac_exec_ext in '' $ac_executable_extensions; do
11348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11349 ac_cv_prog_ac_ct_CC="$ac_prog"
11350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11351 break 2
11352 fi
11353 done
11354 done
11355 IFS=$as_save_IFS
11356
11357 fi
11358 fi
11359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11360 if test -n "$ac_ct_CC"; then
11361 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11362 $as_echo "$ac_ct_CC" >&6; }
11363 else
11364 { $as_echo "$as_me:$LINENO: result: no" >&5
11365 $as_echo "no" >&6; }
11366 fi
11367
11368
11369 test -n "$ac_ct_CC" && break
11370 done
11371
11372 if test "x$ac_ct_CC" = x; then
11373 CC=""
11374 else
11375 case $cross_compiling:$ac_tool_warned in
11376 yes:)
11377 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11379 ac_tool_warned=yes ;;
11380 esac
11381 CC=$ac_ct_CC
11382 fi
11383 fi
11384
11385 fi
11386
11387
11388 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11390 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11391 See \`config.log' for more details." >&5
11392 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11393 See \`config.log' for more details." >&2;}
11394 { (exit 1); exit 1; }; }; }
11395
11396 # Provide some information about the compiler.
11397 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11398 set X $ac_compile
11399 ac_compiler=$2
11400 { (ac_try="$ac_compiler --version >&5"
11401 case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11404 esac
11405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11406 $as_echo "$ac_try_echo") >&5
11407 (eval "$ac_compiler --version >&5") 2>&5
11408 ac_status=$?
11409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }
11411 { (ac_try="$ac_compiler -v >&5"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11415 esac
11416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11417 $as_echo "$ac_try_echo") >&5
11418 (eval "$ac_compiler -v >&5") 2>&5
11419 ac_status=$?
11420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }
11422 { (ac_try="$ac_compiler -V >&5"
11423 case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426 esac
11427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11428 $as_echo "$ac_try_echo") >&5
11429 (eval "$ac_compiler -V >&5") 2>&5
11430 ac_status=$?
11431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }
11433
11434 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11435 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11436 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11437 $as_echo_n "(cached) " >&6
11438 else
11439 cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h. */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11445
11446 int
11447 main ()
11448 {
11449 #ifndef __GNUC__
11450 choke me
11451 #endif
11452
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 rm -f conftest.$ac_objext
11458 if { (ac_try="$ac_compile"
11459 case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11462 esac
11463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11464 $as_echo "$ac_try_echo") >&5
11465 (eval "$ac_compile") 2>conftest.er1
11466 ac_status=$?
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
11470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } && {
11472 test -z "$ac_c_werror_flag" ||
11473 test ! -s conftest.err
11474 } && test -s conftest.$ac_objext; then
11475 ac_compiler_gnu=yes
11476 else
11477 $as_echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11479
11480 ac_compiler_gnu=no
11481 fi
11482
11483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11484 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11485
11486 fi
11487 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11488 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11489 if test $ac_compiler_gnu = yes; then
11490 GCC=yes
11491 else
11492 GCC=
11493 fi
11494 ac_test_CFLAGS=${CFLAGS+set}
11495 ac_save_CFLAGS=$CFLAGS
11496 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11497 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11498 if test "${ac_cv_prog_cc_g+set}" = set; then
11499 $as_echo_n "(cached) " >&6
11500 else
11501 ac_save_c_werror_flag=$ac_c_werror_flag
11502 ac_c_werror_flag=yes
11503 ac_cv_prog_cc_g=no
11504 CFLAGS="-g"
11505 cat >conftest.$ac_ext <<_ACEOF
11506 /* confdefs.h. */
11507 _ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h. */
11511
11512 int
11513 main ()
11514 {
11515
11516 ;
11517 return 0;
11518 }
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11525 esac
11526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11527 $as_echo "$ac_try_echo") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11529 ac_status=$?
11530 grep -v '^ *+' conftest.er1 >conftest.err
11531 rm -f conftest.er1
11532 cat conftest.err >&5
11533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } && {
11535 test -z "$ac_c_werror_flag" ||
11536 test ! -s conftest.err
11537 } && test -s conftest.$ac_objext; then
11538 ac_cv_prog_cc_g=yes
11539 else
11540 $as_echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11542
11543 CFLAGS=""
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h. */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550
11551 int
11552 main ()
11553 {
11554
11555 ;
11556 return 0;
11557 }
11558 _ACEOF
11559 rm -f conftest.$ac_objext
11560 if { (ac_try="$ac_compile"
11561 case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11564 esac
11565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11566 $as_echo "$ac_try_echo") >&5
11567 (eval "$ac_compile") 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } && {
11574 test -z "$ac_c_werror_flag" ||
11575 test ! -s conftest.err
11576 } && test -s conftest.$ac_objext; then
11577 :
11578 else
11579 $as_echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11581
11582 ac_c_werror_flag=$ac_save_c_werror_flag
11583 CFLAGS="-g"
11584 cat >conftest.$ac_ext <<_ACEOF
11585 /* confdefs.h. */
11586 _ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h. */
11590
11591 int
11592 main ()
11593 {
11594
11595 ;
11596 return 0;
11597 }
11598 _ACEOF
11599 rm -f conftest.$ac_objext
11600 if { (ac_try="$ac_compile"
11601 case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11604 esac
11605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11606 $as_echo "$ac_try_echo") >&5
11607 (eval "$ac_compile") 2>conftest.er1
11608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } && {
11614 test -z "$ac_c_werror_flag" ||
11615 test ! -s conftest.err
11616 } && test -s conftest.$ac_objext; then
11617 ac_cv_prog_cc_g=yes
11618 else
11619 $as_echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622
11623 fi
11624
11625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11626 fi
11627
11628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629 fi
11630
11631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632 ac_c_werror_flag=$ac_save_c_werror_flag
11633 fi
11634 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11635 $as_echo "$ac_cv_prog_cc_g" >&6; }
11636 if test "$ac_test_CFLAGS" = set; then
11637 CFLAGS=$ac_save_CFLAGS
11638 elif test $ac_cv_prog_cc_g = yes; then
11639 if test "$GCC" = yes; then
11640 CFLAGS="-g -O2"
11641 else
11642 CFLAGS="-g"
11643 fi
11644 else
11645 if test "$GCC" = yes; then
11646 CFLAGS="-O2"
11647 else
11648 CFLAGS=
11649 fi
11650 fi
11651 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11652 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11653 if test "${ac_cv_prog_cc_c89+set}" = set; then
11654 $as_echo_n "(cached) " >&6
11655 else
11656 ac_cv_prog_cc_c89=no
11657 ac_save_CC=$CC
11658 cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h. */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 #include <stdarg.h>
11665 #include <stdio.h>
11666 #include <sys/types.h>
11667 #include <sys/stat.h>
11668 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11669 struct buf { int x; };
11670 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11671 static char *e (p, i)
11672 char **p;
11673 int i;
11674 {
11675 return p[i];
11676 }
11677 static char *f (char * (*g) (char **, int), char **p, ...)
11678 {
11679 char *s;
11680 va_list v;
11681 va_start (v,p);
11682 s = g (p, va_arg (v,int));
11683 va_end (v);
11684 return s;
11685 }
11686
11687 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11688 function prototypes and stuff, but not '\xHH' hex character constants.
11689 These don't provoke an error unfortunately, instead are silently treated
11690 as 'x'. The following induces an error, until -std is added to get
11691 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11692 array size at least. It's necessary to write '\x00'==0 to get something
11693 that's true only with -std. */
11694 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11695
11696 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11697 inside strings and character constants. */
11698 #define FOO(x) 'x'
11699 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11700
11701 int test (int i, double x);
11702 struct s1 {int (*f) (int a);};
11703 struct s2 {int (*f) (double a);};
11704 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11705 int argc;
11706 char **argv;
11707 int
11708 main ()
11709 {
11710 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11711 ;
11712 return 0;
11713 }
11714 _ACEOF
11715 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11716 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11717 do
11718 CC="$ac_save_CC $ac_arg"
11719 rm -f conftest.$ac_objext
11720 if { (ac_try="$ac_compile"
11721 case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11724 esac
11725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11726 $as_echo "$ac_try_echo") >&5
11727 (eval "$ac_compile") 2>conftest.er1
11728 ac_status=$?
11729 grep -v '^ *+' conftest.er1 >conftest.err
11730 rm -f conftest.er1
11731 cat conftest.err >&5
11732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } && {
11734 test -z "$ac_c_werror_flag" ||
11735 test ! -s conftest.err
11736 } && test -s conftest.$ac_objext; then
11737 ac_cv_prog_cc_c89=$ac_arg
11738 else
11739 $as_echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742
11743 fi
11744
11745 rm -f core conftest.err conftest.$ac_objext
11746 test "x$ac_cv_prog_cc_c89" != "xno" && break
11747 done
11748 rm -f conftest.$ac_ext
11749 CC=$ac_save_CC
11750
11751 fi
11752 # AC_CACHE_VAL
11753 case "x$ac_cv_prog_cc_c89" in
11754 x)
11755 { $as_echo "$as_me:$LINENO: result: none needed" >&5
11756 $as_echo "none needed" >&6; } ;;
11757 xno)
11758 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11759 $as_echo "unsupported" >&6; } ;;
11760 *)
11761 CC="$CC $ac_cv_prog_cc_c89"
11762 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11763 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11764 esac
11765
11766
11767 ac_ext=c
11768 ac_cpp='$CPP $CPPFLAGS'
11769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11772
11773 depcc="$CC" am_compiler_list=
11774
11775 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11776 $as_echo_n "checking dependency style of $depcc... " >&6; }
11777 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11778 $as_echo_n "(cached) " >&6
11779 else
11780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11781 # We make a subdir and do the tests there. Otherwise we can end up
11782 # making bogus files that we don't know about and never remove. For
11783 # instance it was reported that on HP-UX the gcc test will end up
11784 # making a dummy file named `D' -- because `-MD' means `put the output
11785 # in D'.
11786 mkdir conftest.dir
11787 # Copy depcomp to subdir because otherwise we won't find it if we're
11788 # using a relative directory.
11789 cp "$am_depcomp" conftest.dir
11790 cd conftest.dir
11791 # We will build objects and dependencies in a subdirectory because
11792 # it helps to detect inapplicable dependency modes. For instance
11793 # both Tru64's cc and ICC support -MD to output dependencies as a
11794 # side effect of compilation, but ICC will put the dependencies in
11795 # the current directory while Tru64 will put them in the object
11796 # directory.
11797 mkdir sub
11798
11799 am_cv_CC_dependencies_compiler_type=none
11800 if test "$am_compiler_list" = ""; then
11801 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11802 fi
11803 for depmode in $am_compiler_list; do
11804 # Setup a source with many dependencies, because some compilers
11805 # like to wrap large dependency lists on column 80 (with \), and
11806 # we should not choose a depcomp mode which is confused by this.
11807 #
11808 # We need to recreate these files for each test, as the compiler may
11809 # overwrite some of them when testing with obscure command lines.
11810 # This happens at least with the AIX C compiler.
11811 : > sub/conftest.c
11812 for i in 1 2 3 4 5 6; do
11813 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11814 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11815 # Solaris 8's {/usr,}/bin/sh.
11816 touch sub/conftst$i.h
11817 done
11818 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11819
11820 case $depmode in
11821 nosideeffect)
11822 # after this tag, mechanisms are not by side-effect, so they'll
11823 # only be used when explicitly requested
11824 if test "x$enable_dependency_tracking" = xyes; then
11825 continue
11826 else
11827 break
11828 fi
11829 ;;
11830 none) break ;;
11831 esac
11832 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11833 # mode. It turns out that the SunPro C++ compiler does not properly
11834 # handle `-M -o', and we need to detect this.
11835 if depmode=$depmode \
11836 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11837 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11838 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11839 >/dev/null 2>conftest.err &&
11840 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11841 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11842 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11843 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11844 # icc doesn't choke on unknown options, it will just issue warnings
11845 # or remarks (even with -Werror). So we grep stderr for any message
11846 # that says an option was ignored or not supported.
11847 # When given -MP, icc 7.0 and 7.1 complain thusly:
11848 # icc: Command line warning: ignoring option '-M'; no argument required
11849 # The diagnosis changed in icc 8.0:
11850 # icc: Command line remark: option '-MP' not supported
11851 if (grep 'ignoring option' conftest.err ||
11852 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11853 am_cv_CC_dependencies_compiler_type=$depmode
11854 break
11855 fi
11856 fi
11857 done
11858
11859 cd ..
11860 rm -rf conftest.dir
11861 else
11862 am_cv_CC_dependencies_compiler_type=none
11863 fi
11864
11865 fi
11866 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11867 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11868 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11869
11870 if
11871 test "x$enable_dependency_tracking" != xno \
11872 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11873 am__fastdepCC_TRUE=
11874 am__fastdepCC_FALSE='#'
11875 else
11876 am__fastdepCC_TRUE='#'
11877 am__fastdepCC_FALSE=
11878 fi
11879
11880
11881
11882
11883
11884
11885
11886 # Check whether --with-xorg-module-dir was given.
11887 if test "${with_xorg_module_dir+set}" = set; then
11888 withval=$with_xorg_module_dir; moduledir="$withval"
11889 else
11890 moduledir="$libdir/xorg/modules"
11891 fi
11892
11893
11894 # Checks for extensions
11895
11896 SAVE_CFLAGS="$CFLAGS"
11897 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11898 cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h. */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904
11905 #include "xorg-server.h"
11906 #if !defined RANDR
11907 #error RANDR not defined
11908 #endif
11909
11910 int
11911 main ()
11912 {
11913
11914 ;
11915 return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext
11919 if { (ac_try="$ac_compile"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923 esac
11924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11925 $as_echo "$ac_try_echo") >&5
11926 (eval "$ac_compile") 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } && {
11933 test -z "$ac_c_werror_flag" ||
11934 test ! -s conftest.err
11935 } && test -s conftest.$ac_objext; then
11936 _EXT_CHECK=yes
11937 else
11938 $as_echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941 _EXT_CHECK=no
11942 fi
11943
11944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11945 CFLAGS="$SAVE_CFLAGS"
11946 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
11947 $as_echo_n "checking if RANDR is defined... " >&6; }
11948 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
11949 $as_echo "$_EXT_CHECK" >&6; }
11950 if test "$_EXT_CHECK" != no; then
11951 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11952 fi
11953
11954
11955 SAVE_CFLAGS="$CFLAGS"
11956 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11957 cat >conftest.$ac_ext <<_ACEOF
11958 /* confdefs.h. */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11963
11964 #include "xorg-server.h"
11965 #if !defined RENDER
11966 #error RENDER not defined
11967 #endif
11968
11969 int
11970 main ()
11971 {
11972
11973 ;
11974 return 0;
11975 }
11976 _ACEOF
11977 rm -f conftest.$ac_objext
11978 if { (ac_try="$ac_compile"
11979 case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982 esac
11983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11984 $as_echo "$ac_try_echo") >&5
11985 (eval "$ac_compile") 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } && {
11992 test -z "$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest.$ac_objext; then
11995 _EXT_CHECK=yes
11996 else
11997 $as_echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000 _EXT_CHECK=no
12001 fi
12002
12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004 CFLAGS="$SAVE_CFLAGS"
12005 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12006 $as_echo_n "checking if RENDER is defined... " >&6; }
12007 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12008 $as_echo "$_EXT_CHECK" >&6; }
12009 if test "$_EXT_CHECK" != no; then
12010 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12011 fi
12012
12013
12014 SAVE_CFLAGS="$CFLAGS"
12015 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12016 cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h. */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12022
12023 #include "xorg-server.h"
12024 #if !defined XV
12025 #error XV not defined
12026 #endif
12027
12028 int
12029 main ()
12030 {
12031
12032 ;
12033 return 0;
12034 }
12035 _ACEOF
12036 rm -f conftest.$ac_objext
12037 if { (ac_try="$ac_compile"
12038 case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041 esac
12042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12043 $as_echo "$ac_try_echo") >&5
12044 (eval "$ac_compile") 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } && {
12051 test -z "$ac_c_werror_flag" ||
12052 test ! -s conftest.err
12053 } && test -s conftest.$ac_objext; then
12054 _EXT_CHECK=yes
12055 else
12056 $as_echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 _EXT_CHECK=no
12060 fi
12061
12062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063 CFLAGS="$SAVE_CFLAGS"
12064 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
12065 $as_echo_n "checking if XV is defined... " >&6; }
12066 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12067 $as_echo "$_EXT_CHECK" >&6; }
12068 if test "$_EXT_CHECK" != no; then
12069 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
12070 fi
12071
12072
12073 SAVE_CFLAGS="$CFLAGS"
12074 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12075 cat >conftest.$ac_ext <<_ACEOF
12076 /* confdefs.h. */
12077 _ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12081
12082 #include "xorg-server.h"
12083 #if !defined DPMSExtension
12084 #error DPMSExtension not defined
12085 #endif
12086
12087 int
12088 main ()
12089 {
12090
12091 ;
12092 return 0;
12093 }
12094 _ACEOF
12095 rm -f conftest.$ac_objext
12096 if { (ac_try="$ac_compile"
12097 case "(($ac_try" in
12098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099 *) ac_try_echo=$ac_try;;
12100 esac
12101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12102 $as_echo "$ac_try_echo") >&5
12103 (eval "$ac_compile") 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } && {
12110 test -z "$ac_c_werror_flag" ||
12111 test ! -s conftest.err
12112 } && test -s conftest.$ac_objext; then
12113 _EXT_CHECK=yes
12114 else
12115 $as_echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12117
12118 _EXT_CHECK=no
12119 fi
12120
12121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122 CFLAGS="$SAVE_CFLAGS"
12123 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12124 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
12125 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12126 $as_echo "$_EXT_CHECK" >&6; }
12127 if test "$_EXT_CHECK" != no; then
12128 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12129 fi
12130
12131
12132 # Checks for pkg-config packages
12133
12134
12135 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12136 if test -n "$ac_tool_prefix"; then
12137 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12138 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12140 $as_echo_n "checking for $ac_word... " >&6; }
12141 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12142 $as_echo_n "(cached) " >&6
12143 else
12144 case $PKG_CONFIG in
12145 [\\/]* | ?:[\\/]*)
12146 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12147 ;;
12148 *)
12149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150 for as_dir in $PATH
12151 do
12152 IFS=$as_save_IFS
12153 test -z "$as_dir" && as_dir=.
12154 for ac_exec_ext in '' $ac_executable_extensions; do
12155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12156 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12158 break 2
12159 fi
12160 done
12161 done
12162 IFS=$as_save_IFS
12163
12164 ;;
12165 esac
12166 fi
12167 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12168 if test -n "$PKG_CONFIG"; then
12169 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12170 $as_echo "$PKG_CONFIG" >&6; }
12171 else
12172 { $as_echo "$as_me:$LINENO: result: no" >&5
12173 $as_echo "no" >&6; }
12174 fi
12175
12176
12177 fi
12178 if test -z "$ac_cv_path_PKG_CONFIG"; then
12179 ac_pt_PKG_CONFIG=$PKG_CONFIG
12180 # Extract the first word of "pkg-config", so it can be a program name with args.
12181 set dummy pkg-config; ac_word=$2
12182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12183 $as_echo_n "checking for $ac_word... " >&6; }
12184 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12185 $as_echo_n "(cached) " >&6
12186 else
12187 case $ac_pt_PKG_CONFIG in
12188 [\\/]* | ?:[\\/]*)
12189 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12190 ;;
12191 *)
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12194 do
12195 IFS=$as_save_IFS
12196 test -z "$as_dir" && as_dir=.
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12199 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12201 break 2
12202 fi
12203 done
12204 done
12205 IFS=$as_save_IFS
12206
12207 ;;
12208 esac
12209 fi
12210 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12211 if test -n "$ac_pt_PKG_CONFIG"; then
12212 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12213 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12214 else
12215 { $as_echo "$as_me:$LINENO: result: no" >&5
12216 $as_echo "no" >&6; }
12217 fi
12218
12219 if test "x$ac_pt_PKG_CONFIG" = x; then
12220 PKG_CONFIG=""
12221 else
12222 case $cross_compiling:$ac_tool_warned in
12223 yes:)
12224 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12226 ac_tool_warned=yes ;;
12227 esac
12228 PKG_CONFIG=$ac_pt_PKG_CONFIG
12229 fi
12230 else
12231 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12232 fi
12233
12234 fi
12235 if test -n "$PKG_CONFIG"; then
12236 _pkg_min_version=0.9.0
12237 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12238 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12239 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12240 { $as_echo "$as_me:$LINENO: result: yes" >&5
12241 $as_echo "yes" >&6; }
12242 else
12243 { $as_echo "$as_me:$LINENO: result: no" >&5
12244 $as_echo "no" >&6; }
12245 PKG_CONFIG=""
12246 fi
12247
12248 fi
12249
12250 pkg_failed=no
12251 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
12252 $as_echo_n "checking for XORG... " >&6; }
12253
12254 if test -n "$XORG_CFLAGS"; then
12255 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12256 elif test -n "$PKG_CONFIG"; then
12257 if test -n "$PKG_CONFIG" && \
12258 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12259 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
12260 ac_status=$?
12261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; then
12263 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12264 else
12265 pkg_failed=yes
12266 fi
12267 else
12268 pkg_failed=untried
12269 fi
12270 if test -n "$XORG_LIBS"; then
12271 pkg_cv_XORG_LIBS="$XORG_LIBS"
12272 elif test -n "$PKG_CONFIG"; then
12273 if test -n "$PKG_CONFIG" && \
12274 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12275 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
12276 ac_status=$?
12277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; then
12279 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12280 else
12281 pkg_failed=yes
12282 fi
12283 else
12284 pkg_failed=untried
12285 fi
12286
12287
12288
12289 if test $pkg_failed = yes; then
12290
12291 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12292 _pkg_short_errors_supported=yes
12293 else
12294 _pkg_short_errors_supported=no
12295 fi
12296 if test $_pkg_short_errors_supported = yes; then
12297 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12298 else
12299 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12300 fi
12301 # Put the nasty error message in config.log where it belongs
12302 echo "$XORG_PKG_ERRORS" >&5
12303
12304 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
12305
12306 $XORG_PKG_ERRORS
12307
12308 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12309 installed software in a non-standard prefix.
12310
12311 Alternatively, you may set the environment variables XORG_CFLAGS
12312 and XORG_LIBS to avoid the need to call pkg-config.
12313 See the pkg-config man page for more details.
12314 " >&5
12315 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
12316
12317 $XORG_PKG_ERRORS
12318
12319 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12320 installed software in a non-standard prefix.
12321
12322 Alternatively, you may set the environment variables XORG_CFLAGS
12323 and XORG_LIBS to avoid the need to call pkg-config.
12324 See the pkg-config man page for more details.
12325 " >&2;}
12326 { (exit 1); exit 1; }; }
12327 elif test $pkg_failed = untried; then
12328 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12330 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12331 is in your PATH or set the PKG_CONFIG environment variable to the full
12332 path to pkg-config.
12333
12334 Alternatively, you may set the environment variables XORG_CFLAGS
12335 and XORG_LIBS to avoid the need to call pkg-config.
12336 See the pkg-config man page for more details.
12337
12338 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12339 See \`config.log' for more details." >&5
12340 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12341 is in your PATH or set the PKG_CONFIG environment variable to the full
12342 path to pkg-config.
12343
12344 Alternatively, you may set the environment variables XORG_CFLAGS
12345 and XORG_LIBS to avoid the need to call pkg-config.
12346 See the pkg-config man page for more details.
12347
12348 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12349 See \`config.log' for more details." >&2;}
12350 { (exit 1); exit 1; }; }; }
12351 else
12352 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12353 XORG_LIBS=$pkg_cv_XORG_LIBS
12354 { $as_echo "$as_me:$LINENO: result: yes" >&5
12355 $as_echo "yes" >&6; }
12356 :
12357 fi
12358 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
12359
12360 # Checks for libraries.
12361 SAVE_CPPFLAGS="$CPPFLAGS"
12362 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
12363 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
12364 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
12365 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
12366 $as_echo_n "(cached) " >&6
12367 else
12368 cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h. */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 #include "xorg-server.h"
12375
12376 int
12377 main ()
12378 {
12379 #ifndef XSERVER_LIBPCIACCESS
12380 (void) XSERVER_LIBPCIACCESS;
12381 #endif
12382
12383 ;
12384 return 0;
12385 }
12386 _ACEOF
12387 rm -f conftest.$ac_objext
12388 if { (ac_try="$ac_compile"
12389 case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12392 esac
12393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12394 $as_echo "$ac_try_echo") >&5
12395 (eval "$ac_compile") 2>conftest.er1
12396 ac_status=$?
12397 grep -v '^ *+' conftest.er1 >conftest.err
12398 rm -f conftest.er1
12399 cat conftest.err >&5
12400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } && {
12402 test -z "$ac_c_werror_flag" ||
12403 test ! -s conftest.err
12404 } && test -s conftest.$ac_objext; then
12405 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
12406 else
12407 $as_echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12409
12410 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
12411 fi
12412
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12414 fi
12415 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
12416 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
12417 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
12418 XSERVER_LIBPCIACCESS=yes
12419 else
12420 XSERVER_LIBPCIACCESS=no
12421 fi
12422
12423 CPPFLAGS="$SAVE_CPPFLAGS"
12424
12425 # Checks for header files.
12426 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12427 $as_echo_n "checking for ANSI C header files... " >&6; }
12428 if test "${ac_cv_header_stdc+set}" = set; then
12429 $as_echo_n "(cached) " >&6
12430 else
12431 cat >conftest.$ac_ext <<_ACEOF
12432 /* confdefs.h. */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12437 #include <stdlib.h>
12438 #include <stdarg.h>
12439 #include <string.h>
12440 #include <float.h>
12441
12442 int
12443 main ()
12444 {
12445
12446 ;
12447 return 0;
12448 }
12449 _ACEOF
12450 rm -f conftest.$ac_objext
12451 if { (ac_try="$ac_compile"
12452 case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12455 esac
12456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12457 $as_echo "$ac_try_echo") >&5
12458 (eval "$ac_compile") 2>conftest.er1
12459 ac_status=$?
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
12463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } && {
12465 test -z "$ac_c_werror_flag" ||
12466 test ! -s conftest.err
12467 } && test -s conftest.$ac_objext; then
12468 ac_cv_header_stdc=yes
12469 else
12470 $as_echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 ac_cv_header_stdc=no
12474 fi
12475
12476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477
12478 if test $ac_cv_header_stdc = yes; then
12479 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12480 cat >conftest.$ac_ext <<_ACEOF
12481 /* confdefs.h. */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12486 #include <string.h>
12487
12488 _ACEOF
12489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12490 $EGREP "memchr" >/dev/null 2>&1; then
12491 :
12492 else
12493 ac_cv_header_stdc=no
12494 fi
12495 rm -f conftest*
12496
12497 fi
12498
12499 if test $ac_cv_header_stdc = yes; then
12500 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12501 cat >conftest.$ac_ext <<_ACEOF
12502 /* confdefs.h. */
12503 _ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12507 #include <stdlib.h>
12508
12509 _ACEOF
12510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12511 $EGREP "free" >/dev/null 2>&1; then
12512 :
12513 else
12514 ac_cv_header_stdc=no
12515 fi
12516 rm -f conftest*
12517
12518 fi
12519
12520 if test $ac_cv_header_stdc = yes; then
12521 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12522 if test "$cross_compiling" = yes; then
12523 :
12524 else
12525 cat >conftest.$ac_ext <<_ACEOF
12526 /* confdefs.h. */
12527 _ACEOF
12528 cat confdefs.h >>conftest.$ac_ext
12529 cat >>conftest.$ac_ext <<_ACEOF
12530 /* end confdefs.h. */
12531 #include <ctype.h>
12532 #include <stdlib.h>
12533 #if ((' ' & 0x0FF) == 0x020)
12534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12536 #else
12537 # define ISLOWER(c) \
12538 (('a' <= (c) && (c) <= 'i') \
12539 || ('j' <= (c) && (c) <= 'r') \
12540 || ('s' <= (c) && (c) <= 'z'))
12541 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12542 #endif
12543
12544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12545 int
12546 main ()
12547 {
12548 int i;
12549 for (i = 0; i < 256; i++)
12550 if (XOR (islower (i), ISLOWER (i))
12551 || toupper (i) != TOUPPER (i))
12552 return 2;
12553 return 0;
12554 }
12555 _ACEOF
12556 rm -f conftest$ac_exeext
12557 if { (ac_try="$ac_link"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561 esac
12562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12563 $as_echo "$ac_try_echo") >&5
12564 (eval "$ac_link") 2>&5
12565 ac_status=$?
12566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12568 { (case "(($ac_try" in
12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570 *) ac_try_echo=$ac_try;;
12571 esac
12572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12573 $as_echo "$ac_try_echo") >&5
12574 (eval "$ac_try") 2>&5
12575 ac_status=$?
12576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 :
12579 else
12580 $as_echo "$as_me: program exited with status $ac_status" >&5
12581 $as_echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12583
12584 ( exit $ac_status )
12585 ac_cv_header_stdc=no
12586 fi
12587 rm -rf conftest.dSYM
12588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12589 fi
12590
12591
12592 fi
12593 fi
12594 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12595 $as_echo "$ac_cv_header_stdc" >&6; }
12596 if test $ac_cv_header_stdc = yes; then
12597
12598 cat >>confdefs.h <<\_ACEOF
12599 #define STDC_HEADERS 1
12600 _ACEOF
12601
12602 fi
12603
12604
12605 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12606
12607 pkg_failed=no
12608 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
12609 $as_echo_n "checking for PCIACCESS... " >&6; }
12610
12611 if test -n "$PCIACCESS_CFLAGS"; then
12612 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12613 elif test -n "$PKG_CONFIG"; then
12614 if test -n "$PKG_CONFIG" && \
12615 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12616 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12617 ac_status=$?
12618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; then
12620 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
12621 else
12622 pkg_failed=yes
12623 fi
12624 else
12625 pkg_failed=untried
12626 fi
12627 if test -n "$PCIACCESS_LIBS"; then
12628 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12629 elif test -n "$PKG_CONFIG"; then
12630 if test -n "$PKG_CONFIG" && \
12631 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12632 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12633 ac_status=$?
12634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; then
12636 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
12637 else
12638 pkg_failed=yes
12639 fi
12640 else
12641 pkg_failed=untried
12642 fi
12643
12644
12645
12646 if test $pkg_failed = yes; then
12647
12648 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12649 _pkg_short_errors_supported=yes
12650 else
12651 _pkg_short_errors_supported=no
12652 fi
12653 if test $_pkg_short_errors_supported = yes; then
12654 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
12655 else
12656 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
12657 fi
12658 # Put the nasty error message in config.log where it belongs
12659 echo "$PCIACCESS_PKG_ERRORS" >&5
12660
12661 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
12662
12663 $PCIACCESS_PKG_ERRORS
12664
12665 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12666 installed software in a non-standard prefix.
12667
12668 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12669 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12670 See the pkg-config man page for more details.
12671 " >&5
12672 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
12673
12674 $PCIACCESS_PKG_ERRORS
12675
12676 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12677 installed software in a non-standard prefix.
12678
12679 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12680 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12681 See the pkg-config man page for more details.
12682 " >&2;}
12683 { (exit 1); exit 1; }; }
12684 elif test $pkg_failed = untried; then
12685 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12687 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12688 is in your PATH or set the PKG_CONFIG environment variable to the full
12689 path to pkg-config.
12690
12691 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12692 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12693 See the pkg-config man page for more details.
12694
12695 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12696 See \`config.log' for more details." >&5
12697 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12698 is in your PATH or set the PKG_CONFIG environment variable to the full
12699 path to pkg-config.
12700
12701 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12702 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12703 See the pkg-config man page for more details.
12704
12705 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12706 See \`config.log' for more details." >&2;}
12707 { (exit 1); exit 1; }; }; }
12708 else
12709 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12710 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12711 { $as_echo "$as_me:$LINENO: result: yes" >&5
12712 $as_echo "yes" >&6; }
12713 :
12714 fi
12715 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
12716 fi
12717 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12718 XSERVER_LIBPCIACCESS_TRUE=
12719 XSERVER_LIBPCIACCESS_FALSE='#'
12720 else
12721 XSERVER_LIBPCIACCESS_TRUE='#'
12722 XSERVER_LIBPCIACCESS_FALSE=
12723 fi
12724
12725
12726
12727
12728
12729
12730 DRIVER_NAME=i740
12731
12732
12733
12734
12735
12736 if test x$APP_MAN_SUFFIX = x ; then
12737 APP_MAN_SUFFIX=1
12738 fi
12739 if test x$APP_MAN_DIR = x ; then
12740 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12741 fi
12742
12743 if test x$LIB_MAN_SUFFIX = x ; then
12744 LIB_MAN_SUFFIX=3
12745 fi
12746 if test x$LIB_MAN_DIR = x ; then
12747 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12748 fi
12749
12750 if test x$FILE_MAN_SUFFIX = x ; then
12751 case $host_os in
12752 solaris*) FILE_MAN_SUFFIX=4 ;;
12753 *) FILE_MAN_SUFFIX=5 ;;
12754 esac
12755 fi
12756 if test x$FILE_MAN_DIR = x ; then
12757 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12758 fi
12759
12760 if test x$MISC_MAN_SUFFIX = x ; then
12761 case $host_os in
12762 solaris*) MISC_MAN_SUFFIX=5 ;;
12763 *) MISC_MAN_SUFFIX=7 ;;
12764 esac
12765 fi
12766 if test x$MISC_MAN_DIR = x ; then
12767 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12768 fi
12769
12770 if test x$DRIVER_MAN_SUFFIX = x ; then
12771 case $host_os in
12772 solaris*) DRIVER_MAN_SUFFIX=7 ;;
12773 *) DRIVER_MAN_SUFFIX=4 ;;
12774 esac
12775 fi
12776 if test x$DRIVER_MAN_DIR = x ; then
12777 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12778 fi
12779
12780 if test x$ADMIN_MAN_SUFFIX = x ; then
12781 case $host_os in
12782 solaris*) ADMIN_MAN_SUFFIX=1m ;;
12783 *) ADMIN_MAN_SUFFIX=8 ;;
12784 esac
12785 fi
12786 if test x$ADMIN_MAN_DIR = x ; then
12787 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12788 fi
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806 # Check whether --with-release-version was given.
12807 if test "${with_release_version+set}" = set; then
12808 withval=$with_release_version; RELEASE_VERSION="$withval"
12809 else
12810 RELEASE_VERSION=""
12811 fi
12812
12813 if test "x$RELEASE_VERSION" != "x"; then
12814 PACKAGE="$PACKAGE-$RELEASE_VERSION"
12815 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
12816 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
12817 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
12818 fi
12819
12820 cat >>confdefs.h <<_ACEOF
12821 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12822 _ACEOF
12823
12824 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12825 if test "x$PVM" = "x"; then
12826 PVM="0"
12827 fi
12828
12829 cat >>confdefs.h <<_ACEOF
12830 #define PACKAGE_VERSION_MINOR $PVM
12831 _ACEOF
12832
12833 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12834 if test "x$PVP" = "x"; then
12835 PVP="0"
12836 fi
12837
12838 cat >>confdefs.h <<_ACEOF
12839 #define PACKAGE_VERSION_PATCHLEVEL $PVP
12840 _ACEOF
12841
12842
12843
12844
12845 if test x$XORG_SGML_PATH = x ; then
12846 XORG_SGML_PATH=$prefix/share/sgml
12847 fi
12848 HAVE_DEFS_ENT=
12849
12850 if test x"$cross_compiling" = x"yes" ; then
12851 HAVE_DEFS_ENT=no
12852 else
12853 as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
12854 { $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
12855 $as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; }
12856 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
12857 $as_echo_n "(cached) " >&6
12858 else
12859 test "$cross_compiling" = yes &&
12860 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12861 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12862 { (exit 1); exit 1; }; }
12863 if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
12864 eval "$as_ac_File=yes"
12865 else
12866 eval "$as_ac_File=no"
12867 fi
12868 fi
12869 ac_res=`eval 'as_val=${'$as_ac_File'}
12870 $as_echo "$as_val"'`
12871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12872 $as_echo "$ac_res" >&6; }
12873 as_val=`eval 'as_val=${'$as_ac_File'}
12874 $as_echo "$as_val"'`
12875 if test "x$as_val" = x""yes; then
12876 HAVE_DEFS_ENT=yes
12877 fi
12878
12879 fi
12880
12881 # Extract the first word of "linuxdoc", so it can be a program name with args.
12882 set dummy linuxdoc; ac_word=$2
12883 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12884 $as_echo_n "checking for $ac_word... " >&6; }
12885 if test "${ac_cv_path_LINUXDOC+set}" = set; then
12886 $as_echo_n "(cached) " >&6
12887 else
12888 case $LINUXDOC in
12889 [\\/]* | ?:[\\/]*)
12890 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
12891 ;;
12892 *)
12893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12894 for as_dir in $PATH
12895 do
12896 IFS=$as_save_IFS
12897 test -z "$as_dir" && as_dir=.
12898 for ac_exec_ext in '' $ac_executable_extensions; do
12899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12900 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
12901 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12902 break 2
12903 fi
12904 done
12905 done
12906 IFS=$as_save_IFS
12907
12908 ;;
12909 esac
12910 fi
12911 LINUXDOC=$ac_cv_path_LINUXDOC
12912 if test -n "$LINUXDOC"; then
12913 { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5
12914 $as_echo "$LINUXDOC" >&6; }
12915 else
12916 { $as_echo "$as_me:$LINENO: result: no" >&5
12917 $as_echo "no" >&6; }
12918 fi
12919
12920
12921 # Extract the first word of "ps2pdf", so it can be a program name with args.
12922 set dummy ps2pdf; ac_word=$2
12923 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12924 $as_echo_n "checking for $ac_word... " >&6; }
12925 if test "${ac_cv_path_PS2PDF+set}" = set; then
12926 $as_echo_n "(cached) " >&6
12927 else
12928 case $PS2PDF in
12929 [\\/]* | ?:[\\/]*)
12930 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
12931 ;;
12932 *)
12933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12934 for as_dir in $PATH
12935 do
12936 IFS=$as_save_IFS
12937 test -z "$as_dir" && as_dir=.
12938 for ac_exec_ext in '' $ac_executable_extensions; do
12939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12940 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
12941 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12942 break 2
12943 fi
12944 done
12945 done
12946 IFS=$as_save_IFS
12947
12948 ;;
12949 esac
12950 fi
12951 PS2PDF=$ac_cv_path_PS2PDF
12952 if test -n "$PS2PDF"; then
12953 { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
12954 $as_echo "$PS2PDF" >&6; }
12955 else
12956 { $as_echo "$as_me:$LINENO: result: no" >&5
12957 $as_echo "no" >&6; }
12958 fi
12959
12960
12961
12962 { $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5
12963 $as_echo_n "checking Whether to build documentation... " >&6; }
12964
12965 if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
12966 BUILDDOC=yes
12967 else
12968 BUILDDOC=no
12969 fi
12970
12971 if test x$BUILDDOC = xyes; then
12972 BUILD_LINUXDOC_TRUE=
12973 BUILD_LINUXDOC_FALSE='#'
12974 else
12975 BUILD_LINUXDOC_TRUE='#'
12976 BUILD_LINUXDOC_FALSE=
12977 fi
12978
12979
12980 { $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5
12981 $as_echo "$BUILDDOC" >&6; }
12982
12983 { $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
12984 $as_echo_n "checking Whether to build pdf documentation... " >&6; }
12985
12986 if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
12987 BUILDPDFDOC=yes
12988 else
12989 BUILDPDFDOC=no
12990 fi
12991
12992 if test x$BUILDPDFDOC = xyes; then
12993 BUILD_PDFDOC_TRUE=
12994 BUILD_PDFDOC_FALSE='#'
12995 else
12996 BUILD_PDFDOC_TRUE='#'
12997 BUILD_PDFDOC_FALSE=
12998 fi
12999
13000
13001 { $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
13002 $as_echo "$BUILDPDFDOC" >&6; }
13003
13004 MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
13005 MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
13006 MAKE_PDF="$PS2PDF"
13007 MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
13008
13009
13010
13011
13012
13013
13014
13015 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
13016
13017 cat >confcache <<\_ACEOF
13018 # This file is a shell script that caches the results of configure
13019 # tests run on this system so they can be shared between configure
13020 # scripts and configure runs, see configure's option --config-cache.
13021 # It is not useful on other systems. If it contains results you don't
13022 # want to keep, you may remove or edit it.
13023 #
13024 # config.status only pays attention to the cache file if you give it
13025 # the --recheck option to rerun configure.
13026 #
13027 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13028 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13029 # following values.
13030
13031 _ACEOF
13032
13033 # The following way of writing the cache mishandles newlines in values,
13034 # but we know of no workaround that is simple, portable, and efficient.
13035 # So, we kill variables containing newlines.
13036 # Ultrix sh set writes to stderr and can't be redirected directly,
13037 # and sets the high bit in the cache file unless we assign to the vars.
13038 (
13039 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13040 eval ac_val=\$$ac_var
13041 case $ac_val in #(
13042 *${as_nl}*)
13043 case $ac_var in #(
13044 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13045 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13046 esac
13047 case $ac_var in #(
13048 _ | IFS | as_nl) ;; #(
13049 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13050 *) $as_unset $ac_var ;;
13051 esac ;;
13052 esac
13053 done
13054
13055 (set) 2>&1 |
13056 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13057 *${as_nl}ac_space=\ *)
13058 # `set' does not quote correctly, so add quotes (double-quote
13059 # substitution turns \\\\ into \\, and sed turns \\ into \).
13060 sed -n \
13061 "s/'/'\\\\''/g;
13062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13063 ;; #(
13064 *)
13065 # `set' quotes correctly as required by POSIX, so do not add quotes.
13066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13067 ;;
13068 esac |
13069 sort
13070 ) |
13071 sed '
13072 /^ac_cv_env_/b end
13073 t clear
13074 :clear
13075 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13076 t end
13077 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13078 :end' >>confcache
13079 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13080 if test -w "$cache_file"; then
13081 test "x$cache_file" != "x/dev/null" &&
13082 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13083 $as_echo "$as_me: updating cache $cache_file" >&6;}
13084 cat confcache >$cache_file
13085 else
13086 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13087 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13088 fi
13089 fi
13090 rm -f confcache
13091
13092 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13093 # Let make expand exec_prefix.
13094 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13095
13096 DEFS=-DHAVE_CONFIG_H
13097
13098 ac_libobjs=
13099 ac_ltlibobjs=
13100 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13101 # 1. Remove the extension, and $U if already installed.
13102 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13103 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13104 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13105 # will be set to the directory where LIBOBJS objects are built.
13106 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13107 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13108 done
13109 LIBOBJS=$ac_libobjs
13110
13111 LTLIBOBJS=$ac_ltlibobjs
13112
13113
13114 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13115 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13116 Usually this means the macro was only invoked conditionally." >&5
13117 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13118 Usually this means the macro was only invoked conditionally." >&2;}
13119 { (exit 1); exit 1; }; }
13120 fi
13121 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13122 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13123 Usually this means the macro was only invoked conditionally." >&5
13124 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13125 Usually this means the macro was only invoked conditionally." >&2;}
13126 { (exit 1); exit 1; }; }
13127 fi
13128 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13129 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13130 Usually this means the macro was only invoked conditionally." >&5
13131 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13132 Usually this means the macro was only invoked conditionally." >&2;}
13133 { (exit 1); exit 1; }; }
13134 fi
13135 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13136 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13137 Usually this means the macro was only invoked conditionally." >&5
13138 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13139 Usually this means the macro was only invoked conditionally." >&2;}
13140 { (exit 1); exit 1; }; }
13141 fi
13142 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
13143 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13144 Usually this means the macro was only invoked conditionally." >&5
13145 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13146 Usually this means the macro was only invoked conditionally." >&2;}
13147 { (exit 1); exit 1; }; }
13148 fi
13149 if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
13150 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
13151 Usually this means the macro was only invoked conditionally." >&5
13152 $as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
13153 Usually this means the macro was only invoked conditionally." >&2;}
13154 { (exit 1); exit 1; }; }
13155 fi
13156 if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
13157 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
13158 Usually this means the macro was only invoked conditionally." >&5
13159 $as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
13160 Usually this means the macro was only invoked conditionally." >&2;}
13161 { (exit 1); exit 1; }; }
13162 fi
13163
13164 : ${CONFIG_STATUS=./config.status}
13165 ac_write_fail=0
13166 ac_clean_files_save=$ac_clean_files
13167 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13168 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13169 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13170 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13171 #! $SHELL
13172 # Generated by $as_me.
13173 # Run this file to recreate the current configuration.
13174 # Compiler output produced by configure, useful for debugging
13175 # configure, is in config.log if it exists.
13176
13177 debug=false
13178 ac_cs_recheck=false
13179 ac_cs_silent=false
13180 SHELL=\${CONFIG_SHELL-$SHELL}
13181 _ACEOF
13182
13183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13184 ## --------------------- ##
13185 ## M4sh Initialization. ##
13186 ## --------------------- ##
13187
13188 # Be more Bourne compatible
13189 DUALCASE=1; export DUALCASE # for MKS sh
13190 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13191 emulate sh
13192 NULLCMD=:
13193 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13194 # is contrary to our usage. Disable this feature.
13195 alias -g '${1+"$@"}'='"$@"'
13196 setopt NO_GLOB_SUBST
13197 else
13198 case `(set -o) 2>/dev/null` in
13199 *posix*) set -o posix ;;
13200 esac
13201
13202 fi
13203
13204
13205
13206
13207 # PATH needs CR
13208 # Avoid depending upon Character Ranges.
13209 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13210 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13211 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13212 as_cr_digits='0123456789'
13213 as_cr_alnum=$as_cr_Letters$as_cr_digits
13214
13215 as_nl='
13216 '
13217 export as_nl
13218 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13219 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13220 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13221 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13222 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13223 as_echo='printf %s\n'
13224 as_echo_n='printf %s'
13225 else
13226 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13227 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13228 as_echo_n='/usr/ucb/echo -n'
13229 else
13230 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13231 as_echo_n_body='eval
13232 arg=$1;
13233 case $arg in
13234 *"$as_nl"*)
13235 expr "X$arg" : "X\\(.*\\)$as_nl";
13236 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13237 esac;
13238 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13239 '
13240 export as_echo_n_body
13241 as_echo_n='sh -c $as_echo_n_body as_echo'
13242 fi
13243 export as_echo_body
13244 as_echo='sh -c $as_echo_body as_echo'
13245 fi
13246
13247 # The user is always right.
13248 if test "${PATH_SEPARATOR+set}" != set; then
13249 PATH_SEPARATOR=:
13250 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13251 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13252 PATH_SEPARATOR=';'
13253 }
13254 fi
13255
13256 # Support unset when possible.
13257 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13258 as_unset=unset
13259 else
13260 as_unset=false
13261 fi
13262
13263
13264 # IFS
13265 # We need space, tab and new line, in precisely that order. Quoting is
13266 # there to prevent editors from complaining about space-tab.
13267 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13268 # splitting by setting IFS to empty value.)
13269 IFS=" "" $as_nl"
13270
13271 # Find who we are. Look in the path if we contain no directory separator.
13272 case $0 in
13273 *[\\/]* ) as_myself=$0 ;;
13274 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13276 do
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13280 done
13281 IFS=$as_save_IFS
13282
13283 ;;
13284 esac
13285 # We did not find ourselves, most probably we were run as `sh COMMAND'
13286 # in which case we are not to be found in the path.
13287 if test "x$as_myself" = x; then
13288 as_myself=$0
13289 fi
13290 if test ! -f "$as_myself"; then
13291 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13292 { (exit 1); exit 1; }
13293 fi
13294
13295 # Work around bugs in pre-3.0 UWIN ksh.
13296 for as_var in ENV MAIL MAILPATH
13297 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13298 done
13299 PS1='$ '
13300 PS2='> '
13301 PS4='+ '
13302
13303 # NLS nuisances.
13304 LC_ALL=C
13305 export LC_ALL
13306 LANGUAGE=C
13307 export LANGUAGE
13308
13309 # Required to use basename.
13310 if expr a : '\(a\)' >/dev/null 2>&1 &&
13311 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13312 as_expr=expr
13313 else
13314 as_expr=false
13315 fi
13316
13317 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13318 as_basename=basename
13319 else
13320 as_basename=false
13321 fi
13322
13323
13324 # Name of the executable.
13325 as_me=`$as_basename -- "$0" ||
13326 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13327 X"$0" : 'X\(//\)$' \| \
13328 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13329 $as_echo X/"$0" |
13330 sed '/^.*\/\([^/][^/]*\)\/*$/{
13331 s//\1/
13332 q
13333 }
13334 /^X\/\(\/\/\)$/{
13335 s//\1/
13336 q
13337 }
13338 /^X\/\(\/\).*/{
13339 s//\1/
13340 q
13341 }
13342 s/.*/./; q'`
13343
13344 # CDPATH.
13345 $as_unset CDPATH
13346
13347
13348
13349 as_lineno_1=$LINENO
13350 as_lineno_2=$LINENO
13351 test "x$as_lineno_1" != "x$as_lineno_2" &&
13352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13353
13354 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13355 # uniformly replaced by the line number. The first 'sed' inserts a
13356 # line-number line after each line using $LINENO; the second 'sed'
13357 # does the real work. The second script uses 'N' to pair each
13358 # line-number line with the line containing $LINENO, and appends
13359 # trailing '-' during substitution so that $LINENO is not a special
13360 # case at line end.
13361 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13362 # scripts with optimization help from Paolo Bonzini. Blame Lee
13363 # E. McMahon (1931-1989) for sed's syntax. :-)
13364 sed -n '
13365 p
13366 /[$]LINENO/=
13367 ' <$as_myself |
13368 sed '
13369 s/[$]LINENO.*/&-/
13370 t lineno
13371 b
13372 :lineno
13373 N
13374 :loop
13375 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13376 t loop
13377 s/-\n.*//
13378 ' >$as_me.lineno &&
13379 chmod +x "$as_me.lineno" ||
13380 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13381 { (exit 1); exit 1; }; }
13382
13383 # Don't try to exec as it changes $[0], causing all sort of problems
13384 # (the dirname of $[0] is not the place where we might find the
13385 # original and so on. Autoconf is especially sensitive to this).
13386 . "./$as_me.lineno"
13387 # Exit status is that of the last command.
13388 exit
13389 }
13390
13391
13392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13393 as_dirname=dirname
13394 else
13395 as_dirname=false
13396 fi
13397
13398 ECHO_C= ECHO_N= ECHO_T=
13399 case `echo -n x` in
13400 -n*)
13401 case `echo 'x\c'` in
13402 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13403 *) ECHO_C='\c';;
13404 esac;;
13405 *)
13406 ECHO_N='-n';;
13407 esac
13408 if expr a : '\(a\)' >/dev/null 2>&1 &&
13409 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13410 as_expr=expr
13411 else
13412 as_expr=false
13413 fi
13414
13415 rm -f conf$$ conf$$.exe conf$$.file
13416 if test -d conf$$.dir; then
13417 rm -f conf$$.dir/conf$$.file
13418 else
13419 rm -f conf$$.dir
13420 mkdir conf$$.dir 2>/dev/null
13421 fi
13422 if (echo >conf$$.file) 2>/dev/null; then
13423 if ln -s conf$$.file conf$$ 2>/dev/null; then
13424 as_ln_s='ln -s'
13425 # ... but there are two gotchas:
13426 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13427 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13428 # In both cases, we have to default to `cp -p'.
13429 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13430 as_ln_s='cp -p'
13431 elif ln conf$$.file conf$$ 2>/dev/null; then
13432 as_ln_s=ln
13433 else
13434 as_ln_s='cp -p'
13435 fi
13436 else
13437 as_ln_s='cp -p'
13438 fi
13439 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13440 rmdir conf$$.dir 2>/dev/null
13441
13442 if mkdir -p . 2>/dev/null; then
13443 as_mkdir_p=:
13444 else
13445 test -d ./-p && rmdir ./-p
13446 as_mkdir_p=false
13447 fi
13448
13449 if test -x / >/dev/null 2>&1; then
13450 as_test_x='test -x'
13451 else
13452 if ls -dL / >/dev/null 2>&1; then
13453 as_ls_L_option=L
13454 else
13455 as_ls_L_option=
13456 fi
13457 as_test_x='
13458 eval sh -c '\''
13459 if test -d "$1"; then
13460 test -d "$1/.";
13461 else
13462 case $1 in
13463 -*)set "./$1";;
13464 esac;
13465 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13466 ???[sx]*):;;*)false;;esac;fi
13467 '\'' sh
13468 '
13469 fi
13470 as_executable_p=$as_test_x
13471
13472 # Sed expression to map a string onto a valid CPP name.
13473 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13474
13475 # Sed expression to map a string onto a valid variable name.
13476 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13477
13478
13479 exec 6>&1
13480
13481 # Save the log message, to keep $[0] and so on meaningful, and to
13482 # report actual input values of CONFIG_FILES etc. instead of their
13483 # values after options handling.
13484 ac_log="
13485 This file was extended by xf86-video-i740 $as_me 1.3.0, which was
13486 generated by GNU Autoconf 2.63. Invocation command line was
13487
13488 CONFIG_FILES = $CONFIG_FILES
13489 CONFIG_HEADERS = $CONFIG_HEADERS
13490 CONFIG_LINKS = $CONFIG_LINKS
13491 CONFIG_COMMANDS = $CONFIG_COMMANDS
13492 $ $0 $@
13493
13494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13495 "
13496
13497 _ACEOF
13498
13499 case $ac_config_files in *"
13500 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13501 esac
13502
13503 case $ac_config_headers in *"
13504 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13505 esac
13506
13507
13508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13509 # Files that config.status was made for.
13510 config_files="$ac_config_files"
13511 config_headers="$ac_config_headers"
13512 config_commands="$ac_config_commands"
13513
13514 _ACEOF
13515
13516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13517 ac_cs_usage="\
13518 \`$as_me' instantiates files from templates according to the
13519 current configuration.
13520
13521 Usage: $0 [OPTION]... [FILE]...
13522
13523 -h, --help print this help, then exit
13524 -V, --version print version number and configuration settings, then exit
13525 -q, --quiet, --silent
13526 do not print progress messages
13527 -d, --debug don't remove temporary files
13528 --recheck update $as_me by reconfiguring in the same conditions
13529 --file=FILE[:TEMPLATE]
13530 instantiate the configuration file FILE
13531 --header=FILE[:TEMPLATE]
13532 instantiate the configuration header FILE
13533
13534 Configuration files:
13535 $config_files
13536
13537 Configuration headers:
13538 $config_headers
13539
13540 Configuration commands:
13541 $config_commands
13542
13543 Report bugs to <bug-autoconf (at] gnu.org>."
13544
13545 _ACEOF
13546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13547 ac_cs_version="\\
13548 xf86-video-i740 config.status 1.3.0
13549 configured by $0, generated by GNU Autoconf 2.63,
13550 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13551
13552 Copyright (C) 2008 Free Software Foundation, Inc.
13553 This config.status script is free software; the Free Software Foundation
13554 gives unlimited permission to copy, distribute and modify it."
13555
13556 ac_pwd='$ac_pwd'
13557 srcdir='$srcdir'
13558 INSTALL='$INSTALL'
13559 MKDIR_P='$MKDIR_P'
13560 AWK='$AWK'
13561 test -n "\$AWK" || AWK=awk
13562 _ACEOF
13563
13564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13565 # The default lists apply if the user does not specify any file.
13566 ac_need_defaults=:
13567 while test $# != 0
13568 do
13569 case $1 in
13570 --*=*)
13571 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13572 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13573 ac_shift=:
13574 ;;
13575 *)
13576 ac_option=$1
13577 ac_optarg=$2
13578 ac_shift=shift
13579 ;;
13580 esac
13581
13582 case $ac_option in
13583 # Handling of the options.
13584 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13585 ac_cs_recheck=: ;;
13586 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13587 $as_echo "$ac_cs_version"; exit ;;
13588 --debug | --debu | --deb | --de | --d | -d )
13589 debug=: ;;
13590 --file | --fil | --fi | --f )
13591 $ac_shift
13592 case $ac_optarg in
13593 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13594 esac
13595 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13596 ac_need_defaults=false;;
13597 --header | --heade | --head | --hea )
13598 $ac_shift
13599 case $ac_optarg in
13600 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13601 esac
13602 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13603 ac_need_defaults=false;;
13604 --he | --h)
13605 # Conflict between --help and --header
13606 { $as_echo "$as_me: error: ambiguous option: $1
13607 Try \`$0 --help' for more information." >&2
13608 { (exit 1); exit 1; }; };;
13609 --help | --hel | -h )
13610 $as_echo "$ac_cs_usage"; exit ;;
13611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13612 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13613 ac_cs_silent=: ;;
13614
13615 # This is an error.
13616 -*) { $as_echo "$as_me: error: unrecognized option: $1
13617 Try \`$0 --help' for more information." >&2
13618 { (exit 1); exit 1; }; } ;;
13619
13620 *) ac_config_targets="$ac_config_targets $1"
13621 ac_need_defaults=false ;;
13622
13623 esac
13624 shift
13625 done
13626
13627 ac_configure_extra_args=
13628
13629 if $ac_cs_silent; then
13630 exec 6>/dev/null
13631 ac_configure_extra_args="$ac_configure_extra_args --silent"
13632 fi
13633
13634 _ACEOF
13635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13636 if \$ac_cs_recheck; then
13637 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13638 shift
13639 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13640 CONFIG_SHELL='$SHELL'
13641 export CONFIG_SHELL
13642 exec "\$@"
13643 fi
13644
13645 _ACEOF
13646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13647 exec 5>>config.log
13648 {
13649 echo
13650 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13651 ## Running $as_me. ##
13652 _ASBOX
13653 $as_echo "$ac_log"
13654 } >&5
13655
13656 _ACEOF
13657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13658 #
13659 # INIT-COMMANDS
13660 #
13661 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13662
13663
13664 # The HP-UX ksh and POSIX shell print the target directory to stdout
13665 # if CDPATH is set.
13666 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13667
13668 sed_quote_subst='$sed_quote_subst'
13669 double_quote_subst='$double_quote_subst'
13670 delay_variable_subst='$delay_variable_subst'
13671 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13672 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13673 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13674 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13675 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13676 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13677 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13678 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13679 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13680 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13681 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13682 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13683 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13684 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13685 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13686 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13687 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13688 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13689 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13690 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13691 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13692 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13693 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13694 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13695 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13696 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13697 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13698 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13699 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13700 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13701 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13702 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13703 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13704 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13705 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13706 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13707 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13708 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13709 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13710 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13711 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13712 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13713 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13714 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13715 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"`'
13716 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"`'
13717 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13718 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13719 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13720 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13721 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13722 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13723 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13724 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13725 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13726 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13727 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13728 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13729 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13730 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13731 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13732 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13733 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13734 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13735 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13736 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13737 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13738 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13739 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13740 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13741 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13742 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13743 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13744 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13745 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13746 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13747 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13748 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13749 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13750 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13751 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13752 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13753 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13754 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13755 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13756 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13757 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13758 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13759 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13760 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13761 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13762 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13763 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13764 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13765 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13766 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13767 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13768 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13769 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13770 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13771 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13772 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13773 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13774 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13775 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13776 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13777 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13778 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13779 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13780 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13781 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13782 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13783 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13784 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13785 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13786 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13787 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13788 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13789
13790 LTCC='$LTCC'
13791 LTCFLAGS='$LTCFLAGS'
13792 compiler='$compiler_DEFAULT'
13793
13794 # Quote evaled strings.
13795 for var in SED \
13796 GREP \
13797 EGREP \
13798 FGREP \
13799 LD \
13800 NM \
13801 LN_S \
13802 lt_SP2NL \
13803 lt_NL2SP \
13804 reload_flag \
13805 OBJDUMP \
13806 deplibs_check_method \
13807 file_magic_cmd \
13808 AR \
13809 AR_FLAGS \
13810 STRIP \
13811 RANLIB \
13812 CC \
13813 CFLAGS \
13814 compiler \
13815 lt_cv_sys_global_symbol_pipe \
13816 lt_cv_sys_global_symbol_to_cdecl \
13817 lt_cv_sys_global_symbol_to_c_name_address \
13818 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13819 SHELL \
13820 ECHO \
13821 lt_prog_compiler_no_builtin_flag \
13822 lt_prog_compiler_wl \
13823 lt_prog_compiler_pic \
13824 lt_prog_compiler_static \
13825 lt_cv_prog_compiler_c_o \
13826 need_locks \
13827 DSYMUTIL \
13828 NMEDIT \
13829 LIPO \
13830 OTOOL \
13831 OTOOL64 \
13832 shrext_cmds \
13833 export_dynamic_flag_spec \
13834 whole_archive_flag_spec \
13835 compiler_needs_object \
13836 with_gnu_ld \
13837 allow_undefined_flag \
13838 no_undefined_flag \
13839 hardcode_libdir_flag_spec \
13840 hardcode_libdir_flag_spec_ld \
13841 hardcode_libdir_separator \
13842 fix_srcfile_path \
13843 exclude_expsyms \
13844 include_expsyms \
13845 file_list_spec \
13846 variables_saved_for_relink \
13847 libname_spec \
13848 library_names_spec \
13849 soname_spec \
13850 finish_eval \
13851 old_striplib \
13852 striplib; do
13853 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13854 *[\\\\\\\`\\"\\\$]*)
13855 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13856 ;;
13857 *)
13858 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13859 ;;
13860 esac
13861 done
13862
13863 # Double-quote double-evaled strings.
13864 for var in reload_cmds \
13865 old_postinstall_cmds \
13866 old_postuninstall_cmds \
13867 old_archive_cmds \
13868 extract_expsyms_cmds \
13869 old_archive_from_new_cmds \
13870 old_archive_from_expsyms_cmds \
13871 archive_cmds \
13872 archive_expsym_cmds \
13873 module_cmds \
13874 module_expsym_cmds \
13875 export_symbols_cmds \
13876 prelink_cmds \
13877 postinstall_cmds \
13878 postuninstall_cmds \
13879 finish_cmds \
13880 sys_lib_search_path_spec \
13881 sys_lib_dlsearch_path_spec; do
13882 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13883 *[\\\\\\\`\\"\\\$]*)
13884 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13885 ;;
13886 *)
13887 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13888 ;;
13889 esac
13890 done
13891
13892 # Fix-up fallback echo if it was mangled by the above quoting rules.
13893 case \$lt_ECHO in
13894 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13895 ;;
13896 esac
13897
13898 ac_aux_dir='$ac_aux_dir'
13899 xsi_shell='$xsi_shell'
13900 lt_shell_append='$lt_shell_append'
13901
13902 # See if we are running on zsh, and set the options which allow our
13903 # commands through without removal of \ escapes INIT.
13904 if test -n "\${ZSH_VERSION+set}" ; then
13905 setopt NO_GLOB_SUBST
13906 fi
13907
13908
13909 PACKAGE='$PACKAGE'
13910 VERSION='$VERSION'
13911 TIMESTAMP='$TIMESTAMP'
13912 RM='$RM'
13913 ofile='$ofile'
13914
13915
13916
13917
13918 _ACEOF
13919
13920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13921
13922 # Handling of arguments.
13923 for ac_config_target in $ac_config_targets
13924 do
13925 case $ac_config_target in
13926 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13927 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13928 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13929 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13930 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13931 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13932
13933 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13934 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13935 { (exit 1); exit 1; }; };;
13936 esac
13937 done
13938
13939
13940 # If the user did not use the arguments to specify the items to instantiate,
13941 # then the envvar interface is used. Set only those that are not.
13942 # We use the long form for the default assignment because of an extremely
13943 # bizarre bug on SunOS 4.1.3.
13944 if $ac_need_defaults; then
13945 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13946 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13947 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13948 fi
13949
13950 # Have a temporary directory for convenience. Make it in the build tree
13951 # simply because there is no reason against having it here, and in addition,
13952 # creating and moving files from /tmp can sometimes cause problems.
13953 # Hook for its removal unless debugging.
13954 # Note that there is a small window in which the directory will not be cleaned:
13955 # after its creation but before its name has been assigned to `$tmp'.
13956 $debug ||
13957 {
13958 tmp=
13959 trap 'exit_status=$?
13960 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13961 ' 0
13962 trap '{ (exit 1); exit 1; }' 1 2 13 15
13963 }
13964 # Create a (secure) tmp directory for tmp files.
13965
13966 {
13967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13968 test -n "$tmp" && test -d "$tmp"
13969 } ||
13970 {
13971 tmp=./conf$$-$RANDOM
13972 (umask 077 && mkdir "$tmp")
13973 } ||
13974 {
13975 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13976 { (exit 1); exit 1; }
13977 }
13978
13979 # Set up the scripts for CONFIG_FILES section.
13980 # No need to generate them if there are no CONFIG_FILES.
13981 # This happens for instance with `./config.status config.h'.
13982 if test -n "$CONFIG_FILES"; then
13983
13984
13985 ac_cr='
'
13987 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13988 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13989 ac_cs_awk_cr='\\r'
13990 else
13991 ac_cs_awk_cr=$ac_cr
13992 fi
13993
13994 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13995 _ACEOF
13996
13997
13998 {
13999 echo "cat >conf$$subs.awk <<_ACEOF" &&
14000 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14001 echo "_ACEOF"
14002 } >conf$$subs.sh ||
14003 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14004 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14005 { (exit 1); exit 1; }; }
14006 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14007 ac_delim='%!_!# '
14008 for ac_last_try in false false false false false :; do
14009 . ./conf$$subs.sh ||
14010 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14011 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14012 { (exit 1); exit 1; }; }
14013
14014 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14015 if test $ac_delim_n = $ac_delim_num; then
14016 break
14017 elif $ac_last_try; then
14018 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14019 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14020 { (exit 1); exit 1; }; }
14021 else
14022 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14023 fi
14024 done
14025 rm -f conf$$subs.sh
14026
14027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14028 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14029 _ACEOF
14030 sed -n '
14031 h
14032 s/^/S["/; s/!.*/"]=/
14033 p
14034 g
14035 s/^[^!]*!//
14036 :repl
14037 t repl
14038 s/'"$ac_delim"'$//
14039 t delim
14040 :nl
14041 h
14042 s/\(.\{148\}\).*/\1/
14043 t more1
14044 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14045 p
14046 n
14047 b repl
14048 :more1
14049 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14050 p
14051 g
14052 s/.\{148\}//
14053 t nl
14054 :delim
14055 h
14056 s/\(.\{148\}\).*/\1/
14057 t more2
14058 s/["\\]/\\&/g; s/^/"/; s/$/"/
14059 p
14060 b
14061 :more2
14062 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14063 p
14064 g
14065 s/.\{148\}//
14066 t delim
14067 ' <conf$$subs.awk | sed '
14068 /^[^""]/{
14069 N
14070 s/\n//
14071 }
14072 ' >>$CONFIG_STATUS || ac_write_fail=1
14073 rm -f conf$$subs.awk
14074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14075 _ACAWK
14076 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14077 for (key in S) S_is_set[key] = 1
14078 FS = ""
14079
14080 }
14081 {
14082 line = $ 0
14083 nfields = split(line, field, "@")
14084 substed = 0
14085 len = length(field[1])
14086 for (i = 2; i < nfields; i++) {
14087 key = field[i]
14088 keylen = length(key)
14089 if (S_is_set[key]) {
14090 value = S[key]
14091 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14092 len += length(value) + length(field[++i])
14093 substed = 1
14094 } else
14095 len += 1 + keylen
14096 }
14097
14098 print line
14099 }
14100
14101 _ACAWK
14102 _ACEOF
14103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14104 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14105 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14106 else
14107 cat
14108 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14109 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14110 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14111 { (exit 1); exit 1; }; }
14112 _ACEOF
14113
14114 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14115 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14116 # trailing colons and then remove the whole line if VPATH becomes empty
14117 # (actually we leave an empty line to preserve line numbers).
14118 if test "x$srcdir" = x.; then
14119 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14120 s/:*\$(srcdir):*/:/
14121 s/:*\${srcdir}:*/:/
14122 s/:*@srcdir@:*/:/
14123 s/^\([^=]*=[ ]*\):*/\1/
14124 s/:*$//
14125 s/^[^=]*=[ ]*$//
14126 }'
14127 fi
14128
14129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14130 fi # test -n "$CONFIG_FILES"
14131
14132 # Set up the scripts for CONFIG_HEADERS section.
14133 # No need to generate them if there are no CONFIG_HEADERS.
14134 # This happens for instance with `./config.status Makefile'.
14135 if test -n "$CONFIG_HEADERS"; then
14136 cat >"$tmp/defines.awk" <<\_ACAWK ||
14137 BEGIN {
14138 _ACEOF
14139
14140 # Transform confdefs.h into an awk script `defines.awk', embedded as
14141 # here-document in config.status, that substitutes the proper values into
14142 # config.h.in to produce config.h.
14143
14144 # Create a delimiter string that does not exist in confdefs.h, to ease
14145 # handling of long lines.
14146 ac_delim='%!_!# '
14147 for ac_last_try in false false :; do
14148 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14149 if test -z "$ac_t"; then
14150 break
14151 elif $ac_last_try; then
14152 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14153 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14154 { (exit 1); exit 1; }; }
14155 else
14156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14157 fi
14158 done
14159
14160 # For the awk script, D is an array of macro values keyed by name,
14161 # likewise P contains macro parameters if any. Preserve backslash
14162 # newline sequences.
14163
14164 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14165 sed -n '
14166 s/.\{148\}/&'"$ac_delim"'/g
14167 t rset
14168 :rset
14169 s/^[ ]*#[ ]*define[ ][ ]*/ /
14170 t def
14171 d
14172 :def
14173 s/\\$//
14174 t bsnl
14175 s/["\\]/\\&/g
14176 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14177 D["\1"]=" \3"/p
14178 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14179 d
14180 :bsnl
14181 s/["\\]/\\&/g
14182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14183 D["\1"]=" \3\\\\\\n"\\/p
14184 t cont
14185 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14186 t cont
14187 d
14188 :cont
14189 n
14190 s/.\{148\}/&'"$ac_delim"'/g
14191 t clear
14192 :clear
14193 s/\\$//
14194 t bsnlc
14195 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14196 d
14197 :bsnlc
14198 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14199 b cont
14200 ' <confdefs.h | sed '
14201 s/'"$ac_delim"'/"\\\
14202 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14203
14204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14205 for (key in D) D_is_set[key] = 1
14206 FS = ""
14207 }
14208 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14209 line = \$ 0
14210 split(line, arg, " ")
14211 if (arg[1] == "#") {
14212 defundef = arg[2]
14213 mac1 = arg[3]
14214 } else {
14215 defundef = substr(arg[1], 2)
14216 mac1 = arg[2]
14217 }
14218 split(mac1, mac2, "(") #)
14219 macro = mac2[1]
14220 prefix = substr(line, 1, index(line, defundef) - 1)
14221 if (D_is_set[macro]) {
14222 # Preserve the white space surrounding the "#".
14223 print prefix "define", macro P[macro] D[macro]
14224 next
14225 } else {
14226 # Replace #undef with comments. This is necessary, for example,
14227 # in the case of _POSIX_SOURCE, which is predefined and required
14228 # on some systems where configure will not decide to define it.
14229 if (defundef == "undef") {
14230 print "/*", prefix defundef, macro, "*/"
14231 next
14232 }
14233 }
14234 }
14235 { print }
14236 _ACAWK
14237 _ACEOF
14238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14239 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14240 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14241 { (exit 1); exit 1; }; }
14242 fi # test -n "$CONFIG_HEADERS"
14243
14244
14245 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14246 shift
14247 for ac_tag
14248 do
14249 case $ac_tag in
14250 :[FHLC]) ac_mode=$ac_tag; continue;;
14251 esac
14252 case $ac_mode$ac_tag in
14253 :[FHL]*:*);;
14254 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14255 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14256 { (exit 1); exit 1; }; };;
14257 :[FH]-) ac_tag=-:-;;
14258 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14259 esac
14260 ac_save_IFS=$IFS
14261 IFS=:
14262 set x $ac_tag
14263 IFS=$ac_save_IFS
14264 shift
14265 ac_file=$1
14266 shift
14267
14268 case $ac_mode in
14269 :L) ac_source=$1;;
14270 :[FH])
14271 ac_file_inputs=
14272 for ac_f
14273 do
14274 case $ac_f in
14275 -) ac_f="$tmp/stdin";;
14276 *) # Look for the file first in the build tree, then in the source tree
14277 # (if the path is not absolute). The absolute path cannot be DOS-style,
14278 # because $ac_f cannot contain `:'.
14279 test -f "$ac_f" ||
14280 case $ac_f in
14281 [\\/$]*) false;;
14282 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14283 esac ||
14284 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14285 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14286 { (exit 1); exit 1; }; };;
14287 esac
14288 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14289 ac_file_inputs="$ac_file_inputs '$ac_f'"
14290 done
14291
14292 # Let's still pretend it is `configure' which instantiates (i.e., don't
14293 # use $as_me), people would be surprised to read:
14294 # /* config.h. Generated by config.status. */
14295 configure_input='Generated from '`
14296 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14297 `' by configure.'
14298 if test x"$ac_file" != x-; then
14299 configure_input="$ac_file. $configure_input"
14300 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14301 $as_echo "$as_me: creating $ac_file" >&6;}
14302 fi
14303 # Neutralize special characters interpreted by sed in replacement strings.
14304 case $configure_input in #(
14305 *\&* | *\|* | *\\* )
14306 ac_sed_conf_input=`$as_echo "$configure_input" |
14307 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14308 *) ac_sed_conf_input=$configure_input;;
14309 esac
14310
14311 case $ac_tag in
14312 *:-:* | *:-) cat >"$tmp/stdin" \
14313 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14314 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14315 { (exit 1); exit 1; }; } ;;
14316 esac
14317 ;;
14318 esac
14319
14320 ac_dir=`$as_dirname -- "$ac_file" ||
14321 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14322 X"$ac_file" : 'X\(//\)[^/]' \| \
14323 X"$ac_file" : 'X\(//\)$' \| \
14324 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14325 $as_echo X"$ac_file" |
14326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14327 s//\1/
14328 q
14329 }
14330 /^X\(\/\/\)[^/].*/{
14331 s//\1/
14332 q
14333 }
14334 /^X\(\/\/\)$/{
14335 s//\1/
14336 q
14337 }
14338 /^X\(\/\).*/{
14339 s//\1/
14340 q
14341 }
14342 s/.*/./; q'`
14343 { as_dir="$ac_dir"
14344 case $as_dir in #(
14345 -*) as_dir=./$as_dir;;
14346 esac
14347 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14348 as_dirs=
14349 while :; do
14350 case $as_dir in #(
14351 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14352 *) as_qdir=$as_dir;;
14353 esac
14354 as_dirs="'$as_qdir' $as_dirs"
14355 as_dir=`$as_dirname -- "$as_dir" ||
14356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14357 X"$as_dir" : 'X\(//\)[^/]' \| \
14358 X"$as_dir" : 'X\(//\)$' \| \
14359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14360 $as_echo X"$as_dir" |
14361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14362 s//\1/
14363 q
14364 }
14365 /^X\(\/\/\)[^/].*/{
14366 s//\1/
14367 q
14368 }
14369 /^X\(\/\/\)$/{
14370 s//\1/
14371 q
14372 }
14373 /^X\(\/\).*/{
14374 s//\1/
14375 q
14376 }
14377 s/.*/./; q'`
14378 test -d "$as_dir" && break
14379 done
14380 test -z "$as_dirs" || eval "mkdir $as_dirs"
14381 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14382 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14383 { (exit 1); exit 1; }; }; }
14384 ac_builddir=.
14385
14386 case "$ac_dir" in
14387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14388 *)
14389 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14390 # A ".." for each directory in $ac_dir_suffix.
14391 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14392 case $ac_top_builddir_sub in
14393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14395 esac ;;
14396 esac
14397 ac_abs_top_builddir=$ac_pwd
14398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14399 # for backward compatibility:
14400 ac_top_builddir=$ac_top_build_prefix
14401
14402 case $srcdir in
14403 .) # We are building in place.
14404 ac_srcdir=.
14405 ac_top_srcdir=$ac_top_builddir_sub
14406 ac_abs_top_srcdir=$ac_pwd ;;
14407 [\\/]* | ?:[\\/]* ) # Absolute name.
14408 ac_srcdir=$srcdir$ac_dir_suffix;
14409 ac_top_srcdir=$srcdir
14410 ac_abs_top_srcdir=$srcdir ;;
14411 *) # Relative name.
14412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14413 ac_top_srcdir=$ac_top_build_prefix$srcdir
14414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14415 esac
14416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14417
14418
14419 case $ac_mode in
14420 :F)
14421 #
14422 # CONFIG_FILE
14423 #
14424
14425 case $INSTALL in
14426 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14427 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14428 esac
14429 ac_MKDIR_P=$MKDIR_P
14430 case $MKDIR_P in
14431 [\\/$]* | ?:[\\/]* ) ;;
14432 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14433 esac
14434 _ACEOF
14435
14436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14437 # If the template does not know about datarootdir, expand it.
14438 # FIXME: This hack should be removed a few years after 2.60.
14439 ac_datarootdir_hack=; ac_datarootdir_seen=
14440
14441 ac_sed_dataroot='
14442 /datarootdir/ {
14443 p
14444 q
14445 }
14446 /@datadir@/p
14447 /@docdir@/p
14448 /@infodir@/p
14449 /@localedir@/p
14450 /@mandir@/p
14451 '
14452 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14453 *datarootdir*) ac_datarootdir_seen=yes;;
14454 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14455 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14456 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14457 _ACEOF
14458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14459 ac_datarootdir_hack='
14460 s&@datadir@&$datadir&g
14461 s&@docdir@&$docdir&g
14462 s&@infodir@&$infodir&g
14463 s&@localedir@&$localedir&g
14464 s&@mandir@&$mandir&g
14465 s&\\\${datarootdir}&$datarootdir&g' ;;
14466 esac
14467 _ACEOF
14468
14469 # Neutralize VPATH when `$srcdir' = `.'.
14470 # Shell code in configure.ac might set extrasub.
14471 # FIXME: do we really want to maintain this feature?
14472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14473 ac_sed_extra="$ac_vpsub
14474 $extrasub
14475 _ACEOF
14476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14477 :t
14478 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14479 s|@configure_input@|$ac_sed_conf_input|;t t
14480 s&@top_builddir@&$ac_top_builddir_sub&;t t
14481 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14482 s&@srcdir@&$ac_srcdir&;t t
14483 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14484 s&@top_srcdir@&$ac_top_srcdir&;t t
14485 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14486 s&@builddir@&$ac_builddir&;t t
14487 s&@abs_builddir@&$ac_abs_builddir&;t t
14488 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14489 s&@INSTALL@&$ac_INSTALL&;t t
14490 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14491 $ac_datarootdir_hack
14492 "
14493 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14494 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14495 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14496 { (exit 1); exit 1; }; }
14497
14498 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14499 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14500 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14501 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14502 which seems to be undefined. Please make sure it is defined." >&5
14503 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14504 which seems to be undefined. Please make sure it is defined." >&2;}
14505
14506 rm -f "$tmp/stdin"
14507 case $ac_file in
14508 -) cat "$tmp/out" && rm -f "$tmp/out";;
14509 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14510 esac \
14511 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14512 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14513 { (exit 1); exit 1; }; }
14514 ;;
14515 :H)
14516 #
14517 # CONFIG_HEADER
14518 #
14519 if test x"$ac_file" != x-; then
14520 {
14521 $as_echo "/* $configure_input */" \
14522 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14523 } >"$tmp/config.h" \
14524 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14525 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14526 { (exit 1); exit 1; }; }
14527 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14528 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14529 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14530 else
14531 rm -f "$ac_file"
14532 mv "$tmp/config.h" "$ac_file" \
14533 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14534 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14535 { (exit 1); exit 1; }; }
14536 fi
14537 else
14538 $as_echo "/* $configure_input */" \
14539 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14540 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14541 $as_echo "$as_me: error: could not create -" >&2;}
14542 { (exit 1); exit 1; }; }
14543 fi
14544 # Compute "$ac_file"'s index in $config_headers.
14545 _am_arg="$ac_file"
14546 _am_stamp_count=1
14547 for _am_header in $config_headers :; do
14548 case $_am_header in
14549 $_am_arg | $_am_arg:* )
14550 break ;;
14551 * )
14552 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14553 esac
14554 done
14555 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14556 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14557 X"$_am_arg" : 'X\(//\)[^/]' \| \
14558 X"$_am_arg" : 'X\(//\)$' \| \
14559 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14560 $as_echo X"$_am_arg" |
14561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14562 s//\1/
14563 q
14564 }
14565 /^X\(\/\/\)[^/].*/{
14566 s//\1/
14567 q
14568 }
14569 /^X\(\/\/\)$/{
14570 s//\1/
14571 q
14572 }
14573 /^X\(\/\).*/{
14574 s//\1/
14575 q
14576 }
14577 s/.*/./; q'`/stamp-h$_am_stamp_count
14578 ;;
14579
14580 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14581 $as_echo "$as_me: executing $ac_file commands" >&6;}
14582 ;;
14583 esac
14584
14585
14586 case $ac_file$ac_mode in
14587 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14588 # are listed without --file. Let's play safe and only enable the eval
14589 # if we detect the quoting.
14590 case $CONFIG_FILES in
14591 *\'*) eval set x "$CONFIG_FILES" ;;
14592 *) set x $CONFIG_FILES ;;
14593 esac
14594 shift
14595 for mf
14596 do
14597 # Strip MF so we end up with the name of the file.
14598 mf=`echo "$mf" | sed -e 's/:.*$//'`
14599 # Check whether this is an Automake generated Makefile or not.
14600 # We used to match only the files named `Makefile.in', but
14601 # some people rename them; so instead we look at the file content.
14602 # Grep'ing the first line is not enough: some people post-process
14603 # each Makefile.in and add a new line on top of each file to say so.
14604 # Grep'ing the whole file is not good either: AIX grep has a line
14605 # limit of 2048, but all sed's we know have understand at least 4000.
14606 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14607 dirpart=`$as_dirname -- "$mf" ||
14608 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14609 X"$mf" : 'X\(//\)[^/]' \| \
14610 X"$mf" : 'X\(//\)$' \| \
14611 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14612 $as_echo X"$mf" |
14613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14614 s//\1/
14615 q
14616 }
14617 /^X\(\/\/\)[^/].*/{
14618 s//\1/
14619 q
14620 }
14621 /^X\(\/\/\)$/{
14622 s//\1/
14623 q
14624 }
14625 /^X\(\/\).*/{
14626 s//\1/
14627 q
14628 }
14629 s/.*/./; q'`
14630 else
14631 continue
14632 fi
14633 # Extract the definition of DEPDIR, am__include, and am__quote
14634 # from the Makefile without running `make'.
14635 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14636 test -z "$DEPDIR" && continue
14637 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14638 test -z "am__include" && continue
14639 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14640 # When using ansi2knr, U may be empty or an underscore; expand it
14641 U=`sed -n 's/^U = //p' < "$mf"`
14642 # Find all dependency output files, they are included files with
14643 # $(DEPDIR) in their names. We invoke sed twice because it is the
14644 # simplest approach to changing $(DEPDIR) to its actual value in the
14645 # expansion.
14646 for file in `sed -n "
14647 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14648 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14649 # Make sure the directory exists.
14650 test -f "$dirpart/$file" && continue
14651 fdir=`$as_dirname -- "$file" ||
14652 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14653 X"$file" : 'X\(//\)[^/]' \| \
14654 X"$file" : 'X\(//\)$' \| \
14655 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14656 $as_echo X"$file" |
14657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14658 s//\1/
14659 q
14660 }
14661 /^X\(\/\/\)[^/].*/{
14662 s//\1/
14663 q
14664 }
14665 /^X\(\/\/\)$/{
14666 s//\1/
14667 q
14668 }
14669 /^X\(\/\).*/{
14670 s//\1/
14671 q
14672 }
14673 s/.*/./; q'`
14674 { as_dir=$dirpart/$fdir
14675 case $as_dir in #(
14676 -*) as_dir=./$as_dir;;
14677 esac
14678 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14679 as_dirs=
14680 while :; do
14681 case $as_dir in #(
14682 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14683 *) as_qdir=$as_dir;;
14684 esac
14685 as_dirs="'$as_qdir' $as_dirs"
14686 as_dir=`$as_dirname -- "$as_dir" ||
14687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14688 X"$as_dir" : 'X\(//\)[^/]' \| \
14689 X"$as_dir" : 'X\(//\)$' \| \
14690 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14691 $as_echo X"$as_dir" |
14692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14693 s//\1/
14694 q
14695 }
14696 /^X\(\/\/\)[^/].*/{
14697 s//\1/
14698 q
14699 }
14700 /^X\(\/\/\)$/{
14701 s//\1/
14702 q
14703 }
14704 /^X\(\/\).*/{
14705 s//\1/
14706 q
14707 }
14708 s/.*/./; q'`
14709 test -d "$as_dir" && break
14710 done
14711 test -z "$as_dirs" || eval "mkdir $as_dirs"
14712 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14713 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14714 { (exit 1); exit 1; }; }; }
14715 # echo "creating $dirpart/$file"
14716 echo '# dummy' > "$dirpart/$file"
14717 done
14718 done
14719 ;;
14720 "libtool":C)
14721
14722 # See if we are running on zsh, and set the options which allow our
14723 # commands through without removal of \ escapes.
14724 if test -n "${ZSH_VERSION+set}" ; then
14725 setopt NO_GLOB_SUBST
14726 fi
14727
14728 cfgfile="${ofile}T"
14729 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14730 $RM "$cfgfile"
14731
14732 cat <<_LT_EOF >> "$cfgfile"
14733 #! $SHELL
14734
14735 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14736 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14737 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14738 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14739 #
14740 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14741 # 2006, 2007, 2008 Free Software Foundation, Inc.
14742 # Written by Gordon Matzigkeit, 1996
14743 #
14744 # This file is part of GNU Libtool.
14745 #
14746 # GNU Libtool is free software; you can redistribute it and/or
14747 # modify it under the terms of the GNU General Public License as
14748 # published by the Free Software Foundation; either version 2 of
14749 # the License, or (at your option) any later version.
14750 #
14751 # As a special exception to the GNU General Public License,
14752 # if you distribute this file as part of a program or library that
14753 # is built using GNU Libtool, you may include this file under the
14754 # same distribution terms that you use for the rest of that program.
14755 #
14756 # GNU Libtool is distributed in the hope that it will be useful,
14757 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14758 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14759 # GNU General Public License for more details.
14760 #
14761 # You should have received a copy of the GNU General Public License
14762 # along with GNU Libtool; see the file COPYING. If not, a copy
14763 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14764 # obtained by writing to the Free Software Foundation, Inc.,
14765 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14766
14767
14768 # The names of the tagged configurations supported by this script.
14769 available_tags=""
14770
14771 # ### BEGIN LIBTOOL CONFIG
14772
14773 # Whether or not to build static libraries.
14774 build_old_libs=$enable_static
14775
14776 # Which release of libtool.m4 was used?
14777 macro_version=$macro_version
14778 macro_revision=$macro_revision
14779
14780 # Whether or not to build shared libraries.
14781 build_libtool_libs=$enable_shared
14782
14783 # What type of objects to build.
14784 pic_mode=$pic_mode
14785
14786 # Whether or not to optimize for fast installation.
14787 fast_install=$enable_fast_install
14788
14789 # The host system.
14790 host_alias=$host_alias
14791 host=$host
14792 host_os=$host_os
14793
14794 # The build system.
14795 build_alias=$build_alias
14796 build=$build
14797 build_os=$build_os
14798
14799 # A sed program that does not truncate output.
14800 SED=$lt_SED
14801
14802 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14803 Xsed="\$SED -e 1s/^X//"
14804
14805 # A grep program that handles long lines.
14806 GREP=$lt_GREP
14807
14808 # An ERE matcher.
14809 EGREP=$lt_EGREP
14810
14811 # A literal string matcher.
14812 FGREP=$lt_FGREP
14813
14814 # A BSD- or MS-compatible name lister.
14815 NM=$lt_NM
14816
14817 # Whether we need soft or hard links.
14818 LN_S=$lt_LN_S
14819
14820 # What is the maximum length of a command?
14821 max_cmd_len=$max_cmd_len
14822
14823 # Object file suffix (normally "o").
14824 objext=$ac_objext
14825
14826 # Executable file suffix (normally "").
14827 exeext=$exeext
14828
14829 # whether the shell understands "unset".
14830 lt_unset=$lt_unset
14831
14832 # turn spaces into newlines.
14833 SP2NL=$lt_lt_SP2NL
14834
14835 # turn newlines into spaces.
14836 NL2SP=$lt_lt_NL2SP
14837
14838 # How to create reloadable object files.
14839 reload_flag=$lt_reload_flag
14840 reload_cmds=$lt_reload_cmds
14841
14842 # An object symbol dumper.
14843 OBJDUMP=$lt_OBJDUMP
14844
14845 # Method to check whether dependent libraries are shared objects.
14846 deplibs_check_method=$lt_deplibs_check_method
14847
14848 # Command to use when deplibs_check_method == "file_magic".
14849 file_magic_cmd=$lt_file_magic_cmd
14850
14851 # The archiver.
14852 AR=$lt_AR
14853 AR_FLAGS=$lt_AR_FLAGS
14854
14855 # A symbol stripping program.
14856 STRIP=$lt_STRIP
14857
14858 # Commands used to install an old-style archive.
14859 RANLIB=$lt_RANLIB
14860 old_postinstall_cmds=$lt_old_postinstall_cmds
14861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14862
14863 # A C compiler.
14864 LTCC=$lt_CC
14865
14866 # LTCC compiler flags.
14867 LTCFLAGS=$lt_CFLAGS
14868
14869 # Take the output of nm and produce a listing of raw symbols and C names.
14870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14871
14872 # Transform the output of nm in a proper C declaration.
14873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14874
14875 # Transform the output of nm in a C name address pair.
14876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14877
14878 # Transform the output of nm in a C name address pair when lib prefix is needed.
14879 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14880
14881 # The name of the directory that contains temporary libtool files.
14882 objdir=$objdir
14883
14884 # Shell to use when invoking shell scripts.
14885 SHELL=$lt_SHELL
14886
14887 # An echo program that does not interpret backslashes.
14888 ECHO=$lt_ECHO
14889
14890 # Used to examine libraries when file_magic_cmd begins with "file".
14891 MAGIC_CMD=$MAGIC_CMD
14892
14893 # Must we lock files when doing compilation?
14894 need_locks=$lt_need_locks
14895
14896 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14897 DSYMUTIL=$lt_DSYMUTIL
14898
14899 # Tool to change global to local symbols on Mac OS X.
14900 NMEDIT=$lt_NMEDIT
14901
14902 # Tool to manipulate fat objects and archives on Mac OS X.
14903 LIPO=$lt_LIPO
14904
14905 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14906 OTOOL=$lt_OTOOL
14907
14908 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14909 OTOOL64=$lt_OTOOL64
14910
14911 # Old archive suffix (normally "a").
14912 libext=$libext
14913
14914 # Shared library suffix (normally ".so").
14915 shrext_cmds=$lt_shrext_cmds
14916
14917 # The commands to extract the exported symbol list from a shared archive.
14918 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14919
14920 # Variables whose values should be saved in libtool wrapper scripts and
14921 # restored at link time.
14922 variables_saved_for_relink=$lt_variables_saved_for_relink
14923
14924 # Do we need the "lib" prefix for modules?
14925 need_lib_prefix=$need_lib_prefix
14926
14927 # Do we need a version for libraries?
14928 need_version=$need_version
14929
14930 # Library versioning type.
14931 version_type=$version_type
14932
14933 # Shared library runtime path variable.
14934 runpath_var=$runpath_var
14935
14936 # Shared library path variable.
14937 shlibpath_var=$shlibpath_var
14938
14939 # Is shlibpath searched before the hard-coded library search path?
14940 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14941
14942 # Format of library name prefix.
14943 libname_spec=$lt_libname_spec
14944
14945 # List of archive names. First name is the real one, the rest are links.
14946 # The last name is the one that the linker finds with -lNAME
14947 library_names_spec=$lt_library_names_spec
14948
14949 # The coded name of the library, if different from the real name.
14950 soname_spec=$lt_soname_spec
14951
14952 # Command to use after installation of a shared archive.
14953 postinstall_cmds=$lt_postinstall_cmds
14954
14955 # Command to use after uninstallation of a shared archive.
14956 postuninstall_cmds=$lt_postuninstall_cmds
14957
14958 # Commands used to finish a libtool library installation in a directory.
14959 finish_cmds=$lt_finish_cmds
14960
14961 # As "finish_cmds", except a single script fragment to be evaled but
14962 # not shown.
14963 finish_eval=$lt_finish_eval
14964
14965 # Whether we should hardcode library paths into libraries.
14966 hardcode_into_libs=$hardcode_into_libs
14967
14968 # Compile-time system search path for libraries.
14969 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14970
14971 # Run-time system search path for libraries.
14972 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14973
14974 # Whether dlopen is supported.
14975 dlopen_support=$enable_dlopen
14976
14977 # Whether dlopen of programs is supported.
14978 dlopen_self=$enable_dlopen_self
14979
14980 # Whether dlopen of statically linked programs is supported.
14981 dlopen_self_static=$enable_dlopen_self_static
14982
14983 # Commands to strip libraries.
14984 old_striplib=$lt_old_striplib
14985 striplib=$lt_striplib
14986
14987
14988 # The linker used to build libraries.
14989 LD=$lt_LD
14990
14991 # Commands used to build an old-style archive.
14992 old_archive_cmds=$lt_old_archive_cmds
14993
14994 # A language specific compiler.
14995 CC=$lt_compiler
14996
14997 # Is the compiler the GNU compiler?
14998 with_gcc=$GCC
14999
15000 # Compiler flag to turn off builtin functions.
15001 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15002
15003 # How to pass a linker flag through the compiler.
15004 wl=$lt_lt_prog_compiler_wl
15005
15006 # Additional compiler flags for building library objects.
15007 pic_flag=$lt_lt_prog_compiler_pic
15008
15009 # Compiler flag to prevent dynamic linking.
15010 link_static_flag=$lt_lt_prog_compiler_static
15011
15012 # Does compiler simultaneously support -c and -o options?
15013 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15014
15015 # Whether or not to add -lc for building shared libraries.
15016 build_libtool_need_lc=$archive_cmds_need_lc
15017
15018 # Whether or not to disallow shared libs when runtime libs are static.
15019 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15020
15021 # Compiler flag to allow reflexive dlopens.
15022 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15023
15024 # Compiler flag to generate shared objects directly from archives.
15025 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15026
15027 # Whether the compiler copes with passing no objects directly.
15028 compiler_needs_object=$lt_compiler_needs_object
15029
15030 # Create an old-style archive from a shared archive.
15031 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15032
15033 # Create a temporary old-style archive to link instead of a shared archive.
15034 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15035
15036 # Commands used to build a shared archive.
15037 archive_cmds=$lt_archive_cmds
15038 archive_expsym_cmds=$lt_archive_expsym_cmds
15039
15040 # Commands used to build a loadable module if different from building
15041 # a shared archive.
15042 module_cmds=$lt_module_cmds
15043 module_expsym_cmds=$lt_module_expsym_cmds
15044
15045 # Whether we are building with GNU ld or not.
15046 with_gnu_ld=$lt_with_gnu_ld
15047
15048 # Flag that allows shared libraries with undefined symbols to be built.
15049 allow_undefined_flag=$lt_allow_undefined_flag
15050
15051 # Flag that enforces no undefined symbols.
15052 no_undefined_flag=$lt_no_undefined_flag
15053
15054 # Flag to hardcode \$libdir into a binary during linking.
15055 # This must work even if \$libdir does not exist
15056 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15057
15058 # If ld is used when linking, flag to hardcode \$libdir into a binary
15059 # during linking. This must work even if \$libdir does not exist.
15060 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15061
15062 # Whether we need a single "-rpath" flag with a separated argument.
15063 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15064
15065 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15066 # DIR into the resulting binary.
15067 hardcode_direct=$hardcode_direct
15068
15069 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15070 # DIR into the resulting binary and the resulting library dependency is
15071 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15072 # library is relocated.
15073 hardcode_direct_absolute=$hardcode_direct_absolute
15074
15075 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15076 # into the resulting binary.
15077 hardcode_minus_L=$hardcode_minus_L
15078
15079 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15080 # into the resulting binary.
15081 hardcode_shlibpath_var=$hardcode_shlibpath_var
15082
15083 # Set to "yes" if building a shared library automatically hardcodes DIR
15084 # into the library and all subsequent libraries and executables linked
15085 # against it.
15086 hardcode_automatic=$hardcode_automatic
15087
15088 # Set to yes if linker adds runtime paths of dependent libraries
15089 # to runtime path list.
15090 inherit_rpath=$inherit_rpath
15091
15092 # Whether libtool must link a program against all its dependency libraries.
15093 link_all_deplibs=$link_all_deplibs
15094
15095 # Fix the shell variable \$srcfile for the compiler.
15096 fix_srcfile_path=$lt_fix_srcfile_path
15097
15098 # Set to "yes" if exported symbols are required.
15099 always_export_symbols=$always_export_symbols
15100
15101 # The commands to list exported symbols.
15102 export_symbols_cmds=$lt_export_symbols_cmds
15103
15104 # Symbols that should not be listed in the preloaded symbols.
15105 exclude_expsyms=$lt_exclude_expsyms
15106
15107 # Symbols that must always be exported.
15108 include_expsyms=$lt_include_expsyms
15109
15110 # Commands necessary for linking programs (against libraries) with templates.
15111 prelink_cmds=$lt_prelink_cmds
15112
15113 # Specify filename containing input files.
15114 file_list_spec=$lt_file_list_spec
15115
15116 # How to hardcode a shared library path into an executable.
15117 hardcode_action=$hardcode_action
15118
15119 # ### END LIBTOOL CONFIG
15120
15121 _LT_EOF
15122
15123 case $host_os in
15124 aix3*)
15125 cat <<\_LT_EOF >> "$cfgfile"
15126 # AIX sometimes has problems with the GCC collect2 program. For some
15127 # reason, if we set the COLLECT_NAMES environment variable, the problems
15128 # vanish in a puff of smoke.
15129 if test "X${COLLECT_NAMES+set}" != Xset; then
15130 COLLECT_NAMES=
15131 export COLLECT_NAMES
15132 fi
15133 _LT_EOF
15134 ;;
15135 esac
15136
15137
15138 ltmain="$ac_aux_dir/ltmain.sh"
15139
15140
15141 # We use sed instead of cat because bash on DJGPP gets confused if
15142 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15143 # text mode, it properly converts lines to CR/LF. This bash problem
15144 # is reportedly fixed, but why not run on old versions too?
15145 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15146 || (rm -f "$cfgfile"; exit 1)
15147
15148 case $xsi_shell in
15149 yes)
15150 cat << \_LT_EOF >> "$cfgfile"
15151
15152 # func_dirname file append nondir_replacement
15153 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15154 # otherwise set result to NONDIR_REPLACEMENT.
15155 func_dirname ()
15156 {
15157 case ${1} in
15158 */*) func_dirname_result="${1%/*}${2}" ;;
15159 * ) func_dirname_result="${3}" ;;
15160 esac
15161 }
15162
15163 # func_basename file
15164 func_basename ()
15165 {
15166 func_basename_result="${1##*/}"
15167 }
15168
15169 # func_dirname_and_basename file append nondir_replacement
15170 # perform func_basename and func_dirname in a single function
15171 # call:
15172 # dirname: Compute the dirname of FILE. If nonempty,
15173 # add APPEND to the result, otherwise set result
15174 # to NONDIR_REPLACEMENT.
15175 # value returned in "$func_dirname_result"
15176 # basename: Compute filename of FILE.
15177 # value retuned in "$func_basename_result"
15178 # Implementation must be kept synchronized with func_dirname
15179 # and func_basename. For efficiency, we do not delegate to
15180 # those functions but instead duplicate the functionality here.
15181 func_dirname_and_basename ()
15182 {
15183 case ${1} in
15184 */*) func_dirname_result="${1%/*}${2}" ;;
15185 * ) func_dirname_result="${3}" ;;
15186 esac
15187 func_basename_result="${1##*/}"
15188 }
15189
15190 # func_stripname prefix suffix name
15191 # strip PREFIX and SUFFIX off of NAME.
15192 # PREFIX and SUFFIX must not contain globbing or regex special
15193 # characters, hashes, percent signs, but SUFFIX may contain a leading
15194 # dot (in which case that matches only a dot).
15195 func_stripname ()
15196 {
15197 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15198 # positional parameters, so assign one to ordinary parameter first.
15199 func_stripname_result=${3}
15200 func_stripname_result=${func_stripname_result#"${1}"}
15201 func_stripname_result=${func_stripname_result%"${2}"}
15202 }
15203
15204 # func_opt_split
15205 func_opt_split ()
15206 {
15207 func_opt_split_opt=${1%%=*}
15208 func_opt_split_arg=${1#*=}
15209 }
15210
15211 # func_lo2o object
15212 func_lo2o ()
15213 {
15214 case ${1} in
15215 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15216 *) func_lo2o_result=${1} ;;
15217 esac
15218 }
15219
15220 # func_xform libobj-or-source
15221 func_xform ()
15222 {
15223 func_xform_result=${1%.*}.lo
15224 }
15225
15226 # func_arith arithmetic-term...
15227 func_arith ()
15228 {
15229 func_arith_result=$(( $* ))
15230 }
15231
15232 # func_len string
15233 # STRING may not start with a hyphen.
15234 func_len ()
15235 {
15236 func_len_result=${#1}
15237 }
15238
15239 _LT_EOF
15240 ;;
15241 *) # Bourne compatible functions.
15242 cat << \_LT_EOF >> "$cfgfile"
15243
15244 # func_dirname file append nondir_replacement
15245 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15246 # otherwise set result to NONDIR_REPLACEMENT.
15247 func_dirname ()
15248 {
15249 # Extract subdirectory from the argument.
15250 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15251 if test "X$func_dirname_result" = "X${1}"; then
15252 func_dirname_result="${3}"
15253 else
15254 func_dirname_result="$func_dirname_result${2}"
15255 fi
15256 }
15257
15258 # func_basename file
15259 func_basename ()
15260 {
15261 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15262 }
15263
15264
15265 # func_stripname prefix suffix name
15266 # strip PREFIX and SUFFIX off of NAME.
15267 # PREFIX and SUFFIX must not contain globbing or regex special
15268 # characters, hashes, percent signs, but SUFFIX may contain a leading
15269 # dot (in which case that matches only a dot).
15270 # func_strip_suffix prefix name
15271 func_stripname ()
15272 {
15273 case ${2} in
15274 .*) func_stripname_result=`$ECHO "X${3}" \
15275 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15276 *) func_stripname_result=`$ECHO "X${3}" \
15277 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15278 esac
15279 }
15280
15281 # sed scripts:
15282 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15283 my_sed_long_arg='1s/^-[^=]*=//'
15284
15285 # func_opt_split
15286 func_opt_split ()
15287 {
15288 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15289 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15290 }
15291
15292 # func_lo2o object
15293 func_lo2o ()
15294 {
15295 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15296 }
15297
15298 # func_xform libobj-or-source
15299 func_xform ()
15300 {
15301 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15302 }
15303
15304 # func_arith arithmetic-term...
15305 func_arith ()
15306 {
15307 func_arith_result=`expr "$@"`
15308 }
15309
15310 # func_len string
15311 # STRING may not start with a hyphen.
15312 func_len ()
15313 {
15314 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15315 }
15316
15317 _LT_EOF
15318 esac
15319
15320 case $lt_shell_append in
15321 yes)
15322 cat << \_LT_EOF >> "$cfgfile"
15323
15324 # func_append var value
15325 # Append VALUE to the end of shell variable VAR.
15326 func_append ()
15327 {
15328 eval "$1+=\$2"
15329 }
15330 _LT_EOF
15331 ;;
15332 *)
15333 cat << \_LT_EOF >> "$cfgfile"
15334
15335 # func_append var value
15336 # Append VALUE to the end of shell variable VAR.
15337 func_append ()
15338 {
15339 eval "$1=\$$1\$2"
15340 }
15341
15342 _LT_EOF
15343 ;;
15344 esac
15345
15346
15347 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15348 || (rm -f "$cfgfile"; exit 1)
15349
15350 mv -f "$cfgfile" "$ofile" ||
15351 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15352 chmod +x "$ofile"
15353
15354 ;;
15355
15356 esac
15357 done # for ac_tag
15358
15359
15360 { (exit 0); exit 0; }
15361 _ACEOF
15362 chmod +x $CONFIG_STATUS
15363 ac_clean_files=$ac_clean_files_save
15364
15365 test $ac_write_fail = 0 ||
15366 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15367 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15368 { (exit 1); exit 1; }; }
15369
15370
15371 # configure is writing to config.log, and then calls config.status.
15372 # config.status does its own redirection, appending to config.log.
15373 # Unfortunately, on DOS this fails, as config.log is still kept open
15374 # by configure, so config.status won't be able to write to it; its
15375 # output is simply discarded. So we exec the FD to /dev/null,
15376 # effectively closing config.log, so it can be properly (re)opened and
15377 # appended to by config.status. When coming back to configure, we
15378 # need to make the FD available again.
15379 if test "$no_create" != yes; then
15380 ac_cs_success=:
15381 ac_config_status_args=
15382 test "$silent" = yes &&
15383 ac_config_status_args="$ac_config_status_args --quiet"
15384 exec 5>/dev/null
15385 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15386 exec 5>>config.log
15387 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15388 # would make configure fail if this is the last instruction.
15389 $ac_cs_success || { (exit 1); exit 1; }
15390 fi
15391 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15392 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15393 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15394 fi
15395
15396