configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-video-vmware 11.0.3.
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-vmware'
747 PACKAGE_TARNAME='xf86-video-vmware'
748 PACKAGE_VERSION='11.0.3'
749 PACKAGE_STRING='xf86-video-vmware 11.0.3'
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 DRIVER_NAME
792 moduledir
793 XSERVER_LIBPCIACCESS_FALSE
794 XSERVER_LIBPCIACCESS_TRUE
795 PCIACCESS_LIBS
796 PCIACCESS_CFLAGS
797 X11_LIBS
798 X11_CFLAGS
799 LIBDRM_LIBS
800 LIBDRM_CFLAGS
801 XORG_LIBS
802 XORG_CFLAGS
803 BUILD_VMWARECTRL_FALSE
804 BUILD_VMWARECTRL_TRUE
805 OTOOL64
806 OTOOL
807 LIPO
808 NMEDIT
809 DSYMUTIL
810 lt_ECHO
811 RANLIB
812 AR
813 OBJDUMP
814 LN_S
815 NM
816 ac_ct_DUMPBIN
817 DUMPBIN
818 LD
819 FGREP
820 LIBTOOL
821 AM_DEFAULT_VERBOSITY
822 MAN_SUBSTS
823 XORG_MAN_PAGE
824 ADMIN_MAN_DIR
825 DRIVER_MAN_DIR
826 MISC_MAN_DIR
827 FILE_MAN_DIR
828 LIB_MAN_DIR
829 APP_MAN_DIR
830 ADMIN_MAN_SUFFIX
831 DRIVER_MAN_SUFFIX
832 MISC_MAN_SUFFIX
833 FILE_MAN_SUFFIX
834 LIB_MAN_SUFFIX
835 APP_MAN_SUFFIX
836 SED
837 host_os
838 host_vendor
839 host_cpu
840 host
841 build_os
842 build_vendor
843 build_cpu
844 build
845 INSTALL_CMD
846 PKG_CONFIG
847 CHANGELOG_CMD
848 CWARNFLAGS
849 EGREP
850 GREP
851 CPP
852 am__fastdepCC_FALSE
853 am__fastdepCC_TRUE
854 CCDEPMODE
855 AMDEPBACKSLASH
856 AMDEP_FALSE
857 AMDEP_TRUE
858 am__quote
859 am__include
860 DEPDIR
861 OBJEXT
862 EXEEXT
863 ac_ct_CC
864 CPPFLAGS
865 LDFLAGS
866 CFLAGS
867 CC
868 MAINT
869 MAINTAINER_MODE_FALSE
870 MAINTAINER_MODE_TRUE
871 am__untar
872 am__tar
873 AMTAR
874 am__leading_dot
875 SET_MAKE
876 AWK
877 mkdir_p
878 MKDIR_P
879 INSTALL_STRIP_PROGRAM
880 STRIP
881 install_sh
882 MAKEINFO
883 AUTOHEADER
884 AUTOMAKE
885 AUTOCONF
886 ACLOCAL
887 VERSION
888 PACKAGE
889 CYGPATH_W
890 am__isrc
891 INSTALL_DATA
892 INSTALL_SCRIPT
893 INSTALL_PROGRAM
894 target_alias
895 host_alias
896 build_alias
897 LIBS
898 ECHO_T
899 ECHO_N
900 ECHO_C
901 DEFS
902 mandir
903 localedir
904 libdir
905 psdir
906 pdfdir
907 dvidir
908 htmldir
909 infodir
910 docdir
911 oldincludedir
912 includedir
913 localstatedir
914 sharedstatedir
915 sysconfdir
916 datadir
917 datarootdir
918 libexecdir
919 sbindir
920 bindir
921 program_transform_name
922 prefix
923 exec_prefix
924 PACKAGE_BUGREPORT
925 PACKAGE_STRING
926 PACKAGE_VERSION
927 PACKAGE_TARNAME
928 PACKAGE_NAME
929 PATH_SEPARATOR
930 SHELL'
931 ac_subst_files=''
932 ac_user_opts='
933 enable_option_checking
934 enable_maintainer_mode
935 enable_dependency_tracking
936 enable_strict_compilation
937 enable_static
938 enable_shared
939 with_pic
940 enable_fast_install
941 with_gnu_ld
942 enable_libtool_lock
943 with_xorg_module_dir
944 enable_vmwarectrl_client
945 '
946 ac_precious_vars='build_alias
947 host_alias
948 target_alias
949 CC
950 CFLAGS
951 LDFLAGS
952 LIBS
953 CPPFLAGS
954 CPP
955 PKG_CONFIG
956 XORG_CFLAGS
957 XORG_LIBS
958 LIBDRM_CFLAGS
959 LIBDRM_LIBS
960 X11_CFLAGS
961 X11_LIBS
962 PCIACCESS_CFLAGS
963 PCIACCESS_LIBS'
964
965
966 # Initialize some variables set by options.
967 ac_init_help=
968 ac_init_version=false
969 ac_unrecognized_opts=
970 ac_unrecognized_sep=
971 # The variables have the same names as the options, with
972 # dashes changed to underlines.
973 cache_file=/dev/null
974 exec_prefix=NONE
975 no_create=
976 no_recursion=
977 prefix=NONE
978 program_prefix=NONE
979 program_suffix=NONE
980 program_transform_name=s,x,x,
981 silent=
982 site=
983 srcdir=
984 verbose=
985 x_includes=NONE
986 x_libraries=NONE
987
988 # Installation directory options.
989 # These are left unexpanded so users can "make install exec_prefix=/foo"
990 # and all the variables that are supposed to be based on exec_prefix
991 # by default will actually change.
992 # Use braces instead of parens because sh, perl, etc. also accept them.
993 # (The list follows the same order as the GNU Coding Standards.)
994 bindir='${exec_prefix}/bin'
995 sbindir='${exec_prefix}/sbin'
996 libexecdir='${exec_prefix}/libexec'
997 datarootdir='${prefix}/share'
998 datadir='${datarootdir}'
999 sysconfdir='${prefix}/etc'
1000 sharedstatedir='${prefix}/com'
1001 localstatedir='${prefix}/var'
1002 includedir='${prefix}/include'
1003 oldincludedir='/usr/include'
1004 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1005 infodir='${datarootdir}/info'
1006 htmldir='${docdir}'
1007 dvidir='${docdir}'
1008 pdfdir='${docdir}'
1009 psdir='${docdir}'
1010 libdir='${exec_prefix}/lib'
1011 localedir='${datarootdir}/locale'
1012 mandir='${datarootdir}/man'
1013
1014 ac_prev=
1015 ac_dashdash=
1016 for ac_option
1017 do
1018 # If the previous option needs an argument, assign it.
1019 if test -n "$ac_prev"; then
1020 eval $ac_prev=\$ac_option
1021 ac_prev=
1022 continue
1023 fi
1024
1025 case $ac_option in
1026 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027 *) ac_optarg=yes ;;
1028 esac
1029
1030 # Accept the important Cygnus configure options, so we can diagnose typos.
1031
1032 case $ac_dashdash$ac_option in
1033 --)
1034 ac_dashdash=yes ;;
1035
1036 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1037 ac_prev=bindir ;;
1038 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1039 bindir=$ac_optarg ;;
1040
1041 -build | --build | --buil | --bui | --bu)
1042 ac_prev=build_alias ;;
1043 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1044 build_alias=$ac_optarg ;;
1045
1046 -cache-file | --cache-file | --cache-fil | --cache-fi \
1047 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1048 ac_prev=cache_file ;;
1049 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1050 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1051 cache_file=$ac_optarg ;;
1052
1053 --config-cache | -C)
1054 cache_file=config.cache ;;
1055
1056 -datadir | --datadir | --datadi | --datad)
1057 ac_prev=datadir ;;
1058 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1059 datadir=$ac_optarg ;;
1060
1061 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1062 | --dataroo | --dataro | --datar)
1063 ac_prev=datarootdir ;;
1064 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1065 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1066 datarootdir=$ac_optarg ;;
1067
1068 -disable-* | --disable-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1077 *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=no ;;
1084
1085 -docdir | --docdir | --docdi | --doc | --do)
1086 ac_prev=docdir ;;
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1089
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 ac_prev=dvidir ;;
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1094
1095 -enable-* | --enable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1104 *"
1105 "enable_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval enable_$ac_useropt=\$ac_optarg ;;
1111
1112 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1113 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1114 | --exec | --exe | --ex)
1115 ac_prev=exec_prefix ;;
1116 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1117 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1118 | --exec=* | --exe=* | --ex=*)
1119 exec_prefix=$ac_optarg ;;
1120
1121 -gas | --gas | --ga | --g)
1122 # Obsolete; use --with-gas.
1123 with_gas=yes ;;
1124
1125 -help | --help | --hel | --he | -h)
1126 ac_init_help=long ;;
1127 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1128 ac_init_help=recursive ;;
1129 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1130 ac_init_help=short ;;
1131
1132 -host | --host | --hos | --ho)
1133 ac_prev=host_alias ;;
1134 -host=* | --host=* | --hos=* | --ho=*)
1135 host_alias=$ac_optarg ;;
1136
1137 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1138 ac_prev=htmldir ;;
1139 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1140 | --ht=*)
1141 htmldir=$ac_optarg ;;
1142
1143 -includedir | --includedir | --includedi | --included | --include \
1144 | --includ | --inclu | --incl | --inc)
1145 ac_prev=includedir ;;
1146 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1147 | --includ=* | --inclu=* | --incl=* | --inc=*)
1148 includedir=$ac_optarg ;;
1149
1150 -infodir | --infodir | --infodi | --infod | --info | --inf)
1151 ac_prev=infodir ;;
1152 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1153 infodir=$ac_optarg ;;
1154
1155 -libdir | --libdir | --libdi | --libd)
1156 ac_prev=libdir ;;
1157 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1158 libdir=$ac_optarg ;;
1159
1160 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1161 | --libexe | --libex | --libe)
1162 ac_prev=libexecdir ;;
1163 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1164 | --libexe=* | --libex=* | --libe=*)
1165 libexecdir=$ac_optarg ;;
1166
1167 -localedir | --localedir | --localedi | --localed | --locale)
1168 ac_prev=localedir ;;
1169 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1170 localedir=$ac_optarg ;;
1171
1172 -localstatedir | --localstatedir | --localstatedi | --localstated \
1173 | --localstate | --localstat | --localsta | --localst | --locals)
1174 ac_prev=localstatedir ;;
1175 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1176 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1177 localstatedir=$ac_optarg ;;
1178
1179 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1180 ac_prev=mandir ;;
1181 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1182 mandir=$ac_optarg ;;
1183
1184 -nfp | --nfp | --nf)
1185 # Obsolete; use --without-fp.
1186 with_fp=no ;;
1187
1188 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1189 | --no-cr | --no-c | -n)
1190 no_create=yes ;;
1191
1192 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1193 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194 no_recursion=yes ;;
1195
1196 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1197 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1198 | --oldin | --oldi | --old | --ol | --o)
1199 ac_prev=oldincludedir ;;
1200 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1201 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1202 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1203 oldincludedir=$ac_optarg ;;
1204
1205 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1206 ac_prev=prefix ;;
1207 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1208 prefix=$ac_optarg ;;
1209
1210 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1211 | --program-pre | --program-pr | --program-p)
1212 ac_prev=program_prefix ;;
1213 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1214 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1215 program_prefix=$ac_optarg ;;
1216
1217 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1218 | --program-suf | --program-su | --program-s)
1219 ac_prev=program_suffix ;;
1220 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1221 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1222 program_suffix=$ac_optarg ;;
1223
1224 -program-transform-name | --program-transform-name \
1225 | --program-transform-nam | --program-transform-na \
1226 | --program-transform-n | --program-transform- \
1227 | --program-transform | --program-transfor \
1228 | --program-transfo | --program-transf \
1229 | --program-trans | --program-tran \
1230 | --progr-tra | --program-tr | --program-t)
1231 ac_prev=program_transform_name ;;
1232 -program-transform-name=* | --program-transform-name=* \
1233 | --program-transform-nam=* | --program-transform-na=* \
1234 | --program-transform-n=* | --program-transform-=* \
1235 | --program-transform=* | --program-transfor=* \
1236 | --program-transfo=* | --program-transf=* \
1237 | --program-trans=* | --program-tran=* \
1238 | --progr-tra=* | --program-tr=* | --program-t=*)
1239 program_transform_name=$ac_optarg ;;
1240
1241 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1242 ac_prev=pdfdir ;;
1243 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1244 pdfdir=$ac_optarg ;;
1245
1246 -psdir | --psdir | --psdi | --psd | --ps)
1247 ac_prev=psdir ;;
1248 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249 psdir=$ac_optarg ;;
1250
1251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252 | -silent | --silent | --silen | --sile | --sil)
1253 silent=yes ;;
1254
1255 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1256 ac_prev=sbindir ;;
1257 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1258 | --sbi=* | --sb=*)
1259 sbindir=$ac_optarg ;;
1260
1261 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1262 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1263 | --sharedst | --shareds | --shared | --share | --shar \
1264 | --sha | --sh)
1265 ac_prev=sharedstatedir ;;
1266 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1267 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1268 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1269 | --sha=* | --sh=*)
1270 sharedstatedir=$ac_optarg ;;
1271
1272 -site | --site | --sit)
1273 ac_prev=site ;;
1274 -site=* | --site=* | --sit=*)
1275 site=$ac_optarg ;;
1276
1277 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1278 ac_prev=srcdir ;;
1279 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1280 srcdir=$ac_optarg ;;
1281
1282 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1283 | --syscon | --sysco | --sysc | --sys | --sy)
1284 ac_prev=sysconfdir ;;
1285 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1286 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1287 sysconfdir=$ac_optarg ;;
1288
1289 -target | --target | --targe | --targ | --tar | --ta | --t)
1290 ac_prev=target_alias ;;
1291 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1292 target_alias=$ac_optarg ;;
1293
1294 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1295 verbose=yes ;;
1296
1297 -version | --version | --versio | --versi | --vers | -V)
1298 ac_init_version=: ;;
1299
1300 -with-* | --with-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1305 { (exit 1); exit 1; }; }
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310 "with_$ac_useropt"
1311 "*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=\$ac_optarg ;;
1316
1317 -without-* | --without-*)
1318 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1322 { (exit 1); exit 1; }; }
1323 ac_useropt_orig=$ac_useropt
1324 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325 case $ac_user_opts in
1326 *"
1327 "with_$ac_useropt"
1328 "*) ;;
1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1330 ac_unrecognized_sep=', ';;
1331 esac
1332 eval with_$ac_useropt=no ;;
1333
1334 --x)
1335 # Obsolete; use --with-x.
1336 with_x=yes ;;
1337
1338 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1339 | --x-incl | --x-inc | --x-in | --x-i)
1340 ac_prev=x_includes ;;
1341 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1342 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1343 x_includes=$ac_optarg ;;
1344
1345 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1346 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1347 ac_prev=x_libraries ;;
1348 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1349 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1350 x_libraries=$ac_optarg ;;
1351
1352 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1353 Try \`$0 --help' for more information." >&2
1354 { (exit 1); exit 1; }; }
1355 ;;
1356
1357 *=*)
1358 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359 # Reject names that are not valid shell variable names.
1360 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1361 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1362 { (exit 1); exit 1; }; }
1363 eval $ac_envvar=\$ac_optarg
1364 export $ac_envvar ;;
1365
1366 *)
1367 # FIXME: should be removed in autoconf 3.0.
1368 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1369 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1370 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1371 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1372 ;;
1373
1374 esac
1375 done
1376
1377 if test -n "$ac_prev"; then
1378 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1379 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1380 { (exit 1); exit 1; }; }
1381 fi
1382
1383 if test -n "$ac_unrecognized_opts"; then
1384 case $enable_option_checking in
1385 no) ;;
1386 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1387 { (exit 1); exit 1; }; } ;;
1388 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1389 esac
1390 fi
1391
1392 # Check all directory arguments for consistency.
1393 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1394 datadir sysconfdir sharedstatedir localstatedir includedir \
1395 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1396 libdir localedir mandir
1397 do
1398 eval ac_val=\$$ac_var
1399 # Remove trailing slashes.
1400 case $ac_val in
1401 */ )
1402 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1403 eval $ac_var=\$ac_val;;
1404 esac
1405 # Be sure to have absolute directory names.
1406 case $ac_val in
1407 [\\/$]* | ?:[\\/]* ) continue;;
1408 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1409 esac
1410 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1411 { (exit 1); exit 1; }; }
1412 done
1413
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1417 build=$build_alias
1418 host=$host_alias
1419 target=$target_alias
1420
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x; then
1423 if test "x$build_alias" = x; then
1424 cross_compiling=maybe
1425 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1426 If a cross compiler is detected then cross compile mode will be used." >&2
1427 elif test "x$build_alias" != "x$host_alias"; then
1428 cross_compiling=yes
1429 fi
1430 fi
1431
1432 ac_tool_prefix=
1433 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1434
1435 test "$silent" = yes && exec 6>/dev/null
1436
1437
1438 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di=`ls -di .` &&
1440 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1442 { (exit 1); exit 1; }; }
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1445 { (exit 1); exit 1; }; }
1446
1447
1448 # Find the source files, if location was not specified.
1449 if test -z "$srcdir"; then
1450 ac_srcdir_defaulted=yes
1451 # Try the directory containing this script, then the parent directory.
1452 ac_confdir=`$as_dirname -- "$as_myself" ||
1453 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454 X"$as_myself" : 'X\(//\)[^/]' \| \
1455 X"$as_myself" : 'X\(//\)$' \| \
1456 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457 $as_echo X"$as_myself" |
1458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\/\)[^/].*/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\/\)$/{
1467 s//\1/
1468 q
1469 }
1470 /^X\(\/\).*/{
1471 s//\1/
1472 q
1473 }
1474 s/.*/./; q'`
1475 srcdir=$ac_confdir
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1477 srcdir=..
1478 fi
1479 else
1480 ac_srcdir_defaulted=no
1481 fi
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1485 { (exit 1); exit 1; }; }
1486 fi
1487 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1488 ac_abs_confdir=`(
1489 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1490 { (exit 1); exit 1; }; }
1491 pwd)`
1492 # When building in place, set srcdir=.
1493 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494 srcdir=.
1495 fi
1496 # Remove unnecessary trailing slashes from srcdir.
1497 # Double slashes in file names in object file debugging info
1498 # mess up M-x gdb in Emacs.
1499 case $srcdir in
1500 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1501 esac
1502 for ac_var in $ac_precious_vars; do
1503 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_env_${ac_var}_value=\$${ac_var}
1505 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1506 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1507 done
1508
1509 #
1510 # Report the --help message.
1511 #
1512 if test "$ac_init_help" = "long"; then
1513 # Omit some internal or obsolete options to make the list less imposing.
1514 # This message is too long to be a string in the A/UX 3.1 sh.
1515 cat <<_ACEOF
1516 \`configure' configures xf86-video-vmware 11.0.3 to adapt to many kinds of systems.
1517
1518 Usage: $0 [OPTION]... [VAR=VALUE]...
1519
1520 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1521 VAR=VALUE. See below for descriptions of some of the useful variables.
1522
1523 Defaults for the options are specified in brackets.
1524
1525 Configuration:
1526 -h, --help display this help and exit
1527 --help=short display options specific to this package
1528 --help=recursive display the short help of all the included packages
1529 -V, --version display version information and exit
1530 -q, --quiet, --silent do not print \`checking...' messages
1531 --cache-file=FILE cache test results in FILE [disabled]
1532 -C, --config-cache alias for \`--cache-file=config.cache'
1533 -n, --no-create do not create output files
1534 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1535
1536 Installation directories:
1537 --prefix=PREFIX install architecture-independent files in PREFIX
1538 [$ac_default_prefix]
1539 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1540 [PREFIX]
1541
1542 By default, \`make install' will install all the files in
1543 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1544 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1545 for instance \`--prefix=\$HOME'.
1546
1547 For better control, use the options below.
1548
1549 Fine tuning of the installation directories:
1550 --bindir=DIR user executables [EPREFIX/bin]
1551 --sbindir=DIR system admin executables [EPREFIX/sbin]
1552 --libexecdir=DIR program executables [EPREFIX/libexec]
1553 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1554 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1555 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1556 --libdir=DIR object code libraries [EPREFIX/lib]
1557 --includedir=DIR C header files [PREFIX/include]
1558 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1559 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1560 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1561 --infodir=DIR info documentation [DATAROOTDIR/info]
1562 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1563 --mandir=DIR man documentation [DATAROOTDIR/man]
1564 --docdir=DIR documentation root
1565 [DATAROOTDIR/doc/xf86-video-vmware]
1566 --htmldir=DIR html documentation [DOCDIR]
1567 --dvidir=DIR dvi documentation [DOCDIR]
1568 --pdfdir=DIR pdf documentation [DOCDIR]
1569 --psdir=DIR ps documentation [DOCDIR]
1570 _ACEOF
1571
1572 cat <<\_ACEOF
1573
1574 Program names:
1575 --program-prefix=PREFIX prepend PREFIX to installed program names
1576 --program-suffix=SUFFIX append SUFFIX to installed program names
1577 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1578
1579 System types:
1580 --build=BUILD configure for building on BUILD [guessed]
1581 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1582 _ACEOF
1583 fi
1584
1585 if test -n "$ac_init_help"; then
1586 case $ac_init_help in
1587 short | recursive ) echo "Configuration of xf86-video-vmware 11.0.3:";;
1588 esac
1589 cat <<\_ACEOF
1590
1591 Optional Features:
1592 --disable-option-checking ignore unrecognized --enable/--with options
1593 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1594 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1595 --enable-maintainer-mode enable make rules and dependencies not useful
1596 (and sometimes confusing) to the casual installer
1597 --disable-dependency-tracking speeds up one-time build
1598 --enable-dependency-tracking do not reject slow dependency extractors
1599 --enable-strict-compilation
1600 Enable all warnings from compiler and make them
1601 errors (default: disabled)
1602 --enable-static[=PKGS] build static libraries [default=no]
1603 --enable-shared[=PKGS] build shared libraries [default=yes]
1604 --enable-fast-install[=PKGS]
1605 optimize for fast installation [default=yes]
1606 --disable-libtool-lock avoid locking (might break parallel builds)
1607 --enable-vmwarectrl-client
1608 Enable vmwarectrl client (default: disabled)
1609
1610 Optional Packages:
1611 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1612 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1613 --with-pic try to use only PIC/non-PIC objects [default=use
1614 both]
1615 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1616 --with-xorg-module-dir=DIR
1617 Default xorg module directory
1618 [default=$libdir/xorg/modules]
1619
1620 Some influential environment variables:
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1624 nonstandard directory <lib dir>
1625 LIBS libraries to pass to the linker, e.g. -l<library>
1626 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1627 you have headers in a nonstandard directory <include dir>
1628 CPP C preprocessor
1629 PKG_CONFIG path to pkg-config utility
1630 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1631 XORG_LIBS linker flags for XORG, overriding pkg-config
1632 LIBDRM_CFLAGS
1633 C compiler flags for LIBDRM, overriding pkg-config
1634 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1635 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1636 X11_LIBS linker flags for X11, overriding pkg-config
1637 PCIACCESS_CFLAGS
1638 C compiler flags for PCIACCESS, overriding pkg-config
1639 PCIACCESS_LIBS
1640 linker flags for PCIACCESS, overriding pkg-config
1641
1642 Use these variables to override the choices made by `configure' or to help
1643 it to find libraries and programs with nonstandard names/locations.
1644
1645 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1646 _ACEOF
1647 ac_status=$?
1648 fi
1649
1650 if test "$ac_init_help" = "recursive"; then
1651 # If there are subdirs, report their specific --help.
1652 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653 test -d "$ac_dir" ||
1654 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655 continue
1656 ac_builddir=.
1657
1658 case "$ac_dir" in
1659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *)
1661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1662 # A ".." for each directory in $ac_dir_suffix.
1663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1664 case $ac_top_builddir_sub in
1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667 esac ;;
1668 esac
1669 ac_abs_top_builddir=$ac_pwd
1670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671 # for backward compatibility:
1672 ac_top_builddir=$ac_top_build_prefix
1673
1674 case $srcdir in
1675 .) # We are building in place.
1676 ac_srcdir=.
1677 ac_top_srcdir=$ac_top_builddir_sub
1678 ac_abs_top_srcdir=$ac_pwd ;;
1679 [\\/]* | ?:[\\/]* ) # Absolute name.
1680 ac_srcdir=$srcdir$ac_dir_suffix;
1681 ac_top_srcdir=$srcdir
1682 ac_abs_top_srcdir=$srcdir ;;
1683 *) # Relative name.
1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685 ac_top_srcdir=$ac_top_build_prefix$srcdir
1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687 esac
1688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689
1690 cd "$ac_dir" || { ac_status=$?; continue; }
1691 # Check for guested configure.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1693 echo &&
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure" --help=recursive
1698 else
1699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700 fi || ac_status=$?
1701 cd "$ac_pwd" || { ac_status=$?; break; }
1702 done
1703 fi
1704
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1707 cat <<\_ACEOF
1708 xf86-video-vmware configure 11.0.3
1709 generated by GNU Autoconf 2.63
1710
1711 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1712 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1713 This configure script is free software; the Free Software Foundation
1714 gives unlimited permission to copy, distribute and modify it.
1715 _ACEOF
1716 exit
1717 fi
1718 cat >config.log <<_ACEOF
1719 This file contains any messages produced by compilers while
1720 running configure, to aid debugging if configure makes a mistake.
1721
1722 It was created by xf86-video-vmware $as_me 11.0.3, which was
1723 generated by GNU Autoconf 2.63. Invocation command line was
1724
1725 $ $0 $@
1726
1727 _ACEOF
1728 exec 5>>config.log
1729 {
1730 cat <<_ASUNAME
1731 ## --------- ##
1732 ## Platform. ##
1733 ## --------- ##
1734
1735 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1736 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1737 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1738 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1739 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1740
1741 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1742 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1743
1744 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1745 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1746 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1747 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1748 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1749 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1750 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1751
1752 _ASUNAME
1753
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 for as_dir in $PATH
1756 do
1757 IFS=$as_save_IFS
1758 test -z "$as_dir" && as_dir=.
1759 $as_echo "PATH: $as_dir"
1760 done
1761 IFS=$as_save_IFS
1762
1763 } >&5
1764
1765 cat >&5 <<_ACEOF
1766
1767
1768 ## ----------- ##
1769 ## Core tests. ##
1770 ## ----------- ##
1771
1772 _ACEOF
1773
1774
1775 # Keep a trace of the command line.
1776 # Strip out --no-create and --no-recursion so they do not pile up.
1777 # Strip out --silent because we don't want to record it for future runs.
1778 # Also quote any args containing shell meta-characters.
1779 # Make two passes to allow for proper duplicate-argument suppression.
1780 ac_configure_args=
1781 ac_configure_args0=
1782 ac_configure_args1=
1783 ac_must_keep_next=false
1784 for ac_pass in 1 2
1785 do
1786 for ac_arg
1787 do
1788 case $ac_arg in
1789 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1790 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1791 | -silent | --silent | --silen | --sile | --sil)
1792 continue ;;
1793 *\'*)
1794 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1795 esac
1796 case $ac_pass in
1797 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1798 2)
1799 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1800 if test $ac_must_keep_next = true; then
1801 ac_must_keep_next=false # Got value, back to normal.
1802 else
1803 case $ac_arg in
1804 *=* | --config-cache | -C | -disable-* | --disable-* \
1805 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1806 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1807 | -with-* | --with-* | -without-* | --without-* | --x)
1808 case "$ac_configure_args0 " in
1809 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1810 esac
1811 ;;
1812 -* ) ac_must_keep_next=true ;;
1813 esac
1814 fi
1815 ac_configure_args="$ac_configure_args '$ac_arg'"
1816 ;;
1817 esac
1818 done
1819 done
1820 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1821 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1822
1823 # When interrupted or exit'd, cleanup temporary files, and complete
1824 # config.log. We remove comments because anyway the quotes in there
1825 # would cause problems or look ugly.
1826 # WARNING: Use '\'' to represent an apostrophe within the trap.
1827 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1828 trap 'exit_status=$?
1829 # Save into config.log some information that might help in debugging.
1830 {
1831 echo
1832
1833 cat <<\_ASBOX
1834 ## ---------------- ##
1835 ## Cache variables. ##
1836 ## ---------------- ##
1837 _ASBOX
1838 echo
1839 # The following way of writing the cache mishandles newlines in values,
1840 (
1841 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1842 eval ac_val=\$$ac_var
1843 case $ac_val in #(
1844 *${as_nl}*)
1845 case $ac_var in #(
1846 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1847 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1848 esac
1849 case $ac_var in #(
1850 _ | IFS | as_nl) ;; #(
1851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1852 *) $as_unset $ac_var ;;
1853 esac ;;
1854 esac
1855 done
1856 (set) 2>&1 |
1857 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1858 *${as_nl}ac_space=\ *)
1859 sed -n \
1860 "s/'\''/'\''\\\\'\'''\''/g;
1861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1862 ;; #(
1863 *)
1864 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1865 ;;
1866 esac |
1867 sort
1868 )
1869 echo
1870
1871 cat <<\_ASBOX
1872 ## ----------------- ##
1873 ## Output variables. ##
1874 ## ----------------- ##
1875 _ASBOX
1876 echo
1877 for ac_var in $ac_subst_vars
1878 do
1879 eval ac_val=\$$ac_var
1880 case $ac_val in
1881 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882 esac
1883 $as_echo "$ac_var='\''$ac_val'\''"
1884 done | sort
1885 echo
1886
1887 if test -n "$ac_subst_files"; then
1888 cat <<\_ASBOX
1889 ## ------------------- ##
1890 ## File substitutions. ##
1891 ## ------------------- ##
1892 _ASBOX
1893 echo
1894 for ac_var in $ac_subst_files
1895 do
1896 eval ac_val=\$$ac_var
1897 case $ac_val in
1898 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899 esac
1900 $as_echo "$ac_var='\''$ac_val'\''"
1901 done | sort
1902 echo
1903 fi
1904
1905 if test -s confdefs.h; then
1906 cat <<\_ASBOX
1907 ## ----------- ##
1908 ## confdefs.h. ##
1909 ## ----------- ##
1910 _ASBOX
1911 echo
1912 cat confdefs.h
1913 echo
1914 fi
1915 test "$ac_signal" != 0 &&
1916 $as_echo "$as_me: caught signal $ac_signal"
1917 $as_echo "$as_me: exit $exit_status"
1918 } >&5
1919 rm -f core *.core core.conftest.* &&
1920 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1921 exit $exit_status
1922 ' 0
1923 for ac_signal in 1 2 13 15; do
1924 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1925 done
1926 ac_signal=0
1927
1928 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1929 rm -f -r conftest* confdefs.h
1930
1931 # Predefined preprocessor variables.
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_NAME "$PACKAGE_NAME"
1935 _ACEOF
1936
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1940 _ACEOF
1941
1942
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1945 _ACEOF
1946
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_STRING "$PACKAGE_STRING"
1950 _ACEOF
1951
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1955 _ACEOF
1956
1957
1958 # Let the site file select an alternate cache file if it wants to.
1959 # Prefer an explicitly selected file to automatically selected ones.
1960 ac_site_file1=NONE
1961 ac_site_file2=NONE
1962 if test -n "$CONFIG_SITE"; then
1963 ac_site_file1=$CONFIG_SITE
1964 elif test "x$prefix" != xNONE; then
1965 ac_site_file1=$prefix/share/config.site
1966 ac_site_file2=$prefix/etc/config.site
1967 else
1968 ac_site_file1=$ac_default_prefix/share/config.site
1969 ac_site_file2=$ac_default_prefix/etc/config.site
1970 fi
1971 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1972 do
1973 test "x$ac_site_file" = xNONE && continue
1974 if test -r "$ac_site_file"; then
1975 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1976 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1977 sed 's/^/| /' "$ac_site_file" >&5
1978 . "$ac_site_file"
1979 fi
1980 done
1981
1982 if test -r "$cache_file"; then
1983 # Some versions of bash will fail to source /dev/null (special
1984 # files actually), so we avoid doing that.
1985 if test -f "$cache_file"; then
1986 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1987 $as_echo "$as_me: loading cache $cache_file" >&6;}
1988 case $cache_file in
1989 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1990 *) . "./$cache_file";;
1991 esac
1992 fi
1993 else
1994 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1995 $as_echo "$as_me: creating cache $cache_file" >&6;}
1996 >$cache_file
1997 fi
1998
1999 # Check that the precious variables saved in the cache have kept the same
2000 # value.
2001 ac_cache_corrupted=false
2002 for ac_var in $ac_precious_vars; do
2003 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2004 eval ac_new_set=\$ac_env_${ac_var}_set
2005 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2006 eval ac_new_val=\$ac_env_${ac_var}_value
2007 case $ac_old_set,$ac_new_set in
2008 set,)
2009 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2010 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2011 ac_cache_corrupted=: ;;
2012 ,set)
2013 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2014 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2015 ac_cache_corrupted=: ;;
2016 ,);;
2017 *)
2018 if test "x$ac_old_val" != "x$ac_new_val"; then
2019 # differences in whitespace do not lead to failure.
2020 ac_old_val_w=`echo x $ac_old_val`
2021 ac_new_val_w=`echo x $ac_new_val`
2022 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2023 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2024 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2025 ac_cache_corrupted=:
2026 else
2027 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2028 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2029 eval $ac_var=\$ac_old_val
2030 fi
2031 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2032 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2033 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2034 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2035 fi;;
2036 esac
2037 # Pass precious variables to config.status.
2038 if test "$ac_new_set" = set; then
2039 case $ac_new_val in
2040 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2041 *) ac_arg=$ac_var=$ac_new_val ;;
2042 esac
2043 case " $ac_configure_args " in
2044 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2045 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2046 esac
2047 fi
2048 done
2049 if $ac_cache_corrupted; then
2050 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2052 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2053 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2054 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2055 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2056 { (exit 1); exit 1; }; }
2057 fi
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083 ac_ext=c
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088
2089
2090
2091 ac_config_headers="$ac_config_headers config.h"
2092
2093 ac_aux_dir=
2094 for ac_dir in . "$srcdir"/.; do
2095 if test -f "$ac_dir/install-sh"; then
2096 ac_aux_dir=$ac_dir
2097 ac_install_sh="$ac_aux_dir/install-sh -c"
2098 break
2099 elif test -f "$ac_dir/install.sh"; then
2100 ac_aux_dir=$ac_dir
2101 ac_install_sh="$ac_aux_dir/install.sh -c"
2102 break
2103 elif test -f "$ac_dir/shtool"; then
2104 ac_aux_dir=$ac_dir
2105 ac_install_sh="$ac_aux_dir/shtool install -c"
2106 break
2107 fi
2108 done
2109 if test -z "$ac_aux_dir"; then
2110 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2111 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2112 { (exit 1); exit 1; }; }
2113 fi
2114
2115 # These three variables are undocumented and unsupported,
2116 # and are intended to be withdrawn in a future Autoconf release.
2117 # They can cause serious problems if a builder's source tree is in a directory
2118 # whose full name contains unusual characters.
2119 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2120 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2121 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2122
2123
2124
2125 # Initialize Automake
2126 am__api_version='1.10'
2127
2128 # Find a good install program. We prefer a C program (faster),
2129 # so one script is as good as another. But avoid the broken or
2130 # incompatible versions:
2131 # SysV /etc/install, /usr/sbin/install
2132 # SunOS /usr/etc/install
2133 # IRIX /sbin/install
2134 # AIX /bin/install
2135 # AmigaOS /C/install, which installs bootblocks on floppy discs
2136 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2139 # OS/2's system install, which has a completely different semantic
2140 # ./install, which can be erroneously created by make from ./install.sh.
2141 # Reject install programs that cannot install multiple files.
2142 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2143 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2144 if test -z "$INSTALL"; then
2145 if test "${ac_cv_path_install+set}" = set; then
2146 $as_echo_n "(cached) " >&6
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2150 do
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 # Account for people who put trailing slashes in PATH elements.
2154 case $as_dir/ in
2155 ./ | .// | /cC/* | \
2156 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2157 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2158 /usr/ucb/* ) ;;
2159 *)
2160 # OSF1 and SCO ODT 3.0 have their own names for install.
2161 # Don't use installbsd from OSF since it installs stuff as root
2162 # by default.
2163 for ac_prog in ginstall scoinst install; do
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2166 if test $ac_prog = install &&
2167 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168 # AIX install. It has an incompatible calling convention.
2169 :
2170 elif test $ac_prog = install &&
2171 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2172 # program-specific install script used by HP pwplus--don't use.
2173 :
2174 else
2175 rm -rf conftest.one conftest.two conftest.dir
2176 echo one > conftest.one
2177 echo two > conftest.two
2178 mkdir conftest.dir
2179 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2180 test -s conftest.one && test -s conftest.two &&
2181 test -s conftest.dir/conftest.one &&
2182 test -s conftest.dir/conftest.two
2183 then
2184 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2185 break 3
2186 fi
2187 fi
2188 fi
2189 done
2190 done
2191 ;;
2192 esac
2193
2194 done
2195 IFS=$as_save_IFS
2196
2197 rm -rf conftest.one conftest.two conftest.dir
2198
2199 fi
2200 if test "${ac_cv_path_install+set}" = set; then
2201 INSTALL=$ac_cv_path_install
2202 else
2203 # As a last resort, use the slow shell script. Don't cache a
2204 # value for INSTALL within a source directory, because that will
2205 # break other packages using the cache if that directory is
2206 # removed, or if the value is a relative name.
2207 INSTALL=$ac_install_sh
2208 fi
2209 fi
2210 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2211 $as_echo "$INSTALL" >&6; }
2212
2213 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2214 # It thinks the first close brace ends the variable substitution.
2215 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2216
2217 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2218
2219 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2220
2221 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2222 $as_echo_n "checking whether build environment is sane... " >&6; }
2223 # Just in case
2224 sleep 1
2225 echo timestamp > conftest.file
2226 # Do `set' in a subshell so we don't clobber the current shell's
2227 # arguments. Must try -L first in case configure is actually a
2228 # symlink; some systems play weird games with the mod time of symlinks
2229 # (eg FreeBSD returns the mod time of the symlink's containing
2230 # directory).
2231 if (
2232 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2233 if test "$*" = "X"; then
2234 # -L didn't work.
2235 set X `ls -t $srcdir/configure conftest.file`
2236 fi
2237 rm -f conftest.file
2238 if test "$*" != "X $srcdir/configure conftest.file" \
2239 && test "$*" != "X conftest.file $srcdir/configure"; then
2240
2241 # If neither matched, then we have a broken ls. This can happen
2242 # if, for instance, CONFIG_SHELL is bash and it inherits a
2243 # broken ls alias from the environment. This has actually
2244 # happened. Such a system could not be considered "sane".
2245 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2246 alias in your environment" >&5
2247 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2248 alias in your environment" >&2;}
2249 { (exit 1); exit 1; }; }
2250 fi
2251
2252 test "$2" = conftest.file
2253 )
2254 then
2255 # Ok.
2256 :
2257 else
2258 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2259 Check your system clock" >&5
2260 $as_echo "$as_me: error: newly created file is older than distributed files!
2261 Check your system clock" >&2;}
2262 { (exit 1); exit 1; }; }
2263 fi
2264 { $as_echo "$as_me:$LINENO: result: yes" >&5
2265 $as_echo "yes" >&6; }
2266 test "$program_prefix" != NONE &&
2267 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2268 # Use a double $ so make ignores it.
2269 test "$program_suffix" != NONE &&
2270 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2271 # Double any \ or $.
2272 # By default was `s,x,x', remove it if useless.
2273 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2274 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2275
2276 # expand $ac_aux_dir to an absolute path
2277 am_aux_dir=`cd $ac_aux_dir && pwd`
2278
2279 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2280 # Use eval to expand $SHELL
2281 if eval "$MISSING --run true"; then
2282 am_missing_run="$MISSING --run "
2283 else
2284 am_missing_run=
2285 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2286 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2287 fi
2288
2289 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2290 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2291 if test -z "$MKDIR_P"; then
2292 if test "${ac_cv_path_mkdir+set}" = set; then
2293 $as_echo_n "(cached) " >&6
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2297 do
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 for ac_prog in mkdir gmkdir; do
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2303 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2304 'mkdir (GNU coreutils) '* | \
2305 'mkdir (coreutils) '* | \
2306 'mkdir (fileutils) '4.1*)
2307 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2308 break 3;;
2309 esac
2310 done
2311 done
2312 done
2313 IFS=$as_save_IFS
2314
2315 fi
2316
2317 if test "${ac_cv_path_mkdir+set}" = set; then
2318 MKDIR_P="$ac_cv_path_mkdir -p"
2319 else
2320 # As a last resort, use the slow shell script. Don't cache a
2321 # value for MKDIR_P within a source directory, because that will
2322 # break other packages using the cache if that directory is
2323 # removed, or if the value is a relative name.
2324 test -d ./--version && rmdir ./--version
2325 MKDIR_P="$ac_install_sh -d"
2326 fi
2327 fi
2328 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2329 $as_echo "$MKDIR_P" >&6; }
2330
2331 mkdir_p="$MKDIR_P"
2332 case $mkdir_p in
2333 [\\/$]* | ?:[\\/]*) ;;
2334 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2335 esac
2336
2337 for ac_prog in gawk mawk nawk awk
2338 do
2339 # Extract the first word of "$ac_prog", so it can be a program name with args.
2340 set dummy $ac_prog; ac_word=$2
2341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 $as_echo_n "checking for $ac_word... " >&6; }
2343 if test "${ac_cv_prog_AWK+set}" = set; then
2344 $as_echo_n "(cached) " >&6
2345 else
2346 if test -n "$AWK"; then
2347 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_AWK="$ac_prog"
2357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 break 2
2359 fi
2360 done
2361 done
2362 IFS=$as_save_IFS
2363
2364 fi
2365 fi
2366 AWK=$ac_cv_prog_AWK
2367 if test -n "$AWK"; then
2368 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2369 $as_echo "$AWK" >&6; }
2370 else
2371 { $as_echo "$as_me:$LINENO: result: no" >&5
2372 $as_echo "no" >&6; }
2373 fi
2374
2375
2376 test -n "$AWK" && break
2377 done
2378
2379 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2380 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2381 set x ${MAKE-make}
2382 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2383 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2384 $as_echo_n "(cached) " >&6
2385 else
2386 cat >conftest.make <<\_ACEOF
2387 SHELL = /bin/sh
2388 all:
2389 @echo '@@@%%%=$(MAKE)=@@@%%%'
2390 _ACEOF
2391 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2392 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2393 *@@@%%%=?*=@@@%%%*)
2394 eval ac_cv_prog_make_${ac_make}_set=yes;;
2395 *)
2396 eval ac_cv_prog_make_${ac_make}_set=no;;
2397 esac
2398 rm -f conftest.make
2399 fi
2400 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2401 { $as_echo "$as_me:$LINENO: result: yes" >&5
2402 $as_echo "yes" >&6; }
2403 SET_MAKE=
2404 else
2405 { $as_echo "$as_me:$LINENO: result: no" >&5
2406 $as_echo "no" >&6; }
2407 SET_MAKE="MAKE=${MAKE-make}"
2408 fi
2409
2410 rm -rf .tst 2>/dev/null
2411 mkdir .tst 2>/dev/null
2412 if test -d .tst; then
2413 am__leading_dot=.
2414 else
2415 am__leading_dot=_
2416 fi
2417 rmdir .tst 2>/dev/null
2418
2419 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2420 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2421 # is not polluted with repeated "-I."
2422 am__isrc=' -I$(srcdir)'
2423 # test to see if srcdir already configured
2424 if test -f $srcdir/config.status; then
2425 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2426 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2427 { (exit 1); exit 1; }; }
2428 fi
2429 fi
2430
2431 # test whether we have cygpath
2432 if test -z "$CYGPATH_W"; then
2433 if (cygpath --version) >/dev/null 2>/dev/null; then
2434 CYGPATH_W='cygpath -w'
2435 else
2436 CYGPATH_W=echo
2437 fi
2438 fi
2439
2440
2441 # Define the identity of the package.
2442 PACKAGE='xf86-video-vmware'
2443 VERSION='11.0.3'
2444
2445
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE "$PACKAGE"
2448 _ACEOF
2449
2450
2451 cat >>confdefs.h <<_ACEOF
2452 #define VERSION "$VERSION"
2453 _ACEOF
2454
2455 # Some tools Automake needs.
2456
2457 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2458
2459
2460 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2461
2462
2463 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2464
2465
2466 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2467
2468
2469 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2470
2471 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2472
2473 # Installed binaries are usually stripped using `strip' when the user
2474 # run `make install-strip'. However `strip' might not be the right
2475 # tool to use in cross-compilation environments, therefore Automake
2476 # will honor the `STRIP' environment variable to overrule this program.
2477 if test "$cross_compiling" != no; then
2478 if test -n "$ac_tool_prefix"; then
2479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2480 set dummy ${ac_tool_prefix}strip; ac_word=$2
2481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if test "${ac_cv_prog_STRIP+set}" = set; then
2484 $as_echo_n "(cached) " >&6
2485 else
2486 if test -n "$STRIP"; then
2487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 break 2
2499 fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 fi
2505 fi
2506 STRIP=$ac_cv_prog_STRIP
2507 if test -n "$STRIP"; then
2508 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2509 $as_echo "$STRIP" >&6; }
2510 else
2511 { $as_echo "$as_me:$LINENO: result: no" >&5
2512 $as_echo "no" >&6; }
2513 fi
2514
2515
2516 fi
2517 if test -z "$ac_cv_prog_STRIP"; then
2518 ac_ct_STRIP=$STRIP
2519 # Extract the first word of "strip", so it can be a program name with args.
2520 set dummy strip; ac_word=$2
2521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 $as_echo_n "checking for $ac_word... " >&6; }
2523 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2524 $as_echo_n "(cached) " >&6
2525 else
2526 if test -n "$ac_ct_STRIP"; then
2527 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2531 do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_ac_ct_STRIP="strip"
2537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540 done
2541 done
2542 IFS=$as_save_IFS
2543
2544 fi
2545 fi
2546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2547 if test -n "$ac_ct_STRIP"; then
2548 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2549 $as_echo "$ac_ct_STRIP" >&6; }
2550 else
2551 { $as_echo "$as_me:$LINENO: result: no" >&5
2552 $as_echo "no" >&6; }
2553 fi
2554
2555 if test "x$ac_ct_STRIP" = x; then
2556 STRIP=":"
2557 else
2558 case $cross_compiling:$ac_tool_warned in
2559 yes:)
2560 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2562 ac_tool_warned=yes ;;
2563 esac
2564 STRIP=$ac_ct_STRIP
2565 fi
2566 else
2567 STRIP="$ac_cv_prog_STRIP"
2568 fi
2569
2570 fi
2571 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2572
2573 # We need awk for the "check" target. The system "awk" is bad on
2574 # some platforms.
2575 # Always define AMTAR for backward compatibility.
2576
2577 AMTAR=${AMTAR-"${am_missing_run}tar"}
2578
2579 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2580
2581
2582
2583
2584
2585 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2586 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2587 # Check whether --enable-maintainer-mode was given.
2588 if test "${enable_maintainer_mode+set}" = set; then
2589 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2590 else
2591 USE_MAINTAINER_MODE=no
2592 fi
2593
2594 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2595 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2596 if test $USE_MAINTAINER_MODE = yes; then
2597 MAINTAINER_MODE_TRUE=
2598 MAINTAINER_MODE_FALSE='#'
2599 else
2600 MAINTAINER_MODE_TRUE='#'
2601 MAINTAINER_MODE_FALSE=
2602 fi
2603
2604 MAINT=$MAINTAINER_MODE_TRUE
2605
2606
2607
2608 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620 DEPDIR="${am__leading_dot}deps"
2621
2622 ac_config_commands="$ac_config_commands depfiles"
2623
2624
2625 am_make=${MAKE-make}
2626 cat > confinc << 'END'
2627 am__doit:
2628 @echo done
2629 .PHONY: am__doit
2630 END
2631 # If we don't find an include directive, just comment out the code.
2632 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2633 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2634 am__include="#"
2635 am__quote=
2636 _am_result=none
2637 # First try GNU make style include.
2638 echo "include confinc" > confmf
2639 # We grep out `Entering directory' and `Leaving directory'
2640 # messages which can occur if `w' ends up in MAKEFLAGS.
2641 # In particular we don't look at `^make:' because GNU make might
2642 # be invoked under some other name (usually "gmake"), in which
2643 # case it prints its new name instead of `make'.
2644 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2645 am__include=include
2646 am__quote=
2647 _am_result=GNU
2648 fi
2649 # Now try BSD make style include.
2650 if test "$am__include" = "#"; then
2651 echo '.include "confinc"' > confmf
2652 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2653 am__include=.include
2654 am__quote="\""
2655 _am_result=BSD
2656 fi
2657 fi
2658
2659
2660 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2661 $as_echo "$_am_result" >&6; }
2662 rm -f confinc confmf
2663
2664 # Check whether --enable-dependency-tracking was given.
2665 if test "${enable_dependency_tracking+set}" = set; then
2666 enableval=$enable_dependency_tracking;
2667 fi
2668
2669 if test "x$enable_dependency_tracking" != xno; then
2670 am_depcomp="$ac_aux_dir/depcomp"
2671 AMDEPBACKSLASH='\'
2672 fi
2673 if test "x$enable_dependency_tracking" != xno; then
2674 AMDEP_TRUE=
2675 AMDEP_FALSE='#'
2676 else
2677 AMDEP_TRUE='#'
2678 AMDEP_FALSE=
2679 fi
2680
2681
2682 ac_ext=c
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687 if test -n "$ac_tool_prefix"; then
2688 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2689 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_CC+set}" = set; then
2693 $as_echo_n "(cached) " >&6
2694 else
2695 if test -n "$CC"; then
2696 ac_cv_prog_CC="$CC" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2706 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2708 fi
2709 done
2710 done
2711 IFS=$as_save_IFS
2712
2713 fi
2714 fi
2715 CC=$ac_cv_prog_CC
2716 if test -n "$CC"; then
2717 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2719 else
2720 { $as_echo "$as_me:$LINENO: result: no" >&5
2721 $as_echo "no" >&6; }
2722 fi
2723
2724
2725 fi
2726 if test -z "$ac_cv_prog_CC"; then
2727 ac_ct_CC=$CC
2728 # Extract the first word of "gcc", so it can be a program name with args.
2729 set dummy gcc; ac_word=$2
2730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2733 $as_echo_n "(cached) " >&6
2734 else
2735 if test -n "$ac_ct_CC"; then
2736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_ac_ct_CC="gcc"
2746 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749 done
2750 done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 $as_echo "$ac_ct_CC" >&6; }
2759 else
2760 { $as_echo "$as_me:$LINENO: result: no" >&5
2761 $as_echo "no" >&6; }
2762 fi
2763
2764 if test "x$ac_ct_CC" = x; then
2765 CC=""
2766 else
2767 case $cross_compiling:$ac_tool_warned in
2768 yes:)
2769 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2771 ac_tool_warned=yes ;;
2772 esac
2773 CC=$ac_ct_CC
2774 fi
2775 else
2776 CC="$ac_cv_prog_CC"
2777 fi
2778
2779 if test -z "$CC"; then
2780 if test -n "$ac_tool_prefix"; then
2781 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2782 set dummy ${ac_tool_prefix}cc; ac_word=$2
2783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if test "${ac_cv_prog_CC+set}" = set; then
2786 $as_echo_n "(cached) " >&6
2787 else
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_CC="${ac_tool_prefix}cc"
2799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802 done
2803 done
2804 IFS=$as_save_IFS
2805
2806 fi
2807 fi
2808 CC=$ac_cv_prog_CC
2809 if test -n "$CC"; then
2810 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2811 $as_echo "$CC" >&6; }
2812 else
2813 { $as_echo "$as_me:$LINENO: result: no" >&5
2814 $as_echo "no" >&6; }
2815 fi
2816
2817
2818 fi
2819 fi
2820 if test -z "$CC"; then
2821 # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc; ac_word=$2
2823 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 ac_prog_rejected=no
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2840 ac_prog_rejected=yes
2841 continue
2842 fi
2843 ac_cv_prog_CC="cc"
2844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847 done
2848 done
2849 IFS=$as_save_IFS
2850
2851 if test $ac_prog_rejected = yes; then
2852 # We found a bogon in the path, so make sure we never use it.
2853 set dummy $ac_cv_prog_CC
2854 shift
2855 if test $# != 0; then
2856 # We chose a different compiler from the bogus one.
2857 # However, it has the same basename, so the bogon will be chosen
2858 # first if we set CC to just the basename; use the full file name.
2859 shift
2860 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2861 fi
2862 fi
2863 fi
2864 fi
2865 CC=$ac_cv_prog_CC
2866 if test -n "$CC"; then
2867 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2869 else
2870 { $as_echo "$as_me:$LINENO: result: no" >&5
2871 $as_echo "no" >&6; }
2872 fi
2873
2874
2875 fi
2876 if test -z "$CC"; then
2877 if test -n "$ac_tool_prefix"; then
2878 for ac_prog in cl.exe
2879 do
2880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2882 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2911 else
2912 { $as_echo "$as_me:$LINENO: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916
2917 test -n "$CC" && break
2918 done
2919 fi
2920 if test -z "$CC"; then
2921 ac_ct_CC=$CC
2922 for ac_prog in cl.exe
2923 do
2924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$ac_ct_CC"; then
2932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_ac_ct_CC="$ac_prog"
2942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952 if test -n "$ac_ct_CC"; then
2953 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2954 $as_echo "$ac_ct_CC" >&6; }
2955 else
2956 { $as_echo "$as_me:$LINENO: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960
2961 test -n "$ac_ct_CC" && break
2962 done
2963
2964 if test "x$ac_ct_CC" = x; then
2965 CC=""
2966 else
2967 case $cross_compiling:$ac_tool_warned in
2968 yes:)
2969 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971 ac_tool_warned=yes ;;
2972 esac
2973 CC=$ac_ct_CC
2974 fi
2975 fi
2976
2977 fi
2978
2979
2980 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2983 See \`config.log' for more details." >&5
2984 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2985 See \`config.log' for more details." >&2;}
2986 { (exit 1); exit 1; }; }; }
2987
2988 # Provide some information about the compiler.
2989 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2990 set X $ac_compile
2991 ac_compiler=$2
2992 { (ac_try="$ac_compiler --version >&5"
2993 case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996 esac
2997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2998 $as_echo "$ac_try_echo") >&5
2999 (eval "$ac_compiler --version >&5") 2>&5
3000 ac_status=$?
3001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }
3003 { (ac_try="$ac_compiler -v >&5"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3009 $as_echo "$ac_try_echo") >&5
3010 (eval "$ac_compiler -v >&5") 2>&5
3011 ac_status=$?
3012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014 { (ac_try="$ac_compiler -V >&5"
3015 case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018 esac
3019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3020 $as_echo "$ac_try_echo") >&5
3021 (eval "$ac_compiler -V >&5") 2>&5
3022 ac_status=$?
3023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }
3025
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032
3033 int
3034 main ()
3035 {
3036
3037 ;
3038 return 0;
3039 }
3040 _ACEOF
3041 ac_clean_files_save=$ac_clean_files
3042 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3043 # Try to create an executable without -o first, disregard a.out.
3044 # It will help us diagnose broken compilers, and finding out an intuition
3045 # of exeext.
3046 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3047 $as_echo_n "checking for C compiler default output file name... " >&6; }
3048 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3049
3050 # The possible output files:
3051 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3052
3053 ac_rmfiles=
3054 for ac_file in $ac_files
3055 do
3056 case $ac_file in
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3058 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3059 esac
3060 done
3061 rm -f $ac_rmfiles
3062
3063 if { (ac_try="$ac_link_default"
3064 case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3069 $as_echo "$ac_try_echo") >&5
3070 (eval "$ac_link_default") 2>&5
3071 ac_status=$?
3072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; then
3074 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3075 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3076 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3077 # so that the user can short-circuit this test for compilers unknown to
3078 # Autoconf.
3079 for ac_file in $ac_files ''
3080 do
3081 test -f "$ac_file" || continue
3082 case $ac_file in
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3084 ;;
3085 [ab].out )
3086 # We found the default executable, but exeext='' is most
3087 # certainly right.
3088 break;;
3089 *.* )
3090 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3091 then :; else
3092 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3093 fi
3094 # We set ac_cv_exeext here because the later test for it is not
3095 # safe: cross compilers may not add the suffix if given an `-o'
3096 # argument, so we may need to know it at that point already.
3097 # Even if this section looks crufty: it has the advantage of
3098 # actually working.
3099 break;;
3100 * )
3101 break;;
3102 esac
3103 done
3104 test "$ac_cv_exeext" = no && ac_cv_exeext=
3105
3106 else
3107 ac_file=''
3108 fi
3109
3110 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3111 $as_echo "$ac_file" >&6; }
3112 if test -z "$ac_file"; then
3113 $as_echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3118 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3119 See \`config.log' for more details." >&5
3120 $as_echo "$as_me: error: C compiler cannot create executables
3121 See \`config.log' for more details." >&2;}
3122 { (exit 77); exit 77; }; }; }
3123 fi
3124
3125 ac_exeext=$ac_cv_exeext
3126
3127 # Check that the compiler produces executables we can run. If not, either
3128 # the compiler is broken, or we cross compile.
3129 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3130 $as_echo_n "checking whether the C compiler works... " >&6; }
3131 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3132 # If not cross compiling, check that we can run a simple program.
3133 if test "$cross_compiling" != yes; then
3134 if { ac_try='./$ac_file'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3140 $as_echo "$ac_try_echo") >&5
3141 (eval "$ac_try") 2>&5
3142 ac_status=$?
3143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 cross_compiling=no
3146 else
3147 if test "$cross_compiling" = maybe; then
3148 cross_compiling=yes
3149 else
3150 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3153 If you meant to cross compile, use \`--host'.
3154 See \`config.log' for more details." >&5
3155 $as_echo "$as_me: error: cannot run C compiled programs.
3156 If you meant to cross compile, use \`--host'.
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }; }
3159 fi
3160 fi
3161 fi
3162 { $as_echo "$as_me:$LINENO: result: yes" >&5
3163 $as_echo "yes" >&6; }
3164
3165 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3166 ac_clean_files=$ac_clean_files_save
3167 # Check that the compiler produces executables we can run. If not, either
3168 # the compiler is broken, or we cross compile.
3169 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3170 $as_echo_n "checking whether we are cross compiling... " >&6; }
3171 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3172 $as_echo "$cross_compiling" >&6; }
3173
3174 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3175 $as_echo_n "checking for suffix of executables... " >&6; }
3176 if { (ac_try="$ac_link"
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") 2>&5
3184 ac_status=$?
3185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; then
3187 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3188 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3189 # work properly (i.e., refer to `conftest.exe'), while it won't with
3190 # `rm'.
3191 for ac_file in conftest.exe conftest conftest.*; do
3192 test -f "$ac_file" || continue
3193 case $ac_file in
3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3195 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3196 break;;
3197 * ) break;;
3198 esac
3199 done
3200 else
3201 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3204 See \`config.log' for more details." >&5
3205 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3206 See \`config.log' for more details." >&2;}
3207 { (exit 1); exit 1; }; }; }
3208 fi
3209
3210 rm -f conftest$ac_cv_exeext
3211 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3212 $as_echo "$ac_cv_exeext" >&6; }
3213
3214 rm -f conftest.$ac_ext
3215 EXEEXT=$ac_cv_exeext
3216 ac_exeext=$EXEEXT
3217 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3218 $as_echo_n "checking for suffix of object files... " >&6; }
3219 if test "${ac_cv_objext+set}" = set; then
3220 $as_echo_n "(cached) " >&6
3221 else
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228
3229 int
3230 main ()
3231 {
3232
3233 ;
3234 return 0;
3235 }
3236 _ACEOF
3237 rm -f conftest.o conftest.obj
3238 if { (ac_try="$ac_compile"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3244 $as_echo "$ac_try_echo") >&5
3245 (eval "$ac_compile") 2>&5
3246 ac_status=$?
3247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; then
3249 for ac_file in conftest.o conftest.obj conftest.*; do
3250 test -f "$ac_file" || continue;
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3253 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3254 break;;
3255 esac
3256 done
3257 else
3258 $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3264 See \`config.log' for more details." >&5
3265 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3266 See \`config.log' for more details." >&2;}
3267 { (exit 1); exit 1; }; }; }
3268 fi
3269
3270 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3271 fi
3272 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3273 $as_echo "$ac_cv_objext" >&6; }
3274 OBJEXT=$ac_cv_objext
3275 ac_objext=$OBJEXT
3276 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3277 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3278 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3279 $as_echo_n "(cached) " >&6
3280 else
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287
3288 int
3289 main ()
3290 {
3291 #ifndef __GNUC__
3292 choke me
3293 #endif
3294
3295 ;
3296 return 0;
3297 }
3298 _ACEOF
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3301 case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304 esac
3305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3306 $as_echo "$ac_try_echo") >&5
3307 (eval "$ac_compile") 2>conftest.er1
3308 ac_status=$?
3309 grep -v '^ *+' conftest.er1 >conftest.err
3310 rm -f conftest.er1
3311 cat conftest.err >&5
3312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } && {
3314 test -z "$ac_c_werror_flag" ||
3315 test ! -s conftest.err
3316 } && test -s conftest.$ac_objext; then
3317 ac_compiler_gnu=yes
3318 else
3319 $as_echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322 ac_compiler_gnu=no
3323 fi
3324
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3327
3328 fi
3329 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3331 if test $ac_compiler_gnu = yes; then
3332 GCC=yes
3333 else
3334 GCC=
3335 fi
3336 ac_test_CFLAGS=${CFLAGS+set}
3337 ac_save_CFLAGS=$CFLAGS
3338 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3340 if test "${ac_cv_prog_cc_g+set}" = set; then
3341 $as_echo_n "(cached) " >&6
3342 else
3343 ac_save_c_werror_flag=$ac_c_werror_flag
3344 ac_c_werror_flag=yes
3345 ac_cv_prog_cc_g=no
3346 CFLAGS="-g"
3347 cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h. */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353
3354 int
3355 main ()
3356 {
3357
3358 ;
3359 return 0;
3360 }
3361 _ACEOF
3362 rm -f conftest.$ac_objext
3363 if { (ac_try="$ac_compile"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3369 $as_echo "$ac_try_echo") >&5
3370 (eval "$ac_compile") 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } && {
3377 test -z "$ac_c_werror_flag" ||
3378 test ! -s conftest.err
3379 } && test -s conftest.$ac_objext; then
3380 ac_cv_prog_cc_g=yes
3381 else
3382 $as_echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385 CFLAGS=""
3386 cat >conftest.$ac_ext <<_ACEOF
3387 /* confdefs.h. */
3388 _ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3392
3393 int
3394 main ()
3395 {
3396
3397 ;
3398 return 0;
3399 }
3400 _ACEOF
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3403 case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409 (eval "$ac_compile") 2>conftest.er1
3410 ac_status=$?
3411 grep -v '^ *+' conftest.er1 >conftest.err
3412 rm -f conftest.er1
3413 cat conftest.err >&5
3414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } && {
3416 test -z "$ac_c_werror_flag" ||
3417 test ! -s conftest.err
3418 } && test -s conftest.$ac_objext; then
3419 :
3420 else
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424 ac_c_werror_flag=$ac_save_c_werror_flag
3425 CFLAGS="-g"
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h. */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432
3433 int
3434 main ()
3435 {
3436
3437 ;
3438 return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3448 $as_echo "$ac_try_echo") >&5
3449 (eval "$ac_compile") 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } && {
3456 test -z "$ac_c_werror_flag" ||
3457 test ! -s conftest.err
3458 } && test -s conftest.$ac_objext; then
3459 ac_cv_prog_cc_g=yes
3460 else
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464
3465 fi
3466
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 fi
3469
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 fi
3472
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 ac_c_werror_flag=$ac_save_c_werror_flag
3475 fi
3476 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3477 $as_echo "$ac_cv_prog_cc_g" >&6; }
3478 if test "$ac_test_CFLAGS" = set; then
3479 CFLAGS=$ac_save_CFLAGS
3480 elif test $ac_cv_prog_cc_g = yes; then
3481 if test "$GCC" = yes; then
3482 CFLAGS="-g -O2"
3483 else
3484 CFLAGS="-g"
3485 fi
3486 else
3487 if test "$GCC" = yes; then
3488 CFLAGS="-O2"
3489 else
3490 CFLAGS=
3491 fi
3492 fi
3493 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3494 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3495 if test "${ac_cv_prog_cc_c89+set}" = set; then
3496 $as_echo_n "(cached) " >&6
3497 else
3498 ac_cv_prog_cc_c89=no
3499 ac_save_CC=$CC
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 #include <stdarg.h>
3507 #include <stdio.h>
3508 #include <sys/types.h>
3509 #include <sys/stat.h>
3510 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3511 struct buf { int x; };
3512 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3513 static char *e (p, i)
3514 char **p;
3515 int i;
3516 {
3517 return p[i];
3518 }
3519 static char *f (char * (*g) (char **, int), char **p, ...)
3520 {
3521 char *s;
3522 va_list v;
3523 va_start (v,p);
3524 s = g (p, va_arg (v,int));
3525 va_end (v);
3526 return s;
3527 }
3528
3529 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3530 function prototypes and stuff, but not '\xHH' hex character constants.
3531 These don't provoke an error unfortunately, instead are silently treated
3532 as 'x'. The following induces an error, until -std is added to get
3533 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3534 array size at least. It's necessary to write '\x00'==0 to get something
3535 that's true only with -std. */
3536 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3537
3538 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3539 inside strings and character constants. */
3540 #define FOO(x) 'x'
3541 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3542
3543 int test (int i, double x);
3544 struct s1 {int (*f) (int a);};
3545 struct s2 {int (*f) (double a);};
3546 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3547 int argc;
3548 char **argv;
3549 int
3550 main ()
3551 {
3552 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3553 ;
3554 return 0;
3555 }
3556 _ACEOF
3557 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3558 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3559 do
3560 CC="$ac_save_CC $ac_arg"
3561 rm -f conftest.$ac_objext
3562 if { (ac_try="$ac_compile"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3568 $as_echo "$ac_try_echo") >&5
3569 (eval "$ac_compile") 2>conftest.er1
3570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } && {
3576 test -z "$ac_c_werror_flag" ||
3577 test ! -s conftest.err
3578 } && test -s conftest.$ac_objext; then
3579 ac_cv_prog_cc_c89=$ac_arg
3580 else
3581 $as_echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584
3585 fi
3586
3587 rm -f core conftest.err conftest.$ac_objext
3588 test "x$ac_cv_prog_cc_c89" != "xno" && break
3589 done
3590 rm -f conftest.$ac_ext
3591 CC=$ac_save_CC
3592
3593 fi
3594 # AC_CACHE_VAL
3595 case "x$ac_cv_prog_cc_c89" in
3596 x)
3597 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3598 $as_echo "none needed" >&6; } ;;
3599 xno)
3600 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3601 $as_echo "unsupported" >&6; } ;;
3602 *)
3603 CC="$CC $ac_cv_prog_cc_c89"
3604 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3605 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3606 esac
3607
3608
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
3615 depcc="$CC" am_compiler_list=
3616
3617 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3618 $as_echo_n "checking dependency style of $depcc... " >&6; }
3619 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3620 $as_echo_n "(cached) " >&6
3621 else
3622 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3623 # We make a subdir and do the tests there. Otherwise we can end up
3624 # making bogus files that we don't know about and never remove. For
3625 # instance it was reported that on HP-UX the gcc test will end up
3626 # making a dummy file named `D' -- because `-MD' means `put the output
3627 # in D'.
3628 mkdir conftest.dir
3629 # Copy depcomp to subdir because otherwise we won't find it if we're
3630 # using a relative directory.
3631 cp "$am_depcomp" conftest.dir
3632 cd conftest.dir
3633 # We will build objects and dependencies in a subdirectory because
3634 # it helps to detect inapplicable dependency modes. For instance
3635 # both Tru64's cc and ICC support -MD to output dependencies as a
3636 # side effect of compilation, but ICC will put the dependencies in
3637 # the current directory while Tru64 will put them in the object
3638 # directory.
3639 mkdir sub
3640
3641 am_cv_CC_dependencies_compiler_type=none
3642 if test "$am_compiler_list" = ""; then
3643 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3644 fi
3645 for depmode in $am_compiler_list; do
3646 # Setup a source with many dependencies, because some compilers
3647 # like to wrap large dependency lists on column 80 (with \), and
3648 # we should not choose a depcomp mode which is confused by this.
3649 #
3650 # We need to recreate these files for each test, as the compiler may
3651 # overwrite some of them when testing with obscure command lines.
3652 # This happens at least with the AIX C compiler.
3653 : > sub/conftest.c
3654 for i in 1 2 3 4 5 6; do
3655 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3656 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3657 # Solaris 8's {/usr,}/bin/sh.
3658 touch sub/conftst$i.h
3659 done
3660 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3661
3662 case $depmode in
3663 nosideeffect)
3664 # after this tag, mechanisms are not by side-effect, so they'll
3665 # only be used when explicitly requested
3666 if test "x$enable_dependency_tracking" = xyes; then
3667 continue
3668 else
3669 break
3670 fi
3671 ;;
3672 none) break ;;
3673 esac
3674 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3675 # mode. It turns out that the SunPro C++ compiler does not properly
3676 # handle `-M -o', and we need to detect this.
3677 if depmode=$depmode \
3678 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3679 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3680 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3681 >/dev/null 2>conftest.err &&
3682 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3683 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3684 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3685 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3686 # icc doesn't choke on unknown options, it will just issue warnings
3687 # or remarks (even with -Werror). So we grep stderr for any message
3688 # that says an option was ignored or not supported.
3689 # When given -MP, icc 7.0 and 7.1 complain thusly:
3690 # icc: Command line warning: ignoring option '-M'; no argument required
3691 # The diagnosis changed in icc 8.0:
3692 # icc: Command line remark: option '-MP' not supported
3693 if (grep 'ignoring option' conftest.err ||
3694 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3695 am_cv_CC_dependencies_compiler_type=$depmode
3696 break
3697 fi
3698 fi
3699 done
3700
3701 cd ..
3702 rm -rf conftest.dir
3703 else
3704 am_cv_CC_dependencies_compiler_type=none
3705 fi
3706
3707 fi
3708 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3709 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3710 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3711
3712 if
3713 test "x$enable_dependency_tracking" != xno \
3714 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3715 am__fastdepCC_TRUE=
3716 am__fastdepCC_FALSE='#'
3717 else
3718 am__fastdepCC_TRUE='#'
3719 am__fastdepCC_FALSE=
3720 fi
3721
3722
3723 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3724 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3725 if test "${ac_cv_prog_cc_c99+set}" = set; then
3726 $as_echo_n "(cached) " >&6
3727 else
3728 ac_cv_prog_cc_c99=no
3729 ac_save_CC=$CC
3730 cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h. */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3736 #include <stdarg.h>
3737 #include <stdbool.h>
3738 #include <stdlib.h>
3739 #include <wchar.h>
3740 #include <stdio.h>
3741
3742 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3743 #define debug(...) fprintf (stderr, __VA_ARGS__)
3744 #define showlist(...) puts (#__VA_ARGS__)
3745 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3746 static void
3747 test_varargs_macros (void)
3748 {
3749 int x = 1234;
3750 int y = 5678;
3751 debug ("Flag");
3752 debug ("X = %d\n", x);
3753 showlist (The first, second, and third items.);
3754 report (x>y, "x is %d but y is %d", x, y);
3755 }
3756
3757 // Check long long types.
3758 #define BIG64 18446744073709551615ull
3759 #define BIG32 4294967295ul
3760 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3761 #if !BIG_OK
3762 your preprocessor is broken;
3763 #endif
3764 #if BIG_OK
3765 #else
3766 your preprocessor is broken;
3767 #endif
3768 static long long int bignum = -9223372036854775807LL;
3769 static unsigned long long int ubignum = BIG64;
3770
3771 struct incomplete_array
3772 {
3773 int datasize;
3774 double data[];
3775 };
3776
3777 struct named_init {
3778 int number;
3779 const wchar_t *name;
3780 double average;
3781 };
3782
3783 typedef const char *ccp;
3784
3785 static inline int
3786 test_restrict (ccp restrict text)
3787 {
3788 // See if C++-style comments work.
3789 // Iterate through items via the restricted pointer.
3790 // Also check for declarations in for loops.
3791 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3792 continue;
3793 return 0;
3794 }
3795
3796 // Check varargs and va_copy.
3797 static void
3798 test_varargs (const char *format, ...)
3799 {
3800 va_list args;
3801 va_start (args, format);
3802 va_list args_copy;
3803 va_copy (args_copy, args);
3804
3805 const char *str;
3806 int number;
3807 float fnumber;
3808
3809 while (*format)
3810 {
3811 switch (*format++)
3812 {
3813 case 's': // string
3814 str = va_arg (args_copy, const char *);
3815 break;
3816 case 'd': // int
3817 number = va_arg (args_copy, int);
3818 break;
3819 case 'f': // float
3820 fnumber = va_arg (args_copy, double);
3821 break;
3822 default:
3823 break;
3824 }
3825 }
3826 va_end (args_copy);
3827 va_end (args);
3828 }
3829
3830 int
3831 main ()
3832 {
3833
3834 // Check bool.
3835 _Bool success = false;
3836
3837 // Check restrict.
3838 if (test_restrict ("String literal") == 0)
3839 success = true;
3840 char *restrict newvar = "Another string";
3841
3842 // Check varargs.
3843 test_varargs ("s, d' f .", "string", 65, 34.234);
3844 test_varargs_macros ();
3845
3846 // Check flexible array members.
3847 struct incomplete_array *ia =
3848 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3849 ia->datasize = 10;
3850 for (int i = 0; i < ia->datasize; ++i)
3851 ia->data[i] = i * 1.234;
3852
3853 // Check named initializers.
3854 struct named_init ni = {
3855 .number = 34,
3856 .name = L"Test wide string",
3857 .average = 543.34343,
3858 };
3859
3860 ni.number = 58;
3861
3862 int dynamic_array[ni.number];
3863 dynamic_array[ni.number - 1] = 543;
3864
3865 // work around unused variable warnings
3866 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3867 || dynamic_array[ni.number - 1] != 543);
3868
3869 ;
3870 return 0;
3871 }
3872 _ACEOF
3873 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3874 do
3875 CC="$ac_save_CC $ac_arg"
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3883 $as_echo "$ac_try_echo") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3885 ac_status=$?
3886 grep -v '^ *+' conftest.er1 >conftest.err
3887 rm -f conftest.er1
3888 cat conftest.err >&5
3889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3894 ac_cv_prog_cc_c99=$ac_arg
3895 else
3896 $as_echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899
3900 fi
3901
3902 rm -f core conftest.err conftest.$ac_objext
3903 test "x$ac_cv_prog_cc_c99" != "xno" && break
3904 done
3905 rm -f conftest.$ac_ext
3906 CC=$ac_save_CC
3907
3908 fi
3909 # AC_CACHE_VAL
3910 case "x$ac_cv_prog_cc_c99" in
3911 x)
3912 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3913 $as_echo "none needed" >&6; } ;;
3914 xno)
3915 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3916 $as_echo "unsupported" >&6; } ;;
3917 *)
3918 CC="$CC $ac_cv_prog_cc_c99"
3919 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3920 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3921 esac
3922
3923
3924
3925
3926 ac_ext=c
3927 ac_cpp='$CPP $CPPFLAGS'
3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3932 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3933 # On Suns, sometimes $CPP names a directory.
3934 if test -n "$CPP" && test -d "$CPP"; then
3935 CPP=
3936 fi
3937 if test -z "$CPP"; then
3938 if test "${ac_cv_prog_CPP+set}" = set; then
3939 $as_echo_n "(cached) " >&6
3940 else
3941 # Double quotes because CPP needs to be expanded
3942 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3943 do
3944 ac_preproc_ok=false
3945 for ac_c_preproc_warn_flag in '' yes
3946 do
3947 # Use a header file that comes with gcc, so configuring glibc
3948 # with a fresh cross-compiler works.
3949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3950 # <limits.h> exists even on freestanding compilers.
3951 # On the NeXT, cc -E runs the code through the compiler's parser,
3952 # not just through cpp. "Syntax error" is here to catch this case.
3953 cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h. */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 #ifdef __STDC__
3960 # include <limits.h>
3961 #else
3962 # include <assert.h>
3963 #endif
3964 Syntax error
3965 _ACEOF
3966 if { (ac_try="$ac_cpp conftest.$ac_ext"
3967 case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970 esac
3971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3972 $as_echo "$ac_try_echo") >&5
3973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3974 ac_status=$?
3975 grep -v '^ *+' conftest.er1 >conftest.err
3976 rm -f conftest.er1
3977 cat conftest.err >&5
3978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } >/dev/null && {
3980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3981 test ! -s conftest.err
3982 }; then
3983 :
3984 else
3985 $as_echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988 # Broken: fails on valid input.
3989 continue
3990 fi
3991
3992 rm -f conftest.err conftest.$ac_ext
3993
3994 # OK, works on sane cases. Now check whether nonexistent headers
3995 # can be detected and how.
3996 cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h. */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4002 #include <ac_nonexistent.h>
4003 _ACEOF
4004 if { (ac_try="$ac_cpp conftest.$ac_ext"
4005 case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008 esac
4009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4010 $as_echo "$ac_try_echo") >&5
4011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4012 ac_status=$?
4013 grep -v '^ *+' conftest.er1 >conftest.err
4014 rm -f conftest.er1
4015 cat conftest.err >&5
4016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } >/dev/null && {
4018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4019 test ! -s conftest.err
4020 }; then
4021 # Broken: success on invalid input.
4022 continue
4023 else
4024 $as_echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027 # Passes both tests.
4028 ac_preproc_ok=:
4029 break
4030 fi
4031
4032 rm -f conftest.err conftest.$ac_ext
4033
4034 done
4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4036 rm -f conftest.err conftest.$ac_ext
4037 if $ac_preproc_ok; then
4038 break
4039 fi
4040
4041 done
4042 ac_cv_prog_CPP=$CPP
4043
4044 fi
4045 CPP=$ac_cv_prog_CPP
4046 else
4047 ac_cv_prog_CPP=$CPP
4048 fi
4049 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4050 $as_echo "$CPP" >&6; }
4051 ac_preproc_ok=false
4052 for ac_c_preproc_warn_flag in '' yes
4053 do
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #ifdef __STDC__
4067 # include <limits.h>
4068 #else
4069 # include <assert.h>
4070 #endif
4071 Syntax error
4072 _ACEOF
4073 if { (ac_try="$ac_cpp conftest.$ac_ext"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } >/dev/null && {
4087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4089 }; then
4090 :
4091 else
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4094
4095 # Broken: fails on valid input.
4096 continue
4097 fi
4098
4099 rm -f conftest.err conftest.$ac_ext
4100
4101 # OK, works on sane cases. Now check whether nonexistent headers
4102 # can be detected and how.
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h. */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4110 _ACEOF
4111 if { (ac_try="$ac_cpp conftest.$ac_ext"
4112 case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4117 $as_echo "$ac_try_echo") >&5
4118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } >/dev/null && {
4125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 }; then
4128 # Broken: success on invalid input.
4129 continue
4130 else
4131 $as_echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 # Passes both tests.
4135 ac_preproc_ok=:
4136 break
4137 fi
4138
4139 rm -f conftest.err conftest.$ac_ext
4140
4141 done
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then
4145 :
4146 else
4147 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4150 See \`config.log' for more details." >&5
4151 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4152 See \`config.log' for more details." >&2;}
4153 { (exit 1); exit 1; }; }; }
4154 fi
4155
4156 ac_ext=c
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161
4162
4163 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4164 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4165 if test "${ac_cv_path_GREP+set}" = set; then
4166 $as_echo_n "(cached) " >&6
4167 else
4168 if test -z "$GREP"; then
4169 ac_path_GREP_found=false
4170 # Loop through the user's path and test for each of PROGNAME-LIST
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4173 do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_prog in grep ggrep; do
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4179 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4180 # Check for GNU ac_path_GREP and select it if it is found.
4181 # Check for GNU $ac_path_GREP
4182 case `"$ac_path_GREP" --version 2>&1` in
4183 *GNU*)
4184 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4185 *)
4186 ac_count=0
4187 $as_echo_n 0123456789 >"conftest.in"
4188 while :
4189 do
4190 cat "conftest.in" "conftest.in" >"conftest.tmp"
4191 mv "conftest.tmp" "conftest.in"
4192 cp "conftest.in" "conftest.nl"
4193 $as_echo 'GREP' >> "conftest.nl"
4194 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4196 ac_count=`expr $ac_count + 1`
4197 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4198 # Best one so far, save it but keep looking for a better one
4199 ac_cv_path_GREP="$ac_path_GREP"
4200 ac_path_GREP_max=$ac_count
4201 fi
4202 # 10*(2^10) chars as input seems more than enough
4203 test $ac_count -gt 10 && break
4204 done
4205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4206 esac
4207
4208 $ac_path_GREP_found && break 3
4209 done
4210 done
4211 done
4212 IFS=$as_save_IFS
4213 if test -z "$ac_cv_path_GREP"; then
4214 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4215 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4216 { (exit 1); exit 1; }; }
4217 fi
4218 else
4219 ac_cv_path_GREP=$GREP
4220 fi
4221
4222 fi
4223 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4224 $as_echo "$ac_cv_path_GREP" >&6; }
4225 GREP="$ac_cv_path_GREP"
4226
4227
4228 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4229 $as_echo_n "checking for egrep... " >&6; }
4230 if test "${ac_cv_path_EGREP+set}" = set; then
4231 $as_echo_n "(cached) " >&6
4232 else
4233 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4234 then ac_cv_path_EGREP="$GREP -E"
4235 else
4236 if test -z "$EGREP"; then
4237 ac_path_EGREP_found=false
4238 # Loop through the user's path and test for each of PROGNAME-LIST
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4241 do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_prog in egrep; do
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4247 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4248 # Check for GNU ac_path_EGREP and select it if it is found.
4249 # Check for GNU $ac_path_EGREP
4250 case `"$ac_path_EGREP" --version 2>&1` in
4251 *GNU*)
4252 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4253 *)
4254 ac_count=0
4255 $as_echo_n 0123456789 >"conftest.in"
4256 while :
4257 do
4258 cat "conftest.in" "conftest.in" >"conftest.tmp"
4259 mv "conftest.tmp" "conftest.in"
4260 cp "conftest.in" "conftest.nl"
4261 $as_echo 'EGREP' >> "conftest.nl"
4262 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4264 ac_count=`expr $ac_count + 1`
4265 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4266 # Best one so far, save it but keep looking for a better one
4267 ac_cv_path_EGREP="$ac_path_EGREP"
4268 ac_path_EGREP_max=$ac_count
4269 fi
4270 # 10*(2^10) chars as input seems more than enough
4271 test $ac_count -gt 10 && break
4272 done
4273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4274 esac
4275
4276 $ac_path_EGREP_found && break 3
4277 done
4278 done
4279 done
4280 IFS=$as_save_IFS
4281 if test -z "$ac_cv_path_EGREP"; then
4282 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4283 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4284 { (exit 1); exit 1; }; }
4285 fi
4286 else
4287 ac_cv_path_EGREP=$EGREP
4288 fi
4289
4290 fi
4291 fi
4292 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4293 $as_echo "$ac_cv_path_EGREP" >&6; }
4294 EGREP="$ac_cv_path_EGREP"
4295
4296
4297 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4298 $as_echo_n "checking for ANSI C header files... " >&6; }
4299 if test "${ac_cv_header_stdc+set}" = set; then
4300 $as_echo_n "(cached) " >&6
4301 else
4302 cat >conftest.$ac_ext <<_ACEOF
4303 /* confdefs.h. */
4304 _ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h. */
4308 #include <stdlib.h>
4309 #include <stdarg.h>
4310 #include <string.h>
4311 #include <float.h>
4312
4313 int
4314 main ()
4315 {
4316
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 rm -f conftest.$ac_objext
4322 if { (ac_try="$ac_compile"
4323 case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326 esac
4327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4328 $as_echo "$ac_try_echo") >&5
4329 (eval "$ac_compile") 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && {
4336 test -z "$ac_c_werror_flag" ||
4337 test ! -s conftest.err
4338 } && test -s conftest.$ac_objext; then
4339 ac_cv_header_stdc=yes
4340 else
4341 $as_echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 ac_cv_header_stdc=no
4345 fi
4346
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348
4349 if test $ac_cv_header_stdc = yes; then
4350 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4351 cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h. */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 #include <string.h>
4358
4359 _ACEOF
4360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4361 $EGREP "memchr" >/dev/null 2>&1; then
4362 :
4363 else
4364 ac_cv_header_stdc=no
4365 fi
4366 rm -f conftest*
4367
4368 fi
4369
4370 if test $ac_cv_header_stdc = yes; then
4371 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4372 cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h. */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 #include <stdlib.h>
4379
4380 _ACEOF
4381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4382 $EGREP "free" >/dev/null 2>&1; then
4383 :
4384 else
4385 ac_cv_header_stdc=no
4386 fi
4387 rm -f conftest*
4388
4389 fi
4390
4391 if test $ac_cv_header_stdc = yes; then
4392 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4393 if test "$cross_compiling" = yes; then
4394 :
4395 else
4396 cat >conftest.$ac_ext <<_ACEOF
4397 /* confdefs.h. */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4402 #include <ctype.h>
4403 #include <stdlib.h>
4404 #if ((' ' & 0x0FF) == 0x020)
4405 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4406 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4407 #else
4408 # define ISLOWER(c) \
4409 (('a' <= (c) && (c) <= 'i') \
4410 || ('j' <= (c) && (c) <= 'r') \
4411 || ('s' <= (c) && (c) <= 'z'))
4412 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4413 #endif
4414
4415 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4416 int
4417 main ()
4418 {
4419 int i;
4420 for (i = 0; i < 256; i++)
4421 if (XOR (islower (i), ISLOWER (i))
4422 || toupper (i) != TOUPPER (i))
4423 return 2;
4424 return 0;
4425 }
4426 _ACEOF
4427 rm -f conftest$ac_exeext
4428 if { (ac_try="$ac_link"
4429 case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432 esac
4433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4434 $as_echo "$ac_try_echo") >&5
4435 (eval "$ac_link") 2>&5
4436 ac_status=$?
4437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4439 { (case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442 esac
4443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4444 $as_echo "$ac_try_echo") >&5
4445 (eval "$ac_try") 2>&5
4446 ac_status=$?
4447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 :
4450 else
4451 $as_echo "$as_me: program exited with status $ac_status" >&5
4452 $as_echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4454
4455 ( exit $ac_status )
4456 ac_cv_header_stdc=no
4457 fi
4458 rm -rf conftest.dSYM
4459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4460 fi
4461
4462
4463 fi
4464 fi
4465 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4466 $as_echo "$ac_cv_header_stdc" >&6; }
4467 if test $ac_cv_header_stdc = yes; then
4468
4469 cat >>confdefs.h <<\_ACEOF
4470 #define STDC_HEADERS 1
4471 _ACEOF
4472
4473 fi
4474
4475 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4486 inttypes.h stdint.h unistd.h
4487 do
4488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4489 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4490 $as_echo_n "checking for $ac_header... " >&6; }
4491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4492 $as_echo_n "(cached) " >&6
4493 else
4494 cat >conftest.$ac_ext <<_ACEOF
4495 /* confdefs.h. */
4496 _ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h. */
4500 $ac_includes_default
4501
4502 #include <$ac_header>
4503 _ACEOF
4504 rm -f conftest.$ac_objext
4505 if { (ac_try="$ac_compile"
4506 case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4511 $as_echo "$ac_try_echo") >&5
4512 (eval "$ac_compile") 2>conftest.er1
4513 ac_status=$?
4514 grep -v '^ *+' conftest.er1 >conftest.err
4515 rm -f conftest.er1
4516 cat conftest.err >&5
4517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } && {
4519 test -z "$ac_c_werror_flag" ||
4520 test ! -s conftest.err
4521 } && test -s conftest.$ac_objext; then
4522 eval "$as_ac_Header=yes"
4523 else
4524 $as_echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4526
4527 eval "$as_ac_Header=no"
4528 fi
4529
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 fi
4532 ac_res=`eval 'as_val=${'$as_ac_Header'}
4533 $as_echo "$as_val"'`
4534 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4535 $as_echo "$ac_res" >&6; }
4536 as_val=`eval 'as_val=${'$as_ac_Header'}
4537 $as_echo "$as_val"'`
4538 if test "x$as_val" = x""yes; then
4539 cat >>confdefs.h <<_ACEOF
4540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4541 _ACEOF
4542
4543 fi
4544
4545 done
4546
4547
4548
4549
4550 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4551 if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4553 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4554 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4557 $as_echo_n "(cached) " >&6
4558 else
4559 case $PKG_CONFIG in
4560 [\\/]* | ?:[\\/]*)
4561 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4562 ;;
4563 *)
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 ;;
4580 esac
4581 fi
4582 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4583 if test -n "$PKG_CONFIG"; then
4584 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4585 $as_echo "$PKG_CONFIG" >&6; }
4586 else
4587 { $as_echo "$as_me:$LINENO: result: no" >&5
4588 $as_echo "no" >&6; }
4589 fi
4590
4591
4592 fi
4593 if test -z "$ac_cv_path_PKG_CONFIG"; then
4594 ac_pt_PKG_CONFIG=$PKG_CONFIG
4595 # Extract the first word of "pkg-config", so it can be a program name with args.
4596 set dummy pkg-config; ac_word=$2
4597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4600 $as_echo_n "(cached) " >&6
4601 else
4602 case $ac_pt_PKG_CONFIG in
4603 [\\/]* | ?:[\\/]*)
4604 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4605 ;;
4606 *)
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618 done
4619 done
4620 IFS=$as_save_IFS
4621
4622 ;;
4623 esac
4624 fi
4625 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4626 if test -n "$ac_pt_PKG_CONFIG"; then
4627 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4628 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4629 else
4630 { $as_echo "$as_me:$LINENO: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4633
4634 if test "x$ac_pt_PKG_CONFIG" = x; then
4635 PKG_CONFIG=""
4636 else
4637 case $cross_compiling:$ac_tool_warned in
4638 yes:)
4639 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4641 ac_tool_warned=yes ;;
4642 esac
4643 PKG_CONFIG=$ac_pt_PKG_CONFIG
4644 fi
4645 else
4646 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4647 fi
4648
4649 fi
4650 if test -n "$PKG_CONFIG"; then
4651 _pkg_min_version=0.9.0
4652 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4653 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4654 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4655 { $as_echo "$as_me:$LINENO: result: yes" >&5
4656 $as_echo "yes" >&6; }
4657 else
4658 { $as_echo "$as_me:$LINENO: result: no" >&5
4659 $as_echo "no" >&6; }
4660 PKG_CONFIG=""
4661 fi
4662
4663 fi
4664 # Make sure we can run config.sub.
4665 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4666 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4667 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4668 { (exit 1); exit 1; }; }
4669
4670 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4671 $as_echo_n "checking build system type... " >&6; }
4672 if test "${ac_cv_build+set}" = set; then
4673 $as_echo_n "(cached) " >&6
4674 else
4675 ac_build_alias=$build_alias
4676 test "x$ac_build_alias" = x &&
4677 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4678 test "x$ac_build_alias" = x &&
4679 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4680 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4681 { (exit 1); exit 1; }; }
4682 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4683 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4684 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4685 { (exit 1); exit 1; }; }
4686
4687 fi
4688 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4689 $as_echo "$ac_cv_build" >&6; }
4690 case $ac_cv_build in
4691 *-*-*) ;;
4692 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4693 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4694 { (exit 1); exit 1; }; };;
4695 esac
4696 build=$ac_cv_build
4697 ac_save_IFS=$IFS; IFS='-'
4698 set x $ac_cv_build
4699 shift
4700 build_cpu=$1
4701 build_vendor=$2
4702 shift; shift
4703 # Remember, the first character of IFS is used to create $*,
4704 # except with old shells:
4705 build_os=$*
4706 IFS=$ac_save_IFS
4707 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4708
4709
4710 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4711 $as_echo_n "checking host system type... " >&6; }
4712 if test "${ac_cv_host+set}" = set; then
4713 $as_echo_n "(cached) " >&6
4714 else
4715 if test "x$host_alias" = x; then
4716 ac_cv_host=$ac_cv_build
4717 else
4718 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4719 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4720 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4721 { (exit 1); exit 1; }; }
4722 fi
4723
4724 fi
4725 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4726 $as_echo "$ac_cv_host" >&6; }
4727 case $ac_cv_host in
4728 *-*-*) ;;
4729 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4730 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4731 { (exit 1); exit 1; }; };;
4732 esac
4733 host=$ac_cv_host
4734 ac_save_IFS=$IFS; IFS='-'
4735 set x $ac_cv_host
4736 shift
4737 host_cpu=$1
4738 host_vendor=$2
4739 shift; shift
4740 # Remember, the first character of IFS is used to create $*,
4741 # except with old shells:
4742 host_os=$*
4743 IFS=$ac_save_IFS
4744 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4745
4746
4747 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4748 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4749 if test "${ac_cv_path_SED+set}" = set; then
4750 $as_echo_n "(cached) " >&6
4751 else
4752 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4753 for ac_i in 1 2 3 4 5 6 7; do
4754 ac_script="$ac_script$as_nl$ac_script"
4755 done
4756 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4757 $as_unset ac_script || ac_script=
4758 if test -z "$SED"; then
4759 ac_path_SED_found=false
4760 # Loop through the user's path and test for each of PROGNAME-LIST
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4763 do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_prog in sed gsed; do
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4769 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4770 # Check for GNU ac_path_SED and select it if it is found.
4771 # Check for GNU $ac_path_SED
4772 case `"$ac_path_SED" --version 2>&1` in
4773 *GNU*)
4774 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4775 *)
4776 ac_count=0
4777 $as_echo_n 0123456789 >"conftest.in"
4778 while :
4779 do
4780 cat "conftest.in" "conftest.in" >"conftest.tmp"
4781 mv "conftest.tmp" "conftest.in"
4782 cp "conftest.in" "conftest.nl"
4783 $as_echo '' >> "conftest.nl"
4784 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4786 ac_count=`expr $ac_count + 1`
4787 if test $ac_count -gt ${ac_path_SED_max-0}; then
4788 # Best one so far, save it but keep looking for a better one
4789 ac_cv_path_SED="$ac_path_SED"
4790 ac_path_SED_max=$ac_count
4791 fi
4792 # 10*(2^10) chars as input seems more than enough
4793 test $ac_count -gt 10 && break
4794 done
4795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4796 esac
4797
4798 $ac_path_SED_found && break 3
4799 done
4800 done
4801 done
4802 IFS=$as_save_IFS
4803 if test -z "$ac_cv_path_SED"; then
4804 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4805 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4806 { (exit 1); exit 1; }; }
4807 fi
4808 else
4809 ac_cv_path_SED=$SED
4810 fi
4811
4812 fi
4813 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4814 $as_echo "$ac_cv_path_SED" >&6; }
4815 SED="$ac_cv_path_SED"
4816 rm -f conftest.sed
4817
4818
4819
4820
4821
4822 if test "x$GCC" = xyes ; then
4823 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4824 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4825 -Wbad-function-cast -Wformat=2"
4826 case `$CC -dumpversion` in
4827 3.4.* | 4.*)
4828 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4829 ;;
4830 esac
4831 else
4832 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4833 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4834 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4835 $as_echo_n "(cached) " >&6
4836 else
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 $ac_includes_default
4844 int
4845 main ()
4846 {
4847 #ifndef __SUNPRO_C
4848 (void) __SUNPRO_C;
4849 #endif
4850
4851 ;
4852 return 0;
4853 }
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (ac_try="$ac_compile"
4857 case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860 esac
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863 (eval "$ac_compile") 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } && {
4870 test -z "$ac_c_werror_flag" ||
4871 test ! -s conftest.err
4872 } && test -s conftest.$ac_objext; then
4873 ac_cv_have_decl___SUNPRO_C=yes
4874 else
4875 $as_echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878 ac_cv_have_decl___SUNPRO_C=no
4879 fi
4880
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 fi
4883 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4884 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4885 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4886 SUNCC="yes"
4887 else
4888 SUNCC="no"
4889 fi
4890
4891 if test "x$SUNCC" = "xyes"; then
4892 CWARNFLAGS="-v"
4893 fi
4894 fi
4895
4896
4897
4898 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4899
4900
4901
4902 # Check whether --enable-strict-compilation was given.
4903 if test "${enable_strict_compilation+set}" = set; then
4904 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4905 else
4906 STRICT_COMPILE=no
4907 fi
4908
4909 if test "x$STRICT_COMPILE" = "xyes"; then
4910 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4911 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4912 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4913 $as_echo_n "(cached) " >&6
4914 else
4915 cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h. */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 $ac_includes_default
4922 int
4923 main ()
4924 {
4925 #ifndef __SUNPRO_C
4926 (void) __SUNPRO_C;
4927 #endif
4928
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (ac_try="$ac_compile"
4935 case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4940 $as_echo "$ac_try_echo") >&5
4941 (eval "$ac_compile") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.$ac_objext; then
4951 ac_cv_have_decl___SUNPRO_C=yes
4952 else
4953 $as_echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 ac_cv_have_decl___SUNPRO_C=no
4957 fi
4958
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 fi
4961 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4962 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4963 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4964 SUNCC="yes"
4965 else
4966 SUNCC="no"
4967 fi
4968
4969 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4970 $as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
4971 if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4972 $as_echo_n "(cached) " >&6
4973 else
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h. */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 $ac_includes_default
4981 int
4982 main ()
4983 {
4984 #ifndef __INTEL_COMPILER
4985 (void) __INTEL_COMPILER;
4986 #endif
4987
4988 ;
4989 return 0;
4990 }
4991 _ACEOF
4992 rm -f conftest.$ac_objext
4993 if { (ac_try="$ac_compile"
4994 case "(($ac_try" in
4995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996 *) ac_try_echo=$ac_try;;
4997 esac
4998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4999 $as_echo "$ac_try_echo") >&5
5000 (eval "$ac_compile") 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } && {
5007 test -z "$ac_c_werror_flag" ||
5008 test ! -s conftest.err
5009 } && test -s conftest.$ac_objext; then
5010 ac_cv_have_decl___INTEL_COMPILER=yes
5011 else
5012 $as_echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5014
5015 ac_cv_have_decl___INTEL_COMPILER=no
5016 fi
5017
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 fi
5020 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
5021 $as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
5022 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
5023 INTELCC="yes"
5024 else
5025 INTELCC="no"
5026 fi
5027
5028 if test "x$GCC" = xyes ; then
5029 STRICT_CFLAGS="-pedantic -Werror"
5030 elif test "x$SUNCC" = "xyes"; then
5031 STRICT_CFLAGS="-errwarn"
5032 elif test "x$INTELCC" = "xyes"; then
5033 STRICT_CFLAGS="-Werror"
5034 fi
5035 fi
5036 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
5037
5038
5039
5040
5041 cat >>confdefs.h <<_ACEOF
5042 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
5043 _ACEOF
5044
5045 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
5046 if test "x$PVM" = "x"; then
5047 PVM="0"
5048 fi
5049
5050 cat >>confdefs.h <<_ACEOF
5051 #define PACKAGE_VERSION_MINOR $PVM
5052 _ACEOF
5053
5054 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5055 if test "x$PVP" = "x"; then
5056 PVP="0"
5057 fi
5058
5059 cat >>confdefs.h <<_ACEOF
5060 #define PACKAGE_VERSION_PATCHLEVEL $PVP
5061 _ACEOF
5062
5063
5064
5065 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
5066 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
5067 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
5068 echo 'git directory not found: installing possibly empty changelog.' >&2)"
5069
5070
5071
5072
5073 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
5074 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
5075 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
5076 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
5077 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
5078
5079
5080
5081
5082
5083
5084 if test x$APP_MAN_SUFFIX = x ; then
5085 APP_MAN_SUFFIX=1
5086 fi
5087 if test x$APP_MAN_DIR = x ; then
5088 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5089 fi
5090
5091 if test x$LIB_MAN_SUFFIX = x ; then
5092 LIB_MAN_SUFFIX=3
5093 fi
5094 if test x$LIB_MAN_DIR = x ; then
5095 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5096 fi
5097
5098 if test x$FILE_MAN_SUFFIX = x ; then
5099 case $host_os in
5100 solaris*) FILE_MAN_SUFFIX=4 ;;
5101 *) FILE_MAN_SUFFIX=5 ;;
5102 esac
5103 fi
5104 if test x$FILE_MAN_DIR = x ; then
5105 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5106 fi
5107
5108 if test x$MISC_MAN_SUFFIX = x ; then
5109 case $host_os in
5110 solaris*) MISC_MAN_SUFFIX=5 ;;
5111 *) MISC_MAN_SUFFIX=7 ;;
5112 esac
5113 fi
5114 if test x$MISC_MAN_DIR = x ; then
5115 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5116 fi
5117
5118 if test x$DRIVER_MAN_SUFFIX = x ; then
5119 case $host_os in
5120 solaris*) DRIVER_MAN_SUFFIX=7 ;;
5121 *) DRIVER_MAN_SUFFIX=4 ;;
5122 esac
5123 fi
5124 if test x$DRIVER_MAN_DIR = x ; then
5125 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5126 fi
5127
5128 if test x$ADMIN_MAN_SUFFIX = x ; then
5129 case $host_os in
5130 solaris*) ADMIN_MAN_SUFFIX=1m ;;
5131 *) ADMIN_MAN_SUFFIX=8 ;;
5132 esac
5133 fi
5134 if test x$ADMIN_MAN_DIR = x ; then
5135 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5136 fi
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152 XORG_MAN_PAGE="X Version 11"
5153
5154 MAN_SUBSTS="\
5155 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5156 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5157 -e 's|__xservername__|Xorg|g' \
5158 -e 's|__xconfigfile__|xorg.conf|g' \
5159 -e 's|__projectroot__|\$(prefix)|g' \
5160 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
5161 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
5162 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
5163 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
5164 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
5165 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
5166
5167
5168
5169 AM_DEFAULT_VERBOSITY=1
5170
5171
5172
5173 # Initialize libtool
5174 # Check whether --enable-static was given.
5175 if test "${enable_static+set}" = set; then
5176 enableval=$enable_static; p=${PACKAGE-default}
5177 case $enableval in
5178 yes) enable_static=yes ;;
5179 no) enable_static=no ;;
5180 *)
5181 enable_static=no
5182 # Look at the argument we got. We use all the common list separators.
5183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5184 for pkg in $enableval; do
5185 IFS="$lt_save_ifs"
5186 if test "X$pkg" = "X$p"; then
5187 enable_static=yes
5188 fi
5189 done
5190 IFS="$lt_save_ifs"
5191 ;;
5192 esac
5193 else
5194 enable_static=no
5195 fi
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205 case `pwd` in
5206 *\ * | *\ *)
5207 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5208 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5209 esac
5210
5211
5212
5213 macro_version='2.2.6'
5214 macro_revision='1.3012'
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228 ltmain="$ac_aux_dir/ltmain.sh"
5229
5230 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5231 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5232 if test "${ac_cv_path_SED+set}" = set; then
5233 $as_echo_n "(cached) " >&6
5234 else
5235 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5236 for ac_i in 1 2 3 4 5 6 7; do
5237 ac_script="$ac_script$as_nl$ac_script"
5238 done
5239 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5240 $as_unset ac_script || ac_script=
5241 if test -z "$SED"; then
5242 ac_path_SED_found=false
5243 # Loop through the user's path and test for each of PROGNAME-LIST
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_prog in sed gsed; do
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5252 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5253 # Check for GNU ac_path_SED and select it if it is found.
5254 # Check for GNU $ac_path_SED
5255 case `"$ac_path_SED" --version 2>&1` in
5256 *GNU*)
5257 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5258 *)
5259 ac_count=0
5260 $as_echo_n 0123456789 >"conftest.in"
5261 while :
5262 do
5263 cat "conftest.in" "conftest.in" >"conftest.tmp"
5264 mv "conftest.tmp" "conftest.in"
5265 cp "conftest.in" "conftest.nl"
5266 $as_echo '' >> "conftest.nl"
5267 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269 ac_count=`expr $ac_count + 1`
5270 if test $ac_count -gt ${ac_path_SED_max-0}; then
5271 # Best one so far, save it but keep looking for a better one
5272 ac_cv_path_SED="$ac_path_SED"
5273 ac_path_SED_max=$ac_count
5274 fi
5275 # 10*(2^10) chars as input seems more than enough
5276 test $ac_count -gt 10 && break
5277 done
5278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5279 esac
5280
5281 $ac_path_SED_found && break 3
5282 done
5283 done
5284 done
5285 IFS=$as_save_IFS
5286 if test -z "$ac_cv_path_SED"; then
5287 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5288 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5289 { (exit 1); exit 1; }; }
5290 fi
5291 else
5292 ac_cv_path_SED=$SED
5293 fi
5294
5295 fi
5296 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5297 $as_echo "$ac_cv_path_SED" >&6; }
5298 SED="$ac_cv_path_SED"
5299 rm -f conftest.sed
5300
5301 test -z "$SED" && SED=sed
5302 Xsed="$SED -e 1s/^X//"
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5315 $as_echo_n "checking for fgrep... " >&6; }
5316 if test "${ac_cv_path_FGREP+set}" = set; then
5317 $as_echo_n "(cached) " >&6
5318 else
5319 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5320 then ac_cv_path_FGREP="$GREP -F"
5321 else
5322 if test -z "$FGREP"; then
5323 ac_path_FGREP_found=false
5324 # Loop through the user's path and test for each of PROGNAME-LIST
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5327 do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_prog in fgrep; do
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5333 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5334 # Check for GNU ac_path_FGREP and select it if it is found.
5335 # Check for GNU $ac_path_FGREP
5336 case `"$ac_path_FGREP" --version 2>&1` in
5337 *GNU*)
5338 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5339 *)
5340 ac_count=0
5341 $as_echo_n 0123456789 >"conftest.in"
5342 while :
5343 do
5344 cat "conftest.in" "conftest.in" >"conftest.tmp"
5345 mv "conftest.tmp" "conftest.in"
5346 cp "conftest.in" "conftest.nl"
5347 $as_echo 'FGREP' >> "conftest.nl"
5348 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5350 ac_count=`expr $ac_count + 1`
5351 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5352 # Best one so far, save it but keep looking for a better one
5353 ac_cv_path_FGREP="$ac_path_FGREP"
5354 ac_path_FGREP_max=$ac_count
5355 fi
5356 # 10*(2^10) chars as input seems more than enough
5357 test $ac_count -gt 10 && break
5358 done
5359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5360 esac
5361
5362 $ac_path_FGREP_found && break 3
5363 done
5364 done
5365 done
5366 IFS=$as_save_IFS
5367 if test -z "$ac_cv_path_FGREP"; then
5368 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5369 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5370 { (exit 1); exit 1; }; }
5371 fi
5372 else
5373 ac_cv_path_FGREP=$FGREP
5374 fi
5375
5376 fi
5377 fi
5378 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5379 $as_echo "$ac_cv_path_FGREP" >&6; }
5380 FGREP="$ac_cv_path_FGREP"
5381
5382
5383 test -z "$GREP" && GREP=grep
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403 # Check whether --with-gnu-ld was given.
5404 if test "${with_gnu_ld+set}" = set; then
5405 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5406 else
5407 with_gnu_ld=no
5408 fi
5409
5410 ac_prog=ld
5411 if test "$GCC" = yes; then
5412 # Check if gcc -print-prog-name=ld gives a path.
5413 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5414 $as_echo_n "checking for ld used by $CC... " >&6; }
5415 case $host in
5416 *-*-mingw*)
5417 # gcc leaves a trailing carriage return which upsets mingw
5418 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5419 *)
5420 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5421 esac
5422 case $ac_prog in
5423 # Accept absolute paths.
5424 [\\/]* | ?:[\\/]*)
5425 re_direlt='/[^/][^/]*/\.\./'
5426 # Canonicalize the pathname of ld
5427 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5428 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5429 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5430 done
5431 test -z "$LD" && LD="$ac_prog"
5432 ;;
5433 "")
5434 # If it fails, then pretend we aren't using GCC.
5435 ac_prog=ld
5436 ;;
5437 *)
5438 # If it is relative, then search for the first ld in PATH.
5439 with_gnu_ld=unknown
5440 ;;
5441 esac
5442 elif test "$with_gnu_ld" = yes; then
5443 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5444 $as_echo_n "checking for GNU ld... " >&6; }
5445 else
5446 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5447 $as_echo_n "checking for non-GNU ld... " >&6; }
5448 fi
5449 if test "${lt_cv_path_LD+set}" = set; then
5450 $as_echo_n "(cached) " >&6
5451 else
5452 if test -z "$LD"; then
5453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5454 for ac_dir in $PATH; do
5455 IFS="$lt_save_ifs"
5456 test -z "$ac_dir" && ac_dir=.
5457 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5458 lt_cv_path_LD="$ac_dir/$ac_prog"
5459 # Check to see if the program is GNU ld. I'd rather use --version,
5460 # but apparently some variants of GNU ld only accept -v.
5461 # Break only if it was the GNU/non-GNU ld that we prefer.
5462 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5463 *GNU* | *'with BFD'*)
5464 test "$with_gnu_ld" != no && break
5465 ;;
5466 *)
5467 test "$with_gnu_ld" != yes && break
5468 ;;
5469 esac
5470 fi
5471 done
5472 IFS="$lt_save_ifs"
5473 else
5474 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5475 fi
5476 fi
5477
5478 LD="$lt_cv_path_LD"
5479 if test -n "$LD"; then
5480 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5481 $as_echo "$LD" >&6; }
5482 else
5483 { $as_echo "$as_me:$LINENO: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5487 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5488 { (exit 1); exit 1; }; }
5489 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5490 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5491 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5492 $as_echo_n "(cached) " >&6
5493 else
5494 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5495 case `$LD -v 2>&1 </dev/null` in
5496 *GNU* | *'with BFD'*)
5497 lt_cv_prog_gnu_ld=yes
5498 ;;
5499 *)
5500 lt_cv_prog_gnu_ld=no
5501 ;;
5502 esac
5503 fi
5504 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5505 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5506 with_gnu_ld=$lt_cv_prog_gnu_ld
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5517 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5518 if test "${lt_cv_path_NM+set}" = set; then
5519 $as_echo_n "(cached) " >&6
5520 else
5521 if test -n "$NM"; then
5522 # Let the user override the test.
5523 lt_cv_path_NM="$NM"
5524 else
5525 lt_nm_to_check="${ac_tool_prefix}nm"
5526 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5527 lt_nm_to_check="$lt_nm_to_check nm"
5528 fi
5529 for lt_tmp_nm in $lt_nm_to_check; do
5530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5531 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5532 IFS="$lt_save_ifs"
5533 test -z "$ac_dir" && ac_dir=.
5534 tmp_nm="$ac_dir/$lt_tmp_nm"
5535 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5536 # Check to see if the nm accepts a BSD-compat flag.
5537 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5538 # nm: unknown option "B" ignored
5539 # Tru64's nm complains that /dev/null is an invalid object file
5540 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5541 */dev/null* | *'Invalid file or object type'*)
5542 lt_cv_path_NM="$tmp_nm -B"
5543 break
5544 ;;
5545 *)
5546 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5547 */dev/null*)
5548 lt_cv_path_NM="$tmp_nm -p"
5549 break
5550 ;;
5551 *)
5552 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5553 continue # so that we can try to find one that supports BSD flags
5554 ;;
5555 esac
5556 ;;
5557 esac
5558 fi
5559 done
5560 IFS="$lt_save_ifs"
5561 done
5562 : ${lt_cv_path_NM=no}
5563 fi
5564 fi
5565 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5566 $as_echo "$lt_cv_path_NM" >&6; }
5567 if test "$lt_cv_path_NM" != "no"; then
5568 NM="$lt_cv_path_NM"
5569 else
5570 # Didn't find any BSD compatible name lister, look for dumpbin.
5571 if test -n "$ac_tool_prefix"; then
5572 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5573 do
5574 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5576 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$DUMPBIN"; then
5582 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5594 fi
5595 done
5596 done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 DUMPBIN=$ac_cv_prog_DUMPBIN
5602 if test -n "$DUMPBIN"; then
5603 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5604 $as_echo "$DUMPBIN" >&6; }
5605 else
5606 { $as_echo "$as_me:$LINENO: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609
5610
5611 test -n "$DUMPBIN" && break
5612 done
5613 fi
5614 if test -z "$DUMPBIN"; then
5615 ac_ct_DUMPBIN=$DUMPBIN
5616 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5617 do
5618 # Extract the first word of "$ac_prog", so it can be a program name with args.
5619 set dummy $ac_prog; ac_word=$2
5620 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5623 $as_echo_n "(cached) " >&6
5624 else
5625 if test -n "$ac_ct_DUMPBIN"; then
5626 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5636 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639 done
5640 done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5646 if test -n "$ac_ct_DUMPBIN"; then
5647 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5648 $as_echo "$ac_ct_DUMPBIN" >&6; }
5649 else
5650 { $as_echo "$as_me:$LINENO: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653
5654
5655 test -n "$ac_ct_DUMPBIN" && break
5656 done
5657
5658 if test "x$ac_ct_DUMPBIN" = x; then
5659 DUMPBIN=":"
5660 else
5661 case $cross_compiling:$ac_tool_warned in
5662 yes:)
5663 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5665 ac_tool_warned=yes ;;
5666 esac
5667 DUMPBIN=$ac_ct_DUMPBIN
5668 fi
5669 fi
5670
5671
5672 if test "$DUMPBIN" != ":"; then
5673 NM="$DUMPBIN"
5674 fi
5675 fi
5676 test -z "$NM" && NM=nm
5677
5678
5679
5680
5681
5682
5683 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5684 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5685 if test "${lt_cv_nm_interface+set}" = set; then
5686 $as_echo_n "(cached) " >&6
5687 else
5688 lt_cv_nm_interface="BSD nm"
5689 echo "int some_variable = 0;" > conftest.$ac_ext
5690 (eval echo "\"\$as_me:5690: $ac_compile\"" >&5)
5691 (eval "$ac_compile" 2>conftest.err)
5692 cat conftest.err >&5
5693 (eval echo "\"\$as_me:5693: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5694 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5695 cat conftest.err >&5
5696 (eval echo "\"\$as_me:5696: output\"" >&5)
5697 cat conftest.out >&5
5698 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5699 lt_cv_nm_interface="MS dumpbin"
5700 fi
5701 rm -f conftest*
5702 fi
5703 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5704 $as_echo "$lt_cv_nm_interface" >&6; }
5705
5706 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5707 $as_echo_n "checking whether ln -s works... " >&6; }
5708 LN_S=$as_ln_s
5709 if test "$LN_S" = "ln -s"; then
5710 { $as_echo "$as_me:$LINENO: result: yes" >&5
5711 $as_echo "yes" >&6; }
5712 else
5713 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5714 $as_echo "no, using $LN_S" >&6; }
5715 fi
5716
5717 # find the maximum length of command line arguments
5718 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5719 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5720 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5721 $as_echo_n "(cached) " >&6
5722 else
5723 i=0
5724 teststring="ABCD"
5725
5726 case $build_os in
5727 msdosdjgpp*)
5728 # On DJGPP, this test can blow up pretty badly due to problems in libc
5729 # (any single argument exceeding 2000 bytes causes a buffer overrun
5730 # during glob expansion). Even if it were fixed, the result of this
5731 # check would be larger than it should be.
5732 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5733 ;;
5734
5735 gnu*)
5736 # Under GNU Hurd, this test is not required because there is
5737 # no limit to the length of command line arguments.
5738 # Libtool will interpret -1 as no limit whatsoever
5739 lt_cv_sys_max_cmd_len=-1;
5740 ;;
5741
5742 cygwin* | mingw* | cegcc*)
5743 # On Win9x/ME, this test blows up -- it succeeds, but takes
5744 # about 5 minutes as the teststring grows exponentially.
5745 # Worse, since 9x/ME are not pre-emptively multitasking,
5746 # you end up with a "frozen" computer, even though with patience
5747 # the test eventually succeeds (with a max line length of 256k).
5748 # Instead, let's just punt: use the minimum linelength reported by
5749 # all of the supported platforms: 8192 (on NT/2K/XP).
5750 lt_cv_sys_max_cmd_len=8192;
5751 ;;
5752
5753 amigaos*)
5754 # On AmigaOS with pdksh, this test takes hours, literally.
5755 # So we just punt and use a minimum line length of 8192.
5756 lt_cv_sys_max_cmd_len=8192;
5757 ;;
5758
5759 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5760 # This has been around since 386BSD, at least. Likely further.
5761 if test -x /sbin/sysctl; then
5762 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5763 elif test -x /usr/sbin/sysctl; then
5764 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5765 else
5766 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5767 fi
5768 # And add a safety zone
5769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5771 ;;
5772
5773 interix*)
5774 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5775 lt_cv_sys_max_cmd_len=196608
5776 ;;
5777
5778 osf*)
5779 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5780 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5781 # nice to cause kernel panics so lets avoid the loop below.
5782 # First set a reasonable default.
5783 lt_cv_sys_max_cmd_len=16384
5784 #
5785 if test -x /sbin/sysconfig; then
5786 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5787 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5788 esac
5789 fi
5790 ;;
5791 sco3.2v5*)
5792 lt_cv_sys_max_cmd_len=102400
5793 ;;
5794 sysv5* | sco5v6* | sysv4.2uw2*)
5795 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5796 if test -n "$kargmax"; then
5797 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5798 else
5799 lt_cv_sys_max_cmd_len=32768
5800 fi
5801 ;;
5802 *)
5803 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5804 if test -n "$lt_cv_sys_max_cmd_len"; then
5805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5807 else
5808 # Make teststring a little bigger before we do anything with it.
5809 # a 1K string should be a reasonable start.
5810 for i in 1 2 3 4 5 6 7 8 ; do
5811 teststring=$teststring$teststring
5812 done
5813 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5814 # If test is not a shell built-in, we'll probably end up computing a
5815 # maximum length that is only half of the actual maximum length, but
5816 # we can't tell.
5817 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5818 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5819 test $i != 17 # 1/2 MB should be enough
5820 do
5821 i=`expr $i + 1`
5822 teststring=$teststring$teststring
5823 done
5824 # Only check the string length outside the loop.
5825 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5826 teststring=
5827 # Add a significant safety factor because C++ compilers can tack on
5828 # massive amounts of additional arguments before passing them to the
5829 # linker. It appears as though 1/2 is a usable value.
5830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5831 fi
5832 ;;
5833 esac
5834
5835 fi
5836
5837 if test -n $lt_cv_sys_max_cmd_len ; then
5838 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5839 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5840 else
5841 { $as_echo "$as_me:$LINENO: result: none" >&5
5842 $as_echo "none" >&6; }
5843 fi
5844 max_cmd_len=$lt_cv_sys_max_cmd_len
5845
5846
5847
5848
5849
5850
5851 : ${CP="cp -f"}
5852 : ${MV="mv -f"}
5853 : ${RM="rm -f"}
5854
5855 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5856 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5857 # Try some XSI features
5858 xsi_shell=no
5859 ( _lt_dummy="a/b/c"
5860 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5861 = c,a/b,, \
5862 && eval 'test $(( 1 + 1 )) -eq 2 \
5863 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5864 && xsi_shell=yes
5865 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5866 $as_echo "$xsi_shell" >&6; }
5867
5868
5869 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5870 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5871 lt_shell_append=no
5872 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5873 >/dev/null 2>&1 \
5874 && lt_shell_append=yes
5875 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5876 $as_echo "$lt_shell_append" >&6; }
5877
5878
5879 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5880 lt_unset=unset
5881 else
5882 lt_unset=false
5883 fi
5884
5885
5886
5887
5888
5889 # test EBCDIC or ASCII
5890 case `echo X|tr X '\101'` in
5891 A) # ASCII based system
5892 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5893 lt_SP2NL='tr \040 \012'
5894 lt_NL2SP='tr \015\012 \040\040'
5895 ;;
5896 *) # EBCDIC based system
5897 lt_SP2NL='tr \100 \n'
5898 lt_NL2SP='tr \r\n \100\100'
5899 ;;
5900 esac
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5911 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5912 if test "${lt_cv_ld_reload_flag+set}" = set; then
5913 $as_echo_n "(cached) " >&6
5914 else
5915 lt_cv_ld_reload_flag='-r'
5916 fi
5917 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5918 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5919 reload_flag=$lt_cv_ld_reload_flag
5920 case $reload_flag in
5921 "" | " "*) ;;
5922 *) reload_flag=" $reload_flag" ;;
5923 esac
5924 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5925 case $host_os in
5926 darwin*)
5927 if test "$GCC" = yes; then
5928 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5929 else
5930 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5931 fi
5932 ;;
5933 esac
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943 if test -n "$ac_tool_prefix"; then
5944 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5945 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if test -n "$OBJDUMP"; then
5952 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5964 fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969 fi
5970 fi
5971 OBJDUMP=$ac_cv_prog_OBJDUMP
5972 if test -n "$OBJDUMP"; then
5973 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5974 $as_echo "$OBJDUMP" >&6; }
5975 else
5976 { $as_echo "$as_me:$LINENO: result: no" >&5
5977 $as_echo "no" >&6; }
5978 fi
5979
5980
5981 fi
5982 if test -z "$ac_cv_prog_OBJDUMP"; then
5983 ac_ct_OBJDUMP=$OBJDUMP
5984 # Extract the first word of "objdump", so it can be a program name with args.
5985 set dummy objdump; ac_word=$2
5986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if test -n "$ac_ct_OBJDUMP"; then
5992 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005 done
6006 done
6007 IFS=$as_save_IFS
6008
6009 fi
6010 fi
6011 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6012 if test -n "$ac_ct_OBJDUMP"; then
6013 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6014 $as_echo "$ac_ct_OBJDUMP" >&6; }
6015 else
6016 { $as_echo "$as_me:$LINENO: result: no" >&5
6017 $as_echo "no" >&6; }
6018 fi
6019
6020 if test "x$ac_ct_OBJDUMP" = x; then
6021 OBJDUMP="false"
6022 else
6023 case $cross_compiling:$ac_tool_warned in
6024 yes:)
6025 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6027 ac_tool_warned=yes ;;
6028 esac
6029 OBJDUMP=$ac_ct_OBJDUMP
6030 fi
6031 else
6032 OBJDUMP="$ac_cv_prog_OBJDUMP"
6033 fi
6034
6035 test -z "$OBJDUMP" && OBJDUMP=objdump
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6046 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6047 if test "${lt_cv_deplibs_check_method+set}" = set; then
6048 $as_echo_n "(cached) " >&6
6049 else
6050 lt_cv_file_magic_cmd='$MAGIC_CMD'
6051 lt_cv_file_magic_test_file=
6052 lt_cv_deplibs_check_method='unknown'
6053 # Need to set the preceding variable on all platforms that support
6054 # interlibrary dependencies.
6055 # 'none' -- dependencies not supported.
6056 # `unknown' -- same as none, but documents that we really don't know.
6057 # 'pass_all' -- all dependencies passed with no checks.
6058 # 'test_compile' -- check by making test program.
6059 # 'file_magic [[regex]]' -- check by looking for files in library path
6060 # which responds to the $file_magic_cmd with a given extended regex.
6061 # If you have `file' or equivalent on your system and you're not sure
6062 # whether `pass_all' will *always* work, you probably want this one.
6063
6064 case $host_os in
6065 aix[4-9]*)
6066 lt_cv_deplibs_check_method=pass_all
6067 ;;
6068
6069 beos*)
6070 lt_cv_deplibs_check_method=pass_all
6071 ;;
6072
6073 bsdi[45]*)
6074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6075 lt_cv_file_magic_cmd='/usr/bin/file -L'
6076 lt_cv_file_magic_test_file=/shlib/libc.so
6077 ;;
6078
6079 cygwin*)
6080 # func_win32_libid is a shell function defined in ltmain.sh
6081 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6082 lt_cv_file_magic_cmd='func_win32_libid'
6083 ;;
6084
6085 mingw* | pw32*)
6086 # Base MSYS/MinGW do not provide the 'file' command needed by
6087 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6088 # unless we find 'file', for example because we are cross-compiling.
6089 if ( file / ) >/dev/null 2>&1; then
6090 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6091 lt_cv_file_magic_cmd='func_win32_libid'
6092 else
6093 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6094 lt_cv_file_magic_cmd='$OBJDUMP -f'
6095 fi
6096 ;;
6097
6098 cegcc)
6099 # use the weaker test based on 'objdump'. See mingw*.
6100 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6101 lt_cv_file_magic_cmd='$OBJDUMP -f'
6102 ;;
6103
6104 darwin* | rhapsody*)
6105 lt_cv_deplibs_check_method=pass_all
6106 ;;
6107
6108 freebsd* | dragonfly*)
6109 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6110 case $host_cpu in
6111 i*86 )
6112 # Not sure whether the presence of OpenBSD here was a mistake.
6113 # Let's accept both of them until this is cleared up.
6114 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6115 lt_cv_file_magic_cmd=/usr/bin/file
6116 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6117 ;;
6118 esac
6119 else
6120 lt_cv_deplibs_check_method=pass_all
6121 fi
6122 ;;
6123
6124 gnu*)
6125 lt_cv_deplibs_check_method=pass_all
6126 ;;
6127
6128 hpux10.20* | hpux11*)
6129 lt_cv_file_magic_cmd=/usr/bin/file
6130 case $host_cpu in
6131 ia64*)
6132 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6133 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6134 ;;
6135 hppa*64*)
6136 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]'
6137 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6138 ;;
6139 *)
6140 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6141 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6142 ;;
6143 esac
6144 ;;
6145
6146 interix[3-9]*)
6147 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6149 ;;
6150
6151 irix5* | irix6* | nonstopux*)
6152 case $LD in
6153 *-32|*"-32 ") libmagic=32-bit;;
6154 *-n32|*"-n32 ") libmagic=N32;;
6155 *-64|*"-64 ") libmagic=64-bit;;
6156 *) libmagic=never-match;;
6157 esac
6158 lt_cv_deplibs_check_method=pass_all
6159 ;;
6160
6161 # This must be Linux ELF.
6162 linux* | k*bsd*-gnu)
6163 lt_cv_deplibs_check_method=pass_all
6164 ;;
6165
6166 netbsd*)
6167 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6169 else
6170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6171 fi
6172 ;;
6173
6174 newos6*)
6175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6176 lt_cv_file_magic_cmd=/usr/bin/file
6177 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6178 ;;
6179
6180 *nto* | *qnx*)
6181 lt_cv_deplibs_check_method=pass_all
6182 ;;
6183
6184 openbsd*)
6185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6187 else
6188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6189 fi
6190 ;;
6191
6192 osf3* | osf4* | osf5*)
6193 lt_cv_deplibs_check_method=pass_all
6194 ;;
6195
6196 rdos*)
6197 lt_cv_deplibs_check_method=pass_all
6198 ;;
6199
6200 solaris*)
6201 lt_cv_deplibs_check_method=pass_all
6202 ;;
6203
6204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6205 lt_cv_deplibs_check_method=pass_all
6206 ;;
6207
6208 sysv4 | sysv4.3*)
6209 case $host_vendor in
6210 motorola)
6211 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]'
6212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6213 ;;
6214 ncr)
6215 lt_cv_deplibs_check_method=pass_all
6216 ;;
6217 sequent)
6218 lt_cv_file_magic_cmd='/bin/file'
6219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6220 ;;
6221 sni)
6222 lt_cv_file_magic_cmd='/bin/file'
6223 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6224 lt_cv_file_magic_test_file=/lib/libc.so
6225 ;;
6226 siemens)
6227 lt_cv_deplibs_check_method=pass_all
6228 ;;
6229 pc)
6230 lt_cv_deplibs_check_method=pass_all
6231 ;;
6232 esac
6233 ;;
6234
6235 tpf*)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238 esac
6239
6240 fi
6241 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6242 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6243 file_magic_cmd=$lt_cv_file_magic_cmd
6244 deplibs_check_method=$lt_cv_deplibs_check_method
6245 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258 if test -n "$ac_tool_prefix"; then
6259 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6260 set dummy ${ac_tool_prefix}ar; ac_word=$2
6261 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 $as_echo_n "checking for $ac_word... " >&6; }
6263 if test "${ac_cv_prog_AR+set}" = set; then
6264 $as_echo_n "(cached) " >&6
6265 else
6266 if test -n "$AR"; then
6267 ac_cv_prog_AR="$AR" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_prog_AR="${ac_tool_prefix}ar"
6277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 break 2
6279 fi
6280 done
6281 done
6282 IFS=$as_save_IFS
6283
6284 fi
6285 fi
6286 AR=$ac_cv_prog_AR
6287 if test -n "$AR"; then
6288 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6289 $as_echo "$AR" >&6; }
6290 else
6291 { $as_echo "$as_me:$LINENO: result: no" >&5
6292 $as_echo "no" >&6; }
6293 fi
6294
6295
6296 fi
6297 if test -z "$ac_cv_prog_AR"; then
6298 ac_ct_AR=$AR
6299 # Extract the first word of "ar", so it can be a program name with args.
6300 set dummy ar; ac_word=$2
6301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6304 $as_echo_n "(cached) " >&6
6305 else
6306 if test -n "$ac_ct_AR"; then
6307 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_prog_ac_ct_AR="ar"
6317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320 done
6321 done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6327 if test -n "$ac_ct_AR"; then
6328 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6329 $as_echo "$ac_ct_AR" >&6; }
6330 else
6331 { $as_echo "$as_me:$LINENO: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334
6335 if test "x$ac_ct_AR" = x; then
6336 AR="false"
6337 else
6338 case $cross_compiling:$ac_tool_warned in
6339 yes:)
6340 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6342 ac_tool_warned=yes ;;
6343 esac
6344 AR=$ac_ct_AR
6345 fi
6346 else
6347 AR="$ac_cv_prog_AR"
6348 fi
6349
6350 test -z "$AR" && AR=ar
6351 test -z "$AR_FLAGS" && AR_FLAGS=cru
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363 if test -n "$ac_tool_prefix"; then
6364 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6365 set dummy ${ac_tool_prefix}strip; ac_word=$2
6366 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if test "${ac_cv_prog_STRIP+set}" = set; then
6369 $as_echo_n "(cached) " >&6
6370 else
6371 if test -n "$STRIP"; then
6372 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6376 do
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6384 fi
6385 done
6386 done
6387 IFS=$as_save_IFS
6388
6389 fi
6390 fi
6391 STRIP=$ac_cv_prog_STRIP
6392 if test -n "$STRIP"; then
6393 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6394 $as_echo "$STRIP" >&6; }
6395 else
6396 { $as_echo "$as_me:$LINENO: result: no" >&5
6397 $as_echo "no" >&6; }
6398 fi
6399
6400
6401 fi
6402 if test -z "$ac_cv_prog_STRIP"; then
6403 ac_ct_STRIP=$STRIP
6404 # Extract the first word of "strip", so it can be a program name with args.
6405 set dummy strip; ac_word=$2
6406 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$ac_ct_STRIP"; then
6412 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_prog_ac_ct_STRIP="strip"
6422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6424 fi
6425 done
6426 done
6427 IFS=$as_save_IFS
6428
6429 fi
6430 fi
6431 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6432 if test -n "$ac_ct_STRIP"; then
6433 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6434 $as_echo "$ac_ct_STRIP" >&6; }
6435 else
6436 { $as_echo "$as_me:$LINENO: result: no" >&5
6437 $as_echo "no" >&6; }
6438 fi
6439
6440 if test "x$ac_ct_STRIP" = x; then
6441 STRIP=":"
6442 else
6443 case $cross_compiling:$ac_tool_warned in
6444 yes:)
6445 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447 ac_tool_warned=yes ;;
6448 esac
6449 STRIP=$ac_ct_STRIP
6450 fi
6451 else
6452 STRIP="$ac_cv_prog_STRIP"
6453 fi
6454
6455 test -z "$STRIP" && STRIP=:
6456
6457
6458
6459
6460
6461
6462 if test -n "$ac_tool_prefix"; then
6463 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6464 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if test "${ac_cv_prog_RANLIB+set}" = set; then
6468 $as_echo_n "(cached) " >&6
6469 else
6470 if test -n "$RANLIB"; then
6471 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6472 else
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6483 fi
6484 done
6485 done
6486 IFS=$as_save_IFS
6487
6488 fi
6489 fi
6490 RANLIB=$ac_cv_prog_RANLIB
6491 if test -n "$RANLIB"; then
6492 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6493 $as_echo "$RANLIB" >&6; }
6494 else
6495 { $as_echo "$as_me:$LINENO: result: no" >&5
6496 $as_echo "no" >&6; }
6497 fi
6498
6499
6500 fi
6501 if test -z "$ac_cv_prog_RANLIB"; then
6502 ac_ct_RANLIB=$RANLIB
6503 # Extract the first word of "ranlib", so it can be a program name with args.
6504 set dummy ranlib; ac_word=$2
6505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6508 $as_echo_n "(cached) " >&6
6509 else
6510 if test -n "$ac_ct_RANLIB"; then
6511 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_prog_ac_ct_RANLIB="ranlib"
6521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6523 fi
6524 done
6525 done
6526 IFS=$as_save_IFS
6527
6528 fi
6529 fi
6530 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6531 if test -n "$ac_ct_RANLIB"; then
6532 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6533 $as_echo "$ac_ct_RANLIB" >&6; }
6534 else
6535 { $as_echo "$as_me:$LINENO: result: no" >&5
6536 $as_echo "no" >&6; }
6537 fi
6538
6539 if test "x$ac_ct_RANLIB" = x; then
6540 RANLIB=":"
6541 else
6542 case $cross_compiling:$ac_tool_warned in
6543 yes:)
6544 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546 ac_tool_warned=yes ;;
6547 esac
6548 RANLIB=$ac_ct_RANLIB
6549 fi
6550 else
6551 RANLIB="$ac_cv_prog_RANLIB"
6552 fi
6553
6554 test -z "$RANLIB" && RANLIB=:
6555
6556
6557
6558
6559
6560
6561 # Determine commands to create old-style static archives.
6562 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6563 old_postinstall_cmds='chmod 644 $oldlib'
6564 old_postuninstall_cmds=
6565
6566 if test -n "$RANLIB"; then
6567 case $host_os in
6568 openbsd*)
6569 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6570 ;;
6571 *)
6572 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6573 ;;
6574 esac
6575 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6576 fi
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 # If no C compiler was specified, use CC.
6612 LTCC=${LTCC-"$CC"}
6613
6614 # If no C compiler flags were specified, use CFLAGS.
6615 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6616
6617 # Allow CC to be a program name with arguments.
6618 compiler=$CC
6619
6620
6621 # Check for command to grab the raw symbol name followed by C symbol from nm.
6622 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6623 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6624 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6625 $as_echo_n "(cached) " >&6
6626 else
6627
6628 # These are sane defaults that work on at least a few old systems.
6629 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6630
6631 # Character class describing NM global symbol codes.
6632 symcode='[BCDEGRST]'
6633
6634 # Regexp to match symbols that can be accessed directly from C.
6635 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6636
6637 # Define system-specific variables.
6638 case $host_os in
6639 aix*)
6640 symcode='[BCDT]'
6641 ;;
6642 cygwin* | mingw* | pw32* | cegcc*)
6643 symcode='[ABCDGISTW]'
6644 ;;
6645 hpux*)
6646 if test "$host_cpu" = ia64; then
6647 symcode='[ABCDEGRST]'
6648 fi
6649 ;;
6650 irix* | nonstopux*)
6651 symcode='[BCDEGRST]'
6652 ;;
6653 osf*)
6654 symcode='[BCDEGQRST]'
6655 ;;
6656 solaris*)
6657 symcode='[BDRT]'
6658 ;;
6659 sco3.2v5*)
6660 symcode='[DT]'
6661 ;;
6662 sysv4.2uw2*)
6663 symcode='[DT]'
6664 ;;
6665 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6666 symcode='[ABDT]'
6667 ;;
6668 sysv4)
6669 symcode='[DFNSTU]'
6670 ;;
6671 esac
6672
6673 # If we're using GNU nm, then use its standard symbol codes.
6674 case `$NM -V 2>&1` in
6675 *GNU* | *'with BFD'*)
6676 symcode='[ABCDGIRSTW]' ;;
6677 esac
6678
6679 # Transform an extracted symbol line into a proper C declaration.
6680 # Some systems (esp. on ia64) link data and code symbols differently,
6681 # so use this general approach.
6682 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6683
6684 # Transform an extracted symbol line into symbol name and symbol address
6685 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6686 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'"
6687
6688 # Handle CRLF in mingw tool chain
6689 opt_cr=
6690 case $build_os in
6691 mingw*)
6692 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6693 ;;
6694 esac
6695
6696 # Try without a prefix underscore, then with it.
6697 for ac_symprfx in "" "_"; do
6698
6699 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6700 symxfrm="\\1 $ac_symprfx\\2 \\2"
6701
6702 # Write the raw and C identifiers.
6703 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6704 # Fake it for dumpbin and say T for any non-static function
6705 # and D for any global variable.
6706 # Also find C++ and __fastcall symbols from MSVC++,
6707 # which start with @ or ?.
6708 lt_cv_sys_global_symbol_pipe="$AWK '"\
6709 " {last_section=section; section=\$ 3};"\
6710 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6711 " \$ 0!~/External *\|/{next};"\
6712 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6713 " {if(hide[section]) next};"\
6714 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6715 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6716 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6717 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6718 " ' prfx=^$ac_symprfx"
6719 else
6720 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6721 fi
6722
6723 # Check to see that the pipe works correctly.
6724 pipe_works=no
6725
6726 rm -f conftest*
6727 cat > conftest.$ac_ext <<_LT_EOF
6728 #ifdef __cplusplus
6729 extern "C" {
6730 #endif
6731 char nm_test_var;
6732 void nm_test_func(void);
6733 void nm_test_func(void){}
6734 #ifdef __cplusplus
6735 }
6736 #endif
6737 int main(){nm_test_var='a';nm_test_func();return(0);}
6738 _LT_EOF
6739
6740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6741 (eval $ac_compile) 2>&5
6742 ac_status=$?
6743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; then
6745 # Now try to grab the symbols.
6746 nlist=conftest.nm
6747 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6748 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6749 ac_status=$?
6750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } && test -s "$nlist"; then
6752 # Try sorting and uniquifying the output.
6753 if sort "$nlist" | uniq > "$nlist"T; then
6754 mv -f "$nlist"T "$nlist"
6755 else
6756 rm -f "$nlist"T
6757 fi
6758
6759 # Make sure that we snagged all the symbols we need.
6760 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6761 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6762 cat <<_LT_EOF > conftest.$ac_ext
6763 #ifdef __cplusplus
6764 extern "C" {
6765 #endif
6766
6767 _LT_EOF
6768 # Now generate the symbol file.
6769 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6770
6771 cat <<_LT_EOF >> conftest.$ac_ext
6772
6773 /* The mapping between symbol names and symbols. */
6774 const struct {
6775 const char *name;
6776 void *address;
6777 }
6778 lt__PROGRAM__LTX_preloaded_symbols[] =
6779 {
6780 { "@PROGRAM@", (void *) 0 },
6781 _LT_EOF
6782 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6783 cat <<\_LT_EOF >> conftest.$ac_ext
6784 {0, (void *) 0}
6785 };
6786
6787 /* This works around a problem in FreeBSD linker */
6788 #ifdef FREEBSD_WORKAROUND
6789 static const void *lt_preloaded_setup() {
6790 return lt__PROGRAM__LTX_preloaded_symbols;
6791 }
6792 #endif
6793
6794 #ifdef __cplusplus
6795 }
6796 #endif
6797 _LT_EOF
6798 # Now try linking the two files.
6799 mv conftest.$ac_objext conftstm.$ac_objext
6800 lt_save_LIBS="$LIBS"
6801 lt_save_CFLAGS="$CFLAGS"
6802 LIBS="conftstm.$ac_objext"
6803 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6805 (eval $ac_link) 2>&5
6806 ac_status=$?
6807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6809 pipe_works=yes
6810 fi
6811 LIBS="$lt_save_LIBS"
6812 CFLAGS="$lt_save_CFLAGS"
6813 else
6814 echo "cannot find nm_test_func in $nlist" >&5
6815 fi
6816 else
6817 echo "cannot find nm_test_var in $nlist" >&5
6818 fi
6819 else
6820 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6821 fi
6822 else
6823 echo "$progname: failed program was:" >&5
6824 cat conftest.$ac_ext >&5
6825 fi
6826 rm -rf conftest* conftst*
6827
6828 # Do not use the global_symbol_pipe unless it works.
6829 if test "$pipe_works" = yes; then
6830 break
6831 else
6832 lt_cv_sys_global_symbol_pipe=
6833 fi
6834 done
6835
6836 fi
6837
6838 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6839 lt_cv_sys_global_symbol_to_cdecl=
6840 fi
6841 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6842 { $as_echo "$as_me:$LINENO: result: failed" >&5
6843 $as_echo "failed" >&6; }
6844 else
6845 { $as_echo "$as_me:$LINENO: result: ok" >&5
6846 $as_echo "ok" >&6; }
6847 fi
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870 # Check whether --enable-libtool-lock was given.
6871 if test "${enable_libtool_lock+set}" = set; then
6872 enableval=$enable_libtool_lock;
6873 fi
6874
6875 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6876
6877 # Some flags need to be propagated to the compiler or linker for good
6878 # libtool support.
6879 case $host in
6880 ia64-*-hpux*)
6881 # Find out which ABI we are using.
6882 echo 'int i;' > conftest.$ac_ext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6884 (eval $ac_compile) 2>&5
6885 ac_status=$?
6886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; then
6888 case `/usr/bin/file conftest.$ac_objext` in
6889 *ELF-32*)
6890 HPUX_IA64_MODE="32"
6891 ;;
6892 *ELF-64*)
6893 HPUX_IA64_MODE="64"
6894 ;;
6895 esac
6896 fi
6897 rm -rf conftest*
6898 ;;
6899 *-*-irix6*)
6900 # Find out which ABI we are using.
6901 echo '#line 6901 "configure"' > conftest.$ac_ext
6902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6903 (eval $ac_compile) 2>&5
6904 ac_status=$?
6905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; then
6907 if test "$lt_cv_prog_gnu_ld" = yes; then
6908 case `/usr/bin/file conftest.$ac_objext` in
6909 *32-bit*)
6910 LD="${LD-ld} -melf32bsmip"
6911 ;;
6912 *N32*)
6913 LD="${LD-ld} -melf32bmipn32"
6914 ;;
6915 *64-bit*)
6916 LD="${LD-ld} -melf64bmip"
6917 ;;
6918 esac
6919 else
6920 case `/usr/bin/file conftest.$ac_objext` in
6921 *32-bit*)
6922 LD="${LD-ld} -32"
6923 ;;
6924 *N32*)
6925 LD="${LD-ld} -n32"
6926 ;;
6927 *64-bit*)
6928 LD="${LD-ld} -64"
6929 ;;
6930 esac
6931 fi
6932 fi
6933 rm -rf conftest*
6934 ;;
6935
6936 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6937 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6938 # Find out which ABI we are using.
6939 echo 'int i;' > conftest.$ac_ext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941 (eval $ac_compile) 2>&5
6942 ac_status=$?
6943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; then
6945 case `/usr/bin/file conftest.o` in
6946 *32-bit*)
6947 case $host in
6948 x86_64-*kfreebsd*-gnu)
6949 LD="${LD-ld} -m elf_i386_fbsd"
6950 ;;
6951 x86_64-*linux*)
6952 LD="${LD-ld} -m elf_i386"
6953 ;;
6954 ppc64-*linux*|powerpc64-*linux*)
6955 LD="${LD-ld} -m elf32ppclinux"
6956 ;;
6957 s390x-*linux*)
6958 LD="${LD-ld} -m elf_s390"
6959 ;;
6960 sparc64-*linux*)
6961 LD="${LD-ld} -m elf32_sparc"
6962 ;;
6963 esac
6964 ;;
6965 *64-bit*)
6966 case $host in
6967 x86_64-*kfreebsd*-gnu)
6968 LD="${LD-ld} -m elf_x86_64_fbsd"
6969 ;;
6970 x86_64-*linux*)
6971 LD="${LD-ld} -m elf_x86_64"
6972 ;;
6973 ppc*-*linux*|powerpc*-*linux*)
6974 LD="${LD-ld} -m elf64ppc"
6975 ;;
6976 s390*-*linux*|s390*-*tpf*)
6977 LD="${LD-ld} -m elf64_s390"
6978 ;;
6979 sparc*-*linux*)
6980 LD="${LD-ld} -m elf64_sparc"
6981 ;;
6982 esac
6983 ;;
6984 esac
6985 fi
6986 rm -rf conftest*
6987 ;;
6988
6989 *-*-sco3.2v5*)
6990 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6991 SAVE_CFLAGS="$CFLAGS"
6992 CFLAGS="$CFLAGS -belf"
6993 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6994 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6995 if test "${lt_cv_cc_needs_belf+set}" = set; then
6996 $as_echo_n "(cached) " >&6
6997 else
6998 ac_ext=c
6999 ac_cpp='$CPP $CPPFLAGS'
7000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7003
7004 cat >conftest.$ac_ext <<_ACEOF
7005 /* confdefs.h. */
7006 _ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010
7011 int
7012 main ()
7013 {
7014
7015 ;
7016 return 0;
7017 }
7018 _ACEOF
7019 rm -f conftest.$ac_objext conftest$ac_exeext
7020 if { (ac_try="$ac_link"
7021 case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024 esac
7025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7026 $as_echo "$ac_try_echo") >&5
7027 (eval "$ac_link") 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && {
7034 test -z "$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7036 } && test -s conftest$ac_exeext && {
7037 test "$cross_compiling" = yes ||
7038 $as_test_x conftest$ac_exeext
7039 }; then
7040 lt_cv_cc_needs_belf=yes
7041 else
7042 $as_echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7044
7045 lt_cv_cc_needs_belf=no
7046 fi
7047
7048 rm -rf conftest.dSYM
7049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7050 conftest$ac_exeext conftest.$ac_ext
7051 ac_ext=c
7052 ac_cpp='$CPP $CPPFLAGS'
7053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7056
7057 fi
7058 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7059 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7060 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7061 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7062 CFLAGS="$SAVE_CFLAGS"
7063 fi
7064 ;;
7065 sparc*-*solaris*)
7066 # Find out which ABI we are using.
7067 echo 'int i;' > conftest.$ac_ext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069 (eval $ac_compile) 2>&5
7070 ac_status=$?
7071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; then
7073 case `/usr/bin/file conftest.o` in
7074 *64-bit*)
7075 case $lt_cv_prog_gnu_ld in
7076 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7077 *)
7078 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7079 LD="${LD-ld} -64"
7080 fi
7081 ;;
7082 esac
7083 ;;
7084 esac
7085 fi
7086 rm -rf conftest*
7087 ;;
7088 esac
7089
7090 need_locks="$enable_libtool_lock"
7091
7092
7093 case $host_os in
7094 rhapsody* | darwin*)
7095 if test -n "$ac_tool_prefix"; then
7096 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7097 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7101 $as_echo_n "(cached) " >&6
7102 else
7103 if test -n "$DSYMUTIL"; then
7104 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7116 fi
7117 done
7118 done
7119 IFS=$as_save_IFS
7120
7121 fi
7122 fi
7123 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7124 if test -n "$DSYMUTIL"; then
7125 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7126 $as_echo "$DSYMUTIL" >&6; }
7127 else
7128 { $as_echo "$as_me:$LINENO: result: no" >&5
7129 $as_echo "no" >&6; }
7130 fi
7131
7132
7133 fi
7134 if test -z "$ac_cv_prog_DSYMUTIL"; then
7135 ac_ct_DSYMUTIL=$DSYMUTIL
7136 # Extract the first word of "dsymutil", so it can be a program name with args.
7137 set dummy dsymutil; ac_word=$2
7138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7141 $as_echo_n "(cached) " >&6
7142 else
7143 if test -n "$ac_ct_DSYMUTIL"; then
7144 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157 done
7158 done
7159 IFS=$as_save_IFS
7160
7161 fi
7162 fi
7163 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7164 if test -n "$ac_ct_DSYMUTIL"; then
7165 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7166 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7167 else
7168 { $as_echo "$as_me:$LINENO: result: no" >&5
7169 $as_echo "no" >&6; }
7170 fi
7171
7172 if test "x$ac_ct_DSYMUTIL" = x; then
7173 DSYMUTIL=":"
7174 else
7175 case $cross_compiling:$ac_tool_warned in
7176 yes:)
7177 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7179 ac_tool_warned=yes ;;
7180 esac
7181 DSYMUTIL=$ac_ct_DSYMUTIL
7182 fi
7183 else
7184 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7185 fi
7186
7187 if test -n "$ac_tool_prefix"; then
7188 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7189 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7193 $as_echo_n "(cached) " >&6
7194 else
7195 if test -n "$NMEDIT"; then
7196 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7206 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 break 2
7208 fi
7209 done
7210 done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 NMEDIT=$ac_cv_prog_NMEDIT
7216 if test -n "$NMEDIT"; then
7217 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7218 $as_echo "$NMEDIT" >&6; }
7219 else
7220 { $as_echo "$as_me:$LINENO: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224
7225 fi
7226 if test -z "$ac_cv_prog_NMEDIT"; then
7227 ac_ct_NMEDIT=$NMEDIT
7228 # Extract the first word of "nmedit", so it can be a program name with args.
7229 set dummy nmedit; ac_word=$2
7230 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7233 $as_echo_n "(cached) " >&6
7234 else
7235 if test -n "$ac_ct_NMEDIT"; then
7236 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7256 if test -n "$ac_ct_NMEDIT"; then
7257 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7258 $as_echo "$ac_ct_NMEDIT" >&6; }
7259 else
7260 { $as_echo "$as_me:$LINENO: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264 if test "x$ac_ct_NMEDIT" = x; then
7265 NMEDIT=":"
7266 else
7267 case $cross_compiling:$ac_tool_warned in
7268 yes:)
7269 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7271 ac_tool_warned=yes ;;
7272 esac
7273 NMEDIT=$ac_ct_NMEDIT
7274 fi
7275 else
7276 NMEDIT="$ac_cv_prog_NMEDIT"
7277 fi
7278
7279 if test -n "$ac_tool_prefix"; then
7280 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7281 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if test "${ac_cv_prog_LIPO+set}" = set; then
7285 $as_echo_n "(cached) " >&6
7286 else
7287 if test -n "$LIPO"; then
7288 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 LIPO=$ac_cv_prog_LIPO
7308 if test -n "$LIPO"; then
7309 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7310 $as_echo "$LIPO" >&6; }
7311 else
7312 { $as_echo "$as_me:$LINENO: result: no" >&5
7313 $as_echo "no" >&6; }
7314 fi
7315
7316
7317 fi
7318 if test -z "$ac_cv_prog_LIPO"; then
7319 ac_ct_LIPO=$LIPO
7320 # Extract the first word of "lipo", so it can be a program name with args.
7321 set dummy lipo; ac_word=$2
7322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7325 $as_echo_n "(cached) " >&6
7326 else
7327 if test -n "$ac_ct_LIPO"; then
7328 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_prog_ac_ct_LIPO="lipo"
7338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345 fi
7346 fi
7347 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7348 if test -n "$ac_ct_LIPO"; then
7349 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7350 $as_echo "$ac_ct_LIPO" >&6; }
7351 else
7352 { $as_echo "$as_me:$LINENO: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356 if test "x$ac_ct_LIPO" = x; then
7357 LIPO=":"
7358 else
7359 case $cross_compiling:$ac_tool_warned in
7360 yes:)
7361 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7363 ac_tool_warned=yes ;;
7364 esac
7365 LIPO=$ac_ct_LIPO
7366 fi
7367 else
7368 LIPO="$ac_cv_prog_LIPO"
7369 fi
7370
7371 if test -n "$ac_tool_prefix"; then
7372 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7373 set dummy ${ac_tool_prefix}otool; ac_word=$2
7374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if test "${ac_cv_prog_OTOOL+set}" = set; then
7377 $as_echo_n "(cached) " >&6
7378 else
7379 if test -n "$OTOOL"; then
7380 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7392 fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 OTOOL=$ac_cv_prog_OTOOL
7400 if test -n "$OTOOL"; then
7401 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7402 $as_echo "$OTOOL" >&6; }
7403 else
7404 { $as_echo "$as_me:$LINENO: result: no" >&5
7405 $as_echo "no" >&6; }
7406 fi
7407
7408
7409 fi
7410 if test -z "$ac_cv_prog_OTOOL"; then
7411 ac_ct_OTOOL=$OTOOL
7412 # Extract the first word of "otool", so it can be a program name with args.
7413 set dummy otool; ac_word=$2
7414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7417 $as_echo_n "(cached) " >&6
7418 else
7419 if test -n "$ac_ct_OTOOL"; then
7420 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_prog_ac_ct_OTOOL="otool"
7430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7432 fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437 fi
7438 fi
7439 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7440 if test -n "$ac_ct_OTOOL"; then
7441 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7442 $as_echo "$ac_ct_OTOOL" >&6; }
7443 else
7444 { $as_echo "$as_me:$LINENO: result: no" >&5
7445 $as_echo "no" >&6; }
7446 fi
7447
7448 if test "x$ac_ct_OTOOL" = x; then
7449 OTOOL=":"
7450 else
7451 case $cross_compiling:$ac_tool_warned in
7452 yes:)
7453 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7455 ac_tool_warned=yes ;;
7456 esac
7457 OTOOL=$ac_ct_OTOOL
7458 fi
7459 else
7460 OTOOL="$ac_cv_prog_OTOOL"
7461 fi
7462
7463 if test -n "$ac_tool_prefix"; then
7464 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7465 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7469 $as_echo_n "(cached) " >&6
7470 else
7471 if test -n "$OTOOL64"; then
7472 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485 done
7486 done
7487 IFS=$as_save_IFS
7488
7489 fi
7490 fi
7491 OTOOL64=$ac_cv_prog_OTOOL64
7492 if test -n "$OTOOL64"; then
7493 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7494 $as_echo "$OTOOL64" >&6; }
7495 else
7496 { $as_echo "$as_me:$LINENO: result: no" >&5
7497 $as_echo "no" >&6; }
7498 fi
7499
7500
7501 fi
7502 if test -z "$ac_cv_prog_OTOOL64"; then
7503 ac_ct_OTOOL64=$OTOOL64
7504 # Extract the first word of "otool64", so it can be a program name with args.
7505 set dummy otool64; ac_word=$2
7506 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7509 $as_echo_n "(cached) " >&6
7510 else
7511 if test -n "$ac_ct_OTOOL64"; then
7512 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_prog_ac_ct_OTOOL64="otool64"
7522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7524 fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529 fi
7530 fi
7531 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7532 if test -n "$ac_ct_OTOOL64"; then
7533 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7534 $as_echo "$ac_ct_OTOOL64" >&6; }
7535 else
7536 { $as_echo "$as_me:$LINENO: result: no" >&5
7537 $as_echo "no" >&6; }
7538 fi
7539
7540 if test "x$ac_ct_OTOOL64" = x; then
7541 OTOOL64=":"
7542 else
7543 case $cross_compiling:$ac_tool_warned in
7544 yes:)
7545 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7547 ac_tool_warned=yes ;;
7548 esac
7549 OTOOL64=$ac_ct_OTOOL64
7550 fi
7551 else
7552 OTOOL64="$ac_cv_prog_OTOOL64"
7553 fi
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7582 $as_echo_n "checking for -single_module linker flag... " >&6; }
7583 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7584 $as_echo_n "(cached) " >&6
7585 else
7586 lt_cv_apple_cc_single_mod=no
7587 if test -z "${LT_MULTI_MODULE}"; then
7588 # By default we will add the -single_module flag. You can override
7589 # by either setting the environment variable LT_MULTI_MODULE
7590 # non-empty at configure time, or by adding -multi_module to the
7591 # link flags.
7592 rm -rf libconftest.dylib*
7593 echo "int foo(void){return 1;}" > conftest.c
7594 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7595 -dynamiclib -Wl,-single_module conftest.c" >&5
7596 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7597 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7598 _lt_result=$?
7599 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7600 lt_cv_apple_cc_single_mod=yes
7601 else
7602 cat conftest.err >&5
7603 fi
7604 rm -rf libconftest.dylib*
7605 rm -f conftest.*
7606 fi
7607 fi
7608 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7609 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7610 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7611 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7612 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7613 $as_echo_n "(cached) " >&6
7614 else
7615 lt_cv_ld_exported_symbols_list=no
7616 save_LDFLAGS=$LDFLAGS
7617 echo "_main" > conftest.sym
7618 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7619 cat >conftest.$ac_ext <<_ACEOF
7620 /* confdefs.h. */
7621 _ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625
7626 int
7627 main ()
7628 {
7629
7630 ;
7631 return 0;
7632 }
7633 _ACEOF
7634 rm -f conftest.$ac_objext conftest$ac_exeext
7635 if { (ac_try="$ac_link"
7636 case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7639 esac
7640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7641 $as_echo "$ac_try_echo") >&5
7642 (eval "$ac_link") 2>conftest.er1
7643 ac_status=$?
7644 grep -v '^ *+' conftest.er1 >conftest.err
7645 rm -f conftest.er1
7646 cat conftest.err >&5
7647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } && {
7649 test -z "$ac_c_werror_flag" ||
7650 test ! -s conftest.err
7651 } && test -s conftest$ac_exeext && {
7652 test "$cross_compiling" = yes ||
7653 $as_test_x conftest$ac_exeext
7654 }; then
7655 lt_cv_ld_exported_symbols_list=yes
7656 else
7657 $as_echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660 lt_cv_ld_exported_symbols_list=no
7661 fi
7662
7663 rm -rf conftest.dSYM
7664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7665 conftest$ac_exeext conftest.$ac_ext
7666 LDFLAGS="$save_LDFLAGS"
7667
7668 fi
7669 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7670 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7671 case $host_os in
7672 rhapsody* | darwin1.[012])
7673 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7674 darwin1.*)
7675 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7676 darwin*) # darwin 5.x on
7677 # if running on 10.5 or later, the deployment target defaults
7678 # to the OS version, if on x86, and 10.4, the deployment
7679 # target defaults to 10.4. Don't you love it?
7680 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7681 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7682 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7683 10.[012]*)
7684 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7685 10.*)
7686 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7687 esac
7688 ;;
7689 esac
7690 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7691 _lt_dar_single_mod='$single_module'
7692 fi
7693 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7694 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7695 else
7696 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7697 fi
7698 if test "$DSYMUTIL" != ":"; then
7699 _lt_dsymutil='~$DSYMUTIL $lib || :'
7700 else
7701 _lt_dsymutil=
7702 fi
7703 ;;
7704 esac
7705
7706
7707 for ac_header in dlfcn.h
7708 do
7709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7711 $as_echo_n "checking for $ac_header... " >&6; }
7712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7713 $as_echo_n "(cached) " >&6
7714 else
7715 cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h. */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7721 $ac_includes_default
7722
7723 #include <$ac_header>
7724 _ACEOF
7725 rm -f conftest.$ac_objext
7726 if { (ac_try="$ac_compile"
7727 case "(($ac_try" in
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7730 esac
7731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7732 $as_echo "$ac_try_echo") >&5
7733 (eval "$ac_compile") 2>conftest.er1
7734 ac_status=$?
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
7738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } && {
7740 test -z "$ac_c_werror_flag" ||
7741 test ! -s conftest.err
7742 } && test -s conftest.$ac_objext; then
7743 eval "$as_ac_Header=yes"
7744 else
7745 $as_echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7747
7748 eval "$as_ac_Header=no"
7749 fi
7750
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 fi
7753 ac_res=`eval 'as_val=${'$as_ac_Header'}
7754 $as_echo "$as_val"'`
7755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7756 $as_echo "$ac_res" >&6; }
7757 as_val=`eval 'as_val=${'$as_ac_Header'}
7758 $as_echo "$as_val"'`
7759 if test "x$as_val" = x""yes; then
7760 cat >>confdefs.h <<_ACEOF
7761 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7762 _ACEOF
7763
7764 fi
7765
7766 done
7767
7768
7769
7770 # Set options
7771
7772
7773
7774 enable_dlopen=no
7775
7776
7777 enable_win32_dll=no
7778
7779
7780 # Check whether --enable-shared was given.
7781 if test "${enable_shared+set}" = set; then
7782 enableval=$enable_shared; p=${PACKAGE-default}
7783 case $enableval in
7784 yes) enable_shared=yes ;;
7785 no) enable_shared=no ;;
7786 *)
7787 enable_shared=no
7788 # Look at the argument we got. We use all the common list separators.
7789 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7790 for pkg in $enableval; do
7791 IFS="$lt_save_ifs"
7792 if test "X$pkg" = "X$p"; then
7793 enable_shared=yes
7794 fi
7795 done
7796 IFS="$lt_save_ifs"
7797 ;;
7798 esac
7799 else
7800 enable_shared=yes
7801 fi
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813 # Check whether --with-pic was given.
7814 if test "${with_pic+set}" = set; then
7815 withval=$with_pic; pic_mode="$withval"
7816 else
7817 pic_mode=default
7818 fi
7819
7820
7821 test -z "$pic_mode" && pic_mode=default
7822
7823
7824
7825
7826
7827
7828
7829 # Check whether --enable-fast-install was given.
7830 if test "${enable_fast_install+set}" = set; then
7831 enableval=$enable_fast_install; p=${PACKAGE-default}
7832 case $enableval in
7833 yes) enable_fast_install=yes ;;
7834 no) enable_fast_install=no ;;
7835 *)
7836 enable_fast_install=no
7837 # Look at the argument we got. We use all the common list separators.
7838 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7839 for pkg in $enableval; do
7840 IFS="$lt_save_ifs"
7841 if test "X$pkg" = "X$p"; then
7842 enable_fast_install=yes
7843 fi
7844 done
7845 IFS="$lt_save_ifs"
7846 ;;
7847 esac
7848 else
7849 enable_fast_install=yes
7850 fi
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862 # This can be used to rebuild libtool when needed
7863 LIBTOOL_DEPS="$ltmain"
7864
7865 # Always use our own libtool.
7866 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892 test -z "$LN_S" && LN_S="ln -s"
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907 if test -n "${ZSH_VERSION+set}" ; then
7908 setopt NO_GLOB_SUBST
7909 fi
7910
7911 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7912 $as_echo_n "checking for objdir... " >&6; }
7913 if test "${lt_cv_objdir+set}" = set; then
7914 $as_echo_n "(cached) " >&6
7915 else
7916 rm -f .libs 2>/dev/null
7917 mkdir .libs 2>/dev/null
7918 if test -d .libs; then
7919 lt_cv_objdir=.libs
7920 else
7921 # MS-DOS does not allow filenames that begin with a dot.
7922 lt_cv_objdir=_libs
7923 fi
7924 rmdir .libs 2>/dev/null
7925 fi
7926 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7927 $as_echo "$lt_cv_objdir" >&6; }
7928 objdir=$lt_cv_objdir
7929
7930
7931
7932
7933
7934 cat >>confdefs.h <<_ACEOF
7935 #define LT_OBJDIR "$lt_cv_objdir/"
7936 _ACEOF
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954 case $host_os in
7955 aix3*)
7956 # AIX sometimes has problems with the GCC collect2 program. For some
7957 # reason, if we set the COLLECT_NAMES environment variable, the problems
7958 # vanish in a puff of smoke.
7959 if test "X${COLLECT_NAMES+set}" != Xset; then
7960 COLLECT_NAMES=
7961 export COLLECT_NAMES
7962 fi
7963 ;;
7964 esac
7965
7966 # Sed substitution that helps us do robust quoting. It backslashifies
7967 # metacharacters that are still active within double-quoted strings.
7968 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7969
7970 # Same as above, but do not quote variable references.
7971 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7972
7973 # Sed substitution to delay expansion of an escaped shell variable in a
7974 # double_quote_subst'ed string.
7975 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7976
7977 # Sed substitution to delay expansion of an escaped single quote.
7978 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7979
7980 # Sed substitution to avoid accidental globbing in evaled expressions
7981 no_glob_subst='s/\*/\\\*/g'
7982
7983 # Global variables:
7984 ofile=libtool
7985 can_build_shared=yes
7986
7987 # All known linkers require a `.a' archive for static linking (except MSVC,
7988 # which needs '.lib').
7989 libext=a
7990
7991 with_gnu_ld="$lt_cv_prog_gnu_ld"
7992
7993 old_CC="$CC"
7994 old_CFLAGS="$CFLAGS"
7995
7996 # Set sane defaults for various variables
7997 test -z "$CC" && CC=cc
7998 test -z "$LTCC" && LTCC=$CC
7999 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8000 test -z "$LD" && LD=ld
8001 test -z "$ac_objext" && ac_objext=o
8002
8003 for cc_temp in $compiler""; do
8004 case $cc_temp in
8005 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8006 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8007 \-*) ;;
8008 *) break;;
8009 esac
8010 done
8011 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8012
8013
8014 # Only perform the check for file, if the check method requires it
8015 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8016 case $deplibs_check_method in
8017 file_magic*)
8018 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8019 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8020 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8021 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8022 $as_echo_n "(cached) " >&6
8023 else
8024 case $MAGIC_CMD in
8025 [\\/*] | ?:[\\/]*)
8026 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8027 ;;
8028 *)
8029 lt_save_MAGIC_CMD="$MAGIC_CMD"
8030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8031 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8032 for ac_dir in $ac_dummy; do
8033 IFS="$lt_save_ifs"
8034 test -z "$ac_dir" && ac_dir=.
8035 if test -f $ac_dir/${ac_tool_prefix}file; then
8036 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8037 if test -n "$file_magic_test_file"; then
8038 case $deplibs_check_method in
8039 "file_magic "*)
8040 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8042 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8043 $EGREP "$file_magic_regex" > /dev/null; then
8044 :
8045 else
8046 cat <<_LT_EOF 1>&2
8047
8048 *** Warning: the command libtool uses to detect shared libraries,
8049 *** $file_magic_cmd, produces output that libtool cannot recognize.
8050 *** The result is that libtool may fail to recognize shared libraries
8051 *** as such. This will affect the creation of libtool libraries that
8052 *** depend on shared libraries, but programs linked with such libtool
8053 *** libraries will work regardless of this problem. Nevertheless, you
8054 *** may want to report the problem to your system manager and/or to
8055 *** bug-libtool@gnu.org
8056
8057 _LT_EOF
8058 fi ;;
8059 esac
8060 fi
8061 break
8062 fi
8063 done
8064 IFS="$lt_save_ifs"
8065 MAGIC_CMD="$lt_save_MAGIC_CMD"
8066 ;;
8067 esac
8068 fi
8069
8070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8071 if test -n "$MAGIC_CMD"; then
8072 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8073 $as_echo "$MAGIC_CMD" >&6; }
8074 else
8075 { $as_echo "$as_me:$LINENO: result: no" >&5
8076 $as_echo "no" >&6; }
8077 fi
8078
8079
8080
8081
8082
8083 if test -z "$lt_cv_path_MAGIC_CMD"; then
8084 if test -n "$ac_tool_prefix"; then
8085 { $as_echo "$as_me:$LINENO: checking for file" >&5
8086 $as_echo_n "checking for file... " >&6; }
8087 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8088 $as_echo_n "(cached) " >&6
8089 else
8090 case $MAGIC_CMD in
8091 [\\/*] | ?:[\\/]*)
8092 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8093 ;;
8094 *)
8095 lt_save_MAGIC_CMD="$MAGIC_CMD"
8096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8097 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8098 for ac_dir in $ac_dummy; do
8099 IFS="$lt_save_ifs"
8100 test -z "$ac_dir" && ac_dir=.
8101 if test -f $ac_dir/file; then
8102 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8103 if test -n "$file_magic_test_file"; then
8104 case $deplibs_check_method in
8105 "file_magic "*)
8106 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8108 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8109 $EGREP "$file_magic_regex" > /dev/null; then
8110 :
8111 else
8112 cat <<_LT_EOF 1>&2
8113
8114 *** Warning: the command libtool uses to detect shared libraries,
8115 *** $file_magic_cmd, produces output that libtool cannot recognize.
8116 *** The result is that libtool may fail to recognize shared libraries
8117 *** as such. This will affect the creation of libtool libraries that
8118 *** depend on shared libraries, but programs linked with such libtool
8119 *** libraries will work regardless of this problem. Nevertheless, you
8120 *** may want to report the problem to your system manager and/or to
8121 *** bug-libtool@gnu.org
8122
8123 _LT_EOF
8124 fi ;;
8125 esac
8126 fi
8127 break
8128 fi
8129 done
8130 IFS="$lt_save_ifs"
8131 MAGIC_CMD="$lt_save_MAGIC_CMD"
8132 ;;
8133 esac
8134 fi
8135
8136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8137 if test -n "$MAGIC_CMD"; then
8138 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8139 $as_echo "$MAGIC_CMD" >&6; }
8140 else
8141 { $as_echo "$as_me:$LINENO: result: no" >&5
8142 $as_echo "no" >&6; }
8143 fi
8144
8145
8146 else
8147 MAGIC_CMD=:
8148 fi
8149 fi
8150
8151 fi
8152 ;;
8153 esac
8154
8155 # Use C for the default configuration in the libtool script
8156
8157 lt_save_CC="$CC"
8158 ac_ext=c
8159 ac_cpp='$CPP $CPPFLAGS'
8160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8163
8164
8165 # Source file extension for C test sources.
8166 ac_ext=c
8167
8168 # Object file extension for compiled C test sources.
8169 objext=o
8170 objext=$objext
8171
8172 # Code to be used in simple compile tests
8173 lt_simple_compile_test_code="int some_variable = 0;"
8174
8175 # Code to be used in simple link tests
8176 lt_simple_link_test_code='int main(){return(0);}'
8177
8178
8179
8180
8181
8182
8183
8184 # If no C compiler was specified, use CC.
8185 LTCC=${LTCC-"$CC"}
8186
8187 # If no C compiler flags were specified, use CFLAGS.
8188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8189
8190 # Allow CC to be a program name with arguments.
8191 compiler=$CC
8192
8193 # Save the default compiler, since it gets overwritten when the other
8194 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8195 compiler_DEFAULT=$CC
8196
8197 # save warnings/boilerplate of simple test code
8198 ac_outfile=conftest.$ac_objext
8199 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8200 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8201 _lt_compiler_boilerplate=`cat conftest.err`
8202 $RM conftest*
8203
8204 ac_outfile=conftest.$ac_objext
8205 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8206 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8207 _lt_linker_boilerplate=`cat conftest.err`
8208 $RM -r conftest*
8209
8210
8211 if test -n "$compiler"; then
8212
8213 lt_prog_compiler_no_builtin_flag=
8214
8215 if test "$GCC" = yes; then
8216 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8217
8218 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8219 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8220 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8221 $as_echo_n "(cached) " >&6
8222 else
8223 lt_cv_prog_compiler_rtti_exceptions=no
8224 ac_outfile=conftest.$ac_objext
8225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8226 lt_compiler_flag="-fno-rtti -fno-exceptions"
8227 # Insert the option either (1) after the last *FLAGS variable, or
8228 # (2) before a word containing "conftest.", or (3) at the end.
8229 # Note that $ac_compile itself does not contain backslashes and begins
8230 # with a dollar sign (not a hyphen), so the echo should work correctly.
8231 # The option is referenced via a variable to avoid confusing sed.
8232 lt_compile=`echo "$ac_compile" | $SED \
8233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8235 -e 's:$: $lt_compiler_flag:'`
8236 (eval echo "\"\$as_me:8236: $lt_compile\"" >&5)
8237 (eval "$lt_compile" 2>conftest.err)
8238 ac_status=$?
8239 cat conftest.err >&5
8240 echo "$as_me:8240: \$? = $ac_status" >&5
8241 if (exit $ac_status) && test -s "$ac_outfile"; then
8242 # The compiler can only warn and ignore the option if not recognized
8243 # So say no if there are warnings other than the usual output.
8244 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8246 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8247 lt_cv_prog_compiler_rtti_exceptions=yes
8248 fi
8249 fi
8250 $RM conftest*
8251
8252 fi
8253 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8254 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8255
8256 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8257 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8258 else
8259 :
8260 fi
8261
8262 fi
8263
8264
8265
8266
8267
8268
8269 lt_prog_compiler_wl=
8270 lt_prog_compiler_pic=
8271 lt_prog_compiler_static=
8272
8273 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8274 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8275
8276 if test "$GCC" = yes; then
8277 lt_prog_compiler_wl='-Wl,'
8278 lt_prog_compiler_static='-static'
8279
8280 case $host_os in
8281 aix*)
8282 # All AIX code is PIC.
8283 if test "$host_cpu" = ia64; then
8284 # AIX 5 now supports IA64 processor
8285 lt_prog_compiler_static='-Bstatic'
8286 fi
8287 ;;
8288
8289 amigaos*)
8290 case $host_cpu in
8291 powerpc)
8292 # see comment about AmigaOS4 .so support
8293 lt_prog_compiler_pic='-fPIC'
8294 ;;
8295 m68k)
8296 # FIXME: we need at least 68020 code to build shared libraries, but
8297 # adding the `-m68020' flag to GCC prevents building anything better,
8298 # like `-m68040'.
8299 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8300 ;;
8301 esac
8302 ;;
8303
8304 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8305 # PIC is the default for these OSes.
8306 ;;
8307
8308 mingw* | cygwin* | pw32* | os2* | cegcc*)
8309 # This hack is so that the source file can tell whether it is being
8310 # built for inclusion in a dll (and should export symbols for example).
8311 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8312 # (--disable-auto-import) libraries
8313 lt_prog_compiler_pic='-DDLL_EXPORT'
8314 ;;
8315
8316 darwin* | rhapsody*)
8317 # PIC is the default on this platform
8318 # Common symbols not allowed in MH_DYLIB files
8319 lt_prog_compiler_pic='-fno-common'
8320 ;;
8321
8322 hpux*)
8323 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8324 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8325 # sets the default TLS model and affects inlining.
8326 case $host_cpu in
8327 hppa*64*)
8328 # +Z the default
8329 ;;
8330 *)
8331 lt_prog_compiler_pic='-fPIC'
8332 ;;
8333 esac
8334 ;;
8335
8336 interix[3-9]*)
8337 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8338 # Instead, we relocate shared libraries at runtime.
8339 ;;
8340
8341 msdosdjgpp*)
8342 # Just because we use GCC doesn't mean we suddenly get shared libraries
8343 # on systems that don't support them.
8344 lt_prog_compiler_can_build_shared=no
8345 enable_shared=no
8346 ;;
8347
8348 *nto* | *qnx*)
8349 # QNX uses GNU C++, but need to define -shared option too, otherwise
8350 # it will coredump.
8351 lt_prog_compiler_pic='-fPIC -shared'
8352 ;;
8353
8354 sysv4*MP*)
8355 if test -d /usr/nec; then
8356 lt_prog_compiler_pic=-Kconform_pic
8357 fi
8358 ;;
8359
8360 *)
8361 lt_prog_compiler_pic='-fPIC'
8362 ;;
8363 esac
8364 else
8365 # PORTME Check for flag to pass linker flags through the system compiler.
8366 case $host_os in
8367 aix*)
8368 lt_prog_compiler_wl='-Wl,'
8369 if test "$host_cpu" = ia64; then
8370 # AIX 5 now supports IA64 processor
8371 lt_prog_compiler_static='-Bstatic'
8372 else
8373 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8374 fi
8375 ;;
8376
8377 mingw* | cygwin* | pw32* | os2* | cegcc*)
8378 # This hack is so that the source file can tell whether it is being
8379 # built for inclusion in a dll (and should export symbols for example).
8380 lt_prog_compiler_pic='-DDLL_EXPORT'
8381 ;;
8382
8383 hpux9* | hpux10* | hpux11*)
8384 lt_prog_compiler_wl='-Wl,'
8385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8386 # not for PA HP-UX.
8387 case $host_cpu in
8388 hppa*64*|ia64*)
8389 # +Z the default
8390 ;;
8391 *)
8392 lt_prog_compiler_pic='+Z'
8393 ;;
8394 esac
8395 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8396 lt_prog_compiler_static='${wl}-a ${wl}archive'
8397 ;;
8398
8399 irix5* | irix6* | nonstopux*)
8400 lt_prog_compiler_wl='-Wl,'
8401 # PIC (with -KPIC) is the default.
8402 lt_prog_compiler_static='-non_shared'
8403 ;;
8404
8405 linux* | k*bsd*-gnu)
8406 case $cc_basename in
8407 # old Intel for x86_64 which still supported -KPIC.
8408 ecc*)
8409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_pic='-KPIC'
8411 lt_prog_compiler_static='-static'
8412 ;;
8413 # icc used to be incompatible with GCC.
8414 # ICC 10 doesn't accept -KPIC any more.
8415 icc* | ifort*)
8416 lt_prog_compiler_wl='-Wl,'
8417 lt_prog_compiler_pic='-fPIC'
8418 lt_prog_compiler_static='-static'
8419 ;;
8420 # Lahey Fortran 8.1.
8421 lf95*)
8422 lt_prog_compiler_wl='-Wl,'
8423 lt_prog_compiler_pic='--shared'
8424 lt_prog_compiler_static='--static'
8425 ;;
8426 pgcc* | pgf77* | pgf90* | pgf95*)
8427 # Portland Group compilers (*not* the Pentium gcc compiler,
8428 # which looks to be a dead project)
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_pic='-fpic'
8431 lt_prog_compiler_static='-Bstatic'
8432 ;;
8433 ccc*)
8434 lt_prog_compiler_wl='-Wl,'
8435 # All Alpha code is PIC.
8436 lt_prog_compiler_static='-non_shared'
8437 ;;
8438 xl*)
8439 # IBM XL C 8.0/Fortran 10.1 on PPC
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_pic='-qpic'
8442 lt_prog_compiler_static='-qstaticlink'
8443 ;;
8444 *)
8445 case `$CC -V 2>&1 | sed 5q` in
8446 *Sun\ C*)
8447 # Sun C 5.9
8448 lt_prog_compiler_pic='-KPIC'
8449 lt_prog_compiler_static='-Bstatic'
8450 lt_prog_compiler_wl='-Wl,'
8451 ;;
8452 *Sun\ F*)
8453 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8454 lt_prog_compiler_pic='-KPIC'
8455 lt_prog_compiler_static='-Bstatic'
8456 lt_prog_compiler_wl=''
8457 ;;
8458 esac
8459 ;;
8460 esac
8461 ;;
8462
8463 newsos6)
8464 lt_prog_compiler_pic='-KPIC'
8465 lt_prog_compiler_static='-Bstatic'
8466 ;;
8467
8468 *nto* | *qnx*)
8469 # QNX uses GNU C++, but need to define -shared option too, otherwise
8470 # it will coredump.
8471 lt_prog_compiler_pic='-fPIC -shared'
8472 ;;
8473
8474 osf3* | osf4* | osf5*)
8475 lt_prog_compiler_wl='-Wl,'
8476 # All OSF/1 code is PIC.
8477 lt_prog_compiler_static='-non_shared'
8478 ;;
8479
8480 rdos*)
8481 lt_prog_compiler_static='-non_shared'
8482 ;;
8483
8484 solaris*)
8485 lt_prog_compiler_pic='-KPIC'
8486 lt_prog_compiler_static='-Bstatic'
8487 case $cc_basename in
8488 f77* | f90* | f95*)
8489 lt_prog_compiler_wl='-Qoption ld ';;
8490 *)
8491 lt_prog_compiler_wl='-Wl,';;
8492 esac
8493 ;;
8494
8495 sunos4*)
8496 lt_prog_compiler_wl='-Qoption ld '
8497 lt_prog_compiler_pic='-PIC'
8498 lt_prog_compiler_static='-Bstatic'
8499 ;;
8500
8501 sysv4 | sysv4.2uw2* | sysv4.3*)
8502 lt_prog_compiler_wl='-Wl,'
8503 lt_prog_compiler_pic='-KPIC'
8504 lt_prog_compiler_static='-Bstatic'
8505 ;;
8506
8507 sysv4*MP*)
8508 if test -d /usr/nec ;then
8509 lt_prog_compiler_pic='-Kconform_pic'
8510 lt_prog_compiler_static='-Bstatic'
8511 fi
8512 ;;
8513
8514 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8515 lt_prog_compiler_wl='-Wl,'
8516 lt_prog_compiler_pic='-KPIC'
8517 lt_prog_compiler_static='-Bstatic'
8518 ;;
8519
8520 unicos*)
8521 lt_prog_compiler_wl='-Wl,'
8522 lt_prog_compiler_can_build_shared=no
8523 ;;
8524
8525 uts4*)
8526 lt_prog_compiler_pic='-pic'
8527 lt_prog_compiler_static='-Bstatic'
8528 ;;
8529
8530 *)
8531 lt_prog_compiler_can_build_shared=no
8532 ;;
8533 esac
8534 fi
8535
8536 case $host_os in
8537 # For platforms which do not support PIC, -DPIC is meaningless:
8538 *djgpp*)
8539 lt_prog_compiler_pic=
8540 ;;
8541 *)
8542 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8543 ;;
8544 esac
8545 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8546 $as_echo "$lt_prog_compiler_pic" >&6; }
8547
8548
8549
8550
8551
8552
8553 #
8554 # Check to make sure the PIC flag actually works.
8555 #
8556 if test -n "$lt_prog_compiler_pic"; then
8557 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8558 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8559 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8560 $as_echo_n "(cached) " >&6
8561 else
8562 lt_cv_prog_compiler_pic_works=no
8563 ac_outfile=conftest.$ac_objext
8564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8565 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8566 # Insert the option either (1) after the last *FLAGS variable, or
8567 # (2) before a word containing "conftest.", or (3) at the end.
8568 # Note that $ac_compile itself does not contain backslashes and begins
8569 # with a dollar sign (not a hyphen), so the echo should work correctly.
8570 # The option is referenced via a variable to avoid confusing sed.
8571 lt_compile=`echo "$ac_compile" | $SED \
8572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8574 -e 's:$: $lt_compiler_flag:'`
8575 (eval echo "\"\$as_me:8575: $lt_compile\"" >&5)
8576 (eval "$lt_compile" 2>conftest.err)
8577 ac_status=$?
8578 cat conftest.err >&5
8579 echo "$as_me:8579: \$? = $ac_status" >&5
8580 if (exit $ac_status) && test -s "$ac_outfile"; then
8581 # The compiler can only warn and ignore the option if not recognized
8582 # So say no if there are warnings other than the usual output.
8583 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8586 lt_cv_prog_compiler_pic_works=yes
8587 fi
8588 fi
8589 $RM conftest*
8590
8591 fi
8592 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8593 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8594
8595 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8596 case $lt_prog_compiler_pic in
8597 "" | " "*) ;;
8598 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8599 esac
8600 else
8601 lt_prog_compiler_pic=
8602 lt_prog_compiler_can_build_shared=no
8603 fi
8604
8605 fi
8606
8607
8608
8609
8610
8611
8612 #
8613 # Check to make sure the static flag actually works.
8614 #
8615 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8616 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8617 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8618 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8619 $as_echo_n "(cached) " >&6
8620 else
8621 lt_cv_prog_compiler_static_works=no
8622 save_LDFLAGS="$LDFLAGS"
8623 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8624 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8625 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8626 # The linker can only warn and ignore the option if not recognized
8627 # So say no if there are warnings
8628 if test -s conftest.err; then
8629 # Append any errors to the config.log.
8630 cat conftest.err 1>&5
8631 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8633 if diff conftest.exp conftest.er2 >/dev/null; then
8634 lt_cv_prog_compiler_static_works=yes
8635 fi
8636 else
8637 lt_cv_prog_compiler_static_works=yes
8638 fi
8639 fi
8640 $RM -r conftest*
8641 LDFLAGS="$save_LDFLAGS"
8642
8643 fi
8644 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8645 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8646
8647 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8648 :
8649 else
8650 lt_prog_compiler_static=
8651 fi
8652
8653
8654
8655
8656
8657
8658
8659 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8660 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8661 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8662 $as_echo_n "(cached) " >&6
8663 else
8664 lt_cv_prog_compiler_c_o=no
8665 $RM -r conftest 2>/dev/null
8666 mkdir conftest
8667 cd conftest
8668 mkdir out
8669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8670
8671 lt_compiler_flag="-o out/conftest2.$ac_objext"
8672 # Insert the option either (1) after the last *FLAGS variable, or
8673 # (2) before a word containing "conftest.", or (3) at the end.
8674 # Note that $ac_compile itself does not contain backslashes and begins
8675 # with a dollar sign (not a hyphen), so the echo should work correctly.
8676 lt_compile=`echo "$ac_compile" | $SED \
8677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8679 -e 's:$: $lt_compiler_flag:'`
8680 (eval echo "\"\$as_me:8680: $lt_compile\"" >&5)
8681 (eval "$lt_compile" 2>out/conftest.err)
8682 ac_status=$?
8683 cat out/conftest.err >&5
8684 echo "$as_me:8684: \$? = $ac_status" >&5
8685 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8686 then
8687 # The compiler can only warn and ignore the option if not recognized
8688 # So say no if there are warnings
8689 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8690 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8691 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8692 lt_cv_prog_compiler_c_o=yes
8693 fi
8694 fi
8695 chmod u+w . 2>&5
8696 $RM conftest*
8697 # SGI C++ compiler will create directory out/ii_files/ for
8698 # template instantiation
8699 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8700 $RM out/* && rmdir out
8701 cd ..
8702 $RM -r conftest
8703 $RM conftest*
8704
8705 fi
8706 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8707 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8708
8709
8710
8711
8712
8713
8714 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8715 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8716 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8717 $as_echo_n "(cached) " >&6
8718 else
8719 lt_cv_prog_compiler_c_o=no
8720 $RM -r conftest 2>/dev/null
8721 mkdir conftest
8722 cd conftest
8723 mkdir out
8724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8725
8726 lt_compiler_flag="-o out/conftest2.$ac_objext"
8727 # Insert the option either (1) after the last *FLAGS variable, or
8728 # (2) before a word containing "conftest.", or (3) at the end.
8729 # Note that $ac_compile itself does not contain backslashes and begins
8730 # with a dollar sign (not a hyphen), so the echo should work correctly.
8731 lt_compile=`echo "$ac_compile" | $SED \
8732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8734 -e 's:$: $lt_compiler_flag:'`
8735 (eval echo "\"\$as_me:8735: $lt_compile\"" >&5)
8736 (eval "$lt_compile" 2>out/conftest.err)
8737 ac_status=$?
8738 cat out/conftest.err >&5
8739 echo "$as_me:8739: \$? = $ac_status" >&5
8740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8741 then
8742 # The compiler can only warn and ignore the option if not recognized
8743 # So say no if there are warnings
8744 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8747 lt_cv_prog_compiler_c_o=yes
8748 fi
8749 fi
8750 chmod u+w . 2>&5
8751 $RM conftest*
8752 # SGI C++ compiler will create directory out/ii_files/ for
8753 # template instantiation
8754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8755 $RM out/* && rmdir out
8756 cd ..
8757 $RM -r conftest
8758 $RM conftest*
8759
8760 fi
8761 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8762 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8763
8764
8765
8766
8767 hard_links="nottested"
8768 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8769 # do not overwrite the value of need_locks provided by the user
8770 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8771 $as_echo_n "checking if we can lock with hard links... " >&6; }
8772 hard_links=yes
8773 $RM conftest*
8774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8775 touch conftest.a
8776 ln conftest.a conftest.b 2>&5 || hard_links=no
8777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8778 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8779 $as_echo "$hard_links" >&6; }
8780 if test "$hard_links" = no; then
8781 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8782 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8783 need_locks=warn
8784 fi
8785 else
8786 need_locks=no
8787 fi
8788
8789
8790
8791
8792
8793
8794 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8795 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8796
8797 runpath_var=
8798 allow_undefined_flag=
8799 always_export_symbols=no
8800 archive_cmds=
8801 archive_expsym_cmds=
8802 compiler_needs_object=no
8803 enable_shared_with_static_runtimes=no
8804 export_dynamic_flag_spec=
8805 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8806 hardcode_automatic=no
8807 hardcode_direct=no
8808 hardcode_direct_absolute=no
8809 hardcode_libdir_flag_spec=
8810 hardcode_libdir_flag_spec_ld=
8811 hardcode_libdir_separator=
8812 hardcode_minus_L=no
8813 hardcode_shlibpath_var=unsupported
8814 inherit_rpath=no
8815 link_all_deplibs=unknown
8816 module_cmds=
8817 module_expsym_cmds=
8818 old_archive_from_new_cmds=
8819 old_archive_from_expsyms_cmds=
8820 thread_safe_flag_spec=
8821 whole_archive_flag_spec=
8822 # include_expsyms should be a list of space-separated symbols to be *always*
8823 # included in the symbol list
8824 include_expsyms=
8825 # exclude_expsyms can be an extended regexp of symbols to exclude
8826 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8827 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8828 # as well as any symbol that contains `d'.
8829 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8830 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8831 # platforms (ab)use it in PIC code, but their linkers get confused if
8832 # the symbol is explicitly referenced. Since portable code cannot
8833 # rely on this symbol name, it's probably fine to never include it in
8834 # preloaded symbol tables.
8835 # Exclude shared library initialization/finalization symbols.
8836 extract_expsyms_cmds=
8837
8838 case $host_os in
8839 cygwin* | mingw* | pw32* | cegcc*)
8840 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8841 # When not using gcc, we currently assume that we are using
8842 # Microsoft Visual C++.
8843 if test "$GCC" != yes; then
8844 with_gnu_ld=no
8845 fi
8846 ;;
8847 interix*)
8848 # we just hope/assume this is gcc and not c89 (= MSVC++)
8849 with_gnu_ld=yes
8850 ;;
8851 openbsd*)
8852 with_gnu_ld=no
8853 ;;
8854 esac
8855
8856 ld_shlibs=yes
8857 if test "$with_gnu_ld" = yes; then
8858 # If archive_cmds runs LD, not CC, wlarc should be empty
8859 wlarc='${wl}'
8860
8861 # Set some defaults for GNU ld with shared library support. These
8862 # are reset later if shared libraries are not supported. Putting them
8863 # here allows them to be overridden if necessary.
8864 runpath_var=LD_RUN_PATH
8865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866 export_dynamic_flag_spec='${wl}--export-dynamic'
8867 # ancient GNU ld didn't support --whole-archive et. al.
8868 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8869 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8870 else
8871 whole_archive_flag_spec=
8872 fi
8873 supports_anon_versioning=no
8874 case `$LD -v 2>&1` in
8875 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8876 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8877 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8878 *\ 2.11.*) ;; # other 2.11 versions
8879 *) supports_anon_versioning=yes ;;
8880 esac
8881
8882 # See if GNU ld supports shared libraries.
8883 case $host_os in
8884 aix[3-9]*)
8885 # On AIX/PPC, the GNU linker is very broken
8886 if test "$host_cpu" != ia64; then
8887 ld_shlibs=no
8888 cat <<_LT_EOF 1>&2
8889
8890 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8891 *** to be unable to reliably create shared libraries on AIX.
8892 *** Therefore, libtool is disabling shared libraries support. If you
8893 *** really care for shared libraries, you may want to modify your PATH
8894 *** so that a non-GNU linker is found, and then restart.
8895
8896 _LT_EOF
8897 fi
8898 ;;
8899
8900 amigaos*)
8901 case $host_cpu in
8902 powerpc)
8903 # see comment about AmigaOS4 .so support
8904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8905 archive_expsym_cmds=''
8906 ;;
8907 m68k)
8908 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)'
8909 hardcode_libdir_flag_spec='-L$libdir'
8910 hardcode_minus_L=yes
8911 ;;
8912 esac
8913 ;;
8914
8915 beos*)
8916 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8917 allow_undefined_flag=unsupported
8918 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8919 # support --undefined. This deserves some investigation. FIXME
8920 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921 else
8922 ld_shlibs=no
8923 fi
8924 ;;
8925
8926 cygwin* | mingw* | pw32* | cegcc*)
8927 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8928 # as there is no search path for DLLs.
8929 hardcode_libdir_flag_spec='-L$libdir'
8930 allow_undefined_flag=unsupported
8931 always_export_symbols=no
8932 enable_shared_with_static_runtimes=yes
8933 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8934
8935 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8937 # If the export-symbols file already is a .def file (1st line
8938 # is EXPORTS), use it as is; otherwise, prepend...
8939 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8940 cp $export_symbols $output_objdir/$soname.def;
8941 else
8942 echo EXPORTS > $output_objdir/$soname.def;
8943 cat $export_symbols >> $output_objdir/$soname.def;
8944 fi~
8945 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8946 else
8947 ld_shlibs=no
8948 fi
8949 ;;
8950
8951 interix[3-9]*)
8952 hardcode_direct=no
8953 hardcode_shlibpath_var=no
8954 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8955 export_dynamic_flag_spec='${wl}-E'
8956 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8957 # Instead, shared libraries are loaded at an image base (0x10000000 by
8958 # default) and relocated if they conflict, which is a slow very memory
8959 # consuming and fragmenting process. To avoid this, we pick a random,
8960 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8961 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8962 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8963 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'
8964 ;;
8965
8966 gnu* | linux* | tpf* | k*bsd*-gnu)
8967 tmp_diet=no
8968 if test "$host_os" = linux-dietlibc; then
8969 case $cc_basename in
8970 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8971 esac
8972 fi
8973 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8974 && test "$tmp_diet" = no
8975 then
8976 tmp_addflag=
8977 tmp_sharedflag='-shared'
8978 case $cc_basename,$host_cpu in
8979 pgcc*) # Portland Group C compiler
8980 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'
8981 tmp_addflag=' $pic_flag'
8982 ;;
8983 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8984 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'
8985 tmp_addflag=' $pic_flag -Mnomain' ;;
8986 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8987 tmp_addflag=' -i_dynamic' ;;
8988 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8989 tmp_addflag=' -i_dynamic -nofor_main' ;;
8990 ifc* | ifort*) # Intel Fortran compiler
8991 tmp_addflag=' -nofor_main' ;;
8992 lf95*) # Lahey Fortran 8.1
8993 whole_archive_flag_spec=
8994 tmp_sharedflag='--shared' ;;
8995 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8996 tmp_sharedflag='-qmkshrobj'
8997 tmp_addflag= ;;
8998 esac
8999 case `$CC -V 2>&1 | sed 5q` in
9000 *Sun\ C*) # Sun C 5.9
9001 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'
9002 compiler_needs_object=yes
9003 tmp_sharedflag='-G' ;;
9004 *Sun\ F*) # Sun Fortran 8.3
9005 tmp_sharedflag='-G' ;;
9006 esac
9007 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9008
9009 if test "x$supports_anon_versioning" = xyes; then
9010 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9011 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9012 echo "local: *; };" >> $output_objdir/$libname.ver~
9013 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9014 fi
9015
9016 case $cc_basename in
9017 xlf*)
9018 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9019 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9020 hardcode_libdir_flag_spec=
9021 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9022 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9023 if test "x$supports_anon_versioning" = xyes; then
9024 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9025 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9026 echo "local: *; };" >> $output_objdir/$libname.ver~
9027 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9028 fi
9029 ;;
9030 esac
9031 else
9032 ld_shlibs=no
9033 fi
9034 ;;
9035
9036 netbsd*)
9037 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9038 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9039 wlarc=
9040 else
9041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9043 fi
9044 ;;
9045
9046 solaris*)
9047 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9048 ld_shlibs=no
9049 cat <<_LT_EOF 1>&2
9050
9051 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9052 *** create shared libraries on Solaris systems. Therefore, libtool
9053 *** is disabling shared libraries support. We urge you to upgrade GNU
9054 *** binutils to release 2.9.1 or newer. Another option is to modify
9055 *** your PATH or compiler configuration so that the native linker is
9056 *** used, and then restart.
9057
9058 _LT_EOF
9059 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9061 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9062 else
9063 ld_shlibs=no
9064 fi
9065 ;;
9066
9067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9068 case `$LD -v 2>&1` in
9069 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9070 ld_shlibs=no
9071 cat <<_LT_EOF 1>&2
9072
9073 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9074 *** reliably create shared libraries on SCO systems. Therefore, libtool
9075 *** is disabling shared libraries support. We urge you to upgrade GNU
9076 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9077 *** your PATH or compiler configuration so that the native linker is
9078 *** used, and then restart.
9079
9080 _LT_EOF
9081 ;;
9082 *)
9083 # For security reasons, it is highly recommended that you always
9084 # use absolute paths for naming shared libraries, and exclude the
9085 # DT_RUNPATH tag from executables and libraries. But doing so
9086 # requires that you compile everything twice, which is a pain.
9087 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9091 else
9092 ld_shlibs=no
9093 fi
9094 ;;
9095 esac
9096 ;;
9097
9098 sunos4*)
9099 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9100 wlarc=
9101 hardcode_direct=yes
9102 hardcode_shlibpath_var=no
9103 ;;
9104
9105 *)
9106 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9109 else
9110 ld_shlibs=no
9111 fi
9112 ;;
9113 esac
9114
9115 if test "$ld_shlibs" = no; then
9116 runpath_var=
9117 hardcode_libdir_flag_spec=
9118 export_dynamic_flag_spec=
9119 whole_archive_flag_spec=
9120 fi
9121 else
9122 # PORTME fill in a description of your system's linker (not GNU ld)
9123 case $host_os in
9124 aix3*)
9125 allow_undefined_flag=unsupported
9126 always_export_symbols=yes
9127 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'
9128 # Note: this linker hardcodes the directories in LIBPATH if there
9129 # are no directories specified by -L.
9130 hardcode_minus_L=yes
9131 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9132 # Neither direct hardcoding nor static linking is supported with a
9133 # broken collect2.
9134 hardcode_direct=unsupported
9135 fi
9136 ;;
9137
9138 aix[4-9]*)
9139 if test "$host_cpu" = ia64; then
9140 # On IA64, the linker does run time linking by default, so we don't
9141 # have to do anything special.
9142 aix_use_runtimelinking=no
9143 exp_sym_flag='-Bexport'
9144 no_entry_flag=""
9145 else
9146 # If we're using GNU nm, then we don't want the "-C" option.
9147 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9148 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9149 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'
9150 else
9151 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'
9152 fi
9153 aix_use_runtimelinking=no
9154
9155 # Test if we are trying to use run time linking or normal
9156 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9157 # need to do runtime linking.
9158 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9159 for ld_flag in $LDFLAGS; do
9160 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9161 aix_use_runtimelinking=yes
9162 break
9163 fi
9164 done
9165 ;;
9166 esac
9167
9168 exp_sym_flag='-bexport'
9169 no_entry_flag='-bnoentry'
9170 fi
9171
9172 # When large executables or shared objects are built, AIX ld can
9173 # have problems creating the table of contents. If linking a library
9174 # or program results in "error TOC overflow" add -mminimal-toc to
9175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9177
9178 archive_cmds=''
9179 hardcode_direct=yes
9180 hardcode_direct_absolute=yes
9181 hardcode_libdir_separator=':'
9182 link_all_deplibs=yes
9183 file_list_spec='${wl}-f,'
9184
9185 if test "$GCC" = yes; then
9186 case $host_os in aix4.[012]|aix4.[012].*)
9187 # We only want to do this on AIX 4.2 and lower, the check
9188 # below for broken collect2 doesn't work under 4.3+
9189 collect2name=`${CC} -print-prog-name=collect2`
9190 if test -f "$collect2name" &&
9191 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9192 then
9193 # We have reworked collect2
9194 :
9195 else
9196 # We have old collect2
9197 hardcode_direct=unsupported
9198 # It fails to find uninstalled libraries when the uninstalled
9199 # path is not listed in the libpath. Setting hardcode_minus_L
9200 # to unsupported forces relinking
9201 hardcode_minus_L=yes
9202 hardcode_libdir_flag_spec='-L$libdir'
9203 hardcode_libdir_separator=
9204 fi
9205 ;;
9206 esac
9207 shared_flag='-shared'
9208 if test "$aix_use_runtimelinking" = yes; then
9209 shared_flag="$shared_flag "'${wl}-G'
9210 fi
9211 link_all_deplibs=no
9212 else
9213 # not using gcc
9214 if test "$host_cpu" = ia64; then
9215 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9216 # chokes on -Wl,-G. The following line is correct:
9217 shared_flag='-G'
9218 else
9219 if test "$aix_use_runtimelinking" = yes; then
9220 shared_flag='${wl}-G'
9221 else
9222 shared_flag='${wl}-bM:SRE'
9223 fi
9224 fi
9225 fi
9226
9227 export_dynamic_flag_spec='${wl}-bexpall'
9228 # It seems that -bexpall does not export symbols beginning with
9229 # underscore (_), so it is better to generate a list of symbols to export.
9230 always_export_symbols=yes
9231 if test "$aix_use_runtimelinking" = yes; then
9232 # Warning - without using the other runtime loading flags (-brtl),
9233 # -berok will link without error, but may produce a broken library.
9234 allow_undefined_flag='-berok'
9235 # Determine the default libpath from the value encoded in an
9236 # empty executable.
9237 cat >conftest.$ac_ext <<_ACEOF
9238 /* confdefs.h. */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9243
9244 int
9245 main ()
9246 {
9247
9248 ;
9249 return 0;
9250 }
9251 _ACEOF
9252 rm -f conftest.$ac_objext conftest$ac_exeext
9253 if { (ac_try="$ac_link"
9254 case "(($ac_try" in
9255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9256 *) ac_try_echo=$ac_try;;
9257 esac
9258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9259 $as_echo "$ac_try_echo") >&5
9260 (eval "$ac_link") 2>conftest.er1
9261 ac_status=$?
9262 grep -v '^ *+' conftest.er1 >conftest.err
9263 rm -f conftest.er1
9264 cat conftest.err >&5
9265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } && {
9267 test -z "$ac_c_werror_flag" ||
9268 test ! -s conftest.err
9269 } && test -s conftest$ac_exeext && {
9270 test "$cross_compiling" = yes ||
9271 $as_test_x conftest$ac_exeext
9272 }; then
9273
9274 lt_aix_libpath_sed='
9275 /Import File Strings/,/^$/ {
9276 /^0/ {
9277 s/^0 *\(.*\)$/\1/
9278 p
9279 }
9280 }'
9281 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9282 # Check for a 64-bit object if we didn't find anything.
9283 if test -z "$aix_libpath"; then
9284 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9285 fi
9286 else
9287 $as_echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9289
9290
9291 fi
9292
9293 rm -rf conftest.dSYM
9294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9295 conftest$ac_exeext conftest.$ac_ext
9296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9297
9298 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9299 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"
9300 else
9301 if test "$host_cpu" = ia64; then
9302 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9303 allow_undefined_flag="-z nodefs"
9304 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"
9305 else
9306 # Determine the default libpath from the value encoded in an
9307 # empty executable.
9308 cat >conftest.$ac_ext <<_ACEOF
9309 /* confdefs.h. */
9310 _ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h. */
9314
9315 int
9316 main ()
9317 {
9318
9319 ;
9320 return 0;
9321 }
9322 _ACEOF
9323 rm -f conftest.$ac_objext conftest$ac_exeext
9324 if { (ac_try="$ac_link"
9325 case "(($ac_try" in
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9328 esac
9329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9330 $as_echo "$ac_try_echo") >&5
9331 (eval "$ac_link") 2>conftest.er1
9332 ac_status=$?
9333 grep -v '^ *+' conftest.er1 >conftest.err
9334 rm -f conftest.er1
9335 cat conftest.err >&5
9336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } && {
9338 test -z "$ac_c_werror_flag" ||
9339 test ! -s conftest.err
9340 } && test -s conftest$ac_exeext && {
9341 test "$cross_compiling" = yes ||
9342 $as_test_x conftest$ac_exeext
9343 }; then
9344
9345 lt_aix_libpath_sed='
9346 /Import File Strings/,/^$/ {
9347 /^0/ {
9348 s/^0 *\(.*\)$/\1/
9349 p
9350 }
9351 }'
9352 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9353 # Check for a 64-bit object if we didn't find anything.
9354 if test -z "$aix_libpath"; then
9355 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9356 fi
9357 else
9358 $as_echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361
9362 fi
9363
9364 rm -rf conftest.dSYM
9365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9366 conftest$ac_exeext conftest.$ac_ext
9367 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9368
9369 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9370 # Warning - without using the other run time loading flags,
9371 # -berok will link without error, but may produce a broken library.
9372 no_undefined_flag=' ${wl}-bernotok'
9373 allow_undefined_flag=' ${wl}-berok'
9374 # Exported symbols can be pulled into shared objects from archives
9375 whole_archive_flag_spec='$convenience'
9376 archive_cmds_need_lc=yes
9377 # This is similar to how AIX traditionally builds its shared libraries.
9378 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'
9379 fi
9380 fi
9381 ;;
9382
9383 amigaos*)
9384 case $host_cpu in
9385 powerpc)
9386 # see comment about AmigaOS4 .so support
9387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9388 archive_expsym_cmds=''
9389 ;;
9390 m68k)
9391 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)'
9392 hardcode_libdir_flag_spec='-L$libdir'
9393 hardcode_minus_L=yes
9394 ;;
9395 esac
9396 ;;
9397
9398 bsdi[45]*)
9399 export_dynamic_flag_spec=-rdynamic
9400 ;;
9401
9402 cygwin* | mingw* | pw32* | cegcc*)
9403 # When not using gcc, we currently assume that we are using
9404 # Microsoft Visual C++.
9405 # hardcode_libdir_flag_spec is actually meaningless, as there is
9406 # no search path for DLLs.
9407 hardcode_libdir_flag_spec=' '
9408 allow_undefined_flag=unsupported
9409 # Tell ltmain to make .lib files, not .a files.
9410 libext=lib
9411 # Tell ltmain to make .dll files, not .so files.
9412 shrext_cmds=".dll"
9413 # FIXME: Setting linknames here is a bad hack.
9414 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9415 # The linker will automatically build a .lib file if we build a DLL.
9416 old_archive_from_new_cmds='true'
9417 # FIXME: Should let the user specify the lib program.
9418 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9419 fix_srcfile_path='`cygpath -w "$srcfile"`'
9420 enable_shared_with_static_runtimes=yes
9421 ;;
9422
9423 darwin* | rhapsody*)
9424
9425
9426 archive_cmds_need_lc=no
9427 hardcode_direct=no
9428 hardcode_automatic=yes
9429 hardcode_shlibpath_var=unsupported
9430 whole_archive_flag_spec=''
9431 link_all_deplibs=yes
9432 allow_undefined_flag="$_lt_dar_allow_undefined"
9433 case $cc_basename in
9434 ifort*) _lt_dar_can_shared=yes ;;
9435 *) _lt_dar_can_shared=$GCC ;;
9436 esac
9437 if test "$_lt_dar_can_shared" = "yes"; then
9438 output_verbose_link_cmd=echo
9439 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9440 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9441 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}"
9442 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}"
9443
9444 else
9445 ld_shlibs=no
9446 fi
9447
9448 ;;
9449
9450 dgux*)
9451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9452 hardcode_libdir_flag_spec='-L$libdir'
9453 hardcode_shlibpath_var=no
9454 ;;
9455
9456 freebsd1*)
9457 ld_shlibs=no
9458 ;;
9459
9460 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9461 # support. Future versions do this automatically, but an explicit c++rt0.o
9462 # does not break anything, and helps significantly (at the cost of a little
9463 # extra space).
9464 freebsd2.2*)
9465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9466 hardcode_libdir_flag_spec='-R$libdir'
9467 hardcode_direct=yes
9468 hardcode_shlibpath_var=no
9469 ;;
9470
9471 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9472 freebsd2*)
9473 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9474 hardcode_direct=yes
9475 hardcode_minus_L=yes
9476 hardcode_shlibpath_var=no
9477 ;;
9478
9479 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9480 freebsd* | dragonfly*)
9481 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9482 hardcode_libdir_flag_spec='-R$libdir'
9483 hardcode_direct=yes
9484 hardcode_shlibpath_var=no
9485 ;;
9486
9487 hpux9*)
9488 if test "$GCC" = yes; then
9489 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'
9490 else
9491 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'
9492 fi
9493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9494 hardcode_libdir_separator=:
9495 hardcode_direct=yes
9496
9497 # hardcode_minus_L: Not really in the search PATH,
9498 # but as the default location of the library.
9499 hardcode_minus_L=yes
9500 export_dynamic_flag_spec='${wl}-E'
9501 ;;
9502
9503 hpux10*)
9504 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9505 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9506 else
9507 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9508 fi
9509 if test "$with_gnu_ld" = no; then
9510 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9511 hardcode_libdir_flag_spec_ld='+b $libdir'
9512 hardcode_libdir_separator=:
9513 hardcode_direct=yes
9514 hardcode_direct_absolute=yes
9515 export_dynamic_flag_spec='${wl}-E'
9516 # hardcode_minus_L: Not really in the search PATH,
9517 # but as the default location of the library.
9518 hardcode_minus_L=yes
9519 fi
9520 ;;
9521
9522 hpux11*)
9523 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9524 case $host_cpu in
9525 hppa*64*)
9526 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9527 ;;
9528 ia64*)
9529 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9530 ;;
9531 *)
9532 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9533 ;;
9534 esac
9535 else
9536 case $host_cpu in
9537 hppa*64*)
9538 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9539 ;;
9540 ia64*)
9541 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9542 ;;
9543 *)
9544 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9545 ;;
9546 esac
9547 fi
9548 if test "$with_gnu_ld" = no; then
9549 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9550 hardcode_libdir_separator=:
9551
9552 case $host_cpu in
9553 hppa*64*|ia64*)
9554 hardcode_direct=no
9555 hardcode_shlibpath_var=no
9556 ;;
9557 *)
9558 hardcode_direct=yes
9559 hardcode_direct_absolute=yes
9560 export_dynamic_flag_spec='${wl}-E'
9561
9562 # hardcode_minus_L: Not really in the search PATH,
9563 # but as the default location of the library.
9564 hardcode_minus_L=yes
9565 ;;
9566 esac
9567 fi
9568 ;;
9569
9570 irix5* | irix6* | nonstopux*)
9571 if test "$GCC" = yes; then
9572 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'
9573 # Try to use the -exported_symbol ld option, if it does not
9574 # work, assume that -exports_file does not work either and
9575 # implicitly export all symbols.
9576 save_LDFLAGS="$LDFLAGS"
9577 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9578 cat >conftest.$ac_ext <<_ACEOF
9579 int foo(void) {}
9580 _ACEOF
9581 rm -f conftest.$ac_objext conftest$ac_exeext
9582 if { (ac_try="$ac_link"
9583 case "(($ac_try" in
9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9586 esac
9587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9588 $as_echo "$ac_try_echo") >&5
9589 (eval "$ac_link") 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest$ac_exeext && {
9599 test "$cross_compiling" = yes ||
9600 $as_test_x conftest$ac_exeext
9601 }; then
9602 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'
9603
9604 else
9605 $as_echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608
9609 fi
9610
9611 rm -rf conftest.dSYM
9612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9613 conftest$ac_exeext conftest.$ac_ext
9614 LDFLAGS="$save_LDFLAGS"
9615 else
9616 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'
9617 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'
9618 fi
9619 archive_cmds_need_lc='no'
9620 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9621 hardcode_libdir_separator=:
9622 inherit_rpath=yes
9623 link_all_deplibs=yes
9624 ;;
9625
9626 netbsd*)
9627 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9628 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9629 else
9630 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9631 fi
9632 hardcode_libdir_flag_spec='-R$libdir'
9633 hardcode_direct=yes
9634 hardcode_shlibpath_var=no
9635 ;;
9636
9637 newsos6)
9638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9639 hardcode_direct=yes
9640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9641 hardcode_libdir_separator=:
9642 hardcode_shlibpath_var=no
9643 ;;
9644
9645 *nto* | *qnx*)
9646 ;;
9647
9648 openbsd*)
9649 if test -f /usr/libexec/ld.so; then
9650 hardcode_direct=yes
9651 hardcode_shlibpath_var=no
9652 hardcode_direct_absolute=yes
9653 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9654 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9655 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9656 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9657 export_dynamic_flag_spec='${wl}-E'
9658 else
9659 case $host_os in
9660 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9662 hardcode_libdir_flag_spec='-R$libdir'
9663 ;;
9664 *)
9665 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9666 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9667 ;;
9668 esac
9669 fi
9670 else
9671 ld_shlibs=no
9672 fi
9673 ;;
9674
9675 os2*)
9676 hardcode_libdir_flag_spec='-L$libdir'
9677 hardcode_minus_L=yes
9678 allow_undefined_flag=unsupported
9679 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'
9680 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9681 ;;
9682
9683 osf3*)
9684 if test "$GCC" = yes; then
9685 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9686 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'
9687 else
9688 allow_undefined_flag=' -expect_unresolved \*'
9689 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'
9690 fi
9691 archive_cmds_need_lc='no'
9692 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9693 hardcode_libdir_separator=:
9694 ;;
9695
9696 osf4* | osf5*) # as osf3* with the addition of -msym flag
9697 if test "$GCC" = yes; then
9698 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9699 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'
9700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9701 else
9702 allow_undefined_flag=' -expect_unresolved \*'
9703 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'
9704 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~
9705 $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'
9706
9707 # Both c and cxx compiler support -rpath directly
9708 hardcode_libdir_flag_spec='-rpath $libdir'
9709 fi
9710 archive_cmds_need_lc='no'
9711 hardcode_libdir_separator=:
9712 ;;
9713
9714 solaris*)
9715 no_undefined_flag=' -z defs'
9716 if test "$GCC" = yes; then
9717 wlarc='${wl}'
9718 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9720 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9721 else
9722 case `$CC -V 2>&1` in
9723 *"Compilers 5.0"*)
9724 wlarc=''
9725 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9726 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9727 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9728 ;;
9729 *)
9730 wlarc='${wl}'
9731 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9732 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9733 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9734 ;;
9735 esac
9736 fi
9737 hardcode_libdir_flag_spec='-R$libdir'
9738 hardcode_shlibpath_var=no
9739 case $host_os in
9740 solaris2.[0-5] | solaris2.[0-5].*) ;;
9741 *)
9742 # The compiler driver will combine and reorder linker options,
9743 # but understands `-z linker_flag'. GCC discards it without `$wl',
9744 # but is careful enough not to reorder.
9745 # Supported since Solaris 2.6 (maybe 2.5.1?)
9746 if test "$GCC" = yes; then
9747 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9748 else
9749 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9750 fi
9751 ;;
9752 esac
9753 link_all_deplibs=yes
9754 ;;
9755
9756 sunos4*)
9757 if test "x$host_vendor" = xsequent; then
9758 # Use $CC to link under sequent, because it throws in some extra .o
9759 # files that make .init and .fini sections work.
9760 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9761 else
9762 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9763 fi
9764 hardcode_libdir_flag_spec='-L$libdir'
9765 hardcode_direct=yes
9766 hardcode_minus_L=yes
9767 hardcode_shlibpath_var=no
9768 ;;
9769
9770 sysv4)
9771 case $host_vendor in
9772 sni)
9773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774 hardcode_direct=yes # is this really true???
9775 ;;
9776 siemens)
9777 ## LD is ld it makes a PLAMLIB
9778 ## CC just makes a GrossModule.
9779 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9780 reload_cmds='$CC -r -o $output$reload_objs'
9781 hardcode_direct=no
9782 ;;
9783 motorola)
9784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9785 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9786 ;;
9787 esac
9788 runpath_var='LD_RUN_PATH'
9789 hardcode_shlibpath_var=no
9790 ;;
9791
9792 sysv4.3*)
9793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794 hardcode_shlibpath_var=no
9795 export_dynamic_flag_spec='-Bexport'
9796 ;;
9797
9798 sysv4*MP*)
9799 if test -d /usr/nec; then
9800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9801 hardcode_shlibpath_var=no
9802 runpath_var=LD_RUN_PATH
9803 hardcode_runpath_var=yes
9804 ld_shlibs=yes
9805 fi
9806 ;;
9807
9808 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9809 no_undefined_flag='${wl}-z,text'
9810 archive_cmds_need_lc=no
9811 hardcode_shlibpath_var=no
9812 runpath_var='LD_RUN_PATH'
9813
9814 if test "$GCC" = yes; then
9815 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9816 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9817 else
9818 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9819 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9820 fi
9821 ;;
9822
9823 sysv5* | sco3.2v5* | sco5v6*)
9824 # Note: We can NOT use -z defs as we might desire, because we do not
9825 # link with -lc, and that would cause any symbols used from libc to
9826 # always be unresolved, which means just about no library would
9827 # ever link correctly. If we're not using GNU ld we use -z text
9828 # though, which does catch some bad symbols but isn't as heavy-handed
9829 # as -z defs.
9830 no_undefined_flag='${wl}-z,text'
9831 allow_undefined_flag='${wl}-z,nodefs'
9832 archive_cmds_need_lc=no
9833 hardcode_shlibpath_var=no
9834 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9835 hardcode_libdir_separator=':'
9836 link_all_deplibs=yes
9837 export_dynamic_flag_spec='${wl}-Bexport'
9838 runpath_var='LD_RUN_PATH'
9839
9840 if test "$GCC" = yes; then
9841 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9842 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9843 else
9844 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9845 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9846 fi
9847 ;;
9848
9849 uts4*)
9850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9851 hardcode_libdir_flag_spec='-L$libdir'
9852 hardcode_shlibpath_var=no
9853 ;;
9854
9855 *)
9856 ld_shlibs=no
9857 ;;
9858 esac
9859
9860 if test x$host_vendor = xsni; then
9861 case $host in
9862 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9863 export_dynamic_flag_spec='${wl}-Blargedynsym'
9864 ;;
9865 esac
9866 fi
9867 fi
9868
9869 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9870 $as_echo "$ld_shlibs" >&6; }
9871 test "$ld_shlibs" = no && can_build_shared=no
9872
9873 with_gnu_ld=$with_gnu_ld
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889 #
9890 # Do we need to explicitly link libc?
9891 #
9892 case "x$archive_cmds_need_lc" in
9893 x|xyes)
9894 # Assume -lc should be added
9895 archive_cmds_need_lc=yes
9896
9897 if test "$enable_shared" = yes && test "$GCC" = yes; then
9898 case $archive_cmds in
9899 *'~'*)
9900 # FIXME: we may have to deal with multi-command sequences.
9901 ;;
9902 '$CC '*)
9903 # Test whether the compiler implicitly links with -lc since on some
9904 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9905 # to ld, don't add -lc before -lgcc.
9906 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9907 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9908 $RM conftest*
9909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9910
9911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9912 (eval $ac_compile) 2>&5
9913 ac_status=$?
9914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } 2>conftest.err; then
9916 soname=conftest
9917 lib=conftest
9918 libobjs=conftest.$ac_objext
9919 deplibs=
9920 wl=$lt_prog_compiler_wl
9921 pic_flag=$lt_prog_compiler_pic
9922 compiler_flags=-v
9923 linker_flags=-v
9924 verstring=
9925 output_objdir=.
9926 libname=conftest
9927 lt_save_allow_undefined_flag=$allow_undefined_flag
9928 allow_undefined_flag=
9929 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9930 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9931 ac_status=$?
9932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }
9934 then
9935 archive_cmds_need_lc=no
9936 else
9937 archive_cmds_need_lc=yes
9938 fi
9939 allow_undefined_flag=$lt_save_allow_undefined_flag
9940 else
9941 cat conftest.err 1>&5
9942 fi
9943 $RM conftest*
9944 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9945 $as_echo "$archive_cmds_need_lc" >&6; }
9946 ;;
9947 esac
9948 fi
9949 ;;
9950 esac
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
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 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10109 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10110
10111 if test "$GCC" = yes; then
10112 case $host_os in
10113 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10114 *) lt_awk_arg="/^libraries:/" ;;
10115 esac
10116 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10117 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10118 # if the path contains ";" then we assume it to be the separator
10119 # otherwise default to the standard path separator (i.e. ":") - it is
10120 # assumed that no part of a normal pathname contains ";" but that should
10121 # okay in the real world where ";" in dirpaths is itself problematic.
10122 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10123 else
10124 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10125 fi
10126 # Ok, now we have the path, separated by spaces, we can step through it
10127 # and add multilib dir if necessary.
10128 lt_tmp_lt_search_path_spec=
10129 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10130 for lt_sys_path in $lt_search_path_spec; do
10131 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10132 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10133 else
10134 test -d "$lt_sys_path" && \
10135 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10136 fi
10137 done
10138 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10139 BEGIN {RS=" "; FS="/|\n";} {
10140 lt_foo="";
10141 lt_count=0;
10142 for (lt_i = NF; lt_i > 0; lt_i--) {
10143 if ($lt_i != "" && $lt_i != ".") {
10144 if ($lt_i == "..") {
10145 lt_count++;
10146 } else {
10147 if (lt_count == 0) {
10148 lt_foo="/" $lt_i lt_foo;
10149 } else {
10150 lt_count--;
10151 }
10152 }
10153 }
10154 }
10155 if (lt_foo != "") { lt_freq[lt_foo]++; }
10156 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10157 }'`
10158 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10159 else
10160 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10161 fi
10162 library_names_spec=
10163 libname_spec='lib$name'
10164 soname_spec=
10165 shrext_cmds=".so"
10166 postinstall_cmds=
10167 postuninstall_cmds=
10168 finish_cmds=
10169 finish_eval=
10170 shlibpath_var=
10171 shlibpath_overrides_runpath=unknown
10172 version_type=none
10173 dynamic_linker="$host_os ld.so"
10174 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10175 need_lib_prefix=unknown
10176 hardcode_into_libs=no
10177
10178 # when you set need_version to no, make sure it does not cause -set_version
10179 # flags to be left without arguments
10180 need_version=unknown
10181
10182 case $host_os in
10183 aix3*)
10184 version_type=linux
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10186 shlibpath_var=LIBPATH
10187
10188 # AIX 3 has no versioning support, so we append a major version to the name.
10189 soname_spec='${libname}${release}${shared_ext}$major'
10190 ;;
10191
10192 aix[4-9]*)
10193 version_type=linux
10194 need_lib_prefix=no
10195 need_version=no
10196 hardcode_into_libs=yes
10197 if test "$host_cpu" = ia64; then
10198 # AIX 5 supports IA64
10199 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10200 shlibpath_var=LD_LIBRARY_PATH
10201 else
10202 # With GCC up to 2.95.x, collect2 would create an import file
10203 # for dependence libraries. The import file would start with
10204 # the line `#! .'. This would cause the generated library to
10205 # depend on `.', always an invalid library. This was fixed in
10206 # development snapshots of GCC prior to 3.0.
10207 case $host_os in
10208 aix4 | aix4.[01] | aix4.[01].*)
10209 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10210 echo ' yes '
10211 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10212 :
10213 else
10214 can_build_shared=no
10215 fi
10216 ;;
10217 esac
10218 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10219 # soname into executable. Probably we can add versioning support to
10220 # collect2, so additional links can be useful in future.
10221 if test "$aix_use_runtimelinking" = yes; then
10222 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10223 # instead of lib<name>.a to let people know that these are not
10224 # typical AIX shared libraries.
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226 else
10227 # We preserve .a as extension for shared libraries through AIX4.2
10228 # and later when we are not doing run time linking.
10229 library_names_spec='${libname}${release}.a $libname.a'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 fi
10232 shlibpath_var=LIBPATH
10233 fi
10234 ;;
10235
10236 amigaos*)
10237 case $host_cpu in
10238 powerpc)
10239 # Since July 2007 AmigaOS4 officially supports .so libraries.
10240 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 ;;
10243 m68k)
10244 library_names_spec='$libname.ixlibrary $libname.a'
10245 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10246 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'
10247 ;;
10248 esac
10249 ;;
10250
10251 beos*)
10252 library_names_spec='${libname}${shared_ext}'
10253 dynamic_linker="$host_os ld.so"
10254 shlibpath_var=LIBRARY_PATH
10255 ;;
10256
10257 bsdi[45]*)
10258 version_type=linux
10259 need_version=no
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10263 shlibpath_var=LD_LIBRARY_PATH
10264 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10265 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10266 # the default ld.so.conf also contains /usr/contrib/lib and
10267 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10268 # libtool to hard-code these into programs
10269 ;;
10270
10271 cygwin* | mingw* | pw32* | cegcc*)
10272 version_type=windows
10273 shrext_cmds=".dll"
10274 need_version=no
10275 need_lib_prefix=no
10276
10277 case $GCC,$host_os in
10278 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10279 library_names_spec='$libname.dll.a'
10280 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10281 postinstall_cmds='base_file=`basename \${file}`~
10282 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10283 dldir=$destdir/`dirname \$dlpath`~
10284 test -d \$dldir || mkdir -p \$dldir~
10285 $install_prog $dir/$dlname \$dldir/$dlname~
10286 chmod a+x \$dldir/$dlname~
10287 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10288 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10289 fi'
10290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10291 dlpath=$dir/\$dldll~
10292 $RM \$dlpath'
10293 shlibpath_overrides_runpath=yes
10294
10295 case $host_os in
10296 cygwin*)
10297 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10298 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10299 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10300 ;;
10301 mingw* | cegcc*)
10302 # MinGW DLLs use traditional 'lib' prefix
10303 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10304 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10305 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10306 # It is most probably a Windows format PATH printed by
10307 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10308 # path with ; separators, and with drive letters. We can handle the
10309 # drive letters (cygwin fileutils understands them), so leave them,
10310 # especially as we might pass files found there to a mingw objdump,
10311 # which wouldn't understand a cygwinified path. Ahh.
10312 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10313 else
10314 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10315 fi
10316 ;;
10317 pw32*)
10318 # pw32 DLLs use 'pw' prefix rather than 'lib'
10319 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10320 ;;
10321 esac
10322 ;;
10323
10324 *)
10325 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10326 ;;
10327 esac
10328 dynamic_linker='Win32 ld.exe'
10329 # FIXME: first we should search . and the directory the executable is in
10330 shlibpath_var=PATH
10331 ;;
10332
10333 darwin* | rhapsody*)
10334 dynamic_linker="$host_os dyld"
10335 version_type=darwin
10336 need_lib_prefix=no
10337 need_version=no
10338 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10339 soname_spec='${libname}${release}${major}$shared_ext'
10340 shlibpath_overrides_runpath=yes
10341 shlibpath_var=DYLD_LIBRARY_PATH
10342 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10343
10344 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10345 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10346 ;;
10347
10348 dgux*)
10349 version_type=linux
10350 need_lib_prefix=no
10351 need_version=no
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10353 soname_spec='${libname}${release}${shared_ext}$major'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 ;;
10356
10357 freebsd1*)
10358 dynamic_linker=no
10359 ;;
10360
10361 freebsd* | dragonfly*)
10362 # DragonFly does not have aout. When/if they implement a new
10363 # versioning mechanism, adjust this.
10364 if test -x /usr/bin/objformat; then
10365 objformat=`/usr/bin/objformat`
10366 else
10367 case $host_os in
10368 freebsd[123]*) objformat=aout ;;
10369 *) objformat=elf ;;
10370 esac
10371 fi
10372 version_type=freebsd-$objformat
10373 case $version_type in
10374 freebsd-elf*)
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10376 need_version=no
10377 need_lib_prefix=no
10378 ;;
10379 freebsd-*)
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10381 need_version=yes
10382 ;;
10383 esac
10384 shlibpath_var=LD_LIBRARY_PATH
10385 case $host_os in
10386 freebsd2*)
10387 shlibpath_overrides_runpath=yes
10388 ;;
10389 freebsd3.[01]* | freebsdelf3.[01]*)
10390 shlibpath_overrides_runpath=yes
10391 hardcode_into_libs=yes
10392 ;;
10393 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10394 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10395 shlibpath_overrides_runpath=no
10396 hardcode_into_libs=yes
10397 ;;
10398 *) # from 4.6 on, and DragonFly
10399 shlibpath_overrides_runpath=yes
10400 hardcode_into_libs=yes
10401 ;;
10402 esac
10403 ;;
10404
10405 gnu*)
10406 version_type=linux
10407 need_lib_prefix=no
10408 need_version=no
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 hardcode_into_libs=yes
10413 ;;
10414
10415 hpux9* | hpux10* | hpux11*)
10416 # Give a soname corresponding to the major version so that dld.sl refuses to
10417 # link against other versions.
10418 version_type=sunos
10419 need_lib_prefix=no
10420 need_version=no
10421 case $host_cpu in
10422 ia64*)
10423 shrext_cmds='.so'
10424 hardcode_into_libs=yes
10425 dynamic_linker="$host_os dld.so"
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429 soname_spec='${libname}${release}${shared_ext}$major'
10430 if test "X$HPUX_IA64_MODE" = X32; then
10431 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10432 else
10433 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10434 fi
10435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10436 ;;
10437 hppa*64*)
10438 shrext_cmds='.sl'
10439 hardcode_into_libs=yes
10440 dynamic_linker="$host_os dld.sl"
10441 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444 soname_spec='${libname}${release}${shared_ext}$major'
10445 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10447 ;;
10448 *)
10449 shrext_cmds='.sl'
10450 dynamic_linker="$host_os dld.sl"
10451 shlibpath_var=SHLIB_PATH
10452 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454 soname_spec='${libname}${release}${shared_ext}$major'
10455 ;;
10456 esac
10457 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10458 postinstall_cmds='chmod 555 $lib'
10459 ;;
10460
10461 interix[3-9]*)
10462 version_type=linux
10463 need_lib_prefix=no
10464 need_version=no
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10466 soname_spec='${libname}${release}${shared_ext}$major'
10467 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10468 shlibpath_var=LD_LIBRARY_PATH
10469 shlibpath_overrides_runpath=no
10470 hardcode_into_libs=yes
10471 ;;
10472
10473 irix5* | irix6* | nonstopux*)
10474 case $host_os in
10475 nonstopux*) version_type=nonstopux ;;
10476 *)
10477 if test "$lt_cv_prog_gnu_ld" = yes; then
10478 version_type=linux
10479 else
10480 version_type=irix
10481 fi ;;
10482 esac
10483 need_lib_prefix=no
10484 need_version=no
10485 soname_spec='${libname}${release}${shared_ext}$major'
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10487 case $host_os in
10488 irix5* | nonstopux*)
10489 libsuff= shlibsuff=
10490 ;;
10491 *)
10492 case $LD in # libtool.m4 will add one of these switches to LD
10493 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10494 libsuff= shlibsuff= libmagic=32-bit;;
10495 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10496 libsuff=32 shlibsuff=N32 libmagic=N32;;
10497 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10498 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10499 *) libsuff= shlibsuff= libmagic=never-match;;
10500 esac
10501 ;;
10502 esac
10503 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10504 shlibpath_overrides_runpath=no
10505 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10506 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10507 hardcode_into_libs=yes
10508 ;;
10509
10510 # No shared lib support for Linux oldld, aout, or coff.
10511 linux*oldld* | linux*aout* | linux*coff*)
10512 dynamic_linker=no
10513 ;;
10514
10515 # This must be Linux ELF.
10516 linux* | k*bsd*-gnu)
10517 version_type=linux
10518 need_lib_prefix=no
10519 need_version=no
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 soname_spec='${libname}${release}${shared_ext}$major'
10522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10523 shlibpath_var=LD_LIBRARY_PATH
10524 shlibpath_overrides_runpath=no
10525 # Some binutils ld are patched to set DT_RUNPATH
10526 save_LDFLAGS=$LDFLAGS
10527 save_libdir=$libdir
10528 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10529 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10530 cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h. */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536
10537 int
10538 main ()
10539 {
10540
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 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10567 shlibpath_overrides_runpath=yes
10568 fi
10569
10570 else
10571 $as_echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10573
10574
10575 fi
10576
10577 rm -rf conftest.dSYM
10578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10579 conftest$ac_exeext conftest.$ac_ext
10580 LDFLAGS=$save_LDFLAGS
10581 libdir=$save_libdir
10582
10583 # This implies no fast_install, which is unacceptable.
10584 # Some rework will be needed to allow for fast_install
10585 # before this can be enabled.
10586 hardcode_into_libs=yes
10587
10588 # find out which ABI we are using
10589 libsuff=
10590 case "$host_cpu" in
10591 x86_64*|s390x*|powerpc64*)
10592 echo '#line 10592 "configure"' > conftest.$ac_ext
10593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10594 (eval $ac_compile) 2>&5
10595 ac_status=$?
10596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; then
10598 case `/usr/bin/file conftest.$ac_objext` in
10599 *64-bit*)
10600 libsuff=64
10601 ;;
10602 esac
10603 fi
10604 rm -rf conftest*
10605 ;;
10606 esac
10607
10608 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10609
10610 # Append ld.so.conf contents to the search path
10611 if test -f /etc/ld.so.conf; then
10612 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' ' '`
10613 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10614 fi
10615
10616 # We used to test for /lib/ld.so.1 and disable shared libraries on
10617 # powerpc, because MkLinux only supported shared libraries with the
10618 # GNU dynamic linker. Since this was broken with cross compilers,
10619 # most powerpc-linux boxes support dynamic linking these days and
10620 # people can always --disable-shared, the test was removed, and we
10621 # assume the GNU/Linux dynamic linker is in use.
10622 dynamic_linker='GNU/Linux ld.so'
10623 ;;
10624
10625 netbsd*)
10626 version_type=sunos
10627 need_lib_prefix=no
10628 need_version=no
10629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10632 dynamic_linker='NetBSD (a.out) ld.so'
10633 else
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10635 soname_spec='${libname}${release}${shared_ext}$major'
10636 dynamic_linker='NetBSD ld.elf_so'
10637 fi
10638 shlibpath_var=LD_LIBRARY_PATH
10639 shlibpath_overrides_runpath=yes
10640 hardcode_into_libs=yes
10641 ;;
10642
10643 newsos6)
10644 version_type=linux
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646 shlibpath_var=LD_LIBRARY_PATH
10647 shlibpath_overrides_runpath=yes
10648 ;;
10649
10650 *nto* | *qnx*)
10651 version_type=qnx
10652 need_lib_prefix=no
10653 need_version=no
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 soname_spec='${libname}${release}${shared_ext}$major'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 shlibpath_overrides_runpath=no
10658 hardcode_into_libs=yes
10659 dynamic_linker='ldqnx.so'
10660 ;;
10661
10662 openbsd*)
10663 version_type=sunos
10664 sys_lib_dlsearch_path_spec="/usr/lib"
10665 need_lib_prefix=no
10666 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10667 case $host_os in
10668 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10669 *) need_version=no ;;
10670 esac
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10675 case $host_os in
10676 openbsd2.[89] | openbsd2.[89].*)
10677 shlibpath_overrides_runpath=no
10678 ;;
10679 *)
10680 shlibpath_overrides_runpath=yes
10681 ;;
10682 esac
10683 else
10684 shlibpath_overrides_runpath=yes
10685 fi
10686 ;;
10687
10688 os2*)
10689 libname_spec='$name'
10690 shrext_cmds=".dll"
10691 need_lib_prefix=no
10692 library_names_spec='$libname${shared_ext} $libname.a'
10693 dynamic_linker='OS/2 ld.exe'
10694 shlibpath_var=LIBPATH
10695 ;;
10696
10697 osf3* | osf4* | osf5*)
10698 version_type=osf
10699 need_lib_prefix=no
10700 need_version=no
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703 shlibpath_var=LD_LIBRARY_PATH
10704 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10705 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10706 ;;
10707
10708 rdos*)
10709 dynamic_linker=no
10710 ;;
10711
10712 solaris*)
10713 version_type=linux
10714 need_lib_prefix=no
10715 need_version=no
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717 soname_spec='${libname}${release}${shared_ext}$major'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 shlibpath_overrides_runpath=yes
10720 hardcode_into_libs=yes
10721 # ldd complains unless libraries are executable
10722 postinstall_cmds='chmod +x $lib'
10723 ;;
10724
10725 sunos4*)
10726 version_type=sunos
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10728 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 shlibpath_overrides_runpath=yes
10731 if test "$with_gnu_ld" = yes; then
10732 need_lib_prefix=no
10733 fi
10734 need_version=yes
10735 ;;
10736
10737 sysv4 | sysv4.3*)
10738 version_type=linux
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740 soname_spec='${libname}${release}${shared_ext}$major'
10741 shlibpath_var=LD_LIBRARY_PATH
10742 case $host_vendor in
10743 sni)
10744 shlibpath_overrides_runpath=no
10745 need_lib_prefix=no
10746 runpath_var=LD_RUN_PATH
10747 ;;
10748 siemens)
10749 need_lib_prefix=no
10750 ;;
10751 motorola)
10752 need_lib_prefix=no
10753 need_version=no
10754 shlibpath_overrides_runpath=no
10755 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10756 ;;
10757 esac
10758 ;;
10759
10760 sysv4*MP*)
10761 if test -d /usr/nec ;then
10762 version_type=linux
10763 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10764 soname_spec='$libname${shared_ext}.$major'
10765 shlibpath_var=LD_LIBRARY_PATH
10766 fi
10767 ;;
10768
10769 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10770 version_type=freebsd-elf
10771 need_lib_prefix=no
10772 need_version=no
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10774 soname_spec='${libname}${release}${shared_ext}$major'
10775 shlibpath_var=LD_LIBRARY_PATH
10776 shlibpath_overrides_runpath=yes
10777 hardcode_into_libs=yes
10778 if test "$with_gnu_ld" = yes; then
10779 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10780 else
10781 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10782 case $host_os in
10783 sco3.2v5*)
10784 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10785 ;;
10786 esac
10787 fi
10788 sys_lib_dlsearch_path_spec='/usr/lib'
10789 ;;
10790
10791 tpf*)
10792 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10793 version_type=linux
10794 need_lib_prefix=no
10795 need_version=no
10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 shlibpath_overrides_runpath=no
10799 hardcode_into_libs=yes
10800 ;;
10801
10802 uts4*)
10803 version_type=linux
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 ;;
10808
10809 *)
10810 dynamic_linker=no
10811 ;;
10812 esac
10813 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10814 $as_echo "$dynamic_linker" >&6; }
10815 test "$dynamic_linker" = no && can_build_shared=no
10816
10817 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10818 if test "$GCC" = yes; then
10819 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10820 fi
10821
10822 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10823 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10824 fi
10825 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10826 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10827 fi
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10916 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10917 hardcode_action=
10918 if test -n "$hardcode_libdir_flag_spec" ||
10919 test -n "$runpath_var" ||
10920 test "X$hardcode_automatic" = "Xyes" ; then
10921
10922 # We can hardcode non-existent directories.
10923 if test "$hardcode_direct" != no &&
10924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10925 # have to relink, otherwise we might link with an installed library
10926 # when we should be linking with a yet-to-be-installed one
10927 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10928 test "$hardcode_minus_L" != no; then
10929 # Linking always hardcodes the temporary library directory.
10930 hardcode_action=relink
10931 else
10932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10933 hardcode_action=immediate
10934 fi
10935 else
10936 # We cannot hardcode anything, or else we can only hardcode existing
10937 # directories.
10938 hardcode_action=unsupported
10939 fi
10940 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10941 $as_echo "$hardcode_action" >&6; }
10942
10943 if test "$hardcode_action" = relink ||
10944 test "$inherit_rpath" = yes; then
10945 # Fast installation is not supported
10946 enable_fast_install=no
10947 elif test "$shlibpath_overrides_runpath" = yes ||
10948 test "$enable_shared" = no; then
10949 # Fast installation is not necessary
10950 enable_fast_install=needless
10951 fi
10952
10953
10954
10955
10956
10957
10958 if test "x$enable_dlopen" != xyes; then
10959 enable_dlopen=unknown
10960 enable_dlopen_self=unknown
10961 enable_dlopen_self_static=unknown
10962 else
10963 lt_cv_dlopen=no
10964 lt_cv_dlopen_libs=
10965
10966 case $host_os in
10967 beos*)
10968 lt_cv_dlopen="load_add_on"
10969 lt_cv_dlopen_libs=
10970 lt_cv_dlopen_self=yes
10971 ;;
10972
10973 mingw* | pw32* | cegcc*)
10974 lt_cv_dlopen="LoadLibrary"
10975 lt_cv_dlopen_libs=
10976 ;;
10977
10978 cygwin*)
10979 lt_cv_dlopen="dlopen"
10980 lt_cv_dlopen_libs=
10981 ;;
10982
10983 darwin*)
10984 # if libdl is installed we need to link against it
10985 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10986 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10987 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10988 $as_echo_n "(cached) " >&6
10989 else
10990 ac_check_lib_save_LIBS=$LIBS
10991 LIBS="-ldl $LIBS"
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11002 #ifdef __cplusplus
11003 extern "C"
11004 #endif
11005 char dlopen ();
11006 int
11007 main ()
11008 {
11009 return dlopen ();
11010 ;
11011 return 0;
11012 }
11013 _ACEOF
11014 rm -f conftest.$ac_objext conftest$ac_exeext
11015 if { (ac_try="$ac_link"
11016 case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019 esac
11020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11021 $as_echo "$ac_try_echo") >&5
11022 (eval "$ac_link") 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } && {
11029 test -z "$ac_c_werror_flag" ||
11030 test ! -s conftest.err
11031 } && test -s conftest$ac_exeext && {
11032 test "$cross_compiling" = yes ||
11033 $as_test_x conftest$ac_exeext
11034 }; then
11035 ac_cv_lib_dl_dlopen=yes
11036 else
11037 $as_echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040 ac_cv_lib_dl_dlopen=no
11041 fi
11042
11043 rm -rf conftest.dSYM
11044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11045 conftest$ac_exeext conftest.$ac_ext
11046 LIBS=$ac_check_lib_save_LIBS
11047 fi
11048 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11049 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11050 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11051 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11052 else
11053
11054 lt_cv_dlopen="dyld"
11055 lt_cv_dlopen_libs=
11056 lt_cv_dlopen_self=yes
11057
11058 fi
11059
11060 ;;
11061
11062 *)
11063 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11064 $as_echo_n "checking for shl_load... " >&6; }
11065 if test "${ac_cv_func_shl_load+set}" = set; then
11066 $as_echo_n "(cached) " >&6
11067 else
11068 cat >conftest.$ac_ext <<_ACEOF
11069 /* confdefs.h. */
11070 _ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h. */
11074 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11076 #define shl_load innocuous_shl_load
11077
11078 /* System header to define __stub macros and hopefully few prototypes,
11079 which can conflict with char shl_load (); below.
11080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11081 <limits.h> exists even on freestanding compilers. */
11082
11083 #ifdef __STDC__
11084 # include <limits.h>
11085 #else
11086 # include <assert.h>
11087 #endif
11088
11089 #undef shl_load
11090
11091 /* Override any GCC internal prototype to avoid an error.
11092 Use char because int might match the return type of a GCC
11093 builtin and then its argument prototype would still apply. */
11094 #ifdef __cplusplus
11095 extern "C"
11096 #endif
11097 char shl_load ();
11098 /* The GNU C library defines this for functions which it implements
11099 to always fail with ENOSYS. Some functions are actually named
11100 something starting with __ and the normal name is an alias. */
11101 #if defined __stub_shl_load || defined __stub___shl_load
11102 choke me
11103 #endif
11104
11105 int
11106 main ()
11107 {
11108 return shl_load ();
11109 ;
11110 return 0;
11111 }
11112 _ACEOF
11113 rm -f conftest.$ac_objext conftest$ac_exeext
11114 if { (ac_try="$ac_link"
11115 case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11118 esac
11119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11120 $as_echo "$ac_try_echo") >&5
11121 (eval "$ac_link") 2>conftest.er1
11122 ac_status=$?
11123 grep -v '^ *+' conftest.er1 >conftest.err
11124 rm -f conftest.er1
11125 cat conftest.err >&5
11126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } && {
11128 test -z "$ac_c_werror_flag" ||
11129 test ! -s conftest.err
11130 } && test -s conftest$ac_exeext && {
11131 test "$cross_compiling" = yes ||
11132 $as_test_x conftest$ac_exeext
11133 }; then
11134 ac_cv_func_shl_load=yes
11135 else
11136 $as_echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11138
11139 ac_cv_func_shl_load=no
11140 fi
11141
11142 rm -rf conftest.dSYM
11143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11144 conftest$ac_exeext conftest.$ac_ext
11145 fi
11146 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11147 $as_echo "$ac_cv_func_shl_load" >&6; }
11148 if test "x$ac_cv_func_shl_load" = x""yes; then
11149 lt_cv_dlopen="shl_load"
11150 else
11151 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11152 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11153 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11154 $as_echo_n "(cached) " >&6
11155 else
11156 ac_check_lib_save_LIBS=$LIBS
11157 LIBS="-ldld $LIBS"
11158 cat >conftest.$ac_ext <<_ACEOF
11159 /* confdefs.h. */
11160 _ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h. */
11164
11165 /* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11168 #ifdef __cplusplus
11169 extern "C"
11170 #endif
11171 char shl_load ();
11172 int
11173 main ()
11174 {
11175 return shl_load ();
11176 ;
11177 return 0;
11178 }
11179 _ACEOF
11180 rm -f conftest.$ac_objext conftest$ac_exeext
11181 if { (ac_try="$ac_link"
11182 case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11185 esac
11186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11187 $as_echo "$ac_try_echo") >&5
11188 (eval "$ac_link") 2>conftest.er1
11189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } && {
11195 test -z "$ac_c_werror_flag" ||
11196 test ! -s conftest.err
11197 } && test -s conftest$ac_exeext && {
11198 test "$cross_compiling" = yes ||
11199 $as_test_x conftest$ac_exeext
11200 }; then
11201 ac_cv_lib_dld_shl_load=yes
11202 else
11203 $as_echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11205
11206 ac_cv_lib_dld_shl_load=no
11207 fi
11208
11209 rm -rf conftest.dSYM
11210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11211 conftest$ac_exeext conftest.$ac_ext
11212 LIBS=$ac_check_lib_save_LIBS
11213 fi
11214 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11215 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11216 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11217 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11218 else
11219 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11220 $as_echo_n "checking for dlopen... " >&6; }
11221 if test "${ac_cv_func_dlopen+set}" = set; then
11222 $as_echo_n "(cached) " >&6
11223 else
11224 cat >conftest.$ac_ext <<_ACEOF
11225 /* confdefs.h. */
11226 _ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11230 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11232 #define dlopen innocuous_dlopen
11233
11234 /* System header to define __stub macros and hopefully few prototypes,
11235 which can conflict with char dlopen (); below.
11236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11237 <limits.h> exists even on freestanding compilers. */
11238
11239 #ifdef __STDC__
11240 # include <limits.h>
11241 #else
11242 # include <assert.h>
11243 #endif
11244
11245 #undef dlopen
11246
11247 /* Override any GCC internal prototype to avoid an error.
11248 Use char because int might match the return type of a GCC
11249 builtin and then its argument prototype would still apply. */
11250 #ifdef __cplusplus
11251 extern "C"
11252 #endif
11253 char dlopen ();
11254 /* The GNU C library defines this for functions which it implements
11255 to always fail with ENOSYS. Some functions are actually named
11256 something starting with __ and the normal name is an alias. */
11257 #if defined __stub_dlopen || defined __stub___dlopen
11258 choke me
11259 #endif
11260
11261 int
11262 main ()
11263 {
11264 return dlopen ();
11265 ;
11266 return 0;
11267 }
11268 _ACEOF
11269 rm -f conftest.$ac_objext conftest$ac_exeext
11270 if { (ac_try="$ac_link"
11271 case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11274 esac
11275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11276 $as_echo "$ac_try_echo") >&5
11277 (eval "$ac_link") 2>conftest.er1
11278 ac_status=$?
11279 grep -v '^ *+' conftest.er1 >conftest.err
11280 rm -f conftest.er1
11281 cat conftest.err >&5
11282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } && {
11284 test -z "$ac_c_werror_flag" ||
11285 test ! -s conftest.err
11286 } && test -s conftest$ac_exeext && {
11287 test "$cross_compiling" = yes ||
11288 $as_test_x conftest$ac_exeext
11289 }; then
11290 ac_cv_func_dlopen=yes
11291 else
11292 $as_echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11294
11295 ac_cv_func_dlopen=no
11296 fi
11297
11298 rm -rf conftest.dSYM
11299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11300 conftest$ac_exeext conftest.$ac_ext
11301 fi
11302 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11303 $as_echo "$ac_cv_func_dlopen" >&6; }
11304 if test "x$ac_cv_func_dlopen" = x""yes; then
11305 lt_cv_dlopen="dlopen"
11306 else
11307 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11308 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11309 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11310 $as_echo_n "(cached) " >&6
11311 else
11312 ac_check_lib_save_LIBS=$LIBS
11313 LIBS="-ldl $LIBS"
11314 cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h. */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11320
11321 /* Override any GCC internal prototype to avoid an error.
11322 Use char because int might match the return type of a GCC
11323 builtin and then its argument prototype would still apply. */
11324 #ifdef __cplusplus
11325 extern "C"
11326 #endif
11327 char dlopen ();
11328 int
11329 main ()
11330 {
11331 return dlopen ();
11332 ;
11333 return 0;
11334 }
11335 _ACEOF
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (ac_try="$ac_link"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11341 esac
11342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11343 $as_echo "$ac_try_echo") >&5
11344 (eval "$ac_link") 2>conftest.er1
11345 ac_status=$?
11346 grep -v '^ *+' conftest.er1 >conftest.err
11347 rm -f conftest.er1
11348 cat conftest.err >&5
11349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } && {
11351 test -z "$ac_c_werror_flag" ||
11352 test ! -s conftest.err
11353 } && test -s conftest$ac_exeext && {
11354 test "$cross_compiling" = yes ||
11355 $as_test_x conftest$ac_exeext
11356 }; then
11357 ac_cv_lib_dl_dlopen=yes
11358 else
11359 $as_echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11361
11362 ac_cv_lib_dl_dlopen=no
11363 fi
11364
11365 rm -rf conftest.dSYM
11366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11367 conftest$ac_exeext conftest.$ac_ext
11368 LIBS=$ac_check_lib_save_LIBS
11369 fi
11370 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11371 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11372 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11374 else
11375 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11376 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11377 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11378 $as_echo_n "(cached) " >&6
11379 else
11380 ac_check_lib_save_LIBS=$LIBS
11381 LIBS="-lsvld $LIBS"
11382 cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h. */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388
11389 /* Override any GCC internal prototype to avoid an error.
11390 Use char because int might match the return type of a GCC
11391 builtin and then its argument prototype would still apply. */
11392 #ifdef __cplusplus
11393 extern "C"
11394 #endif
11395 char dlopen ();
11396 int
11397 main ()
11398 {
11399 return dlopen ();
11400 ;
11401 return 0;
11402 }
11403 _ACEOF
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (ac_try="$ac_link"
11406 case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11409 esac
11410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11411 $as_echo "$ac_try_echo") >&5
11412 (eval "$ac_link") 2>conftest.er1
11413 ac_status=$?
11414 grep -v '^ *+' conftest.er1 >conftest.err
11415 rm -f conftest.er1
11416 cat conftest.err >&5
11417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } && {
11419 test -z "$ac_c_werror_flag" ||
11420 test ! -s conftest.err
11421 } && test -s conftest$ac_exeext && {
11422 test "$cross_compiling" = yes ||
11423 $as_test_x conftest$ac_exeext
11424 }; then
11425 ac_cv_lib_svld_dlopen=yes
11426 else
11427 $as_echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11429
11430 ac_cv_lib_svld_dlopen=no
11431 fi
11432
11433 rm -rf conftest.dSYM
11434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11435 conftest$ac_exeext conftest.$ac_ext
11436 LIBS=$ac_check_lib_save_LIBS
11437 fi
11438 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11439 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11440 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11441 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11442 else
11443 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11444 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11445 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11446 $as_echo_n "(cached) " >&6
11447 else
11448 ac_check_lib_save_LIBS=$LIBS
11449 LIBS="-ldld $LIBS"
11450 cat >conftest.$ac_ext <<_ACEOF
11451 /* confdefs.h. */
11452 _ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11456
11457 /* Override any GCC internal prototype to avoid an error.
11458 Use char because int might match the return type of a GCC
11459 builtin and then its argument prototype would still apply. */
11460 #ifdef __cplusplus
11461 extern "C"
11462 #endif
11463 char dld_link ();
11464 int
11465 main ()
11466 {
11467 return dld_link ();
11468 ;
11469 return 0;
11470 }
11471 _ACEOF
11472 rm -f conftest.$ac_objext conftest$ac_exeext
11473 if { (ac_try="$ac_link"
11474 case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11477 esac
11478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11479 $as_echo "$ac_try_echo") >&5
11480 (eval "$ac_link") 2>conftest.er1
11481 ac_status=$?
11482 grep -v '^ *+' conftest.er1 >conftest.err
11483 rm -f conftest.er1
11484 cat conftest.err >&5
11485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } && {
11487 test -z "$ac_c_werror_flag" ||
11488 test ! -s conftest.err
11489 } && test -s conftest$ac_exeext && {
11490 test "$cross_compiling" = yes ||
11491 $as_test_x conftest$ac_exeext
11492 }; then
11493 ac_cv_lib_dld_dld_link=yes
11494 else
11495 $as_echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11497
11498 ac_cv_lib_dld_dld_link=no
11499 fi
11500
11501 rm -rf conftest.dSYM
11502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11503 conftest$ac_exeext conftest.$ac_ext
11504 LIBS=$ac_check_lib_save_LIBS
11505 fi
11506 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11507 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11508 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11509 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11510 fi
11511
11512
11513 fi
11514
11515
11516 fi
11517
11518
11519 fi
11520
11521
11522 fi
11523
11524
11525 fi
11526
11527 ;;
11528 esac
11529
11530 if test "x$lt_cv_dlopen" != xno; then
11531 enable_dlopen=yes
11532 else
11533 enable_dlopen=no
11534 fi
11535
11536 case $lt_cv_dlopen in
11537 dlopen)
11538 save_CPPFLAGS="$CPPFLAGS"
11539 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11540
11541 save_LDFLAGS="$LDFLAGS"
11542 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11543
11544 save_LIBS="$LIBS"
11545 LIBS="$lt_cv_dlopen_libs $LIBS"
11546
11547 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11548 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11549 if test "${lt_cv_dlopen_self+set}" = set; then
11550 $as_echo_n "(cached) " >&6
11551 else
11552 if test "$cross_compiling" = yes; then :
11553 lt_cv_dlopen_self=cross
11554 else
11555 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11556 lt_status=$lt_dlunknown
11557 cat > conftest.$ac_ext <<_LT_EOF
11558 #line 11558 "configure"
11559 #include "confdefs.h"
11560
11561 #if HAVE_DLFCN_H
11562 #include <dlfcn.h>
11563 #endif
11564
11565 #include <stdio.h>
11566
11567 #ifdef RTLD_GLOBAL
11568 # define LT_DLGLOBAL RTLD_GLOBAL
11569 #else
11570 # ifdef DL_GLOBAL
11571 # define LT_DLGLOBAL DL_GLOBAL
11572 # else
11573 # define LT_DLGLOBAL 0
11574 # endif
11575 #endif
11576
11577 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11578 find out it does not work in some platform. */
11579 #ifndef LT_DLLAZY_OR_NOW
11580 # ifdef RTLD_LAZY
11581 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11582 # else
11583 # ifdef DL_LAZY
11584 # define LT_DLLAZY_OR_NOW DL_LAZY
11585 # else
11586 # ifdef RTLD_NOW
11587 # define LT_DLLAZY_OR_NOW RTLD_NOW
11588 # else
11589 # ifdef DL_NOW
11590 # define LT_DLLAZY_OR_NOW DL_NOW
11591 # else
11592 # define LT_DLLAZY_OR_NOW 0
11593 # endif
11594 # endif
11595 # endif
11596 # endif
11597 #endif
11598
11599 void fnord() { int i=42;}
11600 int main ()
11601 {
11602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11603 int status = $lt_dlunknown;
11604
11605 if (self)
11606 {
11607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11608 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11609 /* dlclose (self); */
11610 }
11611 else
11612 puts (dlerror ());
11613
11614 return status;
11615 }
11616 _LT_EOF
11617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11618 (eval $ac_link) 2>&5
11619 ac_status=$?
11620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11622 (./conftest; exit; ) >&5 2>/dev/null
11623 lt_status=$?
11624 case x$lt_status in
11625 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11626 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11627 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11628 esac
11629 else :
11630 # compilation failed
11631 lt_cv_dlopen_self=no
11632 fi
11633 fi
11634 rm -fr conftest*
11635
11636
11637 fi
11638 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11639 $as_echo "$lt_cv_dlopen_self" >&6; }
11640
11641 if test "x$lt_cv_dlopen_self" = xyes; then
11642 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11643 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11644 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11645 if test "${lt_cv_dlopen_self_static+set}" = set; then
11646 $as_echo_n "(cached) " >&6
11647 else
11648 if test "$cross_compiling" = yes; then :
11649 lt_cv_dlopen_self_static=cross
11650 else
11651 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11652 lt_status=$lt_dlunknown
11653 cat > conftest.$ac_ext <<_LT_EOF
11654 #line 11654 "configure"
11655 #include "confdefs.h"
11656
11657 #if HAVE_DLFCN_H
11658 #include <dlfcn.h>
11659 #endif
11660
11661 #include <stdio.h>
11662
11663 #ifdef RTLD_GLOBAL
11664 # define LT_DLGLOBAL RTLD_GLOBAL
11665 #else
11666 # ifdef DL_GLOBAL
11667 # define LT_DLGLOBAL DL_GLOBAL
11668 # else
11669 # define LT_DLGLOBAL 0
11670 # endif
11671 #endif
11672
11673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11674 find out it does not work in some platform. */
11675 #ifndef LT_DLLAZY_OR_NOW
11676 # ifdef RTLD_LAZY
11677 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11678 # else
11679 # ifdef DL_LAZY
11680 # define LT_DLLAZY_OR_NOW DL_LAZY
11681 # else
11682 # ifdef RTLD_NOW
11683 # define LT_DLLAZY_OR_NOW RTLD_NOW
11684 # else
11685 # ifdef DL_NOW
11686 # define LT_DLLAZY_OR_NOW DL_NOW
11687 # else
11688 # define LT_DLLAZY_OR_NOW 0
11689 # endif
11690 # endif
11691 # endif
11692 # endif
11693 #endif
11694
11695 void fnord() { int i=42;}
11696 int main ()
11697 {
11698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11699 int status = $lt_dlunknown;
11700
11701 if (self)
11702 {
11703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11704 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11705 /* dlclose (self); */
11706 }
11707 else
11708 puts (dlerror ());
11709
11710 return status;
11711 }
11712 _LT_EOF
11713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11714 (eval $ac_link) 2>&5
11715 ac_status=$?
11716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11718 (./conftest; exit; ) >&5 2>/dev/null
11719 lt_status=$?
11720 case x$lt_status in
11721 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11722 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11723 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11724 esac
11725 else :
11726 # compilation failed
11727 lt_cv_dlopen_self_static=no
11728 fi
11729 fi
11730 rm -fr conftest*
11731
11732
11733 fi
11734 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11735 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11736 fi
11737
11738 CPPFLAGS="$save_CPPFLAGS"
11739 LDFLAGS="$save_LDFLAGS"
11740 LIBS="$save_LIBS"
11741 ;;
11742 esac
11743
11744 case $lt_cv_dlopen_self in
11745 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11746 *) enable_dlopen_self=unknown ;;
11747 esac
11748
11749 case $lt_cv_dlopen_self_static in
11750 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11751 *) enable_dlopen_self_static=unknown ;;
11752 esac
11753 fi
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771 striplib=
11772 old_striplib=
11773 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11774 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11775 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11776 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11777 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11778 { $as_echo "$as_me:$LINENO: result: yes" >&5
11779 $as_echo "yes" >&6; }
11780 else
11781 # FIXME - insert some real tests, host_os isn't really good enough
11782 case $host_os in
11783 darwin*)
11784 if test -n "$STRIP" ; then
11785 striplib="$STRIP -x"
11786 old_striplib="$STRIP -S"
11787 { $as_echo "$as_me:$LINENO: result: yes" >&5
11788 $as_echo "yes" >&6; }
11789 else
11790 { $as_echo "$as_me:$LINENO: result: no" >&5
11791 $as_echo "no" >&6; }
11792 fi
11793 ;;
11794 *)
11795 { $as_echo "$as_me:$LINENO: result: no" >&5
11796 $as_echo "no" >&6; }
11797 ;;
11798 esac
11799 fi
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812 # Report which library types will actually be built
11813 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11814 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11815 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11816 $as_echo "$can_build_shared" >&6; }
11817
11818 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11819 $as_echo_n "checking whether to build shared libraries... " >&6; }
11820 test "$can_build_shared" = "no" && enable_shared=no
11821
11822 # On AIX, shared libraries and static libraries use the same namespace, and
11823 # are all built from PIC.
11824 case $host_os in
11825 aix3*)
11826 test "$enable_shared" = yes && enable_static=no
11827 if test -n "$RANLIB"; then
11828 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11829 postinstall_cmds='$RANLIB $lib'
11830 fi
11831 ;;
11832
11833 aix[4-9]*)
11834 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11835 test "$enable_shared" = yes && enable_static=no
11836 fi
11837 ;;
11838 esac
11839 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11840 $as_echo "$enable_shared" >&6; }
11841
11842 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11843 $as_echo_n "checking whether to build static libraries... " >&6; }
11844 # Make sure either enable_shared or enable_static is yes.
11845 test "$enable_shared" = yes || enable_static=yes
11846 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11847 $as_echo "$enable_static" >&6; }
11848
11849
11850
11851
11852 fi
11853 ac_ext=c
11854 ac_cpp='$CPP $CPPFLAGS'
11855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11858
11859 CC="$lt_save_CC"
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873 ac_config_commands="$ac_config_commands libtool"
11874
11875
11876
11877
11878 # Only expand once:
11879
11880
11881
11882 # Checks for programs.
11883 if test "x$CC" != xcc; then
11884 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
11885 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11886 else
11887 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
11888 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11889 fi
11890 set dummy $CC; ac_cc=`$as_echo "$2" |
11891 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11892 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
11893 $as_echo_n "(cached) " >&6
11894 else
11895 cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h. */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11901
11902 int
11903 main ()
11904 {
11905
11906 ;
11907 return 0;
11908 }
11909 _ACEOF
11910 # Make sure it works both with $CC and with simple cc.
11911 # We do the test twice because some compilers refuse to overwrite an
11912 # existing .o file with -o, though they will create one.
11913 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11914 rm -f conftest2.*
11915 if { (case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11918 esac
11919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11920 $as_echo "$ac_try_echo") >&5
11921 (eval "$ac_try") 2>&5
11922 ac_status=$?
11923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
11925 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928 esac
11929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11930 $as_echo "$ac_try_echo") >&5
11931 (eval "$ac_try") 2>&5
11932 ac_status=$?
11933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); };
11935 then
11936 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11937 if test "x$CC" != xcc; then
11938 # Test first that cc exists at all.
11939 if { ac_try='cc -c conftest.$ac_ext >&5'
11940 { (case "(($ac_try" in
11941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 *) ac_try_echo=$ac_try;;
11943 esac
11944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11945 $as_echo "$ac_try_echo") >&5
11946 (eval "$ac_try") 2>&5
11947 ac_status=$?
11948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11950 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11951 rm -f conftest2.*
11952 if { (case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955 esac
11956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11957 $as_echo "$ac_try_echo") >&5
11958 (eval "$ac_try") 2>&5
11959 ac_status=$?
11960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965 esac
11966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11967 $as_echo "$ac_try_echo") >&5
11968 (eval "$ac_try") 2>&5
11969 ac_status=$?
11970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); };
11972 then
11973 # cc works too.
11974 :
11975 else
11976 # cc exists but doesn't like -o.
11977 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11978 fi
11979 fi
11980 fi
11981 else
11982 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11983 fi
11984 rm -f core conftest*
11985
11986 fi
11987 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11988 { $as_echo "$as_me:$LINENO: result: yes" >&5
11989 $as_echo "yes" >&6; }
11990 else
11991 { $as_echo "$as_me:$LINENO: result: no" >&5
11992 $as_echo "no" >&6; }
11993
11994 cat >>confdefs.h <<\_ACEOF
11995 #define NO_MINUS_C_MINUS_O 1
11996 _ACEOF
11997
11998 fi
11999
12000 # FIXME: we rely on the cache variable name because
12001 # there is no other way.
12002 set dummy $CC
12003 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12004 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12005 if test "$am_t" != yes; then
12006 # Losing compiler, so override with the script.
12007 # FIXME: It is wrong to rewrite CC.
12008 # But if we don't then we get into trouble of one sort or another.
12009 # A longer-term fix would be to have automake use am__CC in this case,
12010 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12011 CC="$am_aux_dir/compile $CC"
12012 fi
12013
12014
12015
12016
12017
12018
12019 # Define a configure option for an alternate module directory
12020
12021 # Check whether --with-xorg-module-dir was given.
12022 if test "${with_xorg_module_dir+set}" = set; then
12023 withval=$with_xorg_module_dir; moduledir="$withval"
12024 else
12025 moduledir="$libdir/xorg/modules"
12026 fi
12027
12028
12029 # Define a configure option to build the vmwarectrl client tool
12030 # Check whether --enable-vmwarectrl-client was given.
12031 if test "${enable_vmwarectrl_client+set}" = set; then
12032 enableval=$enable_vmwarectrl_client; VMWARECTRL=$enableval
12033 else
12034 VMWARECTRL=no
12035 fi
12036
12037 if test "x$VMWARECTRL" = xyes; then
12038 BUILD_VMWARECTRL_TRUE=
12039 BUILD_VMWARECTRL_FALSE='#'
12040 else
12041 BUILD_VMWARECTRL_TRUE='#'
12042 BUILD_VMWARECTRL_FALSE=
12043 fi
12044
12045
12046 # Store the list of server defined optional extensions in REQUIRED_MODULES
12047
12048 SAVE_CFLAGS="$CFLAGS"
12049 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12050 cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h. */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056
12057 #include "xorg-server.h"
12058 #if !defined RANDR
12059 #error RANDR not defined
12060 #endif
12061
12062 int
12063 main ()
12064 {
12065
12066 ;
12067 return 0;
12068 }
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (ac_try="$ac_compile"
12072 case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075 esac
12076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12077 $as_echo "$ac_try_echo") >&5
12078 (eval "$ac_compile") 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } && {
12085 test -z "$ac_c_werror_flag" ||
12086 test ! -s conftest.err
12087 } && test -s conftest.$ac_objext; then
12088 _EXT_CHECK=yes
12089 else
12090 $as_echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12092
12093 _EXT_CHECK=no
12094 fi
12095
12096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097 CFLAGS="$SAVE_CFLAGS"
12098 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
12099 $as_echo_n "checking if RANDR is defined... " >&6; }
12100 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12101 $as_echo "$_EXT_CHECK" >&6; }
12102 if test "$_EXT_CHECK" != no; then
12103 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
12104 fi
12105
12106
12107 SAVE_CFLAGS="$CFLAGS"
12108 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12109 cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h. */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115
12116 #include "xorg-server.h"
12117 #if !defined RENDER
12118 #error RENDER not defined
12119 #endif
12120
12121 int
12122 main ()
12123 {
12124
12125 ;
12126 return 0;
12127 }
12128 _ACEOF
12129 rm -f conftest.$ac_objext
12130 if { (ac_try="$ac_compile"
12131 case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12134 esac
12135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12136 $as_echo "$ac_try_echo") >&5
12137 (eval "$ac_compile") 2>conftest.er1
12138 ac_status=$?
12139 grep -v '^ *+' conftest.er1 >conftest.err
12140 rm -f conftest.er1
12141 cat conftest.err >&5
12142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } && {
12144 test -z "$ac_c_werror_flag" ||
12145 test ! -s conftest.err
12146 } && test -s conftest.$ac_objext; then
12147 _EXT_CHECK=yes
12148 else
12149 $as_echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 _EXT_CHECK=no
12153 fi
12154
12155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12156 CFLAGS="$SAVE_CFLAGS"
12157 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12158 $as_echo_n "checking if RENDER is defined... " >&6; }
12159 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12160 $as_echo "$_EXT_CHECK" >&6; }
12161 if test "$_EXT_CHECK" != no; then
12162 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12163 fi
12164
12165
12166 SAVE_CFLAGS="$CFLAGS"
12167 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12168 cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h. */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174
12175 #include "xorg-server.h"
12176 #if !defined DPMSExtension
12177 #error DPMSExtension not defined
12178 #endif
12179
12180 int
12181 main ()
12182 {
12183
12184 ;
12185 return 0;
12186 }
12187 _ACEOF
12188 rm -f conftest.$ac_objext
12189 if { (ac_try="$ac_compile"
12190 case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12193 esac
12194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12195 $as_echo "$ac_try_echo") >&5
12196 (eval "$ac_compile") 2>conftest.er1
12197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } && {
12203 test -z "$ac_c_werror_flag" ||
12204 test ! -s conftest.err
12205 } && test -s conftest.$ac_objext; then
12206 _EXT_CHECK=yes
12207 else
12208 $as_echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12210
12211 _EXT_CHECK=no
12212 fi
12213
12214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215 CFLAGS="$SAVE_CFLAGS"
12216 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12217 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
12218 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12219 $as_echo "$_EXT_CHECK" >&6; }
12220 if test "$_EXT_CHECK" != no; then
12221 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12222 fi
12223
12224
12225 SAVE_CFLAGS="$CFLAGS"
12226 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12227 cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h. */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12233
12234 #include "xorg-server.h"
12235 #if !defined XINERAMA
12236 #error XINERAMA not defined
12237 #endif
12238
12239 int
12240 main ()
12241 {
12242
12243 ;
12244 return 0;
12245 }
12246 _ACEOF
12247 rm -f conftest.$ac_objext
12248 if { (ac_try="$ac_compile"
12249 case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12252 esac
12253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12254 $as_echo "$ac_try_echo") >&5
12255 (eval "$ac_compile") 2>conftest.er1
12256 ac_status=$?
12257 grep -v '^ *+' conftest.er1 >conftest.err
12258 rm -f conftest.er1
12259 cat conftest.err >&5
12260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } && {
12262 test -z "$ac_c_werror_flag" ||
12263 test ! -s conftest.err
12264 } && test -s conftest.$ac_objext; then
12265 _EXT_CHECK=yes
12266 else
12267 $as_echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12269
12270 _EXT_CHECK=no
12271 fi
12272
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274 CFLAGS="$SAVE_CFLAGS"
12275 { $as_echo "$as_me:$LINENO: checking if XINERAMA is defined" >&5
12276 $as_echo_n "checking if XINERAMA is defined... " >&6; }
12277 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12278 $as_echo "$_EXT_CHECK" >&6; }
12279 if test "$_EXT_CHECK" != no; then
12280 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
12281 fi
12282
12283
12284 SAVE_CFLAGS="$CFLAGS"
12285 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12286 cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h. */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292
12293 #include "xorg-server.h"
12294 #if !defined XV
12295 #error XV not defined
12296 #endif
12297
12298 int
12299 main ()
12300 {
12301
12302 ;
12303 return 0;
12304 }
12305 _ACEOF
12306 rm -f conftest.$ac_objext
12307 if { (ac_try="$ac_compile"
12308 case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12311 esac
12312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12313 $as_echo "$ac_try_echo") >&5
12314 (eval "$ac_compile") 2>conftest.er1
12315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
12319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } && {
12321 test -z "$ac_c_werror_flag" ||
12322 test ! -s conftest.err
12323 } && test -s conftest.$ac_objext; then
12324 _EXT_CHECK=yes
12325 else
12326 $as_echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12328
12329 _EXT_CHECK=no
12330 fi
12331
12332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333 CFLAGS="$SAVE_CFLAGS"
12334 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
12335 $as_echo_n "checking if XV is defined... " >&6; }
12336 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12337 $as_echo "$_EXT_CHECK" >&6; }
12338 if test "$_EXT_CHECK" != no; then
12339 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
12340 fi
12341
12342
12343 # Obtain compiler/linker options for the driver dependencies
12344
12345 pkg_failed=no
12346 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
12347 $as_echo_n "checking for XORG... " >&6; }
12348
12349 if test -n "$XORG_CFLAGS"; then
12350 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12351 elif test -n "$PKG_CONFIG"; then
12352 if test -n "$PKG_CONFIG" && \
12353 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12354 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5
12355 ac_status=$?
12356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; then
12358 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12359 else
12360 pkg_failed=yes
12361 fi
12362 else
12363 pkg_failed=untried
12364 fi
12365 if test -n "$XORG_LIBS"; then
12366 pkg_cv_XORG_LIBS="$XORG_LIBS"
12367 elif test -n "$PKG_CONFIG"; then
12368 if test -n "$PKG_CONFIG" && \
12369 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12370 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5
12371 ac_status=$?
12372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; then
12374 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12375 else
12376 pkg_failed=yes
12377 fi
12378 else
12379 pkg_failed=untried
12380 fi
12381
12382
12383
12384 if test $pkg_failed = yes; then
12385
12386 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12387 _pkg_short_errors_supported=yes
12388 else
12389 _pkg_short_errors_supported=no
12390 fi
12391 if test $_pkg_short_errors_supported = yes; then
12392 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12393 else
12394 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12395 fi
12396 # Put the nasty error message in config.log where it belongs
12397 echo "$XORG_PKG_ERRORS" >&5
12398
12399 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met:
12400
12401 $XORG_PKG_ERRORS
12402
12403 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12404 installed software in a non-standard prefix.
12405
12406 Alternatively, you may set the environment variables XORG_CFLAGS
12407 and XORG_LIBS to avoid the need to call pkg-config.
12408 See the pkg-config man page for more details.
12409 " >&5
12410 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met:
12411
12412 $XORG_PKG_ERRORS
12413
12414 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12415 installed software in a non-standard prefix.
12416
12417 Alternatively, you may set the environment variables XORG_CFLAGS
12418 and XORG_LIBS to avoid the need to call pkg-config.
12419 See the pkg-config man page for more details.
12420 " >&2;}
12421 { (exit 1); exit 1; }; }
12422 elif test $pkg_failed = untried; then
12423 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12425 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12426 is in your PATH or set the PKG_CONFIG environment variable to the full
12427 path to pkg-config.
12428
12429 Alternatively, you may set the environment variables XORG_CFLAGS
12430 and XORG_LIBS to avoid the need to call pkg-config.
12431 See the pkg-config man page for more details.
12432
12433 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12434 See \`config.log' for more details." >&5
12435 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12436 is in your PATH or set the PKG_CONFIG environment variable to the full
12437 path to pkg-config.
12438
12439 Alternatively, you may set the environment variables XORG_CFLAGS
12440 and XORG_LIBS to avoid the need to call pkg-config.
12441 See the pkg-config man page for more details.
12442
12443 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12444 See \`config.log' for more details." >&2;}
12445 { (exit 1); exit 1; }; }; }
12446 else
12447 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12448 XORG_LIBS=$pkg_cv_XORG_LIBS
12449 { $as_echo "$as_me:$LINENO: result: yes" >&5
12450 $as_echo "yes" >&6; }
12451 :
12452 fi
12453
12454 pkg_failed=no
12455 { $as_echo "$as_me:$LINENO: checking for LIBDRM" >&5
12456 $as_echo_n "checking for LIBDRM... " >&6; }
12457
12458 if test -n "$LIBDRM_CFLAGS"; then
12459 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
12460 elif test -n "$PKG_CONFIG"; then
12461 if test -n "$PKG_CONFIG" && \
12462 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm\"") >&5
12463 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
12464 ac_status=$?
12465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; then
12467 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm" 2>/dev/null`
12468 else
12469 pkg_failed=yes
12470 fi
12471 else
12472 pkg_failed=untried
12473 fi
12474 if test -n "$LIBDRM_LIBS"; then
12475 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
12476 elif test -n "$PKG_CONFIG"; then
12477 if test -n "$PKG_CONFIG" && \
12478 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm\"") >&5
12479 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
12480 ac_status=$?
12481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; then
12483 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm" 2>/dev/null`
12484 else
12485 pkg_failed=yes
12486 fi
12487 else
12488 pkg_failed=untried
12489 fi
12490
12491
12492
12493 if test $pkg_failed = yes; then
12494
12495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12496 _pkg_short_errors_supported=yes
12497 else
12498 _pkg_short_errors_supported=no
12499 fi
12500 if test $_pkg_short_errors_supported = yes; then
12501 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm" 2>&1`
12502 else
12503 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm" 2>&1`
12504 fi
12505 # Put the nasty error message in config.log where it belongs
12506 echo "$LIBDRM_PKG_ERRORS" >&5
12507
12508 { $as_echo "$as_me:$LINENO: result: no" >&5
12509 $as_echo "no" >&6; }
12510 echo "Will not try support for 3D or kernel modesetting."
12511 elif test $pkg_failed = untried; then
12512 echo "Will not try support for 3D or kernel modesetting."
12513 else
12514 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
12515 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
12516 { $as_echo "$as_me:$LINENO: result: yes" >&5
12517 $as_echo "yes" >&6; }
12518
12519 cat >>confdefs.h <<\_ACEOF
12520 #define HAVE_LIBDRM 1
12521 _ACEOF
12522
12523 fi
12524
12525 if test -n "$PKG_CONFIG" && \
12526 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\"") >&5
12527 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5
12528 ac_status=$?
12529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; then
12531
12532 cat >>confdefs.h <<\_ACEOF
12533 #define HAVE_XORG_SERVER_1_1_0 1
12534 _ACEOF
12535
12536 fi
12537
12538 if test -n "$PKG_CONFIG" && \
12539 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901\"") >&5
12540 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901") 2>&5
12541 ac_status=$?
12542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; then
12544
12545 cat >>confdefs.h <<\_ACEOF
12546 #define HAVE_XORG_SERVER_1_0_99_901 1
12547 _ACEOF
12548
12549 fi
12550
12551 if test -n "$PKG_CONFIG" && \
12552 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.0\"") >&5
12553 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.0") 2>&5
12554 ac_status=$?
12555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; then
12557
12558 cat >>confdefs.h <<\_ACEOF
12559 #define HAVE_XORG_SERVER_1_2_0 1
12560 _ACEOF
12561
12562 fi
12563
12564 if test -n "$PKG_CONFIG" && \
12565 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4.99\"") >&5
12566 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4.99") 2>&5
12567 ac_status=$?
12568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; then
12570
12571 cat >>confdefs.h <<\_ACEOF
12572 #define HAVE_XORG_SERVER_1_5_0 1
12573 _ACEOF
12574
12575 fi
12576
12577 if test -n "$PKG_CONFIG" && \
12578 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0\"") >&5
12579 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0") 2>&5
12580 ac_status=$?
12581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; then
12583
12584 cat >>confdefs.h <<\_ACEOF
12585 #define HAVE_XORG_SERVER_1_7_0 1
12586 _ACEOF
12587
12588 fi
12589
12590 # Obtain compiler/linker options for the vmwarectrl client tool
12591
12592 pkg_failed=no
12593 { $as_echo "$as_me:$LINENO: checking for X11" >&5
12594 $as_echo_n "checking for X11... " >&6; }
12595
12596 if test -n "$X11_CFLAGS"; then
12597 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
12598 elif test -n "$PKG_CONFIG"; then
12599 if test -n "$PKG_CONFIG" && \
12600 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext\"") >&5
12601 ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5
12602 ac_status=$?
12603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; then
12605 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xext" 2>/dev/null`
12606 else
12607 pkg_failed=yes
12608 fi
12609 else
12610 pkg_failed=untried
12611 fi
12612 if test -n "$X11_LIBS"; then
12613 pkg_cv_X11_LIBS="$X11_LIBS"
12614 elif test -n "$PKG_CONFIG"; then
12615 if test -n "$PKG_CONFIG" && \
12616 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext\"") >&5
12617 ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5
12618 ac_status=$?
12619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; then
12621 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xext" 2>/dev/null`
12622 else
12623 pkg_failed=yes
12624 fi
12625 else
12626 pkg_failed=untried
12627 fi
12628
12629
12630
12631 if test $pkg_failed = yes; then
12632
12633 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12634 _pkg_short_errors_supported=yes
12635 else
12636 _pkg_short_errors_supported=no
12637 fi
12638 if test $_pkg_short_errors_supported = yes; then
12639 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext" 2>&1`
12640 else
12641 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext" 2>&1`
12642 fi
12643 # Put the nasty error message in config.log where it belongs
12644 echo "$X11_PKG_ERRORS" >&5
12645
12646 { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xext) were not met:
12647
12648 $X11_PKG_ERRORS
12649
12650 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12651 installed software in a non-standard prefix.
12652
12653 Alternatively, you may set the environment variables X11_CFLAGS
12654 and X11_LIBS to avoid the need to call pkg-config.
12655 See the pkg-config man page for more details.
12656 " >&5
12657 $as_echo "$as_me: error: Package requirements (x11 xext) were not met:
12658
12659 $X11_PKG_ERRORS
12660
12661 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12662 installed software in a non-standard prefix.
12663
12664 Alternatively, you may set the environment variables X11_CFLAGS
12665 and X11_LIBS to avoid the need to call pkg-config.
12666 See the pkg-config man page for more details.
12667 " >&2;}
12668 { (exit 1); exit 1; }; }
12669 elif test $pkg_failed = untried; then
12670 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12672 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12673 is in your PATH or set the PKG_CONFIG environment variable to the full
12674 path to pkg-config.
12675
12676 Alternatively, you may set the environment variables X11_CFLAGS
12677 and X11_LIBS to avoid the need to call pkg-config.
12678 See the pkg-config man page for more details.
12679
12680 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12681 See \`config.log' for more details." >&5
12682 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12683 is in your PATH or set the PKG_CONFIG environment variable to the full
12684 path to pkg-config.
12685
12686 Alternatively, you may set the environment variables X11_CFLAGS
12687 and X11_LIBS to avoid the need to call pkg-config.
12688 See the pkg-config man page for more details.
12689
12690 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12691 See \`config.log' for more details." >&2;}
12692 { (exit 1); exit 1; }; }; }
12693 else
12694 X11_CFLAGS=$pkg_cv_X11_CFLAGS
12695 X11_LIBS=$pkg_cv_X11_LIBS
12696 { $as_echo "$as_me:$LINENO: result: yes" >&5
12697 $as_echo "yes" >&6; }
12698 :
12699 fi
12700
12701 # Checks for libraries.
12702
12703 save_CFLAGS="$CFLAGS"
12704 CFLAGS="$XORG_CFLAGS"
12705 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
12706 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
12707 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
12708 $as_echo_n "(cached) " >&6
12709 else
12710 cat >conftest.$ac_ext <<_ACEOF
12711 /* confdefs.h. */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12716 #include "xorg-server.h"
12717
12718 int
12719 main ()
12720 {
12721 #ifndef XSERVER_LIBPCIACCESS
12722 (void) XSERVER_LIBPCIACCESS;
12723 #endif
12724
12725 ;
12726 return 0;
12727 }
12728 _ACEOF
12729 rm -f conftest.$ac_objext
12730 if { (ac_try="$ac_compile"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12734 esac
12735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12736 $as_echo "$ac_try_echo") >&5
12737 (eval "$ac_compile") 2>conftest.er1
12738 ac_status=$?
12739 grep -v '^ *+' conftest.er1 >conftest.err
12740 rm -f conftest.er1
12741 cat conftest.err >&5
12742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } && {
12744 test -z "$ac_c_werror_flag" ||
12745 test ! -s conftest.err
12746 } && test -s conftest.$ac_objext; then
12747 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
12748 else
12749 $as_echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12751
12752 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
12753 fi
12754
12755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756 fi
12757 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
12758 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
12759 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
12760 XSERVER_LIBPCIACCESS=yes
12761 else
12762 XSERVER_LIBPCIACCESS=no
12763 fi
12764
12765 CFLAGS="$save_CFLAGS"
12766
12767 if test x$XSERVER_LIBPCIACCESS = xyes; then
12768
12769 pkg_failed=no
12770 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
12771 $as_echo_n "checking for PCIACCESS... " >&6; }
12772
12773 if test -n "$PCIACCESS_CFLAGS"; then
12774 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12775 elif test -n "$PKG_CONFIG"; then
12776 if test -n "$PKG_CONFIG" && \
12777 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12778 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12779 ac_status=$?
12780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; then
12782 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
12783 else
12784 pkg_failed=yes
12785 fi
12786 else
12787 pkg_failed=untried
12788 fi
12789 if test -n "$PCIACCESS_LIBS"; then
12790 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12791 elif test -n "$PKG_CONFIG"; then
12792 if test -n "$PKG_CONFIG" && \
12793 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12794 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12795 ac_status=$?
12796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; then
12798 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
12799 else
12800 pkg_failed=yes
12801 fi
12802 else
12803 pkg_failed=untried
12804 fi
12805
12806
12807
12808 if test $pkg_failed = yes; then
12809
12810 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12811 _pkg_short_errors_supported=yes
12812 else
12813 _pkg_short_errors_supported=no
12814 fi
12815 if test $_pkg_short_errors_supported = yes; then
12816 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
12817 else
12818 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
12819 fi
12820 # Put the nasty error message in config.log where it belongs
12821 echo "$PCIACCESS_PKG_ERRORS" >&5
12822
12823 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
12824
12825 $PCIACCESS_PKG_ERRORS
12826
12827 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12828 installed software in a non-standard prefix.
12829
12830 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12831 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12832 See the pkg-config man page for more details.
12833 " >&5
12834 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
12835
12836 $PCIACCESS_PKG_ERRORS
12837
12838 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12839 installed software in a non-standard prefix.
12840
12841 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12842 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12843 See the pkg-config man page for more details.
12844 " >&2;}
12845 { (exit 1); exit 1; }; }
12846 elif test $pkg_failed = untried; then
12847 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12849 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12850 is in your PATH or set the PKG_CONFIG environment variable to the full
12851 path to pkg-config.
12852
12853 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12854 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12855 See the pkg-config man page for more details.
12856
12857 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12858 See \`config.log' for more details." >&5
12859 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12860 is in your PATH or set the PKG_CONFIG environment variable to the full
12861 path to pkg-config.
12862
12863 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12864 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12865 See the pkg-config man page for more details.
12866
12867 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12868 See \`config.log' for more details." >&2;}
12869 { (exit 1); exit 1; }; }; }
12870 else
12871 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12872 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12873 { $as_echo "$as_me:$LINENO: result: yes" >&5
12874 $as_echo "yes" >&6; }
12875 :
12876 fi
12877 fi
12878
12879 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12880 XSERVER_LIBPCIACCESS_TRUE=
12881 XSERVER_LIBPCIACCESS_FALSE='#'
12882 else
12883 XSERVER_LIBPCIACCESS_TRUE='#'
12884 XSERVER_LIBPCIACCESS_FALSE=
12885 fi
12886
12887
12888
12889
12890 DRIVER_NAME=vmware
12891
12892
12893 ac_config_files="$ac_config_files Makefile src/Makefile vmwarectrl/Makefile man/Makefile"
12894
12895 cat >confcache <<\_ACEOF
12896 # This file is a shell script that caches the results of configure
12897 # tests run on this system so they can be shared between configure
12898 # scripts and configure runs, see configure's option --config-cache.
12899 # It is not useful on other systems. If it contains results you don't
12900 # want to keep, you may remove or edit it.
12901 #
12902 # config.status only pays attention to the cache file if you give it
12903 # the --recheck option to rerun configure.
12904 #
12905 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12906 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12907 # following values.
12908
12909 _ACEOF
12910
12911 # The following way of writing the cache mishandles newlines in values,
12912 # but we know of no workaround that is simple, portable, and efficient.
12913 # So, we kill variables containing newlines.
12914 # Ultrix sh set writes to stderr and can't be redirected directly,
12915 # and sets the high bit in the cache file unless we assign to the vars.
12916 (
12917 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12918 eval ac_val=\$$ac_var
12919 case $ac_val in #(
12920 *${as_nl}*)
12921 case $ac_var in #(
12922 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12924 esac
12925 case $ac_var in #(
12926 _ | IFS | as_nl) ;; #(
12927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12928 *) $as_unset $ac_var ;;
12929 esac ;;
12930 esac
12931 done
12932
12933 (set) 2>&1 |
12934 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12935 *${as_nl}ac_space=\ *)
12936 # `set' does not quote correctly, so add quotes (double-quote
12937 # substitution turns \\\\ into \\, and sed turns \\ into \).
12938 sed -n \
12939 "s/'/'\\\\''/g;
12940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12941 ;; #(
12942 *)
12943 # `set' quotes correctly as required by POSIX, so do not add quotes.
12944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12945 ;;
12946 esac |
12947 sort
12948 ) |
12949 sed '
12950 /^ac_cv_env_/b end
12951 t clear
12952 :clear
12953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12954 t end
12955 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12956 :end' >>confcache
12957 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12958 if test -w "$cache_file"; then
12959 test "x$cache_file" != "x/dev/null" &&
12960 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12961 $as_echo "$as_me: updating cache $cache_file" >&6;}
12962 cat confcache >$cache_file
12963 else
12964 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12965 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12966 fi
12967 fi
12968 rm -f confcache
12969
12970 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12971 # Let make expand exec_prefix.
12972 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12973
12974 DEFS=-DHAVE_CONFIG_H
12975
12976 ac_libobjs=
12977 ac_ltlibobjs=
12978 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12979 # 1. Remove the extension, and $U if already installed.
12980 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12981 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12982 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12983 # will be set to the directory where LIBOBJS objects are built.
12984 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12985 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12986 done
12987 LIBOBJS=$ac_libobjs
12988
12989 LTLIBOBJS=$ac_ltlibobjs
12990
12991
12992 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12993 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12994 Usually this means the macro was only invoked conditionally." >&5
12995 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12996 Usually this means the macro was only invoked conditionally." >&2;}
12997 { (exit 1); exit 1; }; }
12998 fi
12999 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13000 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13001 Usually this means the macro was only invoked conditionally." >&5
13002 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13003 Usually this means the macro was only invoked conditionally." >&2;}
13004 { (exit 1); exit 1; }; }
13005 fi
13006 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13007 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13008 Usually this means the macro was only invoked conditionally." >&5
13009 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13010 Usually this means the macro was only invoked conditionally." >&2;}
13011 { (exit 1); exit 1; }; }
13012 fi
13013 if test -z "${BUILD_VMWARECTRL_TRUE}" && test -z "${BUILD_VMWARECTRL_FALSE}"; then
13014 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_VMWARECTRL\" was never defined.
13015 Usually this means the macro was only invoked conditionally." >&5
13016 $as_echo "$as_me: error: conditional \"BUILD_VMWARECTRL\" was never defined.
13017 Usually this means the macro was only invoked conditionally." >&2;}
13018 { (exit 1); exit 1; }; }
13019 fi
13020 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
13021 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13022 Usually this means the macro was only invoked conditionally." >&5
13023 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13024 Usually this means the macro was only invoked conditionally." >&2;}
13025 { (exit 1); exit 1; }; }
13026 fi
13027
13028 : ${CONFIG_STATUS=./config.status}
13029 ac_write_fail=0
13030 ac_clean_files_save=$ac_clean_files
13031 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13032 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13033 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13034 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13035 #! $SHELL
13036 # Generated by $as_me.
13037 # Run this file to recreate the current configuration.
13038 # Compiler output produced by configure, useful for debugging
13039 # configure, is in config.log if it exists.
13040
13041 debug=false
13042 ac_cs_recheck=false
13043 ac_cs_silent=false
13044 SHELL=\${CONFIG_SHELL-$SHELL}
13045 _ACEOF
13046
13047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13048 ## --------------------- ##
13049 ## M4sh Initialization. ##
13050 ## --------------------- ##
13051
13052 # Be more Bourne compatible
13053 DUALCASE=1; export DUALCASE # for MKS sh
13054 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13055 emulate sh
13056 NULLCMD=:
13057 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13058 # is contrary to our usage. Disable this feature.
13059 alias -g '${1+"$@"}'='"$@"'
13060 setopt NO_GLOB_SUBST
13061 else
13062 case `(set -o) 2>/dev/null` in
13063 *posix*) set -o posix ;;
13064 esac
13065
13066 fi
13067
13068
13069
13070
13071 # PATH needs CR
13072 # Avoid depending upon Character Ranges.
13073 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13074 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13075 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13076 as_cr_digits='0123456789'
13077 as_cr_alnum=$as_cr_Letters$as_cr_digits
13078
13079 as_nl='
13080 '
13081 export as_nl
13082 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13083 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13084 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13085 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13086 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13087 as_echo='printf %s\n'
13088 as_echo_n='printf %s'
13089 else
13090 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13091 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13092 as_echo_n='/usr/ucb/echo -n'
13093 else
13094 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13095 as_echo_n_body='eval
13096 arg=$1;
13097 case $arg in
13098 *"$as_nl"*)
13099 expr "X$arg" : "X\\(.*\\)$as_nl";
13100 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13101 esac;
13102 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13103 '
13104 export as_echo_n_body
13105 as_echo_n='sh -c $as_echo_n_body as_echo'
13106 fi
13107 export as_echo_body
13108 as_echo='sh -c $as_echo_body as_echo'
13109 fi
13110
13111 # The user is always right.
13112 if test "${PATH_SEPARATOR+set}" != set; then
13113 PATH_SEPARATOR=:
13114 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13115 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13116 PATH_SEPARATOR=';'
13117 }
13118 fi
13119
13120 # Support unset when possible.
13121 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13122 as_unset=unset
13123 else
13124 as_unset=false
13125 fi
13126
13127
13128 # IFS
13129 # We need space, tab and new line, in precisely that order. Quoting is
13130 # there to prevent editors from complaining about space-tab.
13131 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13132 # splitting by setting IFS to empty value.)
13133 IFS=" "" $as_nl"
13134
13135 # Find who we are. Look in the path if we contain no directory separator.
13136 case $0 in
13137 *[\\/]* ) as_myself=$0 ;;
13138 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13140 do
13141 IFS=$as_save_IFS
13142 test -z "$as_dir" && as_dir=.
13143 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13144 done
13145 IFS=$as_save_IFS
13146
13147 ;;
13148 esac
13149 # We did not find ourselves, most probably we were run as `sh COMMAND'
13150 # in which case we are not to be found in the path.
13151 if test "x$as_myself" = x; then
13152 as_myself=$0
13153 fi
13154 if test ! -f "$as_myself"; then
13155 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13156 { (exit 1); exit 1; }
13157 fi
13158
13159 # Work around bugs in pre-3.0 UWIN ksh.
13160 for as_var in ENV MAIL MAILPATH
13161 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13162 done
13163 PS1='$ '
13164 PS2='> '
13165 PS4='+ '
13166
13167 # NLS nuisances.
13168 LC_ALL=C
13169 export LC_ALL
13170 LANGUAGE=C
13171 export LANGUAGE
13172
13173 # Required to use basename.
13174 if expr a : '\(a\)' >/dev/null 2>&1 &&
13175 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13176 as_expr=expr
13177 else
13178 as_expr=false
13179 fi
13180
13181 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13182 as_basename=basename
13183 else
13184 as_basename=false
13185 fi
13186
13187
13188 # Name of the executable.
13189 as_me=`$as_basename -- "$0" ||
13190 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13191 X"$0" : 'X\(//\)$' \| \
13192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13193 $as_echo X/"$0" |
13194 sed '/^.*\/\([^/][^/]*\)\/*$/{
13195 s//\1/
13196 q
13197 }
13198 /^X\/\(\/\/\)$/{
13199 s//\1/
13200 q
13201 }
13202 /^X\/\(\/\).*/{
13203 s//\1/
13204 q
13205 }
13206 s/.*/./; q'`
13207
13208 # CDPATH.
13209 $as_unset CDPATH
13210
13211
13212
13213 as_lineno_1=$LINENO
13214 as_lineno_2=$LINENO
13215 test "x$as_lineno_1" != "x$as_lineno_2" &&
13216 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13217
13218 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13219 # uniformly replaced by the line number. The first 'sed' inserts a
13220 # line-number line after each line using $LINENO; the second 'sed'
13221 # does the real work. The second script uses 'N' to pair each
13222 # line-number line with the line containing $LINENO, and appends
13223 # trailing '-' during substitution so that $LINENO is not a special
13224 # case at line end.
13225 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13226 # scripts with optimization help from Paolo Bonzini. Blame Lee
13227 # E. McMahon (1931-1989) for sed's syntax. :-)
13228 sed -n '
13229 p
13230 /[$]LINENO/=
13231 ' <$as_myself |
13232 sed '
13233 s/[$]LINENO.*/&-/
13234 t lineno
13235 b
13236 :lineno
13237 N
13238 :loop
13239 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13240 t loop
13241 s/-\n.*//
13242 ' >$as_me.lineno &&
13243 chmod +x "$as_me.lineno" ||
13244 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13245 { (exit 1); exit 1; }; }
13246
13247 # Don't try to exec as it changes $[0], causing all sort of problems
13248 # (the dirname of $[0] is not the place where we might find the
13249 # original and so on. Autoconf is especially sensitive to this).
13250 . "./$as_me.lineno"
13251 # Exit status is that of the last command.
13252 exit
13253 }
13254
13255
13256 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13257 as_dirname=dirname
13258 else
13259 as_dirname=false
13260 fi
13261
13262 ECHO_C= ECHO_N= ECHO_T=
13263 case `echo -n x` in
13264 -n*)
13265 case `echo 'x\c'` in
13266 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13267 *) ECHO_C='\c';;
13268 esac;;
13269 *)
13270 ECHO_N='-n';;
13271 esac
13272 if expr a : '\(a\)' >/dev/null 2>&1 &&
13273 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13274 as_expr=expr
13275 else
13276 as_expr=false
13277 fi
13278
13279 rm -f conf$$ conf$$.exe conf$$.file
13280 if test -d conf$$.dir; then
13281 rm -f conf$$.dir/conf$$.file
13282 else
13283 rm -f conf$$.dir
13284 mkdir conf$$.dir 2>/dev/null
13285 fi
13286 if (echo >conf$$.file) 2>/dev/null; then
13287 if ln -s conf$$.file conf$$ 2>/dev/null; then
13288 as_ln_s='ln -s'
13289 # ... but there are two gotchas:
13290 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13291 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13292 # In both cases, we have to default to `cp -p'.
13293 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13294 as_ln_s='cp -p'
13295 elif ln conf$$.file conf$$ 2>/dev/null; then
13296 as_ln_s=ln
13297 else
13298 as_ln_s='cp -p'
13299 fi
13300 else
13301 as_ln_s='cp -p'
13302 fi
13303 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13304 rmdir conf$$.dir 2>/dev/null
13305
13306 if mkdir -p . 2>/dev/null; then
13307 as_mkdir_p=:
13308 else
13309 test -d ./-p && rmdir ./-p
13310 as_mkdir_p=false
13311 fi
13312
13313 if test -x / >/dev/null 2>&1; then
13314 as_test_x='test -x'
13315 else
13316 if ls -dL / >/dev/null 2>&1; then
13317 as_ls_L_option=L
13318 else
13319 as_ls_L_option=
13320 fi
13321 as_test_x='
13322 eval sh -c '\''
13323 if test -d "$1"; then
13324 test -d "$1/.";
13325 else
13326 case $1 in
13327 -*)set "./$1";;
13328 esac;
13329 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13330 ???[sx]*):;;*)false;;esac;fi
13331 '\'' sh
13332 '
13333 fi
13334 as_executable_p=$as_test_x
13335
13336 # Sed expression to map a string onto a valid CPP name.
13337 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13338
13339 # Sed expression to map a string onto a valid variable name.
13340 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13341
13342
13343 exec 6>&1
13344
13345 # Save the log message, to keep $[0] and so on meaningful, and to
13346 # report actual input values of CONFIG_FILES etc. instead of their
13347 # values after options handling.
13348 ac_log="
13349 This file was extended by xf86-video-vmware $as_me 11.0.3, which was
13350 generated by GNU Autoconf 2.63. Invocation command line was
13351
13352 CONFIG_FILES = $CONFIG_FILES
13353 CONFIG_HEADERS = $CONFIG_HEADERS
13354 CONFIG_LINKS = $CONFIG_LINKS
13355 CONFIG_COMMANDS = $CONFIG_COMMANDS
13356 $ $0 $@
13357
13358 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13359 "
13360
13361 _ACEOF
13362
13363 case $ac_config_files in *"
13364 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13365 esac
13366
13367 case $ac_config_headers in *"
13368 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13369 esac
13370
13371
13372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13373 # Files that config.status was made for.
13374 config_files="`echo $ac_config_files`"
13375 config_headers="`echo $ac_config_headers`"
13376 config_commands="`echo $ac_config_commands`"
13377
13378 _ACEOF
13379
13380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13381 ac_cs_usage="\
13382 \`$as_me' instantiates files from templates according to the
13383 current configuration.
13384
13385 Usage: $0 [OPTION]... [FILE]...
13386
13387 -h, --help print this help, then exit
13388 -V, --version print version number and configuration settings, then exit
13389 -q, --quiet, --silent
13390 do not print progress messages
13391 -d, --debug don't remove temporary files
13392 --recheck update $as_me by reconfiguring in the same conditions
13393 --file=FILE[:TEMPLATE]
13394 instantiate the configuration file FILE
13395 --header=FILE[:TEMPLATE]
13396 instantiate the configuration header FILE
13397
13398 Configuration files:
13399 $config_files
13400
13401 Configuration headers:
13402 $config_headers
13403
13404 Configuration commands:
13405 $config_commands
13406
13407 Report bugs to <bug-autoconf (at] gnu.org>."
13408
13409 _ACEOF
13410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13411 ac_cs_version="\\
13412 xf86-video-vmware config.status 11.0.3
13413 configured by $0, generated by GNU Autoconf 2.63,
13414 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13415
13416 Copyright (C) 2008 Free Software Foundation, Inc.
13417 This config.status script is free software; the Free Software Foundation
13418 gives unlimited permission to copy, distribute and modify it."
13419
13420 ac_pwd='$ac_pwd'
13421 srcdir='$srcdir'
13422 INSTALL='$INSTALL'
13423 MKDIR_P='$MKDIR_P'
13424 AWK='$AWK'
13425 test -n "\$AWK" || AWK=awk
13426 _ACEOF
13427
13428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13429 # The default lists apply if the user does not specify any file.
13430 ac_need_defaults=:
13431 while test $# != 0
13432 do
13433 case $1 in
13434 --*=*)
13435 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13436 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13437 ac_shift=:
13438 ;;
13439 *)
13440 ac_option=$1
13441 ac_optarg=$2
13442 ac_shift=shift
13443 ;;
13444 esac
13445
13446 case $ac_option in
13447 # Handling of the options.
13448 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13449 ac_cs_recheck=: ;;
13450 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13451 $as_echo "$ac_cs_version"; exit ;;
13452 --debug | --debu | --deb | --de | --d | -d )
13453 debug=: ;;
13454 --file | --fil | --fi | --f )
13455 $ac_shift
13456 case $ac_optarg in
13457 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13458 esac
13459 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13460 ac_need_defaults=false;;
13461 --header | --heade | --head | --hea )
13462 $ac_shift
13463 case $ac_optarg in
13464 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13465 esac
13466 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13467 ac_need_defaults=false;;
13468 --he | --h)
13469 # Conflict between --help and --header
13470 { $as_echo "$as_me: error: ambiguous option: $1
13471 Try \`$0 --help' for more information." >&2
13472 { (exit 1); exit 1; }; };;
13473 --help | --hel | -h )
13474 $as_echo "$ac_cs_usage"; exit ;;
13475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13476 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13477 ac_cs_silent=: ;;
13478
13479 # This is an error.
13480 -*) { $as_echo "$as_me: error: unrecognized option: $1
13481 Try \`$0 --help' for more information." >&2
13482 { (exit 1); exit 1; }; } ;;
13483
13484 *) ac_config_targets="$ac_config_targets $1"
13485 ac_need_defaults=false ;;
13486
13487 esac
13488 shift
13489 done
13490
13491 ac_configure_extra_args=
13492
13493 if $ac_cs_silent; then
13494 exec 6>/dev/null
13495 ac_configure_extra_args="$ac_configure_extra_args --silent"
13496 fi
13497
13498 _ACEOF
13499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13500 if \$ac_cs_recheck; then
13501 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13502 shift
13503 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13504 CONFIG_SHELL='$SHELL'
13505 export CONFIG_SHELL
13506 exec "\$@"
13507 fi
13508
13509 _ACEOF
13510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13511 exec 5>>config.log
13512 {
13513 echo
13514 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13515 ## Running $as_me. ##
13516 _ASBOX
13517 $as_echo "$ac_log"
13518 } >&5
13519
13520 _ACEOF
13521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13522 #
13523 # INIT-COMMANDS
13524 #
13525 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13526
13527
13528 # The HP-UX ksh and POSIX shell print the target directory to stdout
13529 # if CDPATH is set.
13530 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13531
13532 sed_quote_subst='$sed_quote_subst'
13533 double_quote_subst='$double_quote_subst'
13534 delay_variable_subst='$delay_variable_subst'
13535 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13536 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13537 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13538 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13539 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13540 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13541 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13542 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13543 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13544 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13545 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13546 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13547 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13548 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13549 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13550 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13551 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13552 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13553 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13554 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13555 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13556 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13557 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13558 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13559 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13560 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13561 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13562 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13563 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13564 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13565 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13566 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13567 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13568 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13569 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13570 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13571 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13572 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13573 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13574 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13575 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13576 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13577 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13578 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13579 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"`'
13580 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"`'
13581 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13582 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13583 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13584 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13585 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13586 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13587 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13588 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13589 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13590 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13591 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13592 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13593 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13594 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13595 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13596 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13597 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13598 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13599 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13600 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13601 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13602 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13603 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13604 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13605 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13606 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13607 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13608 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13609 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13610 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13611 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13612 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13613 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13614 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13615 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13616 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13617 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13618 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13619 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13620 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13621 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13622 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13623 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13624 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13625 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13626 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13627 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13628 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13629 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13630 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13631 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13632 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13633 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13634 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13635 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13636 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13637 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13638 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13639 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13640 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13641 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13642 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13643 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13644 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13645 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13646 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13647 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13648 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13649 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13650 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13651 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13652 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13653
13654 LTCC='$LTCC'
13655 LTCFLAGS='$LTCFLAGS'
13656 compiler='$compiler_DEFAULT'
13657
13658 # Quote evaled strings.
13659 for var in SED \
13660 GREP \
13661 EGREP \
13662 FGREP \
13663 LD \
13664 NM \
13665 LN_S \
13666 lt_SP2NL \
13667 lt_NL2SP \
13668 reload_flag \
13669 OBJDUMP \
13670 deplibs_check_method \
13671 file_magic_cmd \
13672 AR \
13673 AR_FLAGS \
13674 STRIP \
13675 RANLIB \
13676 CC \
13677 CFLAGS \
13678 compiler \
13679 lt_cv_sys_global_symbol_pipe \
13680 lt_cv_sys_global_symbol_to_cdecl \
13681 lt_cv_sys_global_symbol_to_c_name_address \
13682 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13683 SHELL \
13684 ECHO \
13685 lt_prog_compiler_no_builtin_flag \
13686 lt_prog_compiler_wl \
13687 lt_prog_compiler_pic \
13688 lt_prog_compiler_static \
13689 lt_cv_prog_compiler_c_o \
13690 need_locks \
13691 DSYMUTIL \
13692 NMEDIT \
13693 LIPO \
13694 OTOOL \
13695 OTOOL64 \
13696 shrext_cmds \
13697 export_dynamic_flag_spec \
13698 whole_archive_flag_spec \
13699 compiler_needs_object \
13700 with_gnu_ld \
13701 allow_undefined_flag \
13702 no_undefined_flag \
13703 hardcode_libdir_flag_spec \
13704 hardcode_libdir_flag_spec_ld \
13705 hardcode_libdir_separator \
13706 fix_srcfile_path \
13707 exclude_expsyms \
13708 include_expsyms \
13709 file_list_spec \
13710 variables_saved_for_relink \
13711 libname_spec \
13712 library_names_spec \
13713 soname_spec \
13714 finish_eval \
13715 old_striplib \
13716 striplib; do
13717 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13718 *[\\\\\\\`\\"\\\$]*)
13719 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13720 ;;
13721 *)
13722 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13723 ;;
13724 esac
13725 done
13726
13727 # Double-quote double-evaled strings.
13728 for var in reload_cmds \
13729 old_postinstall_cmds \
13730 old_postuninstall_cmds \
13731 old_archive_cmds \
13732 extract_expsyms_cmds \
13733 old_archive_from_new_cmds \
13734 old_archive_from_expsyms_cmds \
13735 archive_cmds \
13736 archive_expsym_cmds \
13737 module_cmds \
13738 module_expsym_cmds \
13739 export_symbols_cmds \
13740 prelink_cmds \
13741 postinstall_cmds \
13742 postuninstall_cmds \
13743 finish_cmds \
13744 sys_lib_search_path_spec \
13745 sys_lib_dlsearch_path_spec; do
13746 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13747 *[\\\\\\\`\\"\\\$]*)
13748 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13749 ;;
13750 *)
13751 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13752 ;;
13753 esac
13754 done
13755
13756 # Fix-up fallback echo if it was mangled by the above quoting rules.
13757 case \$lt_ECHO in
13758 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13759 ;;
13760 esac
13761
13762 ac_aux_dir='$ac_aux_dir'
13763 xsi_shell='$xsi_shell'
13764 lt_shell_append='$lt_shell_append'
13765
13766 # See if we are running on zsh, and set the options which allow our
13767 # commands through without removal of \ escapes INIT.
13768 if test -n "\${ZSH_VERSION+set}" ; then
13769 setopt NO_GLOB_SUBST
13770 fi
13771
13772
13773 PACKAGE='$PACKAGE'
13774 VERSION='$VERSION'
13775 TIMESTAMP='$TIMESTAMP'
13776 RM='$RM'
13777 ofile='$ofile'
13778
13779
13780
13781
13782 _ACEOF
13783
13784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13785
13786 # Handling of arguments.
13787 for ac_config_target in $ac_config_targets
13788 do
13789 case $ac_config_target in
13790 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13791 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13792 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13793 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13794 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13795 "vmwarectrl/Makefile") CONFIG_FILES="$CONFIG_FILES vmwarectrl/Makefile" ;;
13796 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13797
13798 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13799 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13800 { (exit 1); exit 1; }; };;
13801 esac
13802 done
13803
13804
13805 # If the user did not use the arguments to specify the items to instantiate,
13806 # then the envvar interface is used. Set only those that are not.
13807 # We use the long form for the default assignment because of an extremely
13808 # bizarre bug on SunOS 4.1.3.
13809 if $ac_need_defaults; then
13810 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13811 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13812 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13813 fi
13814
13815 # Have a temporary directory for convenience. Make it in the build tree
13816 # simply because there is no reason against having it here, and in addition,
13817 # creating and moving files from /tmp can sometimes cause problems.
13818 # Hook for its removal unless debugging.
13819 # Note that there is a small window in which the directory will not be cleaned:
13820 # after its creation but before its name has been assigned to `$tmp'.
13821 $debug ||
13822 {
13823 tmp=
13824 trap 'exit_status=$?
13825 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13826 ' 0
13827 trap '{ (exit 1); exit 1; }' 1 2 13 15
13828 }
13829 # Create a (secure) tmp directory for tmp files.
13830
13831 {
13832 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13833 test -n "$tmp" && test -d "$tmp"
13834 } ||
13835 {
13836 tmp=./conf$$-$RANDOM
13837 (umask 077 && mkdir "$tmp")
13838 } ||
13839 {
13840 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13841 { (exit 1); exit 1; }
13842 }
13843
13844 # Set up the scripts for CONFIG_FILES section.
13845 # No need to generate them if there are no CONFIG_FILES.
13846 # This happens for instance with `./config.status config.h'.
13847 if test -n "$CONFIG_FILES"; then
13848
13849
13850 ac_cr='
'
13852 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13853 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13854 ac_cs_awk_cr='\\r'
13855 else
13856 ac_cs_awk_cr=$ac_cr
13857 fi
13858
13859 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13860 _ACEOF
13861
13862
13863 {
13864 echo "cat >conf$$subs.awk <<_ACEOF" &&
13865 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13866 echo "_ACEOF"
13867 } >conf$$subs.sh ||
13868 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13869 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13870 { (exit 1); exit 1; }; }
13871 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13872 ac_delim='%!_!# '
13873 for ac_last_try in false false false false false :; do
13874 . ./conf$$subs.sh ||
13875 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13876 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13877 { (exit 1); exit 1; }; }
13878
13879 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13880 if test $ac_delim_n = $ac_delim_num; then
13881 break
13882 elif $ac_last_try; then
13883 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13884 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13885 { (exit 1); exit 1; }; }
13886 else
13887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13888 fi
13889 done
13890 rm -f conf$$subs.sh
13891
13892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13893 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13894 _ACEOF
13895 sed -n '
13896 h
13897 s/^/S["/; s/!.*/"]=/
13898 p
13899 g
13900 s/^[^!]*!//
13901 :repl
13902 t repl
13903 s/'"$ac_delim"'$//
13904 t delim
13905 :nl
13906 h
13907 s/\(.\{148\}\).*/\1/
13908 t more1
13909 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13910 p
13911 n
13912 b repl
13913 :more1
13914 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13915 p
13916 g
13917 s/.\{148\}//
13918 t nl
13919 :delim
13920 h
13921 s/\(.\{148\}\).*/\1/
13922 t more2
13923 s/["\\]/\\&/g; s/^/"/; s/$/"/
13924 p
13925 b
13926 :more2
13927 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13928 p
13929 g
13930 s/.\{148\}//
13931 t delim
13932 ' <conf$$subs.awk | sed '
13933 /^[^""]/{
13934 N
13935 s/\n//
13936 }
13937 ' >>$CONFIG_STATUS || ac_write_fail=1
13938 rm -f conf$$subs.awk
13939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13940 _ACAWK
13941 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13942 for (key in S) S_is_set[key] = 1
13943 FS = ""
13944
13945 }
13946 {
13947 line = $ 0
13948 nfields = split(line, field, "@")
13949 substed = 0
13950 len = length(field[1])
13951 for (i = 2; i < nfields; i++) {
13952 key = field[i]
13953 keylen = length(key)
13954 if (S_is_set[key]) {
13955 value = S[key]
13956 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13957 len += length(value) + length(field[++i])
13958 substed = 1
13959 } else
13960 len += 1 + keylen
13961 }
13962
13963 print line
13964 }
13965
13966 _ACAWK
13967 _ACEOF
13968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13969 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13970 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13971 else
13972 cat
13973 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13974 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13975 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13976 { (exit 1); exit 1; }; }
13977 _ACEOF
13978
13979 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13980 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13981 # trailing colons and then remove the whole line if VPATH becomes empty
13982 # (actually we leave an empty line to preserve line numbers).
13983 if test "x$srcdir" = x.; then
13984 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13985 s/:*\$(srcdir):*/:/
13986 s/:*\${srcdir}:*/:/
13987 s/:*@srcdir@:*/:/
13988 s/^\([^=]*=[ ]*\):*/\1/
13989 s/:*$//
13990 s/^[^=]*=[ ]*$//
13991 }'
13992 fi
13993
13994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13995 fi # test -n "$CONFIG_FILES"
13996
13997 # Set up the scripts for CONFIG_HEADERS section.
13998 # No need to generate them if there are no CONFIG_HEADERS.
13999 # This happens for instance with `./config.status Makefile'.
14000 if test -n "$CONFIG_HEADERS"; then
14001 cat >"$tmp/defines.awk" <<\_ACAWK ||
14002 BEGIN {
14003 _ACEOF
14004
14005 # Transform confdefs.h into an awk script `defines.awk', embedded as
14006 # here-document in config.status, that substitutes the proper values into
14007 # config.h.in to produce config.h.
14008
14009 # Create a delimiter string that does not exist in confdefs.h, to ease
14010 # handling of long lines.
14011 ac_delim='%!_!# '
14012 for ac_last_try in false false :; do
14013 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14014 if test -z "$ac_t"; then
14015 break
14016 elif $ac_last_try; then
14017 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14018 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14019 { (exit 1); exit 1; }; }
14020 else
14021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14022 fi
14023 done
14024
14025 # For the awk script, D is an array of macro values keyed by name,
14026 # likewise P contains macro parameters if any. Preserve backslash
14027 # newline sequences.
14028
14029 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14030 sed -n '
14031 s/.\{148\}/&'"$ac_delim"'/g
14032 t rset
14033 :rset
14034 s/^[ ]*#[ ]*define[ ][ ]*/ /
14035 t def
14036 d
14037 :def
14038 s/\\$//
14039 t bsnl
14040 s/["\\]/\\&/g
14041 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14042 D["\1"]=" \3"/p
14043 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14044 d
14045 :bsnl
14046 s/["\\]/\\&/g
14047 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14048 D["\1"]=" \3\\\\\\n"\\/p
14049 t cont
14050 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14051 t cont
14052 d
14053 :cont
14054 n
14055 s/.\{148\}/&'"$ac_delim"'/g
14056 t clear
14057 :clear
14058 s/\\$//
14059 t bsnlc
14060 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14061 d
14062 :bsnlc
14063 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14064 b cont
14065 ' <confdefs.h | sed '
14066 s/'"$ac_delim"'/"\\\
14067 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14068
14069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14070 for (key in D) D_is_set[key] = 1
14071 FS = ""
14072 }
14073 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14074 line = \$ 0
14075 split(line, arg, " ")
14076 if (arg[1] == "#") {
14077 defundef = arg[2]
14078 mac1 = arg[3]
14079 } else {
14080 defundef = substr(arg[1], 2)
14081 mac1 = arg[2]
14082 }
14083 split(mac1, mac2, "(") #)
14084 macro = mac2[1]
14085 prefix = substr(line, 1, index(line, defundef) - 1)
14086 if (D_is_set[macro]) {
14087 # Preserve the white space surrounding the "#".
14088 print prefix "define", macro P[macro] D[macro]
14089 next
14090 } else {
14091 # Replace #undef with comments. This is necessary, for example,
14092 # in the case of _POSIX_SOURCE, which is predefined and required
14093 # on some systems where configure will not decide to define it.
14094 if (defundef == "undef") {
14095 print "/*", prefix defundef, macro, "*/"
14096 next
14097 }
14098 }
14099 }
14100 { print }
14101 _ACAWK
14102 _ACEOF
14103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14104 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14105 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14106 { (exit 1); exit 1; }; }
14107 fi # test -n "$CONFIG_HEADERS"
14108
14109
14110 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14111 shift
14112 for ac_tag
14113 do
14114 case $ac_tag in
14115 :[FHLC]) ac_mode=$ac_tag; continue;;
14116 esac
14117 case $ac_mode$ac_tag in
14118 :[FHL]*:*);;
14119 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14120 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14121 { (exit 1); exit 1; }; };;
14122 :[FH]-) ac_tag=-:-;;
14123 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14124 esac
14125 ac_save_IFS=$IFS
14126 IFS=:
14127 set x $ac_tag
14128 IFS=$ac_save_IFS
14129 shift
14130 ac_file=$1
14131 shift
14132
14133 case $ac_mode in
14134 :L) ac_source=$1;;
14135 :[FH])
14136 ac_file_inputs=
14137 for ac_f
14138 do
14139 case $ac_f in
14140 -) ac_f="$tmp/stdin";;
14141 *) # Look for the file first in the build tree, then in the source tree
14142 # (if the path is not absolute). The absolute path cannot be DOS-style,
14143 # because $ac_f cannot contain `:'.
14144 test -f "$ac_f" ||
14145 case $ac_f in
14146 [\\/$]*) false;;
14147 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14148 esac ||
14149 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14150 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14151 { (exit 1); exit 1; }; };;
14152 esac
14153 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14154 ac_file_inputs="$ac_file_inputs '$ac_f'"
14155 done
14156
14157 # Let's still pretend it is `configure' which instantiates (i.e., don't
14158 # use $as_me), people would be surprised to read:
14159 # /* config.h. Generated by config.status. */
14160 configure_input='Generated from '`
14161 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14162 `' by configure.'
14163 if test x"$ac_file" != x-; then
14164 configure_input="$ac_file. $configure_input"
14165 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14166 $as_echo "$as_me: creating $ac_file" >&6;}
14167 fi
14168 # Neutralize special characters interpreted by sed in replacement strings.
14169 case $configure_input in #(
14170 *\&* | *\|* | *\\* )
14171 ac_sed_conf_input=`$as_echo "$configure_input" |
14172 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14173 *) ac_sed_conf_input=$configure_input;;
14174 esac
14175
14176 case $ac_tag in
14177 *:-:* | *:-) cat >"$tmp/stdin" \
14178 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14179 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14180 { (exit 1); exit 1; }; } ;;
14181 esac
14182 ;;
14183 esac
14184
14185 ac_dir=`$as_dirname -- "$ac_file" ||
14186 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14187 X"$ac_file" : 'X\(//\)[^/]' \| \
14188 X"$ac_file" : 'X\(//\)$' \| \
14189 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14190 $as_echo X"$ac_file" |
14191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14192 s//\1/
14193 q
14194 }
14195 /^X\(\/\/\)[^/].*/{
14196 s//\1/
14197 q
14198 }
14199 /^X\(\/\/\)$/{
14200 s//\1/
14201 q
14202 }
14203 /^X\(\/\).*/{
14204 s//\1/
14205 q
14206 }
14207 s/.*/./; q'`
14208 { as_dir="$ac_dir"
14209 case $as_dir in #(
14210 -*) as_dir=./$as_dir;;
14211 esac
14212 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14213 as_dirs=
14214 while :; do
14215 case $as_dir in #(
14216 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14217 *) as_qdir=$as_dir;;
14218 esac
14219 as_dirs="'$as_qdir' $as_dirs"
14220 as_dir=`$as_dirname -- "$as_dir" ||
14221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14222 X"$as_dir" : 'X\(//\)[^/]' \| \
14223 X"$as_dir" : 'X\(//\)$' \| \
14224 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14225 $as_echo X"$as_dir" |
14226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14227 s//\1/
14228 q
14229 }
14230 /^X\(\/\/\)[^/].*/{
14231 s//\1/
14232 q
14233 }
14234 /^X\(\/\/\)$/{
14235 s//\1/
14236 q
14237 }
14238 /^X\(\/\).*/{
14239 s//\1/
14240 q
14241 }
14242 s/.*/./; q'`
14243 test -d "$as_dir" && break
14244 done
14245 test -z "$as_dirs" || eval "mkdir $as_dirs"
14246 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14247 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14248 { (exit 1); exit 1; }; }; }
14249 ac_builddir=.
14250
14251 case "$ac_dir" in
14252 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14253 *)
14254 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14255 # A ".." for each directory in $ac_dir_suffix.
14256 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14257 case $ac_top_builddir_sub in
14258 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14259 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14260 esac ;;
14261 esac
14262 ac_abs_top_builddir=$ac_pwd
14263 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14264 # for backward compatibility:
14265 ac_top_builddir=$ac_top_build_prefix
14266
14267 case $srcdir in
14268 .) # We are building in place.
14269 ac_srcdir=.
14270 ac_top_srcdir=$ac_top_builddir_sub
14271 ac_abs_top_srcdir=$ac_pwd ;;
14272 [\\/]* | ?:[\\/]* ) # Absolute name.
14273 ac_srcdir=$srcdir$ac_dir_suffix;
14274 ac_top_srcdir=$srcdir
14275 ac_abs_top_srcdir=$srcdir ;;
14276 *) # Relative name.
14277 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14278 ac_top_srcdir=$ac_top_build_prefix$srcdir
14279 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14280 esac
14281 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14282
14283
14284 case $ac_mode in
14285 :F)
14286 #
14287 # CONFIG_FILE
14288 #
14289
14290 case $INSTALL in
14291 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14292 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14293 esac
14294 ac_MKDIR_P=$MKDIR_P
14295 case $MKDIR_P in
14296 [\\/$]* | ?:[\\/]* ) ;;
14297 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14298 esac
14299 _ACEOF
14300
14301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14302 # If the template does not know about datarootdir, expand it.
14303 # FIXME: This hack should be removed a few years after 2.60.
14304 ac_datarootdir_hack=; ac_datarootdir_seen=
14305
14306 ac_sed_dataroot='
14307 /datarootdir/ {
14308 p
14309 q
14310 }
14311 /@datadir@/p
14312 /@docdir@/p
14313 /@infodir@/p
14314 /@localedir@/p
14315 /@mandir@/p
14316 '
14317 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14318 *datarootdir*) ac_datarootdir_seen=yes;;
14319 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14320 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14321 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14322 _ACEOF
14323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14324 ac_datarootdir_hack='
14325 s&@datadir@&$datadir&g
14326 s&@docdir@&$docdir&g
14327 s&@infodir@&$infodir&g
14328 s&@localedir@&$localedir&g
14329 s&@mandir@&$mandir&g
14330 s&\\\${datarootdir}&$datarootdir&g' ;;
14331 esac
14332 _ACEOF
14333
14334 # Neutralize VPATH when `$srcdir' = `.'.
14335 # Shell code in configure.ac might set extrasub.
14336 # FIXME: do we really want to maintain this feature?
14337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14338 ac_sed_extra="$ac_vpsub
14339 $extrasub
14340 _ACEOF
14341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14342 :t
14343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14344 s|@configure_input@|$ac_sed_conf_input|;t t
14345 s&@top_builddir@&$ac_top_builddir_sub&;t t
14346 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14347 s&@srcdir@&$ac_srcdir&;t t
14348 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14349 s&@top_srcdir@&$ac_top_srcdir&;t t
14350 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14351 s&@builddir@&$ac_builddir&;t t
14352 s&@abs_builddir@&$ac_abs_builddir&;t t
14353 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14354 s&@INSTALL@&$ac_INSTALL&;t t
14355 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14356 $ac_datarootdir_hack
14357 "
14358 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14359 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14360 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14361 { (exit 1); exit 1; }; }
14362
14363 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14364 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14365 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14366 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14367 which seems to be undefined. Please make sure it is defined." >&5
14368 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14369 which seems to be undefined. Please make sure it is defined." >&2;}
14370
14371 rm -f "$tmp/stdin"
14372 case $ac_file in
14373 -) cat "$tmp/out" && rm -f "$tmp/out";;
14374 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14375 esac \
14376 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14377 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14378 { (exit 1); exit 1; }; }
14379 ;;
14380 :H)
14381 #
14382 # CONFIG_HEADER
14383 #
14384 if test x"$ac_file" != x-; then
14385 {
14386 $as_echo "/* $configure_input */" \
14387 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14388 } >"$tmp/config.h" \
14389 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14390 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14391 { (exit 1); exit 1; }; }
14392 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14393 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14394 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14395 else
14396 rm -f "$ac_file"
14397 mv "$tmp/config.h" "$ac_file" \
14398 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14399 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14400 { (exit 1); exit 1; }; }
14401 fi
14402 else
14403 $as_echo "/* $configure_input */" \
14404 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14405 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14406 $as_echo "$as_me: error: could not create -" >&2;}
14407 { (exit 1); exit 1; }; }
14408 fi
14409 # Compute "$ac_file"'s index in $config_headers.
14410 _am_arg="$ac_file"
14411 _am_stamp_count=1
14412 for _am_header in $config_headers :; do
14413 case $_am_header in
14414 $_am_arg | $_am_arg:* )
14415 break ;;
14416 * )
14417 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14418 esac
14419 done
14420 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14421 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14422 X"$_am_arg" : 'X\(//\)[^/]' \| \
14423 X"$_am_arg" : 'X\(//\)$' \| \
14424 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14425 $as_echo X"$_am_arg" |
14426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14427 s//\1/
14428 q
14429 }
14430 /^X\(\/\/\)[^/].*/{
14431 s//\1/
14432 q
14433 }
14434 /^X\(\/\/\)$/{
14435 s//\1/
14436 q
14437 }
14438 /^X\(\/\).*/{
14439 s//\1/
14440 q
14441 }
14442 s/.*/./; q'`/stamp-h$_am_stamp_count
14443 ;;
14444
14445 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14446 $as_echo "$as_me: executing $ac_file commands" >&6;}
14447 ;;
14448 esac
14449
14450
14451 case $ac_file$ac_mode in
14452 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14453 # are listed without --file. Let's play safe and only enable the eval
14454 # if we detect the quoting.
14455 case $CONFIG_FILES in
14456 *\'*) eval set x "$CONFIG_FILES" ;;
14457 *) set x $CONFIG_FILES ;;
14458 esac
14459 shift
14460 for mf
14461 do
14462 # Strip MF so we end up with the name of the file.
14463 mf=`echo "$mf" | sed -e 's/:.*$//'`
14464 # Check whether this is an Automake generated Makefile or not.
14465 # We used to match only the files named `Makefile.in', but
14466 # some people rename them; so instead we look at the file content.
14467 # Grep'ing the first line is not enough: some people post-process
14468 # each Makefile.in and add a new line on top of each file to say so.
14469 # Grep'ing the whole file is not good either: AIX grep has a line
14470 # limit of 2048, but all sed's we know have understand at least 4000.
14471 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14472 dirpart=`$as_dirname -- "$mf" ||
14473 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14474 X"$mf" : 'X\(//\)[^/]' \| \
14475 X"$mf" : 'X\(//\)$' \| \
14476 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14477 $as_echo X"$mf" |
14478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14479 s//\1/
14480 q
14481 }
14482 /^X\(\/\/\)[^/].*/{
14483 s//\1/
14484 q
14485 }
14486 /^X\(\/\/\)$/{
14487 s//\1/
14488 q
14489 }
14490 /^X\(\/\).*/{
14491 s//\1/
14492 q
14493 }
14494 s/.*/./; q'`
14495 else
14496 continue
14497 fi
14498 # Extract the definition of DEPDIR, am__include, and am__quote
14499 # from the Makefile without running `make'.
14500 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14501 test -z "$DEPDIR" && continue
14502 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14503 test -z "am__include" && continue
14504 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14505 # When using ansi2knr, U may be empty or an underscore; expand it
14506 U=`sed -n 's/^U = //p' < "$mf"`
14507 # Find all dependency output files, they are included files with
14508 # $(DEPDIR) in their names. We invoke sed twice because it is the
14509 # simplest approach to changing $(DEPDIR) to its actual value in the
14510 # expansion.
14511 for file in `sed -n "
14512 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14513 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14514 # Make sure the directory exists.
14515 test -f "$dirpart/$file" && continue
14516 fdir=`$as_dirname -- "$file" ||
14517 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14518 X"$file" : 'X\(//\)[^/]' \| \
14519 X"$file" : 'X\(//\)$' \| \
14520 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14521 $as_echo X"$file" |
14522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14523 s//\1/
14524 q
14525 }
14526 /^X\(\/\/\)[^/].*/{
14527 s//\1/
14528 q
14529 }
14530 /^X\(\/\/\)$/{
14531 s//\1/
14532 q
14533 }
14534 /^X\(\/\).*/{
14535 s//\1/
14536 q
14537 }
14538 s/.*/./; q'`
14539 { as_dir=$dirpart/$fdir
14540 case $as_dir in #(
14541 -*) as_dir=./$as_dir;;
14542 esac
14543 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14544 as_dirs=
14545 while :; do
14546 case $as_dir in #(
14547 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14548 *) as_qdir=$as_dir;;
14549 esac
14550 as_dirs="'$as_qdir' $as_dirs"
14551 as_dir=`$as_dirname -- "$as_dir" ||
14552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14553 X"$as_dir" : 'X\(//\)[^/]' \| \
14554 X"$as_dir" : 'X\(//\)$' \| \
14555 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14556 $as_echo X"$as_dir" |
14557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14558 s//\1/
14559 q
14560 }
14561 /^X\(\/\/\)[^/].*/{
14562 s//\1/
14563 q
14564 }
14565 /^X\(\/\/\)$/{
14566 s//\1/
14567 q
14568 }
14569 /^X\(\/\).*/{
14570 s//\1/
14571 q
14572 }
14573 s/.*/./; q'`
14574 test -d "$as_dir" && break
14575 done
14576 test -z "$as_dirs" || eval "mkdir $as_dirs"
14577 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14578 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14579 { (exit 1); exit 1; }; }; }
14580 # echo "creating $dirpart/$file"
14581 echo '# dummy' > "$dirpart/$file"
14582 done
14583 done
14584 ;;
14585 "libtool":C)
14586
14587 # See if we are running on zsh, and set the options which allow our
14588 # commands through without removal of \ escapes.
14589 if test -n "${ZSH_VERSION+set}" ; then
14590 setopt NO_GLOB_SUBST
14591 fi
14592
14593 cfgfile="${ofile}T"
14594 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14595 $RM "$cfgfile"
14596
14597 cat <<_LT_EOF >> "$cfgfile"
14598 #! $SHELL
14599
14600 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14601 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14602 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14603 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14604 #
14605 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14606 # 2006, 2007, 2008 Free Software Foundation, Inc.
14607 # Written by Gordon Matzigkeit, 1996
14608 #
14609 # This file is part of GNU Libtool.
14610 #
14611 # GNU Libtool is free software; you can redistribute it and/or
14612 # modify it under the terms of the GNU General Public License as
14613 # published by the Free Software Foundation; either version 2 of
14614 # the License, or (at your option) any later version.
14615 #
14616 # As a special exception to the GNU General Public License,
14617 # if you distribute this file as part of a program or library that
14618 # is built using GNU Libtool, you may include this file under the
14619 # same distribution terms that you use for the rest of that program.
14620 #
14621 # GNU Libtool is distributed in the hope that it will be useful,
14622 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14623 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14624 # GNU General Public License for more details.
14625 #
14626 # You should have received a copy of the GNU General Public License
14627 # along with GNU Libtool; see the file COPYING. If not, a copy
14628 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14629 # obtained by writing to the Free Software Foundation, Inc.,
14630 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14631
14632
14633 # The names of the tagged configurations supported by this script.
14634 available_tags=""
14635
14636 # ### BEGIN LIBTOOL CONFIG
14637
14638 # Whether or not to build static libraries.
14639 build_old_libs=$enable_static
14640
14641 # Which release of libtool.m4 was used?
14642 macro_version=$macro_version
14643 macro_revision=$macro_revision
14644
14645 # Whether or not to build shared libraries.
14646 build_libtool_libs=$enable_shared
14647
14648 # What type of objects to build.
14649 pic_mode=$pic_mode
14650
14651 # Whether or not to optimize for fast installation.
14652 fast_install=$enable_fast_install
14653
14654 # The host system.
14655 host_alias=$host_alias
14656 host=$host
14657 host_os=$host_os
14658
14659 # The build system.
14660 build_alias=$build_alias
14661 build=$build
14662 build_os=$build_os
14663
14664 # A sed program that does not truncate output.
14665 SED=$lt_SED
14666
14667 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14668 Xsed="\$SED -e 1s/^X//"
14669
14670 # A grep program that handles long lines.
14671 GREP=$lt_GREP
14672
14673 # An ERE matcher.
14674 EGREP=$lt_EGREP
14675
14676 # A literal string matcher.
14677 FGREP=$lt_FGREP
14678
14679 # A BSD- or MS-compatible name lister.
14680 NM=$lt_NM
14681
14682 # Whether we need soft or hard links.
14683 LN_S=$lt_LN_S
14684
14685 # What is the maximum length of a command?
14686 max_cmd_len=$max_cmd_len
14687
14688 # Object file suffix (normally "o").
14689 objext=$ac_objext
14690
14691 # Executable file suffix (normally "").
14692 exeext=$exeext
14693
14694 # whether the shell understands "unset".
14695 lt_unset=$lt_unset
14696
14697 # turn spaces into newlines.
14698 SP2NL=$lt_lt_SP2NL
14699
14700 # turn newlines into spaces.
14701 NL2SP=$lt_lt_NL2SP
14702
14703 # How to create reloadable object files.
14704 reload_flag=$lt_reload_flag
14705 reload_cmds=$lt_reload_cmds
14706
14707 # An object symbol dumper.
14708 OBJDUMP=$lt_OBJDUMP
14709
14710 # Method to check whether dependent libraries are shared objects.
14711 deplibs_check_method=$lt_deplibs_check_method
14712
14713 # Command to use when deplibs_check_method == "file_magic".
14714 file_magic_cmd=$lt_file_magic_cmd
14715
14716 # The archiver.
14717 AR=$lt_AR
14718 AR_FLAGS=$lt_AR_FLAGS
14719
14720 # A symbol stripping program.
14721 STRIP=$lt_STRIP
14722
14723 # Commands used to install an old-style archive.
14724 RANLIB=$lt_RANLIB
14725 old_postinstall_cmds=$lt_old_postinstall_cmds
14726 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14727
14728 # A C compiler.
14729 LTCC=$lt_CC
14730
14731 # LTCC compiler flags.
14732 LTCFLAGS=$lt_CFLAGS
14733
14734 # Take the output of nm and produce a listing of raw symbols and C names.
14735 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14736
14737 # Transform the output of nm in a proper C declaration.
14738 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14739
14740 # Transform the output of nm in a C name address pair.
14741 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14742
14743 # Transform the output of nm in a C name address pair when lib prefix is needed.
14744 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14745
14746 # The name of the directory that contains temporary libtool files.
14747 objdir=$objdir
14748
14749 # Shell to use when invoking shell scripts.
14750 SHELL=$lt_SHELL
14751
14752 # An echo program that does not interpret backslashes.
14753 ECHO=$lt_ECHO
14754
14755 # Used to examine libraries when file_magic_cmd begins with "file".
14756 MAGIC_CMD=$MAGIC_CMD
14757
14758 # Must we lock files when doing compilation?
14759 need_locks=$lt_need_locks
14760
14761 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14762 DSYMUTIL=$lt_DSYMUTIL
14763
14764 # Tool to change global to local symbols on Mac OS X.
14765 NMEDIT=$lt_NMEDIT
14766
14767 # Tool to manipulate fat objects and archives on Mac OS X.
14768 LIPO=$lt_LIPO
14769
14770 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14771 OTOOL=$lt_OTOOL
14772
14773 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14774 OTOOL64=$lt_OTOOL64
14775
14776 # Old archive suffix (normally "a").
14777 libext=$libext
14778
14779 # Shared library suffix (normally ".so").
14780 shrext_cmds=$lt_shrext_cmds
14781
14782 # The commands to extract the exported symbol list from a shared archive.
14783 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14784
14785 # Variables whose values should be saved in libtool wrapper scripts and
14786 # restored at link time.
14787 variables_saved_for_relink=$lt_variables_saved_for_relink
14788
14789 # Do we need the "lib" prefix for modules?
14790 need_lib_prefix=$need_lib_prefix
14791
14792 # Do we need a version for libraries?
14793 need_version=$need_version
14794
14795 # Library versioning type.
14796 version_type=$version_type
14797
14798 # Shared library runtime path variable.
14799 runpath_var=$runpath_var
14800
14801 # Shared library path variable.
14802 shlibpath_var=$shlibpath_var
14803
14804 # Is shlibpath searched before the hard-coded library search path?
14805 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14806
14807 # Format of library name prefix.
14808 libname_spec=$lt_libname_spec
14809
14810 # List of archive names. First name is the real one, the rest are links.
14811 # The last name is the one that the linker finds with -lNAME
14812 library_names_spec=$lt_library_names_spec
14813
14814 # The coded name of the library, if different from the real name.
14815 soname_spec=$lt_soname_spec
14816
14817 # Command to use after installation of a shared archive.
14818 postinstall_cmds=$lt_postinstall_cmds
14819
14820 # Command to use after uninstallation of a shared archive.
14821 postuninstall_cmds=$lt_postuninstall_cmds
14822
14823 # Commands used to finish a libtool library installation in a directory.
14824 finish_cmds=$lt_finish_cmds
14825
14826 # As "finish_cmds", except a single script fragment to be evaled but
14827 # not shown.
14828 finish_eval=$lt_finish_eval
14829
14830 # Whether we should hardcode library paths into libraries.
14831 hardcode_into_libs=$hardcode_into_libs
14832
14833 # Compile-time system search path for libraries.
14834 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14835
14836 # Run-time system search path for libraries.
14837 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14838
14839 # Whether dlopen is supported.
14840 dlopen_support=$enable_dlopen
14841
14842 # Whether dlopen of programs is supported.
14843 dlopen_self=$enable_dlopen_self
14844
14845 # Whether dlopen of statically linked programs is supported.
14846 dlopen_self_static=$enable_dlopen_self_static
14847
14848 # Commands to strip libraries.
14849 old_striplib=$lt_old_striplib
14850 striplib=$lt_striplib
14851
14852
14853 # The linker used to build libraries.
14854 LD=$lt_LD
14855
14856 # Commands used to build an old-style archive.
14857 old_archive_cmds=$lt_old_archive_cmds
14858
14859 # A language specific compiler.
14860 CC=$lt_compiler
14861
14862 # Is the compiler the GNU compiler?
14863 with_gcc=$GCC
14864
14865 # Compiler flag to turn off builtin functions.
14866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14867
14868 # How to pass a linker flag through the compiler.
14869 wl=$lt_lt_prog_compiler_wl
14870
14871 # Additional compiler flags for building library objects.
14872 pic_flag=$lt_lt_prog_compiler_pic
14873
14874 # Compiler flag to prevent dynamic linking.
14875 link_static_flag=$lt_lt_prog_compiler_static
14876
14877 # Does compiler simultaneously support -c and -o options?
14878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14879
14880 # Whether or not to add -lc for building shared libraries.
14881 build_libtool_need_lc=$archive_cmds_need_lc
14882
14883 # Whether or not to disallow shared libs when runtime libs are static.
14884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14885
14886 # Compiler flag to allow reflexive dlopens.
14887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14888
14889 # Compiler flag to generate shared objects directly from archives.
14890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14891
14892 # Whether the compiler copes with passing no objects directly.
14893 compiler_needs_object=$lt_compiler_needs_object
14894
14895 # Create an old-style archive from a shared archive.
14896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14897
14898 # Create a temporary old-style archive to link instead of a shared archive.
14899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14900
14901 # Commands used to build a shared archive.
14902 archive_cmds=$lt_archive_cmds
14903 archive_expsym_cmds=$lt_archive_expsym_cmds
14904
14905 # Commands used to build a loadable module if different from building
14906 # a shared archive.
14907 module_cmds=$lt_module_cmds
14908 module_expsym_cmds=$lt_module_expsym_cmds
14909
14910 # Whether we are building with GNU ld or not.
14911 with_gnu_ld=$lt_with_gnu_ld
14912
14913 # Flag that allows shared libraries with undefined symbols to be built.
14914 allow_undefined_flag=$lt_allow_undefined_flag
14915
14916 # Flag that enforces no undefined symbols.
14917 no_undefined_flag=$lt_no_undefined_flag
14918
14919 # Flag to hardcode \$libdir into a binary during linking.
14920 # This must work even if \$libdir does not exist
14921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14922
14923 # If ld is used when linking, flag to hardcode \$libdir into a binary
14924 # during linking. This must work even if \$libdir does not exist.
14925 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14926
14927 # Whether we need a single "-rpath" flag with a separated argument.
14928 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14929
14930 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14931 # DIR into the resulting binary.
14932 hardcode_direct=$hardcode_direct
14933
14934 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14935 # DIR into the resulting binary and the resulting library dependency is
14936 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14937 # library is relocated.
14938 hardcode_direct_absolute=$hardcode_direct_absolute
14939
14940 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14941 # into the resulting binary.
14942 hardcode_minus_L=$hardcode_minus_L
14943
14944 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14945 # into the resulting binary.
14946 hardcode_shlibpath_var=$hardcode_shlibpath_var
14947
14948 # Set to "yes" if building a shared library automatically hardcodes DIR
14949 # into the library and all subsequent libraries and executables linked
14950 # against it.
14951 hardcode_automatic=$hardcode_automatic
14952
14953 # Set to yes if linker adds runtime paths of dependent libraries
14954 # to runtime path list.
14955 inherit_rpath=$inherit_rpath
14956
14957 # Whether libtool must link a program against all its dependency libraries.
14958 link_all_deplibs=$link_all_deplibs
14959
14960 # Fix the shell variable \$srcfile for the compiler.
14961 fix_srcfile_path=$lt_fix_srcfile_path
14962
14963 # Set to "yes" if exported symbols are required.
14964 always_export_symbols=$always_export_symbols
14965
14966 # The commands to list exported symbols.
14967 export_symbols_cmds=$lt_export_symbols_cmds
14968
14969 # Symbols that should not be listed in the preloaded symbols.
14970 exclude_expsyms=$lt_exclude_expsyms
14971
14972 # Symbols that must always be exported.
14973 include_expsyms=$lt_include_expsyms
14974
14975 # Commands necessary for linking programs (against libraries) with templates.
14976 prelink_cmds=$lt_prelink_cmds
14977
14978 # Specify filename containing input files.
14979 file_list_spec=$lt_file_list_spec
14980
14981 # How to hardcode a shared library path into an executable.
14982 hardcode_action=$hardcode_action
14983
14984 # ### END LIBTOOL CONFIG
14985
14986 _LT_EOF
14987
14988 case $host_os in
14989 aix3*)
14990 cat <<\_LT_EOF >> "$cfgfile"
14991 # AIX sometimes has problems with the GCC collect2 program. For some
14992 # reason, if we set the COLLECT_NAMES environment variable, the problems
14993 # vanish in a puff of smoke.
14994 if test "X${COLLECT_NAMES+set}" != Xset; then
14995 COLLECT_NAMES=
14996 export COLLECT_NAMES
14997 fi
14998 _LT_EOF
14999 ;;
15000 esac
15001
15002
15003 ltmain="$ac_aux_dir/ltmain.sh"
15004
15005
15006 # We use sed instead of cat because bash on DJGPP gets confused if
15007 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15008 # text mode, it properly converts lines to CR/LF. This bash problem
15009 # is reportedly fixed, but why not run on old versions too?
15010 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15011 || (rm -f "$cfgfile"; exit 1)
15012
15013 case $xsi_shell in
15014 yes)
15015 cat << \_LT_EOF >> "$cfgfile"
15016
15017 # func_dirname file append nondir_replacement
15018 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15019 # otherwise set result to NONDIR_REPLACEMENT.
15020 func_dirname ()
15021 {
15022 case ${1} in
15023 */*) func_dirname_result="${1%/*}${2}" ;;
15024 * ) func_dirname_result="${3}" ;;
15025 esac
15026 }
15027
15028 # func_basename file
15029 func_basename ()
15030 {
15031 func_basename_result="${1##*/}"
15032 }
15033
15034 # func_dirname_and_basename file append nondir_replacement
15035 # perform func_basename and func_dirname in a single function
15036 # call:
15037 # dirname: Compute the dirname of FILE. If nonempty,
15038 # add APPEND to the result, otherwise set result
15039 # to NONDIR_REPLACEMENT.
15040 # value returned in "$func_dirname_result"
15041 # basename: Compute filename of FILE.
15042 # value retuned in "$func_basename_result"
15043 # Implementation must be kept synchronized with func_dirname
15044 # and func_basename. For efficiency, we do not delegate to
15045 # those functions but instead duplicate the functionality here.
15046 func_dirname_and_basename ()
15047 {
15048 case ${1} in
15049 */*) func_dirname_result="${1%/*}${2}" ;;
15050 * ) func_dirname_result="${3}" ;;
15051 esac
15052 func_basename_result="${1##*/}"
15053 }
15054
15055 # func_stripname prefix suffix name
15056 # strip PREFIX and SUFFIX off of NAME.
15057 # PREFIX and SUFFIX must not contain globbing or regex special
15058 # characters, hashes, percent signs, but SUFFIX may contain a leading
15059 # dot (in which case that matches only a dot).
15060 func_stripname ()
15061 {
15062 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15063 # positional parameters, so assign one to ordinary parameter first.
15064 func_stripname_result=${3}
15065 func_stripname_result=${func_stripname_result#"${1}"}
15066 func_stripname_result=${func_stripname_result%"${2}"}
15067 }
15068
15069 # func_opt_split
15070 func_opt_split ()
15071 {
15072 func_opt_split_opt=${1%%=*}
15073 func_opt_split_arg=${1#*=}
15074 }
15075
15076 # func_lo2o object
15077 func_lo2o ()
15078 {
15079 case ${1} in
15080 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15081 *) func_lo2o_result=${1} ;;
15082 esac
15083 }
15084
15085 # func_xform libobj-or-source
15086 func_xform ()
15087 {
15088 func_xform_result=${1%.*}.lo
15089 }
15090
15091 # func_arith arithmetic-term...
15092 func_arith ()
15093 {
15094 func_arith_result=$(( $* ))
15095 }
15096
15097 # func_len string
15098 # STRING may not start with a hyphen.
15099 func_len ()
15100 {
15101 func_len_result=${#1}
15102 }
15103
15104 _LT_EOF
15105 ;;
15106 *) # Bourne compatible functions.
15107 cat << \_LT_EOF >> "$cfgfile"
15108
15109 # func_dirname file append nondir_replacement
15110 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15111 # otherwise set result to NONDIR_REPLACEMENT.
15112 func_dirname ()
15113 {
15114 # Extract subdirectory from the argument.
15115 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15116 if test "X$func_dirname_result" = "X${1}"; then
15117 func_dirname_result="${3}"
15118 else
15119 func_dirname_result="$func_dirname_result${2}"
15120 fi
15121 }
15122
15123 # func_basename file
15124 func_basename ()
15125 {
15126 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15127 }
15128
15129
15130 # func_stripname prefix suffix name
15131 # strip PREFIX and SUFFIX off of NAME.
15132 # PREFIX and SUFFIX must not contain globbing or regex special
15133 # characters, hashes, percent signs, but SUFFIX may contain a leading
15134 # dot (in which case that matches only a dot).
15135 # func_strip_suffix prefix name
15136 func_stripname ()
15137 {
15138 case ${2} in
15139 .*) func_stripname_result=`$ECHO "X${3}" \
15140 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15141 *) func_stripname_result=`$ECHO "X${3}" \
15142 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15143 esac
15144 }
15145
15146 # sed scripts:
15147 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15148 my_sed_long_arg='1s/^-[^=]*=//'
15149
15150 # func_opt_split
15151 func_opt_split ()
15152 {
15153 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15154 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15155 }
15156
15157 # func_lo2o object
15158 func_lo2o ()
15159 {
15160 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15161 }
15162
15163 # func_xform libobj-or-source
15164 func_xform ()
15165 {
15166 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15167 }
15168
15169 # func_arith arithmetic-term...
15170 func_arith ()
15171 {
15172 func_arith_result=`expr "$@"`
15173 }
15174
15175 # func_len string
15176 # STRING may not start with a hyphen.
15177 func_len ()
15178 {
15179 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15180 }
15181
15182 _LT_EOF
15183 esac
15184
15185 case $lt_shell_append in
15186 yes)
15187 cat << \_LT_EOF >> "$cfgfile"
15188
15189 # func_append var value
15190 # Append VALUE to the end of shell variable VAR.
15191 func_append ()
15192 {
15193 eval "$1+=\$2"
15194 }
15195 _LT_EOF
15196 ;;
15197 *)
15198 cat << \_LT_EOF >> "$cfgfile"
15199
15200 # func_append var value
15201 # Append VALUE to the end of shell variable VAR.
15202 func_append ()
15203 {
15204 eval "$1=\$$1\$2"
15205 }
15206
15207 _LT_EOF
15208 ;;
15209 esac
15210
15211
15212 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15213 || (rm -f "$cfgfile"; exit 1)
15214
15215 mv -f "$cfgfile" "$ofile" ||
15216 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15217 chmod +x "$ofile"
15218
15219 ;;
15220
15221 esac
15222 done # for ac_tag
15223
15224
15225 { (exit 0); exit 0; }
15226 _ACEOF
15227 chmod +x $CONFIG_STATUS
15228 ac_clean_files=$ac_clean_files_save
15229
15230 test $ac_write_fail = 0 ||
15231 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15232 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15233 { (exit 1); exit 1; }; }
15234
15235
15236 # configure is writing to config.log, and then calls config.status.
15237 # config.status does its own redirection, appending to config.log.
15238 # Unfortunately, on DOS this fails, as config.log is still kept open
15239 # by configure, so config.status won't be able to write to it; its
15240 # output is simply discarded. So we exec the FD to /dev/null,
15241 # effectively closing config.log, so it can be properly (re)opened and
15242 # appended to by config.status. When coming back to configure, we
15243 # need to make the FD available again.
15244 if test "$no_create" != yes; then
15245 ac_cs_success=:
15246 ac_config_status_args=
15247 test "$silent" = yes &&
15248 ac_config_status_args="$ac_config_status_args --quiet"
15249 exec 5>/dev/null
15250 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15251 exec 5>>config.log
15252 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15253 # would make configure fail if this is the last instruction.
15254 $ac_cs_success || { (exit 1); exit 1; }
15255 fi
15256 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15257 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15258 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15259 fi
15260
15261