configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-video-vmware 13.0.2.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && 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 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='xf86-video-vmware'
573 PACKAGE_TARNAME='xf86-video-vmware'
574 PACKAGE_VERSION='13.0.2'
575 PACKAGE_STRING='xf86-video-vmware 13.0.2'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 BUILD_VMWGFX_FALSE
621 BUILD_VMWGFX_TRUE
622 DRIVER_NAME
623 XATRACKER_LIBS
624 XATRACKER_CFLAGS
625 LIBDRM_LIBS
626 LIBDRM_CFLAGS
627 moduledir
628 XSERVER_LIBPCIACCESS_FALSE
629 XSERVER_LIBPCIACCESS_TRUE
630 PCIACCESS_LIBS
631 PCIACCESS_CFLAGS
632 X11_LIBS
633 X11_CFLAGS
634 XORG_LIBS
635 XORG_CFLAGS
636 BUILD_VMWARECTRL_FALSE
637 BUILD_VMWARECTRL_TRUE
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
643 MANIFEST_TOOL
644 RANLIB
645 ac_ct_AR
646 AR
647 DLLTOOL
648 OBJDUMP
649 LN_S
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 LIBTOOL
656 AM_BACKSLASH
657 AM_DEFAULT_VERBOSITY
658 AM_DEFAULT_V
659 AM_V
660 MAN_SUBSTS
661 XORG_MAN_PAGE
662 ADMIN_MAN_DIR
663 DRIVER_MAN_DIR
664 MISC_MAN_DIR
665 FILE_MAN_DIR
666 LIB_MAN_DIR
667 APP_MAN_DIR
668 ADMIN_MAN_SUFFIX
669 DRIVER_MAN_SUFFIX
670 MISC_MAN_SUFFIX
671 FILE_MAN_SUFFIX
672 LIB_MAN_SUFFIX
673 APP_MAN_SUFFIX
674 SED
675 host_os
676 host_vendor
677 host_cpu
678 host
679 build_os
680 build_vendor
681 build_cpu
682 build
683 INSTALL_CMD
684 PKG_CONFIG_LIBDIR
685 PKG_CONFIG_PATH
686 PKG_CONFIG
687 CHANGELOG_CMD
688 STRICT_CFLAGS
689 CWARNFLAGS
690 BASE_CFLAGS
691 EGREP
692 GREP
693 CPP
694 MAINT
695 MAINTAINER_MODE_FALSE
696 MAINTAINER_MODE_TRUE
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__quote
705 am__include
706 DEPDIR
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
712 AWK
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
736 CC
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 enable_largefile
779 enable_dependency_tracking
780 enable_maintainer_mode
781 enable_selective_werror
782 enable_strict_compilation
783 enable_silent_rules
784 enable_static
785 enable_shared
786 with_pic
787 enable_fast_install
788 with_gnu_ld
789 with_sysroot
790 enable_libtool_lock
791 with_xorg_module_dir
792 enable_vmwarectrl_client
793 '
794 ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 CPP
803 PKG_CONFIG
804 PKG_CONFIG_PATH
805 PKG_CONFIG_LIBDIR
806 XORG_CFLAGS
807 XORG_LIBS
808 X11_CFLAGS
809 X11_LIBS
810 PCIACCESS_CFLAGS
811 PCIACCESS_LIBS
812 LIBDRM_CFLAGS
813 LIBDRM_LIBS
814 XATRACKER_CFLAGS
815 XATRACKER_LIBS'
816
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 ac_unrecognized_opts=
822 ac_unrecognized_sep=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
875 fi
876
877 case $ac_option in
878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *=) ac_optarg= ;;
880 *) ac_optarg=yes ;;
881 esac
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
913
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
946
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=\$ac_optarg ;;
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
982
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
987
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1017
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1091
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1150
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1166
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1200
1201 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information"
1203 ;;
1204
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1214
1215 *)
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221 ;;
1222
1223 esac
1224 done
1225
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error $? "missing argument to $ac_option"
1229 fi
1230
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1237 fi
1238
1239 # Check all directory arguments for consistency.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1244 do
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258 done
1259
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1266
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1272 If a cross compiler is detected then cross compile mode will be used" >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1274 cross_compiling=yes
1275 fi
1276 fi
1277
1278 ac_tool_prefix=
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281 test "$silent" = yes && exec 6>/dev/null
1282
1283
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error $? "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error $? "pwd does not report name of working directory"
1290
1291
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)[^/].*/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\).*/{
1315 s//\1/
1316 q
1317 }
1318 s/.*/./; q'`
1319 srcdir=$ac_confdir
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 srcdir=..
1322 fi
1323 else
1324 ac_srcdir_defaulted=no
1325 fi
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329 fi
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 ac_abs_confdir=`(
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1333 pwd)`
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 srcdir=.
1337 fi
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1341 case $srcdir in
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 esac
1344 for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 done
1350
1351 #
1352 # Report the --help message.
1353 #
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1357 cat <<_ACEOF
1358 \`configure' configures xf86-video-vmware 13.0.2 to adapt to many kinds of systems.
1359
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1361
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1364
1365 Defaults for the options are specified in brackets.
1366
1367 Configuration:
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking ...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1377
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 [PREFIX]
1383
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1388
1389 For better control, use the options below.
1390
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root
1407 [DATAROOTDIR/doc/xf86-video-vmware]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412 _ACEOF
1413
1414 cat <<\_ACEOF
1415
1416 Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421 System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of xf86-video-vmware 13.0.2:";;
1430 esac
1431 cat <<\_ACEOF
1432
1433 Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --disable-largefile omit support for large files
1438 --disable-dependency-tracking speeds up one-time build
1439 --enable-dependency-tracking do not reject slow dependency extractors
1440 --enable-maintainer-mode enable make rules and dependencies not useful
1441 (and sometimes confusing) to the casual installer
1442 --disable-selective-werror
1443 Turn off selective compiler errors. (default:
1444 enabled)
1445 --enable-strict-compilation
1446 Enable all warnings from compiler and make them
1447 errors (default: disabled)
1448 --enable-silent-rules less verbose build output (undo: `make V=1')
1449 --disable-silent-rules verbose build output (undo: `make V=0')
1450 --enable-static[=PKGS] build static libraries [default=no]
1451 --enable-shared[=PKGS] build shared libraries [default=yes]
1452 --enable-fast-install[=PKGS]
1453 optimize for fast installation [default=yes]
1454 --disable-libtool-lock avoid locking (might break parallel builds)
1455 --enable-vmwarectrl-client
1456 Enable vmwarectrl client (default: disabled)
1457
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1462 both]
1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1464 --with-sysroot=DIR Search for dependent libraries within DIR
1465 (or the compiler's sysroot if not specified).
1466 --with-xorg-module-dir=DIR
1467 Default xorg module directory
1468 [[default=$libdir/xorg/modules]]
1469
1470 Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 LIBS libraries to pass to the linker, e.g. -l<library>
1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477 you have headers in a nonstandard directory <include dir>
1478 CPP C preprocessor
1479 PKG_CONFIG path to pkg-config utility
1480 PKG_CONFIG_PATH
1481 directories to add to pkg-config's search path
1482 PKG_CONFIG_LIBDIR
1483 path overriding pkg-config's built-in search path
1484 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1485 XORG_LIBS linker flags for XORG, overriding pkg-config
1486 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1487 X11_LIBS linker flags for X11, overriding pkg-config
1488 PCIACCESS_CFLAGS
1489 C compiler flags for PCIACCESS, overriding pkg-config
1490 PCIACCESS_LIBS
1491 linker flags for PCIACCESS, overriding pkg-config
1492 LIBDRM_CFLAGS
1493 C compiler flags for LIBDRM, overriding pkg-config
1494 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1495 XATRACKER_CFLAGS
1496 C compiler flags for XATRACKER, overriding pkg-config
1497 XATRACKER_LIBS
1498 linker flags for XATRACKER, overriding pkg-config
1499
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1502
1503 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" ||
1512 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513 continue
1514 ac_builddir=.
1515
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *)
1519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1531
1532 case $srcdir in
1533 .) # We are building in place.
1534 ac_srcdir=.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1541 *) # Relative name.
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1556 else
1557 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 fi || ac_status=$?
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1560 done
1561 fi
1562
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565 cat <<\_ACEOF
1566 xf86-video-vmware configure 13.0.2
1567 generated by GNU Autoconf 2.68
1568
1569 Copyright (C) 2010 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1572 _ACEOF
1573 exit
1574 fi
1575
1576 ## ------------------------ ##
1577 ## Autoconf initialization. ##
1578 ## ------------------------ ##
1579
1580 # ac_fn_c_try_compile LINENO
1581 # --------------------------
1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_compile ()
1584 {
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext
1587 if { { ac_try="$ac_compile"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_compile") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest.$ac_objext; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=1
1612 fi
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_compile
1617
1618 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1619 # ---------------------------------------------
1620 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1621 # accordingly.
1622 ac_fn_c_check_decl ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 as_decl_name=`echo $2|sed 's/ *(.*//'`
1626 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1628 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1629 if eval \${$3+:} false; then :
1630 $as_echo_n "(cached) " >&6
1631 else
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 $4
1635 int
1636 main ()
1637 {
1638 #ifndef $as_decl_name
1639 #ifdef __cplusplus
1640 (void) $as_decl_use;
1641 #else
1642 (void) $as_decl_name;
1643 #endif
1644 #endif
1645
1646 ;
1647 return 0;
1648 }
1649 _ACEOF
1650 if ac_fn_c_try_compile "$LINENO"; then :
1651 eval "$3=yes"
1652 else
1653 eval "$3=no"
1654 fi
1655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656 fi
1657 eval ac_res=\$$3
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659 $as_echo "$ac_res" >&6; }
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661
1662 } # ac_fn_c_check_decl
1663
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_cpp ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } > conftest.i && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695 fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_cpp
1700
1701 # ac_fn_c_try_run LINENO
1702 # ----------------------
1703 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704 # that executables *can* be run.
1705 ac_fn_c_try_run ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: program exited with status $ac_status" >&5
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=$ac_status
1736 fi
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1740
1741 } # ac_fn_c_try_run
1742
1743 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1744 # -------------------------------------------------------
1745 # Tests whether HEADER exists and can be compiled using the include files in
1746 # INCLUDES, setting the cache variable VAR accordingly.
1747 ac_fn_c_check_header_compile ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if eval \${$3+:} false; then :
1753 $as_echo_n "(cached) " >&6
1754 else
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 $4
1758 #include <$2>
1759 _ACEOF
1760 if ac_fn_c_try_compile "$LINENO"; then :
1761 eval "$3=yes"
1762 else
1763 eval "$3=no"
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766 fi
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772 } # ac_fn_c_check_header_compile
1773
1774 # ac_fn_c_try_link LINENO
1775 # -----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_link ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext conftest$ac_exeext
1781 if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest$ac_exeext && {
1800 test "$cross_compiling" = yes ||
1801 $as_test_x conftest$ac_exeext
1802 }; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809 fi
1810 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1811 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1812 # interfere with the next link command; also delete a directory that is
1813 # left behind by Apple's compiler. We do this before executing the actions.
1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 as_fn_set_status $ac_retval
1817
1818 } # ac_fn_c_try_link
1819
1820 # ac_fn_c_check_func LINENO FUNC VAR
1821 # ----------------------------------
1822 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1823 ac_fn_c_check_func ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if eval \${$3+:} false; then :
1829 $as_echo_n "(cached) " >&6
1830 else
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1833 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1835 #define $2 innocuous_$2
1836
1837 /* System header to define __stub macros and hopefully few prototypes,
1838 which can conflict with char $2 (); below.
1839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1840 <limits.h> exists even on freestanding compilers. */
1841
1842 #ifdef __STDC__
1843 # include <limits.h>
1844 #else
1845 # include <assert.h>
1846 #endif
1847
1848 #undef $2
1849
1850 /* Override any GCC internal prototype to avoid an error.
1851 Use char because int might match the return type of a GCC
1852 builtin and then its argument prototype would still apply. */
1853 #ifdef __cplusplus
1854 extern "C"
1855 #endif
1856 char $2 ();
1857 /* The GNU C library defines this for functions which it implements
1858 to always fail with ENOSYS. Some functions are actually named
1859 something starting with __ and the normal name is an alias. */
1860 #if defined __stub_$2 || defined __stub___$2
1861 choke me
1862 #endif
1863
1864 int
1865 main ()
1866 {
1867 return $2 ();
1868 ;
1869 return 0;
1870 }
1871 _ACEOF
1872 if ac_fn_c_try_link "$LINENO"; then :
1873 eval "$3=yes"
1874 else
1875 eval "$3=no"
1876 fi
1877 rm -f core conftest.err conftest.$ac_objext \
1878 conftest$ac_exeext conftest.$ac_ext
1879 fi
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885 } # ac_fn_c_check_func
1886 cat >config.log <<_ACEOF
1887 This file contains any messages produced by compilers while
1888 running configure, to aid debugging if configure makes a mistake.
1889
1890 It was created by xf86-video-vmware $as_me 13.0.2, which was
1891 generated by GNU Autoconf 2.68. Invocation command line was
1892
1893 $ $0 $@
1894
1895 _ACEOF
1896 exec 5>>config.log
1897 {
1898 cat <<_ASUNAME
1899 ## --------- ##
1900 ## Platform. ##
1901 ## --------- ##
1902
1903 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1904 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1905 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1906 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1907 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1908
1909 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1910 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1911
1912 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1913 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1914 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1915 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1916 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1917 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1918 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1919
1920 _ASUNAME
1921
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925 IFS=$as_save_IFS
1926 test -z "$as_dir" && as_dir=.
1927 $as_echo "PATH: $as_dir"
1928 done
1929 IFS=$as_save_IFS
1930
1931 } >&5
1932
1933 cat >&5 <<_ACEOF
1934
1935
1936 ## ----------- ##
1937 ## Core tests. ##
1938 ## ----------- ##
1939
1940 _ACEOF
1941
1942
1943 # Keep a trace of the command line.
1944 # Strip out --no-create and --no-recursion so they do not pile up.
1945 # Strip out --silent because we don't want to record it for future runs.
1946 # Also quote any args containing shell meta-characters.
1947 # Make two passes to allow for proper duplicate-argument suppression.
1948 ac_configure_args=
1949 ac_configure_args0=
1950 ac_configure_args1=
1951 ac_must_keep_next=false
1952 for ac_pass in 1 2
1953 do
1954 for ac_arg
1955 do
1956 case $ac_arg in
1957 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1959 | -silent | --silent | --silen | --sile | --sil)
1960 continue ;;
1961 *\'*)
1962 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1963 esac
1964 case $ac_pass in
1965 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1966 2)
1967 as_fn_append ac_configure_args1 " '$ac_arg'"
1968 if test $ac_must_keep_next = true; then
1969 ac_must_keep_next=false # Got value, back to normal.
1970 else
1971 case $ac_arg in
1972 *=* | --config-cache | -C | -disable-* | --disable-* \
1973 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1974 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1975 | -with-* | --with-* | -without-* | --without-* | --x)
1976 case "$ac_configure_args0 " in
1977 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1978 esac
1979 ;;
1980 -* ) ac_must_keep_next=true ;;
1981 esac
1982 fi
1983 as_fn_append ac_configure_args " '$ac_arg'"
1984 ;;
1985 esac
1986 done
1987 done
1988 { ac_configure_args0=; unset ac_configure_args0;}
1989 { ac_configure_args1=; unset ac_configure_args1;}
1990
1991 # When interrupted or exit'd, cleanup temporary files, and complete
1992 # config.log. We remove comments because anyway the quotes in there
1993 # would cause problems or look ugly.
1994 # WARNING: Use '\'' to represent an apostrophe within the trap.
1995 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1996 trap 'exit_status=$?
1997 # Save into config.log some information that might help in debugging.
1998 {
1999 echo
2000
2001 $as_echo "## ---------------- ##
2002 ## Cache variables. ##
2003 ## ---------------- ##"
2004 echo
2005 # The following way of writing the cache mishandles newlines in values,
2006 (
2007 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2008 eval ac_val=\$$ac_var
2009 case $ac_val in #(
2010 *${as_nl}*)
2011 case $ac_var in #(
2012 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2013 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2014 esac
2015 case $ac_var in #(
2016 _ | IFS | as_nl) ;; #(
2017 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2018 *) { eval $ac_var=; unset $ac_var;} ;;
2019 esac ;;
2020 esac
2021 done
2022 (set) 2>&1 |
2023 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2024 *${as_nl}ac_space=\ *)
2025 sed -n \
2026 "s/'\''/'\''\\\\'\'''\''/g;
2027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2028 ;; #(
2029 *)
2030 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2031 ;;
2032 esac |
2033 sort
2034 )
2035 echo
2036
2037 $as_echo "## ----------------- ##
2038 ## Output variables. ##
2039 ## ----------------- ##"
2040 echo
2041 for ac_var in $ac_subst_vars
2042 do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in
2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 esac
2047 $as_echo "$ac_var='\''$ac_val'\''"
2048 done | sort
2049 echo
2050
2051 if test -n "$ac_subst_files"; then
2052 $as_echo "## ------------------- ##
2053 ## File substitutions. ##
2054 ## ------------------- ##"
2055 echo
2056 for ac_var in $ac_subst_files
2057 do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2065 fi
2066
2067 if test -s confdefs.h; then
2068 $as_echo "## ----------- ##
2069 ## confdefs.h. ##
2070 ## ----------- ##"
2071 echo
2072 cat confdefs.h
2073 echo
2074 fi
2075 test "$ac_signal" != 0 &&
2076 $as_echo "$as_me: caught signal $ac_signal"
2077 $as_echo "$as_me: exit $exit_status"
2078 } >&5
2079 rm -f core *.core core.conftest.* &&
2080 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2081 exit $exit_status
2082 ' 0
2083 for ac_signal in 1 2 13 15; do
2084 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2085 done
2086 ac_signal=0
2087
2088 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2089 rm -f -r conftest* confdefs.h
2090
2091 $as_echo "/* confdefs.h */" > confdefs.h
2092
2093 # Predefined preprocessor variables.
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_NAME "$PACKAGE_NAME"
2097 _ACEOF
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2101 _ACEOF
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_STRING "$PACKAGE_STRING"
2109 _ACEOF
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2113 _ACEOF
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_URL "$PACKAGE_URL"
2117 _ACEOF
2118
2119
2120 # Let the site file select an alternate cache file if it wants to.
2121 # Prefer an explicitly selected file to automatically selected ones.
2122 ac_site_file1=NONE
2123 ac_site_file2=NONE
2124 if test -n "$CONFIG_SITE"; then
2125 # We do not want a PATH search for config.site.
2126 case $CONFIG_SITE in #((
2127 -*) ac_site_file1=./$CONFIG_SITE;;
2128 */*) ac_site_file1=$CONFIG_SITE;;
2129 *) ac_site_file1=./$CONFIG_SITE;;
2130 esac
2131 elif test "x$prefix" != xNONE; then
2132 ac_site_file1=$prefix/share/config.site
2133 ac_site_file2=$prefix/etc/config.site
2134 else
2135 ac_site_file1=$ac_default_prefix/share/config.site
2136 ac_site_file2=$ac_default_prefix/etc/config.site
2137 fi
2138 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2139 do
2140 test "x$ac_site_file" = xNONE && continue
2141 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2144 sed 's/^/| /' "$ac_site_file" >&5
2145 . "$ac_site_file" \
2146 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2148 as_fn_error $? "failed to load site script $ac_site_file
2149 See \`config.log' for more details" "$LINENO" 5; }
2150 fi
2151 done
2152
2153 if test -r "$cache_file"; then
2154 # Some versions of bash will fail to source /dev/null (special files
2155 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2156 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158 $as_echo "$as_me: loading cache $cache_file" >&6;}
2159 case $cache_file in
2160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161 *) . "./$cache_file";;
2162 esac
2163 fi
2164 else
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166 $as_echo "$as_me: creating cache $cache_file" >&6;}
2167 >$cache_file
2168 fi
2169
2170 # Check that the precious variables saved in the cache have kept the same
2171 # value.
2172 ac_cache_corrupted=false
2173 for ac_var in $ac_precious_vars; do
2174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2175 eval ac_new_set=\$ac_env_${ac_var}_set
2176 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2177 eval ac_new_val=\$ac_env_${ac_var}_value
2178 case $ac_old_set,$ac_new_set in
2179 set,)
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2182 ac_cache_corrupted=: ;;
2183 ,set)
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2185 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2186 ac_cache_corrupted=: ;;
2187 ,);;
2188 *)
2189 if test "x$ac_old_val" != "x$ac_new_val"; then
2190 # differences in whitespace do not lead to failure.
2191 ac_old_val_w=`echo x $ac_old_val`
2192 ac_new_val_w=`echo x $ac_new_val`
2193 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2195 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2196 ac_cache_corrupted=:
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2199 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2200 eval $ac_var=\$ac_old_val
2201 fi
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2203 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2205 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2206 fi;;
2207 esac
2208 # Pass precious variables to config.status.
2209 if test "$ac_new_set" = set; then
2210 case $ac_new_val in
2211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2212 *) ac_arg=$ac_var=$ac_new_val ;;
2213 esac
2214 case " $ac_configure_args " in
2215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2216 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2217 esac
2218 fi
2219 done
2220 if $ac_cache_corrupted; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2224 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2225 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2226 fi
2227 ## -------------------- ##
2228 ## Main body of script. ##
2229 ## -------------------- ##
2230
2231 ac_ext=c
2232 ac_cpp='$CPP $CPPFLAGS'
2233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236
2237
2238
2239 ac_config_headers="$ac_config_headers config.h"
2240
2241 ac_aux_dir=
2242 for ac_dir in . "$srcdir"/.; do
2243 if test -f "$ac_dir/install-sh"; then
2244 ac_aux_dir=$ac_dir
2245 ac_install_sh="$ac_aux_dir/install-sh -c"
2246 break
2247 elif test -f "$ac_dir/install.sh"; then
2248 ac_aux_dir=$ac_dir
2249 ac_install_sh="$ac_aux_dir/install.sh -c"
2250 break
2251 elif test -f "$ac_dir/shtool"; then
2252 ac_aux_dir=$ac_dir
2253 ac_install_sh="$ac_aux_dir/shtool install -c"
2254 break
2255 fi
2256 done
2257 if test -z "$ac_aux_dir"; then
2258 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2259 fi
2260
2261 # These three variables are undocumented and unsupported,
2262 # and are intended to be withdrawn in a future Autoconf release.
2263 # They can cause serious problems if a builder's source tree is in a directory
2264 # whose full name contains unusual characters.
2265 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2266 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2267 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2268
2269
2270 ac_ext=c
2271 ac_cpp='$CPP $CPPFLAGS'
2272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2275 if test -n "$ac_tool_prefix"; then
2276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2277 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2279 $as_echo_n "checking for $ac_word... " >&6; }
2280 if ${ac_cv_prog_CC+:} false; then :
2281 $as_echo_n "(cached) " >&6
2282 else
2283 if test -n "$CC"; then
2284 ac_cv_prog_CC="$CC" # Let the user override the test.
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 break 2
2296 fi
2297 done
2298 done
2299 IFS=$as_save_IFS
2300
2301 fi
2302 fi
2303 CC=$ac_cv_prog_CC
2304 if test -n "$CC"; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2306 $as_echo "$CC" >&6; }
2307 else
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2309 $as_echo "no" >&6; }
2310 fi
2311
2312
2313 fi
2314 if test -z "$ac_cv_prog_CC"; then
2315 ac_ct_CC=$CC
2316 # Extract the first word of "gcc", so it can be a program name with args.
2317 set dummy gcc; ac_word=$2
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2319 $as_echo_n "checking for $ac_word... " >&6; }
2320 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2321 $as_echo_n "(cached) " >&6
2322 else
2323 if test -n "$ac_ct_CC"; then
2324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333 ac_cv_prog_ac_ct_CC="gcc"
2334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 break 2
2336 fi
2337 done
2338 done
2339 IFS=$as_save_IFS
2340
2341 fi
2342 fi
2343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2344 if test -n "$ac_ct_CC"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2346 $as_echo "$ac_ct_CC" >&6; }
2347 else
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2349 $as_echo "no" >&6; }
2350 fi
2351
2352 if test "x$ac_ct_CC" = x; then
2353 CC=""
2354 else
2355 case $cross_compiling:$ac_tool_warned in
2356 yes:)
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2359 ac_tool_warned=yes ;;
2360 esac
2361 CC=$ac_ct_CC
2362 fi
2363 else
2364 CC="$ac_cv_prog_CC"
2365 fi
2366
2367 if test -z "$CC"; then
2368 if test -n "$ac_tool_prefix"; then
2369 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2370 set dummy ${ac_tool_prefix}cc; ac_word=$2
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2372 $as_echo_n "checking for $ac_word... " >&6; }
2373 if ${ac_cv_prog_CC+:} false; then :
2374 $as_echo_n "(cached) " >&6
2375 else
2376 if test -n "$CC"; then
2377 ac_cv_prog_CC="$CC" # Let the user override the test.
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386 ac_cv_prog_CC="${ac_tool_prefix}cc"
2387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 break 2
2389 fi
2390 done
2391 done
2392 IFS=$as_save_IFS
2393
2394 fi
2395 fi
2396 CC=$ac_cv_prog_CC
2397 if test -n "$CC"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2399 $as_echo "$CC" >&6; }
2400 else
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2402 $as_echo "no" >&6; }
2403 fi
2404
2405
2406 fi
2407 fi
2408 if test -z "$CC"; then
2409 # Extract the first word of "cc", so it can be a program name with args.
2410 set dummy cc; ac_word=$2
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412 $as_echo_n "checking for $ac_word... " >&6; }
2413 if ${ac_cv_prog_CC+:} false; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2418 else
2419 ac_prog_rejected=no
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2422 do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2428 ac_prog_rejected=yes
2429 continue
2430 fi
2431 ac_cv_prog_CC="cc"
2432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2434 fi
2435 done
2436 done
2437 IFS=$as_save_IFS
2438
2439 if test $ac_prog_rejected = yes; then
2440 # We found a bogon in the path, so make sure we never use it.
2441 set dummy $ac_cv_prog_CC
2442 shift
2443 if test $# != 0; then
2444 # We chose a different compiler from the bogus one.
2445 # However, it has the same basename, so the bogon will be chosen
2446 # first if we set CC to just the basename; use the full file name.
2447 shift
2448 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2449 fi
2450 fi
2451 fi
2452 fi
2453 CC=$ac_cv_prog_CC
2454 if test -n "$CC"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2456 $as_echo "$CC" >&6; }
2457 else
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2459 $as_echo "no" >&6; }
2460 fi
2461
2462
2463 fi
2464 if test -z "$CC"; then
2465 if test -n "$ac_tool_prefix"; then
2466 for ac_prog in cl.exe
2467 do
2468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if ${ac_cv_prog_CC+:} false; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 if test -n "$CC"; then
2476 ac_cv_prog_CC="$CC" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2488 fi
2489 done
2490 done
2491 IFS=$as_save_IFS
2492
2493 fi
2494 fi
2495 CC=$ac_cv_prog_CC
2496 if test -n "$CC"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2498 $as_echo "$CC" >&6; }
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501 $as_echo "no" >&6; }
2502 fi
2503
2504
2505 test -n "$CC" && break
2506 done
2507 fi
2508 if test -z "$CC"; then
2509 ac_ct_CC=$CC
2510 for ac_prog in cl.exe
2511 do
2512 # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515 $as_echo_n "checking for $ac_word... " >&6; }
2516 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 if test -n "$ac_ct_CC"; then
2520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_ac_ct_CC="$ac_prog"
2530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2532 fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2540 if test -n "$ac_ct_CC"; then
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2542 $as_echo "$ac_ct_CC" >&6; }
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545 $as_echo "no" >&6; }
2546 fi
2547
2548
2549 test -n "$ac_ct_CC" && break
2550 done
2551
2552 if test "x$ac_ct_CC" = x; then
2553 CC=""
2554 else
2555 case $cross_compiling:$ac_tool_warned in
2556 yes:)
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2559 ac_tool_warned=yes ;;
2560 esac
2561 CC=$ac_ct_CC
2562 fi
2563 fi
2564
2565 fi
2566
2567
2568 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570 as_fn_error $? "no acceptable C compiler found in \$PATH
2571 See \`config.log' for more details" "$LINENO" 5; }
2572
2573 # Provide some information about the compiler.
2574 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2575 set X $ac_compile
2576 ac_compiler=$2
2577 for ac_option in --version -v -V -qversion; do
2578 { { ac_try="$ac_compiler $ac_option >&5"
2579 case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582 esac
2583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2584 $as_echo "$ac_try_echo"; } >&5
2585 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2586 ac_status=$?
2587 if test -s conftest.err; then
2588 sed '10a\
2589 ... rest of stderr output deleted ...
2590 10q' conftest.err >conftest.er1
2591 cat conftest.er1 >&5
2592 fi
2593 rm -f conftest.er1 conftest.err
2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595 test $ac_status = 0; }
2596 done
2597
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h. */
2600
2601 int
2602 main ()
2603 {
2604
2605 ;
2606 return 0;
2607 }
2608 _ACEOF
2609 ac_clean_files_save=$ac_clean_files
2610 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2611 # Try to create an executable without -o first, disregard a.out.
2612 # It will help us diagnose broken compilers, and finding out an intuition
2613 # of exeext.
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2615 $as_echo_n "checking whether the C compiler works... " >&6; }
2616 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2617
2618 # The possible output files:
2619 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2620
2621 ac_rmfiles=
2622 for ac_file in $ac_files
2623 do
2624 case $ac_file in
2625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2626 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2627 esac
2628 done
2629 rm -f $ac_rmfiles
2630
2631 if { { ac_try="$ac_link_default"
2632 case "(($ac_try" in
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2635 esac
2636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2637 $as_echo "$ac_try_echo"; } >&5
2638 (eval "$ac_link_default") 2>&5
2639 ac_status=$?
2640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2641 test $ac_status = 0; }; then :
2642 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2643 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2644 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2645 # so that the user can short-circuit this test for compilers unknown to
2646 # Autoconf.
2647 for ac_file in $ac_files ''
2648 do
2649 test -f "$ac_file" || continue
2650 case $ac_file in
2651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2652 ;;
2653 [ab].out )
2654 # We found the default executable, but exeext='' is most
2655 # certainly right.
2656 break;;
2657 *.* )
2658 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2659 then :; else
2660 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2661 fi
2662 # We set ac_cv_exeext here because the later test for it is not
2663 # safe: cross compilers may not add the suffix if given an `-o'
2664 # argument, so we may need to know it at that point already.
2665 # Even if this section looks crufty: it has the advantage of
2666 # actually working.
2667 break;;
2668 * )
2669 break;;
2670 esac
2671 done
2672 test "$ac_cv_exeext" = no && ac_cv_exeext=
2673
2674 else
2675 ac_file=''
2676 fi
2677 if test -z "$ac_file"; then :
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 $as_echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2685 as_fn_error 77 "C compiler cannot create executables
2686 See \`config.log' for more details" "$LINENO" 5; }
2687 else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2689 $as_echo "yes" >&6; }
2690 fi
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2692 $as_echo_n "checking for C compiler default output file name... " >&6; }
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2694 $as_echo "$ac_file" >&6; }
2695 ac_exeext=$ac_cv_exeext
2696
2697 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2698 ac_clean_files=$ac_clean_files_save
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2700 $as_echo_n "checking for suffix of executables... " >&6; }
2701 if { { ac_try="$ac_link"
2702 case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705 esac
2706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2707 $as_echo "$ac_try_echo"; } >&5
2708 (eval "$ac_link") 2>&5
2709 ac_status=$?
2710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2711 test $ac_status = 0; }; then :
2712 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2713 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2714 # work properly (i.e., refer to `conftest.exe'), while it won't with
2715 # `rm'.
2716 for ac_file in conftest.exe conftest conftest.*; do
2717 test -f "$ac_file" || continue
2718 case $ac_file in
2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2720 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2721 break;;
2722 * ) break;;
2723 esac
2724 done
2725 else
2726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2728 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2729 See \`config.log' for more details" "$LINENO" 5; }
2730 fi
2731 rm -f conftest conftest$ac_cv_exeext
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2733 $as_echo "$ac_cv_exeext" >&6; }
2734
2735 rm -f conftest.$ac_ext
2736 EXEEXT=$ac_cv_exeext
2737 ac_exeext=$EXEEXT
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h. */
2740 #include <stdio.h>
2741 int
2742 main ()
2743 {
2744 FILE *f = fopen ("conftest.out", "w");
2745 return ferror (f) || fclose (f) != 0;
2746
2747 ;
2748 return 0;
2749 }
2750 _ACEOF
2751 ac_clean_files="$ac_clean_files conftest.out"
2752 # Check that the compiler produces executables we can run. If not, either
2753 # the compiler is broken, or we cross compile.
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2755 $as_echo_n "checking whether we are cross compiling... " >&6; }
2756 if test "$cross_compiling" != yes; then
2757 { { ac_try="$ac_link"
2758 case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761 esac
2762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2763 $as_echo "$ac_try_echo"; } >&5
2764 (eval "$ac_link") 2>&5
2765 ac_status=$?
2766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2767 test $ac_status = 0; }
2768 if { ac_try='./conftest$ac_cv_exeext'
2769 { { case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772 esac
2773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2774 $as_echo "$ac_try_echo"; } >&5
2775 (eval "$ac_try") 2>&5
2776 ac_status=$?
2777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778 test $ac_status = 0; }; }; then
2779 cross_compiling=no
2780 else
2781 if test "$cross_compiling" = maybe; then
2782 cross_compiling=yes
2783 else
2784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2786 as_fn_error $? "cannot run C compiled programs.
2787 If you meant to cross compile, use \`--host'.
2788 See \`config.log' for more details" "$LINENO" 5; }
2789 fi
2790 fi
2791 fi
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2793 $as_echo "$cross_compiling" >&6; }
2794
2795 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2796 ac_clean_files=$ac_clean_files_save
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2798 $as_echo_n "checking for suffix of object files... " >&6; }
2799 if ${ac_cv_objext+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h. */
2804
2805 int
2806 main ()
2807 {
2808
2809 ;
2810 return 0;
2811 }
2812 _ACEOF
2813 rm -f conftest.o conftest.obj
2814 if { { ac_try="$ac_compile"
2815 case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820 $as_echo "$ac_try_echo"; } >&5
2821 (eval "$ac_compile") 2>&5
2822 ac_status=$?
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; }; then :
2825 for ac_file in conftest.o conftest.obj conftest.*; do
2826 test -f "$ac_file" || continue;
2827 case $ac_file in
2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2829 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2830 break;;
2831 esac
2832 done
2833 else
2834 $as_echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2839 as_fn_error $? "cannot compute suffix of object files: cannot compile
2840 See \`config.log' for more details" "$LINENO" 5; }
2841 fi
2842 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2843 fi
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2845 $as_echo "$ac_cv_objext" >&6; }
2846 OBJEXT=$ac_cv_objext
2847 ac_objext=$OBJEXT
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2849 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2850 if ${ac_cv_c_compiler_gnu+:} false; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854 /* end confdefs.h. */
2855
2856 int
2857 main ()
2858 {
2859 #ifndef __GNUC__
2860 choke me
2861 #endif
2862
2863 ;
2864 return 0;
2865 }
2866 _ACEOF
2867 if ac_fn_c_try_compile "$LINENO"; then :
2868 ac_compiler_gnu=yes
2869 else
2870 ac_compiler_gnu=no
2871 fi
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2874
2875 fi
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2877 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2878 if test $ac_compiler_gnu = yes; then
2879 GCC=yes
2880 else
2881 GCC=
2882 fi
2883 ac_test_CFLAGS=${CFLAGS+set}
2884 ac_save_CFLAGS=$CFLAGS
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2886 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2887 if ${ac_cv_prog_cc_g+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 ac_save_c_werror_flag=$ac_c_werror_flag
2891 ac_c_werror_flag=yes
2892 ac_cv_prog_cc_g=no
2893 CFLAGS="-g"
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2896
2897 int
2898 main ()
2899 {
2900
2901 ;
2902 return 0;
2903 }
2904 _ACEOF
2905 if ac_fn_c_try_compile "$LINENO"; then :
2906 ac_cv_prog_cc_g=yes
2907 else
2908 CFLAGS=""
2909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910 /* end confdefs.h. */
2911
2912 int
2913 main ()
2914 {
2915
2916 ;
2917 return 0;
2918 }
2919 _ACEOF
2920 if ac_fn_c_try_compile "$LINENO"; then :
2921
2922 else
2923 ac_c_werror_flag=$ac_save_c_werror_flag
2924 CFLAGS="-g"
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2927
2928 int
2929 main ()
2930 {
2931
2932 ;
2933 return 0;
2934 }
2935 _ACEOF
2936 if ac_fn_c_try_compile "$LINENO"; then :
2937 ac_cv_prog_cc_g=yes
2938 fi
2939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2940 fi
2941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942 fi
2943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944 ac_c_werror_flag=$ac_save_c_werror_flag
2945 fi
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2947 $as_echo "$ac_cv_prog_cc_g" >&6; }
2948 if test "$ac_test_CFLAGS" = set; then
2949 CFLAGS=$ac_save_CFLAGS
2950 elif test $ac_cv_prog_cc_g = yes; then
2951 if test "$GCC" = yes; then
2952 CFLAGS="-g -O2"
2953 else
2954 CFLAGS="-g"
2955 fi
2956 else
2957 if test "$GCC" = yes; then
2958 CFLAGS="-O2"
2959 else
2960 CFLAGS=
2961 fi
2962 fi
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2964 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2965 if ${ac_cv_prog_cc_c89+:} false; then :
2966 $as_echo_n "(cached) " >&6
2967 else
2968 ac_cv_prog_cc_c89=no
2969 ac_save_CC=$CC
2970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971 /* end confdefs.h. */
2972 #include <stdarg.h>
2973 #include <stdio.h>
2974 #include <sys/types.h>
2975 #include <sys/stat.h>
2976 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2977 struct buf { int x; };
2978 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2979 static char *e (p, i)
2980 char **p;
2981 int i;
2982 {
2983 return p[i];
2984 }
2985 static char *f (char * (*g) (char **, int), char **p, ...)
2986 {
2987 char *s;
2988 va_list v;
2989 va_start (v,p);
2990 s = g (p, va_arg (v,int));
2991 va_end (v);
2992 return s;
2993 }
2994
2995 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2996 function prototypes and stuff, but not '\xHH' hex character constants.
2997 These don't provoke an error unfortunately, instead are silently treated
2998 as 'x'. The following induces an error, until -std is added to get
2999 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3000 array size at least. It's necessary to write '\x00'==0 to get something
3001 that's true only with -std. */
3002 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3003
3004 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3005 inside strings and character constants. */
3006 #define FOO(x) 'x'
3007 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3008
3009 int test (int i, double x);
3010 struct s1 {int (*f) (int a);};
3011 struct s2 {int (*f) (double a);};
3012 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3013 int argc;
3014 char **argv;
3015 int
3016 main ()
3017 {
3018 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3019 ;
3020 return 0;
3021 }
3022 _ACEOF
3023 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3024 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3025 do
3026 CC="$ac_save_CC $ac_arg"
3027 if ac_fn_c_try_compile "$LINENO"; then :
3028 ac_cv_prog_cc_c89=$ac_arg
3029 fi
3030 rm -f core conftest.err conftest.$ac_objext
3031 test "x$ac_cv_prog_cc_c89" != "xno" && break
3032 done
3033 rm -f conftest.$ac_ext
3034 CC=$ac_save_CC
3035
3036 fi
3037 # AC_CACHE_VAL
3038 case "x$ac_cv_prog_cc_c89" in
3039 x)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3041 $as_echo "none needed" >&6; } ;;
3042 xno)
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3044 $as_echo "unsupported" >&6; } ;;
3045 *)
3046 CC="$CC $ac_cv_prog_cc_c89"
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3048 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3049 esac
3050 if test "x$ac_cv_prog_cc_c89" != xno; then :
3051
3052 fi
3053
3054 ac_ext=c
3055 ac_cpp='$CPP $CPPFLAGS'
3056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3059
3060
3061 # Check whether --enable-largefile was given.
3062 if test "${enable_largefile+set}" = set; then :
3063 enableval=$enable_largefile;
3064 fi
3065
3066 if test "$enable_largefile" != no; then
3067
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3069 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3070 if ${ac_cv_sys_largefile_CC+:} false; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 ac_cv_sys_largefile_CC=no
3074 if test "$GCC" != yes; then
3075 ac_save_CC=$CC
3076 while :; do
3077 # IRIX 6.2 and later do not support large files by default,
3078 # so use the C compiler's -n32 option if that helps.
3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h. */
3081 #include <sys/types.h>
3082 /* Check that off_t can represent 2**63 - 1 correctly.
3083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3084 since some C++ compilers masquerading as C compilers
3085 incorrectly reject 9223372036854775807. */
3086 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3088 && LARGE_OFF_T % 2147483647 == 1)
3089 ? 1 : -1];
3090 int
3091 main ()
3092 {
3093
3094 ;
3095 return 0;
3096 }
3097 _ACEOF
3098 if ac_fn_c_try_compile "$LINENO"; then :
3099 break
3100 fi
3101 rm -f core conftest.err conftest.$ac_objext
3102 CC="$CC -n32"
3103 if ac_fn_c_try_compile "$LINENO"; then :
3104 ac_cv_sys_largefile_CC=' -n32'; break
3105 fi
3106 rm -f core conftest.err conftest.$ac_objext
3107 break
3108 done
3109 CC=$ac_save_CC
3110 rm -f conftest.$ac_ext
3111 fi
3112 fi
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3114 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3115 if test "$ac_cv_sys_largefile_CC" != no; then
3116 CC=$CC$ac_cv_sys_largefile_CC
3117 fi
3118
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3120 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3121 if ${ac_cv_sys_file_offset_bits+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 while :; do
3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126 /* end confdefs.h. */
3127 #include <sys/types.h>
3128 /* Check that off_t can represent 2**63 - 1 correctly.
3129 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3130 since some C++ compilers masquerading as C compilers
3131 incorrectly reject 9223372036854775807. */
3132 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3134 && LARGE_OFF_T % 2147483647 == 1)
3135 ? 1 : -1];
3136 int
3137 main ()
3138 {
3139
3140 ;
3141 return 0;
3142 }
3143 _ACEOF
3144 if ac_fn_c_try_compile "$LINENO"; then :
3145 ac_cv_sys_file_offset_bits=no; break
3146 fi
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149 /* end confdefs.h. */
3150 #define _FILE_OFFSET_BITS 64
3151 #include <sys/types.h>
3152 /* Check that off_t can represent 2**63 - 1 correctly.
3153 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3154 since some C++ compilers masquerading as C compilers
3155 incorrectly reject 9223372036854775807. */
3156 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3158 && LARGE_OFF_T % 2147483647 == 1)
3159 ? 1 : -1];
3160 int
3161 main ()
3162 {
3163
3164 ;
3165 return 0;
3166 }
3167 _ACEOF
3168 if ac_fn_c_try_compile "$LINENO"; then :
3169 ac_cv_sys_file_offset_bits=64; break
3170 fi
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 ac_cv_sys_file_offset_bits=unknown
3173 break
3174 done
3175 fi
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3177 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3178 case $ac_cv_sys_file_offset_bits in #(
3179 no | unknown) ;;
3180 *)
3181 cat >>confdefs.h <<_ACEOF
3182 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3183 _ACEOF
3184 ;;
3185 esac
3186 rm -rf conftest*
3187 if test $ac_cv_sys_file_offset_bits = unknown; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3189 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3190 if ${ac_cv_sys_large_files+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 while :; do
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3196 #include <sys/types.h>
3197 /* Check that off_t can represent 2**63 - 1 correctly.
3198 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3199 since some C++ compilers masquerading as C compilers
3200 incorrectly reject 9223372036854775807. */
3201 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3202 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3203 && LARGE_OFF_T % 2147483647 == 1)
3204 ? 1 : -1];
3205 int
3206 main ()
3207 {
3208
3209 ;
3210 return 0;
3211 }
3212 _ACEOF
3213 if ac_fn_c_try_compile "$LINENO"; then :
3214 ac_cv_sys_large_files=no; break
3215 fi
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3219 #define _LARGE_FILES 1
3220 #include <sys/types.h>
3221 /* Check that off_t can represent 2**63 - 1 correctly.
3222 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3223 since some C++ compilers masquerading as C compilers
3224 incorrectly reject 9223372036854775807. */
3225 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3227 && LARGE_OFF_T % 2147483647 == 1)
3228 ? 1 : -1];
3229 int
3230 main ()
3231 {
3232
3233 ;
3234 return 0;
3235 }
3236 _ACEOF
3237 if ac_fn_c_try_compile "$LINENO"; then :
3238 ac_cv_sys_large_files=1; break
3239 fi
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_sys_large_files=unknown
3242 break
3243 done
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3246 $as_echo "$ac_cv_sys_large_files" >&6; }
3247 case $ac_cv_sys_large_files in #(
3248 no | unknown) ;;
3249 *)
3250 cat >>confdefs.h <<_ACEOF
3251 #define _LARGE_FILES $ac_cv_sys_large_files
3252 _ACEOF
3253 ;;
3254 esac
3255 rm -rf conftest*
3256 fi
3257 fi
3258
3259
3260 # Initialize Automake
3261 am__api_version='1.11'
3262
3263 # Find a good install program. We prefer a C program (faster),
3264 # so one script is as good as another. But avoid the broken or
3265 # incompatible versions:
3266 # SysV /etc/install, /usr/sbin/install
3267 # SunOS /usr/etc/install
3268 # IRIX /sbin/install
3269 # AIX /bin/install
3270 # AmigaOS /C/install, which installs bootblocks on floppy discs
3271 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3272 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3273 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3274 # OS/2's system install, which has a completely different semantic
3275 # ./install, which can be erroneously created by make from ./install.sh.
3276 # Reject install programs that cannot install multiple files.
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3278 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3279 if test -z "$INSTALL"; then
3280 if ${ac_cv_path_install+:} false; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 # Account for people who put trailing slashes in PATH elements.
3289 case $as_dir/ in #((
3290 ./ | .// | /[cC]/* | \
3291 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3292 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3293 /usr/ucb/* ) ;;
3294 *)
3295 # OSF1 and SCO ODT 3.0 have their own names for install.
3296 # Don't use installbsd from OSF since it installs stuff as root
3297 # by default.
3298 for ac_prog in ginstall scoinst install; do
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3301 if test $ac_prog = install &&
3302 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303 # AIX install. It has an incompatible calling convention.
3304 :
3305 elif test $ac_prog = install &&
3306 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3307 # program-specific install script used by HP pwplus--don't use.
3308 :
3309 else
3310 rm -rf conftest.one conftest.two conftest.dir
3311 echo one > conftest.one
3312 echo two > conftest.two
3313 mkdir conftest.dir
3314 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3315 test -s conftest.one && test -s conftest.two &&
3316 test -s conftest.dir/conftest.one &&
3317 test -s conftest.dir/conftest.two
3318 then
3319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3320 break 3
3321 fi
3322 fi
3323 fi
3324 done
3325 done
3326 ;;
3327 esac
3328
3329 done
3330 IFS=$as_save_IFS
3331
3332 rm -rf conftest.one conftest.two conftest.dir
3333
3334 fi
3335 if test "${ac_cv_path_install+set}" = set; then
3336 INSTALL=$ac_cv_path_install
3337 else
3338 # As a last resort, use the slow shell script. Don't cache a
3339 # value for INSTALL within a source directory, because that will
3340 # break other packages using the cache if that directory is
3341 # removed, or if the value is a relative name.
3342 INSTALL=$ac_install_sh
3343 fi
3344 fi
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3346 $as_echo "$INSTALL" >&6; }
3347
3348 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3349 # It thinks the first close brace ends the variable substitution.
3350 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3351
3352 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3353
3354 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3355
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3357 $as_echo_n "checking whether build environment is sane... " >&6; }
3358 # Just in case
3359 sleep 1
3360 echo timestamp > conftest.file
3361 # Reject unsafe characters in $srcdir or the absolute working directory
3362 # name. Accept space and tab only in the latter.
3363 am_lf='
3364 '
3365 case `pwd` in
3366 *[\\\"\#\$\&\'\`$am_lf]*)
3367 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3368 esac
3369 case $srcdir in
3370 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3371 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3372 esac
3373
3374 # Do `set' in a subshell so we don't clobber the current shell's
3375 # arguments. Must try -L first in case configure is actually a
3376 # symlink; some systems play weird games with the mod time of symlinks
3377 # (eg FreeBSD returns the mod time of the symlink's containing
3378 # directory).
3379 if (
3380 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3381 if test "$*" = "X"; then
3382 # -L didn't work.
3383 set X `ls -t "$srcdir/configure" conftest.file`
3384 fi
3385 rm -f conftest.file
3386 if test "$*" != "X $srcdir/configure conftest.file" \
3387 && test "$*" != "X conftest.file $srcdir/configure"; then
3388
3389 # If neither matched, then we have a broken ls. This can happen
3390 # if, for instance, CONFIG_SHELL is bash and it inherits a
3391 # broken ls alias from the environment. This has actually
3392 # happened. Such a system could not be considered "sane".
3393 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3394 alias in your environment" "$LINENO" 5
3395 fi
3396
3397 test "$2" = conftest.file
3398 )
3399 then
3400 # Ok.
3401 :
3402 else
3403 as_fn_error $? "newly created file is older than distributed files!
3404 Check your system clock" "$LINENO" 5
3405 fi
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3407 $as_echo "yes" >&6; }
3408 test "$program_prefix" != NONE &&
3409 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3410 # Use a double $ so make ignores it.
3411 test "$program_suffix" != NONE &&
3412 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3413 # Double any \ or $.
3414 # By default was `s,x,x', remove it if useless.
3415 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3416 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3417
3418 # expand $ac_aux_dir to an absolute path
3419 am_aux_dir=`cd $ac_aux_dir && pwd`
3420
3421 if test x"${MISSING+set}" != xset; then
3422 case $am_aux_dir in
3423 *\ * | *\ *)
3424 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3425 *)
3426 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3427 esac
3428 fi
3429 # Use eval to expand $SHELL
3430 if eval "$MISSING --run true"; then
3431 am_missing_run="$MISSING --run "
3432 else
3433 am_missing_run=
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3435 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3436 fi
3437
3438 if test x"${install_sh}" != xset; then
3439 case $am_aux_dir in
3440 *\ * | *\ *)
3441 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3442 *)
3443 install_sh="\${SHELL} $am_aux_dir/install-sh"
3444 esac
3445 fi
3446
3447 # Installed binaries are usually stripped using `strip' when the user
3448 # run `make install-strip'. However `strip' might not be the right
3449 # tool to use in cross-compilation environments, therefore Automake
3450 # will honor the `STRIP' environment variable to overrule this program.
3451 if test "$cross_compiling" != no; then
3452 if test -n "$ac_tool_prefix"; then
3453 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3454 set dummy ${ac_tool_prefix}strip; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if ${ac_cv_prog_STRIP+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 if test -n "$STRIP"; then
3461 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3465 do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3473 fi
3474 done
3475 done
3476 IFS=$as_save_IFS
3477
3478 fi
3479 fi
3480 STRIP=$ac_cv_prog_STRIP
3481 if test -n "$STRIP"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3483 $as_echo "$STRIP" >&6; }
3484 else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3487 fi
3488
3489
3490 fi
3491 if test -z "$ac_cv_prog_STRIP"; then
3492 ac_ct_STRIP=$STRIP
3493 # Extract the first word of "strip", so it can be a program name with args.
3494 set dummy strip; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 if test -n "$ac_ct_STRIP"; then
3501 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_ac_ct_STRIP="strip"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514 done
3515 done
3516 IFS=$as_save_IFS
3517
3518 fi
3519 fi
3520 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3521 if test -n "$ac_ct_STRIP"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3523 $as_echo "$ac_ct_STRIP" >&6; }
3524 else
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 fi
3528
3529 if test "x$ac_ct_STRIP" = x; then
3530 STRIP=":"
3531 else
3532 case $cross_compiling:$ac_tool_warned in
3533 yes:)
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3536 ac_tool_warned=yes ;;
3537 esac
3538 STRIP=$ac_ct_STRIP
3539 fi
3540 else
3541 STRIP="$ac_cv_prog_STRIP"
3542 fi
3543
3544 fi
3545 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3546
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3548 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3549 if test -z "$MKDIR_P"; then
3550 if ${ac_cv_path_mkdir+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3555 do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_prog in mkdir gmkdir; do
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3561 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3562 'mkdir (GNU coreutils) '* | \
3563 'mkdir (coreutils) '* | \
3564 'mkdir (fileutils) '4.1*)
3565 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3566 break 3;;
3567 esac
3568 done
3569 done
3570 done
3571 IFS=$as_save_IFS
3572
3573 fi
3574
3575 test -d ./--version && rmdir ./--version
3576 if test "${ac_cv_path_mkdir+set}" = set; then
3577 MKDIR_P="$ac_cv_path_mkdir -p"
3578 else
3579 # As a last resort, use the slow shell script. Don't cache a
3580 # value for MKDIR_P within a source directory, because that will
3581 # break other packages using the cache if that directory is
3582 # removed, or if the value is a relative name.
3583 MKDIR_P="$ac_install_sh -d"
3584 fi
3585 fi
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3587 $as_echo "$MKDIR_P" >&6; }
3588
3589 mkdir_p="$MKDIR_P"
3590 case $mkdir_p in
3591 [\\/$]* | ?:[\\/]*) ;;
3592 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3593 esac
3594
3595 for ac_prog in gawk mawk nawk awk
3596 do
3597 # Extract the first word of "$ac_prog", so it can be a program name with args.
3598 set dummy $ac_prog; ac_word=$2
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 $as_echo_n "checking for $ac_word... " >&6; }
3601 if ${ac_cv_prog_AWK+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 if test -n "$AWK"; then
3605 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3606 else
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3609 do
3610 IFS=$as_save_IFS
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3614 ac_cv_prog_AWK="$ac_prog"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3617 fi
3618 done
3619 done
3620 IFS=$as_save_IFS
3621
3622 fi
3623 fi
3624 AWK=$ac_cv_prog_AWK
3625 if test -n "$AWK"; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3627 $as_echo "$AWK" >&6; }
3628 else
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3631 fi
3632
3633
3634 test -n "$AWK" && break
3635 done
3636
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3638 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3639 set x ${MAKE-make}
3640 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3641 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 cat >conftest.make <<\_ACEOF
3645 SHELL = /bin/sh
3646 all:
3647 @echo '@@@%%%=$(MAKE)=@@@%%%'
3648 _ACEOF
3649 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3650 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3651 *@@@%%%=?*=@@@%%%*)
3652 eval ac_cv_prog_make_${ac_make}_set=yes;;
3653 *)
3654 eval ac_cv_prog_make_${ac_make}_set=no;;
3655 esac
3656 rm -f conftest.make
3657 fi
3658 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660 $as_echo "yes" >&6; }
3661 SET_MAKE=
3662 else
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3665 SET_MAKE="MAKE=${MAKE-make}"
3666 fi
3667
3668 rm -rf .tst 2>/dev/null
3669 mkdir .tst 2>/dev/null
3670 if test -d .tst; then
3671 am__leading_dot=.
3672 else
3673 am__leading_dot=_
3674 fi
3675 rmdir .tst 2>/dev/null
3676
3677 DEPDIR="${am__leading_dot}deps"
3678
3679 ac_config_commands="$ac_config_commands depfiles"
3680
3681
3682 am_make=${MAKE-make}
3683 cat > confinc << 'END'
3684 am__doit:
3685 @echo this is the am__doit target
3686 .PHONY: am__doit
3687 END
3688 # If we don't find an include directive, just comment out the code.
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3690 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3691 am__include="#"
3692 am__quote=
3693 _am_result=none
3694 # First try GNU make style include.
3695 echo "include confinc" > confmf
3696 # Ignore all kinds of additional output from `make'.
3697 case `$am_make -s -f confmf 2> /dev/null` in #(
3698 *the\ am__doit\ target*)
3699 am__include=include
3700 am__quote=
3701 _am_result=GNU
3702 ;;
3703 esac
3704 # Now try BSD make style include.
3705 if test "$am__include" = "#"; then
3706 echo '.include "confinc"' > confmf
3707 case `$am_make -s -f confmf 2> /dev/null` in #(
3708 *the\ am__doit\ target*)
3709 am__include=.include
3710 am__quote="\""
3711 _am_result=BSD
3712 ;;
3713 esac
3714 fi
3715
3716
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3718 $as_echo "$_am_result" >&6; }
3719 rm -f confinc confmf
3720
3721 # Check whether --enable-dependency-tracking was given.
3722 if test "${enable_dependency_tracking+set}" = set; then :
3723 enableval=$enable_dependency_tracking;
3724 fi
3725
3726 if test "x$enable_dependency_tracking" != xno; then
3727 am_depcomp="$ac_aux_dir/depcomp"
3728 AMDEPBACKSLASH='\'
3729 am__nodep='_no'
3730 fi
3731 if test "x$enable_dependency_tracking" != xno; then
3732 AMDEP_TRUE=
3733 AMDEP_FALSE='#'
3734 else
3735 AMDEP_TRUE='#'
3736 AMDEP_FALSE=
3737 fi
3738
3739
3740 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3741 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3742 # is not polluted with repeated "-I."
3743 am__isrc=' -I$(srcdir)'
3744 # test to see if srcdir already configured
3745 if test -f $srcdir/config.status; then
3746 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3747 fi
3748 fi
3749
3750 # test whether we have cygpath
3751 if test -z "$CYGPATH_W"; then
3752 if (cygpath --version) >/dev/null 2>/dev/null; then
3753 CYGPATH_W='cygpath -w'
3754 else
3755 CYGPATH_W=echo
3756 fi
3757 fi
3758
3759
3760 # Define the identity of the package.
3761 PACKAGE='xf86-video-vmware'
3762 VERSION='13.0.2'
3763
3764
3765 cat >>confdefs.h <<_ACEOF
3766 #define PACKAGE "$PACKAGE"
3767 _ACEOF
3768
3769
3770 cat >>confdefs.h <<_ACEOF
3771 #define VERSION "$VERSION"
3772 _ACEOF
3773
3774 # Some tools Automake needs.
3775
3776 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3777
3778
3779 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3780
3781
3782 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3783
3784
3785 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3786
3787
3788 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3789
3790 # We need awk for the "check" target. The system "awk" is bad on
3791 # some platforms.
3792 # Always define AMTAR for backward compatibility. Yes, it's still used
3793 # in the wild :-( We should find a proper way to deprecate it ...
3794 AMTAR='$${TAR-tar}'
3795
3796 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3797
3798
3799
3800
3801 depcc="$CC" am_compiler_list=
3802
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3804 $as_echo_n "checking dependency style of $depcc... " >&6; }
3805 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3806 $as_echo_n "(cached) " >&6
3807 else
3808 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3809 # We make a subdir and do the tests there. Otherwise we can end up
3810 # making bogus files that we don't know about and never remove. For
3811 # instance it was reported that on HP-UX the gcc test will end up
3812 # making a dummy file named `D' -- because `-MD' means `put the output
3813 # in D'.
3814 rm -rf conftest.dir
3815 mkdir conftest.dir
3816 # Copy depcomp to subdir because otherwise we won't find it if we're
3817 # using a relative directory.
3818 cp "$am_depcomp" conftest.dir
3819 cd conftest.dir
3820 # We will build objects and dependencies in a subdirectory because
3821 # it helps to detect inapplicable dependency modes. For instance
3822 # both Tru64's cc and ICC support -MD to output dependencies as a
3823 # side effect of compilation, but ICC will put the dependencies in
3824 # the current directory while Tru64 will put them in the object
3825 # directory.
3826 mkdir sub
3827
3828 am_cv_CC_dependencies_compiler_type=none
3829 if test "$am_compiler_list" = ""; then
3830 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3831 fi
3832 am__universal=false
3833 case " $depcc " in #(
3834 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3835 esac
3836
3837 for depmode in $am_compiler_list; do
3838 # Setup a source with many dependencies, because some compilers
3839 # like to wrap large dependency lists on column 80 (with \), and
3840 # we should not choose a depcomp mode which is confused by this.
3841 #
3842 # We need to recreate these files for each test, as the compiler may
3843 # overwrite some of them when testing with obscure command lines.
3844 # This happens at least with the AIX C compiler.
3845 : > sub/conftest.c
3846 for i in 1 2 3 4 5 6; do
3847 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3848 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3849 # Solaris 8's {/usr,}/bin/sh.
3850 touch sub/conftst$i.h
3851 done
3852 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3853
3854 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3855 # mode. It turns out that the SunPro C++ compiler does not properly
3856 # handle `-M -o', and we need to detect this. Also, some Intel
3857 # versions had trouble with output in subdirs
3858 am__obj=sub/conftest.${OBJEXT-o}
3859 am__minus_obj="-o $am__obj"
3860 case $depmode in
3861 gcc)
3862 # This depmode causes a compiler race in universal mode.
3863 test "$am__universal" = false || continue
3864 ;;
3865 nosideeffect)
3866 # after this tag, mechanisms are not by side-effect, so they'll
3867 # only be used when explicitly requested
3868 if test "x$enable_dependency_tracking" = xyes; then
3869 continue
3870 else
3871 break
3872 fi
3873 ;;
3874 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3875 # This compiler won't grok `-c -o', but also, the minuso test has
3876 # not run yet. These depmodes are late enough in the game, and
3877 # so weak that their functioning should not be impacted.
3878 am__obj=conftest.${OBJEXT-o}
3879 am__minus_obj=
3880 ;;
3881 none) break ;;
3882 esac
3883 if depmode=$depmode \
3884 source=sub/conftest.c object=$am__obj \
3885 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3886 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3887 >/dev/null 2>conftest.err &&
3888 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3889 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3890 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3891 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3892 # icc doesn't choke on unknown options, it will just issue warnings
3893 # or remarks (even with -Werror). So we grep stderr for any message
3894 # that says an option was ignored or not supported.
3895 # When given -MP, icc 7.0 and 7.1 complain thusly:
3896 # icc: Command line warning: ignoring option '-M'; no argument required
3897 # The diagnosis changed in icc 8.0:
3898 # icc: Command line remark: option '-MP' not supported
3899 if (grep 'ignoring option' conftest.err ||
3900 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3901 am_cv_CC_dependencies_compiler_type=$depmode
3902 break
3903 fi
3904 fi
3905 done
3906
3907 cd ..
3908 rm -rf conftest.dir
3909 else
3910 am_cv_CC_dependencies_compiler_type=none
3911 fi
3912
3913 fi
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3915 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3916 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3917
3918 if
3919 test "x$enable_dependency_tracking" != xno \
3920 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3921 am__fastdepCC_TRUE=
3922 am__fastdepCC_FALSE='#'
3923 else
3924 am__fastdepCC_TRUE='#'
3925 am__fastdepCC_FALSE=
3926 fi
3927
3928
3929
3930
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3932 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3933 # Check whether --enable-maintainer-mode was given.
3934 if test "${enable_maintainer_mode+set}" = set; then :
3935 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3936 else
3937 USE_MAINTAINER_MODE=no
3938 fi
3939
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3941 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3942 if test $USE_MAINTAINER_MODE = yes; then
3943 MAINTAINER_MODE_TRUE=
3944 MAINTAINER_MODE_FALSE='#'
3945 else
3946 MAINTAINER_MODE_TRUE='#'
3947 MAINTAINER_MODE_FALSE=
3948 fi
3949
3950 MAINT=$MAINTAINER_MODE_TRUE
3951
3952
3953
3954 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3967 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3968 if ${ac_cv_prog_cc_c99+:} false; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 ac_cv_prog_cc_c99=no
3972 ac_save_CC=$CC
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975 #include <stdarg.h>
3976 #include <stdbool.h>
3977 #include <stdlib.h>
3978 #include <wchar.h>
3979 #include <stdio.h>
3980
3981 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3982 #define debug(...) fprintf (stderr, __VA_ARGS__)
3983 #define showlist(...) puts (#__VA_ARGS__)
3984 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3985 static void
3986 test_varargs_macros (void)
3987 {
3988 int x = 1234;
3989 int y = 5678;
3990 debug ("Flag");
3991 debug ("X = %d\n", x);
3992 showlist (The first, second, and third items.);
3993 report (x>y, "x is %d but y is %d", x, y);
3994 }
3995
3996 // Check long long types.
3997 #define BIG64 18446744073709551615ull
3998 #define BIG32 4294967295ul
3999 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4000 #if !BIG_OK
4001 your preprocessor is broken;
4002 #endif
4003 #if BIG_OK
4004 #else
4005 your preprocessor is broken;
4006 #endif
4007 static long long int bignum = -9223372036854775807LL;
4008 static unsigned long long int ubignum = BIG64;
4009
4010 struct incomplete_array
4011 {
4012 int datasize;
4013 double data[];
4014 };
4015
4016 struct named_init {
4017 int number;
4018 const wchar_t *name;
4019 double average;
4020 };
4021
4022 typedef const char *ccp;
4023
4024 static inline int
4025 test_restrict (ccp restrict text)
4026 {
4027 // See if C++-style comments work.
4028 // Iterate through items via the restricted pointer.
4029 // Also check for declarations in for loops.
4030 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4031 continue;
4032 return 0;
4033 }
4034
4035 // Check varargs and va_copy.
4036 static void
4037 test_varargs (const char *format, ...)
4038 {
4039 va_list args;
4040 va_start (args, format);
4041 va_list args_copy;
4042 va_copy (args_copy, args);
4043
4044 const char *str;
4045 int number;
4046 float fnumber;
4047
4048 while (*format)
4049 {
4050 switch (*format++)
4051 {
4052 case 's': // string
4053 str = va_arg (args_copy, const char *);
4054 break;
4055 case 'd': // int
4056 number = va_arg (args_copy, int);
4057 break;
4058 case 'f': // float
4059 fnumber = va_arg (args_copy, double);
4060 break;
4061 default:
4062 break;
4063 }
4064 }
4065 va_end (args_copy);
4066 va_end (args);
4067 }
4068
4069 int
4070 main ()
4071 {
4072
4073 // Check bool.
4074 _Bool success = false;
4075
4076 // Check restrict.
4077 if (test_restrict ("String literal") == 0)
4078 success = true;
4079 char *restrict newvar = "Another string";
4080
4081 // Check varargs.
4082 test_varargs ("s, d' f .", "string", 65, 34.234);
4083 test_varargs_macros ();
4084
4085 // Check flexible array members.
4086 struct incomplete_array *ia =
4087 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4088 ia->datasize = 10;
4089 for (int i = 0; i < ia->datasize; ++i)
4090 ia->data[i] = i * 1.234;
4091
4092 // Check named initializers.
4093 struct named_init ni = {
4094 .number = 34,
4095 .name = L"Test wide string",
4096 .average = 543.34343,
4097 };
4098
4099 ni.number = 58;
4100
4101 int dynamic_array[ni.number];
4102 dynamic_array[ni.number - 1] = 543;
4103
4104 // work around unused variable warnings
4105 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4106 || dynamic_array[ni.number - 1] != 543);
4107
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4113 do
4114 CC="$ac_save_CC $ac_arg"
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_cv_prog_cc_c99=$ac_arg
4117 fi
4118 rm -f core conftest.err conftest.$ac_objext
4119 test "x$ac_cv_prog_cc_c99" != "xno" && break
4120 done
4121 rm -f conftest.$ac_ext
4122 CC=$ac_save_CC
4123
4124 fi
4125 # AC_CACHE_VAL
4126 case "x$ac_cv_prog_cc_c99" in
4127 x)
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4129 $as_echo "none needed" >&6; } ;;
4130 xno)
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4132 $as_echo "unsupported" >&6; } ;;
4133 *)
4134 CC="$CC $ac_cv_prog_cc_c99"
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4136 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4137 esac
4138 if test "x$ac_cv_prog_cc_c99" != xno; then :
4139
4140 fi
4141
4142
4143 ac_ext=c
4144 ac_cpp='$CPP $CPPFLAGS'
4145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4149 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4150 # On Suns, sometimes $CPP names a directory.
4151 if test -n "$CPP" && test -d "$CPP"; then
4152 CPP=
4153 fi
4154 if test -z "$CPP"; then
4155 if ${ac_cv_prog_CPP+:} false; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 # Double quotes because CPP needs to be expanded
4159 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4160 do
4161 ac_preproc_ok=false
4162 for ac_c_preproc_warn_flag in '' yes
4163 do
4164 # Use a header file that comes with gcc, so configuring glibc
4165 # with a fresh cross-compiler works.
4166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4167 # <limits.h> exists even on freestanding compilers.
4168 # On the NeXT, cc -E runs the code through the compiler's parser,
4169 # not just through cpp. "Syntax error" is here to catch this case.
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 #ifdef __STDC__
4173 # include <limits.h>
4174 #else
4175 # include <assert.h>
4176 #endif
4177 Syntax error
4178 _ACEOF
4179 if ac_fn_c_try_cpp "$LINENO"; then :
4180
4181 else
4182 # Broken: fails on valid input.
4183 continue
4184 fi
4185 rm -f conftest.err conftest.i conftest.$ac_ext
4186
4187 # OK, works on sane cases. Now check whether nonexistent headers
4188 # can be detected and how.
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #include <ac_nonexistent.h>
4192 _ACEOF
4193 if ac_fn_c_try_cpp "$LINENO"; then :
4194 # Broken: success on invalid input.
4195 continue
4196 else
4197 # Passes both tests.
4198 ac_preproc_ok=:
4199 break
4200 fi
4201 rm -f conftest.err conftest.i conftest.$ac_ext
4202
4203 done
4204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4205 rm -f conftest.i conftest.err conftest.$ac_ext
4206 if $ac_preproc_ok; then :
4207 break
4208 fi
4209
4210 done
4211 ac_cv_prog_CPP=$CPP
4212
4213 fi
4214 CPP=$ac_cv_prog_CPP
4215 else
4216 ac_cv_prog_CPP=$CPP
4217 fi
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4219 $as_echo "$CPP" >&6; }
4220 ac_preproc_ok=false
4221 for ac_c_preproc_warn_flag in '' yes
4222 do
4223 # Use a header file that comes with gcc, so configuring glibc
4224 # with a fresh cross-compiler works.
4225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226 # <limits.h> exists even on freestanding compilers.
4227 # On the NeXT, cc -E runs the code through the compiler's parser,
4228 # not just through cpp. "Syntax error" is here to catch this case.
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231 #ifdef __STDC__
4232 # include <limits.h>
4233 #else
4234 # include <assert.h>
4235 #endif
4236 Syntax error
4237 _ACEOF
4238 if ac_fn_c_try_cpp "$LINENO"; then :
4239
4240 else
4241 # Broken: fails on valid input.
4242 continue
4243 fi
4244 rm -f conftest.err conftest.i conftest.$ac_ext
4245
4246 # OK, works on sane cases. Now check whether nonexistent headers
4247 # can be detected and how.
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250 #include <ac_nonexistent.h>
4251 _ACEOF
4252 if ac_fn_c_try_cpp "$LINENO"; then :
4253 # Broken: success on invalid input.
4254 continue
4255 else
4256 # Passes both tests.
4257 ac_preproc_ok=:
4258 break
4259 fi
4260 rm -f conftest.err conftest.i conftest.$ac_ext
4261
4262 done
4263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4264 rm -f conftest.i conftest.err conftest.$ac_ext
4265 if $ac_preproc_ok; then :
4266
4267 else
4268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4270 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4271 See \`config.log' for more details" "$LINENO" 5; }
4272 fi
4273
4274 ac_ext=c
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279
4280
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4282 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4283 if ${ac_cv_path_GREP+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 if test -z "$GREP"; then
4287 ac_path_GREP_found=false
4288 # Loop through the user's path and test for each of PROGNAME-LIST
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4291 do
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_prog in grep ggrep; do
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4297 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4298 # Check for GNU ac_path_GREP and select it if it is found.
4299 # Check for GNU $ac_path_GREP
4300 case `"$ac_path_GREP" --version 2>&1` in
4301 *GNU*)
4302 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4303 *)
4304 ac_count=0
4305 $as_echo_n 0123456789 >"conftest.in"
4306 while :
4307 do
4308 cat "conftest.in" "conftest.in" >"conftest.tmp"
4309 mv "conftest.tmp" "conftest.in"
4310 cp "conftest.in" "conftest.nl"
4311 $as_echo 'GREP' >> "conftest.nl"
4312 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4314 as_fn_arith $ac_count + 1 && ac_count=$as_val
4315 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4316 # Best one so far, save it but keep looking for a better one
4317 ac_cv_path_GREP="$ac_path_GREP"
4318 ac_path_GREP_max=$ac_count
4319 fi
4320 # 10*(2^10) chars as input seems more than enough
4321 test $ac_count -gt 10 && break
4322 done
4323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4324 esac
4325
4326 $ac_path_GREP_found && break 3
4327 done
4328 done
4329 done
4330 IFS=$as_save_IFS
4331 if test -z "$ac_cv_path_GREP"; then
4332 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4333 fi
4334 else
4335 ac_cv_path_GREP=$GREP
4336 fi
4337
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4340 $as_echo "$ac_cv_path_GREP" >&6; }
4341 GREP="$ac_cv_path_GREP"
4342
4343
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4345 $as_echo_n "checking for egrep... " >&6; }
4346 if ${ac_cv_path_EGREP+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4350 then ac_cv_path_EGREP="$GREP -E"
4351 else
4352 if test -z "$EGREP"; then
4353 ac_path_EGREP_found=false
4354 # Loop through the user's path and test for each of PROGNAME-LIST
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4357 do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_prog in egrep; do
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4363 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4364 # Check for GNU ac_path_EGREP and select it if it is found.
4365 # Check for GNU $ac_path_EGREP
4366 case `"$ac_path_EGREP" --version 2>&1` in
4367 *GNU*)
4368 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4369 *)
4370 ac_count=0
4371 $as_echo_n 0123456789 >"conftest.in"
4372 while :
4373 do
4374 cat "conftest.in" "conftest.in" >"conftest.tmp"
4375 mv "conftest.tmp" "conftest.in"
4376 cp "conftest.in" "conftest.nl"
4377 $as_echo 'EGREP' >> "conftest.nl"
4378 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4380 as_fn_arith $ac_count + 1 && ac_count=$as_val
4381 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4382 # Best one so far, save it but keep looking for a better one
4383 ac_cv_path_EGREP="$ac_path_EGREP"
4384 ac_path_EGREP_max=$ac_count
4385 fi
4386 # 10*(2^10) chars as input seems more than enough
4387 test $ac_count -gt 10 && break
4388 done
4389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4390 esac
4391
4392 $ac_path_EGREP_found && break 3
4393 done
4394 done
4395 done
4396 IFS=$as_save_IFS
4397 if test -z "$ac_cv_path_EGREP"; then
4398 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4399 fi
4400 else
4401 ac_cv_path_EGREP=$EGREP
4402 fi
4403
4404 fi
4405 fi
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4407 $as_echo "$ac_cv_path_EGREP" >&6; }
4408 EGREP="$ac_cv_path_EGREP"
4409
4410
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4412 $as_echo_n "checking for ANSI C header files... " >&6; }
4413 if ${ac_cv_header_stdc+:} false; then :
4414 $as_echo_n "(cached) " >&6
4415 else
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 #include <stdlib.h>
4419 #include <stdarg.h>
4420 #include <string.h>
4421 #include <float.h>
4422
4423 int
4424 main ()
4425 {
4426
4427 ;
4428 return 0;
4429 }
4430 _ACEOF
4431 if ac_fn_c_try_compile "$LINENO"; then :
4432 ac_cv_header_stdc=yes
4433 else
4434 ac_cv_header_stdc=no
4435 fi
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437
4438 if test $ac_cv_header_stdc = yes; then
4439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442 #include <string.h>
4443
4444 _ACEOF
4445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4446 $EGREP "memchr" >/dev/null 2>&1; then :
4447
4448 else
4449 ac_cv_header_stdc=no
4450 fi
4451 rm -f conftest*
4452
4453 fi
4454
4455 if test $ac_cv_header_stdc = yes; then
4456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 #include <stdlib.h>
4460
4461 _ACEOF
4462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4463 $EGREP "free" >/dev/null 2>&1; then :
4464
4465 else
4466 ac_cv_header_stdc=no
4467 fi
4468 rm -f conftest*
4469
4470 fi
4471
4472 if test $ac_cv_header_stdc = yes; then
4473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4474 if test "$cross_compiling" = yes; then :
4475 :
4476 else
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479 #include <ctype.h>
4480 #include <stdlib.h>
4481 #if ((' ' & 0x0FF) == 0x020)
4482 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4483 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4484 #else
4485 # define ISLOWER(c) \
4486 (('a' <= (c) && (c) <= 'i') \
4487 || ('j' <= (c) && (c) <= 'r') \
4488 || ('s' <= (c) && (c) <= 'z'))
4489 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4490 #endif
4491
4492 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4493 int
4494 main ()
4495 {
4496 int i;
4497 for (i = 0; i < 256; i++)
4498 if (XOR (islower (i), ISLOWER (i))
4499 || toupper (i) != TOUPPER (i))
4500 return 2;
4501 return 0;
4502 }
4503 _ACEOF
4504 if ac_fn_c_try_run "$LINENO"; then :
4505
4506 else
4507 ac_cv_header_stdc=no
4508 fi
4509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4510 conftest.$ac_objext conftest.beam conftest.$ac_ext
4511 fi
4512
4513 fi
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4516 $as_echo "$ac_cv_header_stdc" >&6; }
4517 if test $ac_cv_header_stdc = yes; then
4518
4519 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4520
4521 fi
4522
4523 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4524 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4525 inttypes.h stdint.h unistd.h
4526 do :
4527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4528 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4529 "
4530 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4531 cat >>confdefs.h <<_ACEOF
4532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4533 _ACEOF
4534
4535 fi
4536
4537 done
4538
4539
4540
4541
4542
4543
4544 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4545 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4546 CLANGCC="yes"
4547 else
4548 CLANGCC="no"
4549 fi
4550
4551 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4552 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4553 INTELCC="yes"
4554 else
4555 INTELCC="no"
4556 fi
4557
4558 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4559 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4560 SUNCC="yes"
4561 else
4562 SUNCC="no"
4563 fi
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4574 if test -n "$ac_tool_prefix"; then
4575 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4576 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 $as_echo_n "checking for $ac_word... " >&6; }
4579 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 case $PKG_CONFIG in
4583 [\\/]* | ?:[\\/]*)
4584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4585 ;;
4586 *)
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 break 2
4597 fi
4598 done
4599 done
4600 IFS=$as_save_IFS
4601
4602 ;;
4603 esac
4604 fi
4605 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4606 if test -n "$PKG_CONFIG"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4608 $as_echo "$PKG_CONFIG" >&6; }
4609 else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4612 fi
4613
4614
4615 fi
4616 if test -z "$ac_cv_path_PKG_CONFIG"; then
4617 ac_pt_PKG_CONFIG=$PKG_CONFIG
4618 # Extract the first word of "pkg-config", so it can be a program name with args.
4619 set dummy pkg-config; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 case $ac_pt_PKG_CONFIG in
4626 [\\/]* | ?:[\\/]*)
4627 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4628 ;;
4629 *)
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4640 fi
4641 done
4642 done
4643 IFS=$as_save_IFS
4644
4645 ;;
4646 esac
4647 fi
4648 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4649 if test -n "$ac_pt_PKG_CONFIG"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4651 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4652 else
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4655 fi
4656
4657 if test "x$ac_pt_PKG_CONFIG" = x; then
4658 PKG_CONFIG=""
4659 else
4660 case $cross_compiling:$ac_tool_warned in
4661 yes:)
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4664 ac_tool_warned=yes ;;
4665 esac
4666 PKG_CONFIG=$ac_pt_PKG_CONFIG
4667 fi
4668 else
4669 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4670 fi
4671
4672 fi
4673 if test -n "$PKG_CONFIG"; then
4674 _pkg_min_version=0.9.0
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4676 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4677 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4679 $as_echo "yes" >&6; }
4680 else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4683 PKG_CONFIG=""
4684 fi
4685 fi
4686 # Make sure we can run config.sub.
4687 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4688 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4689
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4691 $as_echo_n "checking build system type... " >&6; }
4692 if ${ac_cv_build+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 ac_build_alias=$build_alias
4696 test "x$ac_build_alias" = x &&
4697 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4698 test "x$ac_build_alias" = x &&
4699 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4700 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4701 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4702
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4705 $as_echo "$ac_cv_build" >&6; }
4706 case $ac_cv_build in
4707 *-*-*) ;;
4708 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4709 esac
4710 build=$ac_cv_build
4711 ac_save_IFS=$IFS; IFS='-'
4712 set x $ac_cv_build
4713 shift
4714 build_cpu=$1
4715 build_vendor=$2
4716 shift; shift
4717 # Remember, the first character of IFS is used to create $*,
4718 # except with old shells:
4719 build_os=$*
4720 IFS=$ac_save_IFS
4721 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4722
4723
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4725 $as_echo_n "checking host system type... " >&6; }
4726 if ${ac_cv_host+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 if test "x$host_alias" = x; then
4730 ac_cv_host=$ac_cv_build
4731 else
4732 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4733 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4734 fi
4735
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4738 $as_echo "$ac_cv_host" >&6; }
4739 case $ac_cv_host in
4740 *-*-*) ;;
4741 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4742 esac
4743 host=$ac_cv_host
4744 ac_save_IFS=$IFS; IFS='-'
4745 set x $ac_cv_host
4746 shift
4747 host_cpu=$1
4748 host_vendor=$2
4749 shift; shift
4750 # Remember, the first character of IFS is used to create $*,
4751 # except with old shells:
4752 host_os=$*
4753 IFS=$ac_save_IFS
4754 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4755
4756
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4758 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4759 if ${ac_cv_path_SED+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4763 for ac_i in 1 2 3 4 5 6 7; do
4764 ac_script="$ac_script$as_nl$ac_script"
4765 done
4766 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4767 { ac_script=; unset ac_script;}
4768 if test -z "$SED"; then
4769 ac_path_SED_found=false
4770 # Loop through the user's path and test for each of PROGNAME-LIST
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4773 do
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_prog in sed gsed; do
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4779 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4780 # Check for GNU ac_path_SED and select it if it is found.
4781 # Check for GNU $ac_path_SED
4782 case `"$ac_path_SED" --version 2>&1` in
4783 *GNU*)
4784 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4785 *)
4786 ac_count=0
4787 $as_echo_n 0123456789 >"conftest.in"
4788 while :
4789 do
4790 cat "conftest.in" "conftest.in" >"conftest.tmp"
4791 mv "conftest.tmp" "conftest.in"
4792 cp "conftest.in" "conftest.nl"
4793 $as_echo '' >> "conftest.nl"
4794 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4796 as_fn_arith $ac_count + 1 && ac_count=$as_val
4797 if test $ac_count -gt ${ac_path_SED_max-0}; then
4798 # Best one so far, save it but keep looking for a better one
4799 ac_cv_path_SED="$ac_path_SED"
4800 ac_path_SED_max=$ac_count
4801 fi
4802 # 10*(2^10) chars as input seems more than enough
4803 test $ac_count -gt 10 && break
4804 done
4805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4806 esac
4807
4808 $ac_path_SED_found && break 3
4809 done
4810 done
4811 done
4812 IFS=$as_save_IFS
4813 if test -z "$ac_cv_path_SED"; then
4814 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4815 fi
4816 else
4817 ac_cv_path_SED=$SED
4818 fi
4819
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4822 $as_echo "$ac_cv_path_SED" >&6; }
4823 SED="$ac_cv_path_SED"
4824 rm -f conftest.sed
4825
4826
4827
4828
4829
4830
4831 # Check whether --enable-selective-werror was given.
4832 if test "${enable_selective_werror+set}" = set; then :
4833 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4834 else
4835 SELECTIVE_WERROR=yes
4836 fi
4837
4838
4839
4840
4841
4842 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4843 if test "x$SUNCC" = "xyes"; then
4844 BASE_CFLAGS="-v"
4845 else
4846 BASE_CFLAGS=""
4847 fi
4848
4849 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863 xorg_testset_save_CFLAGS="$CFLAGS"
4864
4865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4868 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4869 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4874 int i;
4875 _ACEOF
4876 if ac_fn_c_try_compile "$LINENO"; then :
4877 xorg_cv_cc_flag_unknown_warning_option=yes
4878 else
4879 xorg_cv_cc_flag_unknown_warning_option=no
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4884 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4886 CFLAGS="$xorg_testset_save_CFLAGS"
4887 fi
4888
4889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4892 fi
4893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4895 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4896 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901 int i;
4902 _ACEOF
4903 if ac_fn_c_try_compile "$LINENO"; then :
4904 xorg_cv_cc_flag_unused_command_line_argument=yes
4905 else
4906 xorg_cv_cc_flag_unused_command_line_argument=no
4907 fi
4908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 fi
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4911 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4913 CFLAGS="$xorg_testset_save_CFLAGS"
4914 fi
4915
4916 found="no"
4917
4918 if test $found = "no" ; then
4919 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4921 fi
4922
4923 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4925 fi
4926
4927 CFLAGS="$CFLAGS -Wall"
4928
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4930 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4931 cacheid=xorg_cv_cc_flag__Wall
4932 if eval \${$cacheid+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 /* end confdefs.h. */
4937 int i;
4938 int
4939 main ()
4940 {
4941
4942 ;
4943 return 0;
4944 }
4945 _ACEOF
4946 if ac_fn_c_try_link "$LINENO"; then :
4947 eval $cacheid=yes
4948 else
4949 eval $cacheid=no
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext \
4952 conftest$ac_exeext conftest.$ac_ext
4953 fi
4954
4955
4956 CFLAGS="$xorg_testset_save_CFLAGS"
4957
4958 eval supported=\$$cacheid
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4960 $as_echo "$supported" >&6; }
4961 if test "$supported" = "yes" ; then
4962 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4963 found="yes"
4964 fi
4965 fi
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981 xorg_testset_save_CFLAGS="$CFLAGS"
4982
4983 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4986 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4987 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 int i;
4993 _ACEOF
4994 if ac_fn_c_try_compile "$LINENO"; then :
4995 xorg_cv_cc_flag_unknown_warning_option=yes
4996 else
4997 xorg_cv_cc_flag_unknown_warning_option=no
4998 fi
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 fi
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5002 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5004 CFLAGS="$xorg_testset_save_CFLAGS"
5005 fi
5006
5007 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5010 fi
5011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5013 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5014 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5019 int i;
5020 _ACEOF
5021 if ac_fn_c_try_compile "$LINENO"; then :
5022 xorg_cv_cc_flag_unused_command_line_argument=yes
5023 else
5024 xorg_cv_cc_flag_unused_command_line_argument=no
5025 fi
5026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5029 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5031 CFLAGS="$xorg_testset_save_CFLAGS"
5032 fi
5033
5034 found="no"
5035
5036 if test $found = "no" ; then
5037 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5039 fi
5040
5041 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5043 fi
5044
5045 CFLAGS="$CFLAGS -Wpointer-arith"
5046
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
5048 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
5049 cacheid=xorg_cv_cc_flag__Wpointer_arith
5050 if eval \${$cacheid+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5055 int i;
5056 int
5057 main ()
5058 {
5059
5060 ;
5061 return 0;
5062 }
5063 _ACEOF
5064 if ac_fn_c_try_link "$LINENO"; then :
5065 eval $cacheid=yes
5066 else
5067 eval $cacheid=no
5068 fi
5069 rm -f core conftest.err conftest.$ac_objext \
5070 conftest$ac_exeext conftest.$ac_ext
5071 fi
5072
5073
5074 CFLAGS="$xorg_testset_save_CFLAGS"
5075
5076 eval supported=\$$cacheid
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5078 $as_echo "$supported" >&6; }
5079 if test "$supported" = "yes" ; then
5080 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5081 found="yes"
5082 fi
5083 fi
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099 xorg_testset_save_CFLAGS="$CFLAGS"
5100
5101 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5104 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5105 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5110 int i;
5111 _ACEOF
5112 if ac_fn_c_try_compile "$LINENO"; then :
5113 xorg_cv_cc_flag_unknown_warning_option=yes
5114 else
5115 xorg_cv_cc_flag_unknown_warning_option=no
5116 fi
5117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 fi
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5120 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5122 CFLAGS="$xorg_testset_save_CFLAGS"
5123 fi
5124
5125 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5128 fi
5129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5131 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5132 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 int i;
5138 _ACEOF
5139 if ac_fn_c_try_compile "$LINENO"; then :
5140 xorg_cv_cc_flag_unused_command_line_argument=yes
5141 else
5142 xorg_cv_cc_flag_unused_command_line_argument=no
5143 fi
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145 fi
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5147 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5149 CFLAGS="$xorg_testset_save_CFLAGS"
5150 fi
5151
5152 found="no"
5153
5154 if test $found = "no" ; then
5155 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5157 fi
5158
5159 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5161 fi
5162
5163 CFLAGS="$CFLAGS -Wmissing-declarations"
5164
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
5166 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
5167 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5168 if eval \${$cacheid+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173 int i;
5174 int
5175 main ()
5176 {
5177
5178 ;
5179 return 0;
5180 }
5181 _ACEOF
5182 if ac_fn_c_try_link "$LINENO"; then :
5183 eval $cacheid=yes
5184 else
5185 eval $cacheid=no
5186 fi
5187 rm -f core conftest.err conftest.$ac_objext \
5188 conftest$ac_exeext conftest.$ac_ext
5189 fi
5190
5191
5192 CFLAGS="$xorg_testset_save_CFLAGS"
5193
5194 eval supported=\$$cacheid
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5196 $as_echo "$supported" >&6; }
5197 if test "$supported" = "yes" ; then
5198 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5199 found="yes"
5200 fi
5201 fi
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217 xorg_testset_save_CFLAGS="$CFLAGS"
5218
5219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5222 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5223 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228 int i;
5229 _ACEOF
5230 if ac_fn_c_try_compile "$LINENO"; then :
5231 xorg_cv_cc_flag_unknown_warning_option=yes
5232 else
5233 xorg_cv_cc_flag_unknown_warning_option=no
5234 fi
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 fi
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5238 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5240 CFLAGS="$xorg_testset_save_CFLAGS"
5241 fi
5242
5243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5246 fi
5247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5249 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5250 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 int i;
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"; then :
5258 xorg_cv_cc_flag_unused_command_line_argument=yes
5259 else
5260 xorg_cv_cc_flag_unused_command_line_argument=no
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 fi
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5265 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5267 CFLAGS="$xorg_testset_save_CFLAGS"
5268 fi
5269
5270 found="no"
5271
5272 if test $found = "no" ; then
5273 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5275 fi
5276
5277 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5279 fi
5280
5281 CFLAGS="$CFLAGS -Wformat=2"
5282
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5284 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5285 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5286 if eval \${$cacheid+:} false; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291 int i;
5292 int
5293 main ()
5294 {
5295
5296 ;
5297 return 0;
5298 }
5299 _ACEOF
5300 if ac_fn_c_try_link "$LINENO"; then :
5301 eval $cacheid=yes
5302 else
5303 eval $cacheid=no
5304 fi
5305 rm -f core conftest.err conftest.$ac_objext \
5306 conftest$ac_exeext conftest.$ac_ext
5307 fi
5308
5309
5310 CFLAGS="$xorg_testset_save_CFLAGS"
5311
5312 eval supported=\$$cacheid
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5314 $as_echo "$supported" >&6; }
5315 if test "$supported" = "yes" ; then
5316 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5317 found="yes"
5318 fi
5319 fi
5320
5321 if test $found = "no" ; then
5322 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5324 fi
5325
5326 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5328 fi
5329
5330 CFLAGS="$CFLAGS -Wformat"
5331
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5333 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5334 cacheid=xorg_cv_cc_flag__Wformat
5335 if eval \${$cacheid+:} false; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5340 int i;
5341 int
5342 main ()
5343 {
5344
5345 ;
5346 return 0;
5347 }
5348 _ACEOF
5349 if ac_fn_c_try_link "$LINENO"; then :
5350 eval $cacheid=yes
5351 else
5352 eval $cacheid=no
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext \
5355 conftest$ac_exeext conftest.$ac_ext
5356 fi
5357
5358
5359 CFLAGS="$xorg_testset_save_CFLAGS"
5360
5361 eval supported=\$$cacheid
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5363 $as_echo "$supported" >&6; }
5364 if test "$supported" = "yes" ; then
5365 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5366 found="yes"
5367 fi
5368 fi
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386 xorg_testset_save_CFLAGS="$CFLAGS"
5387
5388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5391 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5392 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5397 int i;
5398 _ACEOF
5399 if ac_fn_c_try_compile "$LINENO"; then :
5400 xorg_cv_cc_flag_unknown_warning_option=yes
5401 else
5402 xorg_cv_cc_flag_unknown_warning_option=no
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 fi
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5407 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5409 CFLAGS="$xorg_testset_save_CFLAGS"
5410 fi
5411
5412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5415 fi
5416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5418 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5419 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5424 int i;
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"; then :
5427 xorg_cv_cc_flag_unused_command_line_argument=yes
5428 else
5429 xorg_cv_cc_flag_unused_command_line_argument=no
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 fi
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5434 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5436 CFLAGS="$xorg_testset_save_CFLAGS"
5437 fi
5438
5439 found="no"
5440
5441 if test $found = "no" ; then
5442 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5444 fi
5445
5446 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5448 fi
5449
5450 CFLAGS="$CFLAGS -Wstrict-prototypes"
5451
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5453 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5454 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5455 if eval \${$cacheid+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 int i;
5461 int
5462 main ()
5463 {
5464
5465 ;
5466 return 0;
5467 }
5468 _ACEOF
5469 if ac_fn_c_try_link "$LINENO"; then :
5470 eval $cacheid=yes
5471 else
5472 eval $cacheid=no
5473 fi
5474 rm -f core conftest.err conftest.$ac_objext \
5475 conftest$ac_exeext conftest.$ac_ext
5476 fi
5477
5478
5479 CFLAGS="$xorg_testset_save_CFLAGS"
5480
5481 eval supported=\$$cacheid
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5483 $as_echo "$supported" >&6; }
5484 if test "$supported" = "yes" ; then
5485 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5486 found="yes"
5487 fi
5488 fi
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504 xorg_testset_save_CFLAGS="$CFLAGS"
5505
5506 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5509 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5510 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 int i;
5516 _ACEOF
5517 if ac_fn_c_try_compile "$LINENO"; then :
5518 xorg_cv_cc_flag_unknown_warning_option=yes
5519 else
5520 xorg_cv_cc_flag_unknown_warning_option=no
5521 fi
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 fi
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5525 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5527 CFLAGS="$xorg_testset_save_CFLAGS"
5528 fi
5529
5530 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5533 fi
5534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5536 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5537 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 int i;
5543 _ACEOF
5544 if ac_fn_c_try_compile "$LINENO"; then :
5545 xorg_cv_cc_flag_unused_command_line_argument=yes
5546 else
5547 xorg_cv_cc_flag_unused_command_line_argument=no
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 fi
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5552 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5554 CFLAGS="$xorg_testset_save_CFLAGS"
5555 fi
5556
5557 found="no"
5558
5559 if test $found = "no" ; then
5560 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5562 fi
5563
5564 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5566 fi
5567
5568 CFLAGS="$CFLAGS -Wmissing-prototypes"
5569
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5571 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5572 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5573 if eval \${$cacheid+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578 int i;
5579 int
5580 main ()
5581 {
5582
5583 ;
5584 return 0;
5585 }
5586 _ACEOF
5587 if ac_fn_c_try_link "$LINENO"; then :
5588 eval $cacheid=yes
5589 else
5590 eval $cacheid=no
5591 fi
5592 rm -f core conftest.err conftest.$ac_objext \
5593 conftest$ac_exeext conftest.$ac_ext
5594 fi
5595
5596
5597 CFLAGS="$xorg_testset_save_CFLAGS"
5598
5599 eval supported=\$$cacheid
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5601 $as_echo "$supported" >&6; }
5602 if test "$supported" = "yes" ; then
5603 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5604 found="yes"
5605 fi
5606 fi
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622 xorg_testset_save_CFLAGS="$CFLAGS"
5623
5624 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5627 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5628 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 int i;
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 xorg_cv_cc_flag_unknown_warning_option=yes
5637 else
5638 xorg_cv_cc_flag_unknown_warning_option=no
5639 fi
5640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 fi
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5643 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5645 CFLAGS="$xorg_testset_save_CFLAGS"
5646 fi
5647
5648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5651 fi
5652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5654 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5655 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 int i;
5661 _ACEOF
5662 if ac_fn_c_try_compile "$LINENO"; then :
5663 xorg_cv_cc_flag_unused_command_line_argument=yes
5664 else
5665 xorg_cv_cc_flag_unused_command_line_argument=no
5666 fi
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 fi
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5670 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5672 CFLAGS="$xorg_testset_save_CFLAGS"
5673 fi
5674
5675 found="no"
5676
5677 if test $found = "no" ; then
5678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5680 fi
5681
5682 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5684 fi
5685
5686 CFLAGS="$CFLAGS -Wnested-externs"
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5689 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5690 cacheid=xorg_cv_cc_flag__Wnested_externs
5691 if eval \${$cacheid+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 int i;
5697 int
5698 main ()
5699 {
5700
5701 ;
5702 return 0;
5703 }
5704 _ACEOF
5705 if ac_fn_c_try_link "$LINENO"; then :
5706 eval $cacheid=yes
5707 else
5708 eval $cacheid=no
5709 fi
5710 rm -f core conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5712 fi
5713
5714
5715 CFLAGS="$xorg_testset_save_CFLAGS"
5716
5717 eval supported=\$$cacheid
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5719 $as_echo "$supported" >&6; }
5720 if test "$supported" = "yes" ; then
5721 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5722 found="yes"
5723 fi
5724 fi
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740 xorg_testset_save_CFLAGS="$CFLAGS"
5741
5742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5745 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5746 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 int i;
5752 _ACEOF
5753 if ac_fn_c_try_compile "$LINENO"; then :
5754 xorg_cv_cc_flag_unknown_warning_option=yes
5755 else
5756 xorg_cv_cc_flag_unknown_warning_option=no
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 fi
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5761 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5763 CFLAGS="$xorg_testset_save_CFLAGS"
5764 fi
5765
5766 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5769 fi
5770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5772 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5773 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 int i;
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781 xorg_cv_cc_flag_unused_command_line_argument=yes
5782 else
5783 xorg_cv_cc_flag_unused_command_line_argument=no
5784 fi
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5788 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5790 CFLAGS="$xorg_testset_save_CFLAGS"
5791 fi
5792
5793 found="no"
5794
5795 if test $found = "no" ; then
5796 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5798 fi
5799
5800 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5802 fi
5803
5804 CFLAGS="$CFLAGS -Wbad-function-cast"
5805
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5807 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5808 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5809 if eval \${$cacheid+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 int i;
5815 int
5816 main ()
5817 {
5818
5819 ;
5820 return 0;
5821 }
5822 _ACEOF
5823 if ac_fn_c_try_link "$LINENO"; then :
5824 eval $cacheid=yes
5825 else
5826 eval $cacheid=no
5827 fi
5828 rm -f core conftest.err conftest.$ac_objext \
5829 conftest$ac_exeext conftest.$ac_ext
5830 fi
5831
5832
5833 CFLAGS="$xorg_testset_save_CFLAGS"
5834
5835 eval supported=\$$cacheid
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5837 $as_echo "$supported" >&6; }
5838 if test "$supported" = "yes" ; then
5839 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5840 found="yes"
5841 fi
5842 fi
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858 xorg_testset_save_CFLAGS="$CFLAGS"
5859
5860 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5863 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5864 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 int i;
5870 _ACEOF
5871 if ac_fn_c_try_compile "$LINENO"; then :
5872 xorg_cv_cc_flag_unknown_warning_option=yes
5873 else
5874 xorg_cv_cc_flag_unknown_warning_option=no
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 fi
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5879 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5881 CFLAGS="$xorg_testset_save_CFLAGS"
5882 fi
5883
5884 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5887 fi
5888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5890 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5891 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5896 int i;
5897 _ACEOF
5898 if ac_fn_c_try_compile "$LINENO"; then :
5899 xorg_cv_cc_flag_unused_command_line_argument=yes
5900 else
5901 xorg_cv_cc_flag_unused_command_line_argument=no
5902 fi
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904 fi
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5906 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5908 CFLAGS="$xorg_testset_save_CFLAGS"
5909 fi
5910
5911 found="no"
5912
5913 if test $found = "no" ; then
5914 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5916 fi
5917
5918 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5920 fi
5921
5922 CFLAGS="$CFLAGS -Wold-style-definition"
5923
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5925 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5926 cacheid=xorg_cv_cc_flag__Wold_style_definition
5927 if eval \${$cacheid+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932 int i;
5933 int
5934 main ()
5935 {
5936
5937 ;
5938 return 0;
5939 }
5940 _ACEOF
5941 if ac_fn_c_try_link "$LINENO"; then :
5942 eval $cacheid=yes
5943 else
5944 eval $cacheid=no
5945 fi
5946 rm -f core conftest.err conftest.$ac_objext \
5947 conftest$ac_exeext conftest.$ac_ext
5948 fi
5949
5950
5951 CFLAGS="$xorg_testset_save_CFLAGS"
5952
5953 eval supported=\$$cacheid
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5955 $as_echo "$supported" >&6; }
5956 if test "$supported" = "yes" ; then
5957 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5958 found="yes"
5959 fi
5960 fi
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976 xorg_testset_save_CFLAGS="$CFLAGS"
5977
5978 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5981 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5982 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987 int i;
5988 _ACEOF
5989 if ac_fn_c_try_compile "$LINENO"; then :
5990 xorg_cv_cc_flag_unknown_warning_option=yes
5991 else
5992 xorg_cv_cc_flag_unknown_warning_option=no
5993 fi
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5997 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5999 CFLAGS="$xorg_testset_save_CFLAGS"
6000 fi
6001
6002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6005 fi
6006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6008 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6009 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 int i;
6015 _ACEOF
6016 if ac_fn_c_try_compile "$LINENO"; then :
6017 xorg_cv_cc_flag_unused_command_line_argument=yes
6018 else
6019 xorg_cv_cc_flag_unused_command_line_argument=no
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 fi
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6024 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6026 CFLAGS="$xorg_testset_save_CFLAGS"
6027 fi
6028
6029 found="no"
6030
6031 if test $found = "no" ; then
6032 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6034 fi
6035
6036 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6038 fi
6039
6040 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6041
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
6043 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
6044 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6045 if eval \${$cacheid+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 int i;
6051 int
6052 main ()
6053 {
6054
6055 ;
6056 return 0;
6057 }
6058 _ACEOF
6059 if ac_fn_c_try_link "$LINENO"; then :
6060 eval $cacheid=yes
6061 else
6062 eval $cacheid=no
6063 fi
6064 rm -f core conftest.err conftest.$ac_objext \
6065 conftest$ac_exeext conftest.$ac_ext
6066 fi
6067
6068
6069 CFLAGS="$xorg_testset_save_CFLAGS"
6070
6071 eval supported=\$$cacheid
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6073 $as_echo "$supported" >&6; }
6074 if test "$supported" = "yes" ; then
6075 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6076 found="yes"
6077 fi
6078 fi
6079
6080
6081
6082
6083
6084 # This chunk adds additional warnings that could catch undesired effects.
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098 xorg_testset_save_CFLAGS="$CFLAGS"
6099
6100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6103 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6104 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 int i;
6110 _ACEOF
6111 if ac_fn_c_try_compile "$LINENO"; then :
6112 xorg_cv_cc_flag_unknown_warning_option=yes
6113 else
6114 xorg_cv_cc_flag_unknown_warning_option=no
6115 fi
6116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 fi
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6119 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6121 CFLAGS="$xorg_testset_save_CFLAGS"
6122 fi
6123
6124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6127 fi
6128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6130 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6131 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136 int i;
6137 _ACEOF
6138 if ac_fn_c_try_compile "$LINENO"; then :
6139 xorg_cv_cc_flag_unused_command_line_argument=yes
6140 else
6141 xorg_cv_cc_flag_unused_command_line_argument=no
6142 fi
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 fi
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6146 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6148 CFLAGS="$xorg_testset_save_CFLAGS"
6149 fi
6150
6151 found="no"
6152
6153 if test $found = "no" ; then
6154 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6156 fi
6157
6158 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6160 fi
6161
6162 CFLAGS="$CFLAGS -Wunused"
6163
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
6165 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
6166 cacheid=xorg_cv_cc_flag__Wunused
6167 if eval \${$cacheid+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h. */
6172 int i;
6173 int
6174 main ()
6175 {
6176
6177 ;
6178 return 0;
6179 }
6180 _ACEOF
6181 if ac_fn_c_try_link "$LINENO"; then :
6182 eval $cacheid=yes
6183 else
6184 eval $cacheid=no
6185 fi
6186 rm -f core conftest.err conftest.$ac_objext \
6187 conftest$ac_exeext conftest.$ac_ext
6188 fi
6189
6190
6191 CFLAGS="$xorg_testset_save_CFLAGS"
6192
6193 eval supported=\$$cacheid
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6195 $as_echo "$supported" >&6; }
6196 if test "$supported" = "yes" ; then
6197 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6198 found="yes"
6199 fi
6200 fi
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216 xorg_testset_save_CFLAGS="$CFLAGS"
6217
6218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6221 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6222 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6227 int i;
6228 _ACEOF
6229 if ac_fn_c_try_compile "$LINENO"; then :
6230 xorg_cv_cc_flag_unknown_warning_option=yes
6231 else
6232 xorg_cv_cc_flag_unknown_warning_option=no
6233 fi
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6237 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6239 CFLAGS="$xorg_testset_save_CFLAGS"
6240 fi
6241
6242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245 fi
6246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6248 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6249 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 int i;
6255 _ACEOF
6256 if ac_fn_c_try_compile "$LINENO"; then :
6257 xorg_cv_cc_flag_unused_command_line_argument=yes
6258 else
6259 xorg_cv_cc_flag_unused_command_line_argument=no
6260 fi
6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262 fi
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6264 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6266 CFLAGS="$xorg_testset_save_CFLAGS"
6267 fi
6268
6269 found="no"
6270
6271 if test $found = "no" ; then
6272 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6274 fi
6275
6276 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6278 fi
6279
6280 CFLAGS="$CFLAGS -Wuninitialized"
6281
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6283 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6284 cacheid=xorg_cv_cc_flag__Wuninitialized
6285 if eval \${$cacheid+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290 int i;
6291 int
6292 main ()
6293 {
6294
6295 ;
6296 return 0;
6297 }
6298 _ACEOF
6299 if ac_fn_c_try_link "$LINENO"; then :
6300 eval $cacheid=yes
6301 else
6302 eval $cacheid=no
6303 fi
6304 rm -f core conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6306 fi
6307
6308
6309 CFLAGS="$xorg_testset_save_CFLAGS"
6310
6311 eval supported=\$$cacheid
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6313 $as_echo "$supported" >&6; }
6314 if test "$supported" = "yes" ; then
6315 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6316 found="yes"
6317 fi
6318 fi
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334 xorg_testset_save_CFLAGS="$CFLAGS"
6335
6336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6339 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6340 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 int i;
6346 _ACEOF
6347 if ac_fn_c_try_compile "$LINENO"; then :
6348 xorg_cv_cc_flag_unknown_warning_option=yes
6349 else
6350 xorg_cv_cc_flag_unknown_warning_option=no
6351 fi
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6355 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6357 CFLAGS="$xorg_testset_save_CFLAGS"
6358 fi
6359
6360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6363 fi
6364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6366 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6367 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6372 int i;
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375 xorg_cv_cc_flag_unused_command_line_argument=yes
6376 else
6377 xorg_cv_cc_flag_unused_command_line_argument=no
6378 fi
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380 fi
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6382 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6384 CFLAGS="$xorg_testset_save_CFLAGS"
6385 fi
6386
6387 found="no"
6388
6389 if test $found = "no" ; then
6390 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6392 fi
6393
6394 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6396 fi
6397
6398 CFLAGS="$CFLAGS -Wshadow"
6399
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6401 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6402 cacheid=xorg_cv_cc_flag__Wshadow
6403 if eval \${$cacheid+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408 int i;
6409 int
6410 main ()
6411 {
6412
6413 ;
6414 return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_link "$LINENO"; then :
6418 eval $cacheid=yes
6419 else
6420 eval $cacheid=no
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext \
6423 conftest$ac_exeext conftest.$ac_ext
6424 fi
6425
6426
6427 CFLAGS="$xorg_testset_save_CFLAGS"
6428
6429 eval supported=\$$cacheid
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6431 $as_echo "$supported" >&6; }
6432 if test "$supported" = "yes" ; then
6433 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6434 found="yes"
6435 fi
6436 fi
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452 xorg_testset_save_CFLAGS="$CFLAGS"
6453
6454 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6457 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6458 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463 int i;
6464 _ACEOF
6465 if ac_fn_c_try_compile "$LINENO"; then :
6466 xorg_cv_cc_flag_unknown_warning_option=yes
6467 else
6468 xorg_cv_cc_flag_unknown_warning_option=no
6469 fi
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 fi
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6473 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6475 CFLAGS="$xorg_testset_save_CFLAGS"
6476 fi
6477
6478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6481 fi
6482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6484 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6485 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h. */
6490 int i;
6491 _ACEOF
6492 if ac_fn_c_try_compile "$LINENO"; then :
6493 xorg_cv_cc_flag_unused_command_line_argument=yes
6494 else
6495 xorg_cv_cc_flag_unused_command_line_argument=no
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 fi
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6500 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6502 CFLAGS="$xorg_testset_save_CFLAGS"
6503 fi
6504
6505 found="no"
6506
6507 if test $found = "no" ; then
6508 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6510 fi
6511
6512 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6514 fi
6515
6516 CFLAGS="$CFLAGS -Wcast-qual"
6517
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6519 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6520 cacheid=xorg_cv_cc_flag__Wcast_qual
6521 if eval \${$cacheid+:} false; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526 int i;
6527 int
6528 main ()
6529 {
6530
6531 ;
6532 return 0;
6533 }
6534 _ACEOF
6535 if ac_fn_c_try_link "$LINENO"; then :
6536 eval $cacheid=yes
6537 else
6538 eval $cacheid=no
6539 fi
6540 rm -f core conftest.err conftest.$ac_objext \
6541 conftest$ac_exeext conftest.$ac_ext
6542 fi
6543
6544
6545 CFLAGS="$xorg_testset_save_CFLAGS"
6546
6547 eval supported=\$$cacheid
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6549 $as_echo "$supported" >&6; }
6550 if test "$supported" = "yes" ; then
6551 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6552 found="yes"
6553 fi
6554 fi
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570 xorg_testset_save_CFLAGS="$CFLAGS"
6571
6572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6575 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6576 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 int i;
6582 _ACEOF
6583 if ac_fn_c_try_compile "$LINENO"; then :
6584 xorg_cv_cc_flag_unknown_warning_option=yes
6585 else
6586 xorg_cv_cc_flag_unknown_warning_option=no
6587 fi
6588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589 fi
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6591 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6593 CFLAGS="$xorg_testset_save_CFLAGS"
6594 fi
6595
6596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6599 fi
6600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6602 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6603 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608 int i;
6609 _ACEOF
6610 if ac_fn_c_try_compile "$LINENO"; then :
6611 xorg_cv_cc_flag_unused_command_line_argument=yes
6612 else
6613 xorg_cv_cc_flag_unused_command_line_argument=no
6614 fi
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 fi
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6618 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6620 CFLAGS="$xorg_testset_save_CFLAGS"
6621 fi
6622
6623 found="no"
6624
6625 if test $found = "no" ; then
6626 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6628 fi
6629
6630 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6632 fi
6633
6634 CFLAGS="$CFLAGS -Wmissing-noreturn"
6635
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6637 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6638 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6639 if eval \${$cacheid+:} false; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 int i;
6645 int
6646 main ()
6647 {
6648
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 if ac_fn_c_try_link "$LINENO"; then :
6654 eval $cacheid=yes
6655 else
6656 eval $cacheid=no
6657 fi
6658 rm -f core conftest.err conftest.$ac_objext \
6659 conftest$ac_exeext conftest.$ac_ext
6660 fi
6661
6662
6663 CFLAGS="$xorg_testset_save_CFLAGS"
6664
6665 eval supported=\$$cacheid
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6667 $as_echo "$supported" >&6; }
6668 if test "$supported" = "yes" ; then
6669 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6670 found="yes"
6671 fi
6672 fi
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688 xorg_testset_save_CFLAGS="$CFLAGS"
6689
6690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6693 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6694 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699 int i;
6700 _ACEOF
6701 if ac_fn_c_try_compile "$LINENO"; then :
6702 xorg_cv_cc_flag_unknown_warning_option=yes
6703 else
6704 xorg_cv_cc_flag_unknown_warning_option=no
6705 fi
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 fi
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6709 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6711 CFLAGS="$xorg_testset_save_CFLAGS"
6712 fi
6713
6714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6717 fi
6718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6720 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6721 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 int i;
6727 _ACEOF
6728 if ac_fn_c_try_compile "$LINENO"; then :
6729 xorg_cv_cc_flag_unused_command_line_argument=yes
6730 else
6731 xorg_cv_cc_flag_unused_command_line_argument=no
6732 fi
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 fi
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6736 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6738 CFLAGS="$xorg_testset_save_CFLAGS"
6739 fi
6740
6741 found="no"
6742
6743 if test $found = "no" ; then
6744 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6746 fi
6747
6748 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6750 fi
6751
6752 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6753
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6755 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6756 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6757 if eval \${$cacheid+:} false; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762 int i;
6763 int
6764 main ()
6765 {
6766
6767 ;
6768 return 0;
6769 }
6770 _ACEOF
6771 if ac_fn_c_try_link "$LINENO"; then :
6772 eval $cacheid=yes
6773 else
6774 eval $cacheid=no
6775 fi
6776 rm -f core conftest.err conftest.$ac_objext \
6777 conftest$ac_exeext conftest.$ac_ext
6778 fi
6779
6780
6781 CFLAGS="$xorg_testset_save_CFLAGS"
6782
6783 eval supported=\$$cacheid
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6785 $as_echo "$supported" >&6; }
6786 if test "$supported" = "yes" ; then
6787 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6788 found="yes"
6789 fi
6790 fi
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806 xorg_testset_save_CFLAGS="$CFLAGS"
6807
6808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6811 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6812 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6817 int i;
6818 _ACEOF
6819 if ac_fn_c_try_compile "$LINENO"; then :
6820 xorg_cv_cc_flag_unknown_warning_option=yes
6821 else
6822 xorg_cv_cc_flag_unknown_warning_option=no
6823 fi
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825 fi
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6827 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6829 CFLAGS="$xorg_testset_save_CFLAGS"
6830 fi
6831
6832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6835 fi
6836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6838 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6839 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844 int i;
6845 _ACEOF
6846 if ac_fn_c_try_compile "$LINENO"; then :
6847 xorg_cv_cc_flag_unused_command_line_argument=yes
6848 else
6849 xorg_cv_cc_flag_unused_command_line_argument=no
6850 fi
6851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852 fi
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6854 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6856 CFLAGS="$xorg_testset_save_CFLAGS"
6857 fi
6858
6859 found="no"
6860
6861 if test $found = "no" ; then
6862 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6864 fi
6865
6866 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6868 fi
6869
6870 CFLAGS="$CFLAGS -Wredundant-decls"
6871
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6873 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6874 cacheid=xorg_cv_cc_flag__Wredundant_decls
6875 if eval \${$cacheid+:} false; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 int i;
6881 int
6882 main ()
6883 {
6884
6885 ;
6886 return 0;
6887 }
6888 _ACEOF
6889 if ac_fn_c_try_link "$LINENO"; then :
6890 eval $cacheid=yes
6891 else
6892 eval $cacheid=no
6893 fi
6894 rm -f core conftest.err conftest.$ac_objext \
6895 conftest$ac_exeext conftest.$ac_ext
6896 fi
6897
6898
6899 CFLAGS="$xorg_testset_save_CFLAGS"
6900
6901 eval supported=\$$cacheid
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6903 $as_echo "$supported" >&6; }
6904 if test "$supported" = "yes" ; then
6905 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6906 found="yes"
6907 fi
6908 fi
6909
6910
6911
6912 # These are currently disabled because they are noisy. They will be enabled
6913 # in the future once the codebase is sufficiently modernized to silence
6914 # them. For now, I don't want them to drown out the other warnings.
6915 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6916 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6917 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6918
6919 # Turn some warnings into errors, so we don't accidently get successful builds
6920 # when there are problems that should be fixed.
6921
6922 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936 xorg_testset_save_CFLAGS="$CFLAGS"
6937
6938 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6941 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6942 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947 int i;
6948 _ACEOF
6949 if ac_fn_c_try_compile "$LINENO"; then :
6950 xorg_cv_cc_flag_unknown_warning_option=yes
6951 else
6952 xorg_cv_cc_flag_unknown_warning_option=no
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955 fi
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6957 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6958 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6959 CFLAGS="$xorg_testset_save_CFLAGS"
6960 fi
6961
6962 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6965 fi
6966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6968 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6969 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 int i;
6975 _ACEOF
6976 if ac_fn_c_try_compile "$LINENO"; then :
6977 xorg_cv_cc_flag_unused_command_line_argument=yes
6978 else
6979 xorg_cv_cc_flag_unused_command_line_argument=no
6980 fi
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 fi
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6984 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6986 CFLAGS="$xorg_testset_save_CFLAGS"
6987 fi
6988
6989 found="no"
6990
6991 if test $found = "no" ; then
6992 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6994 fi
6995
6996 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6998 fi
6999
7000 CFLAGS="$CFLAGS -Werror=implicit"
7001
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
7003 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
7004 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
7005 if eval \${$cacheid+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 int i;
7011 int
7012 main ()
7013 {
7014
7015 ;
7016 return 0;
7017 }
7018 _ACEOF
7019 if ac_fn_c_try_link "$LINENO"; then :
7020 eval $cacheid=yes
7021 else
7022 eval $cacheid=no
7023 fi
7024 rm -f core conftest.err conftest.$ac_objext \
7025 conftest$ac_exeext conftest.$ac_ext
7026 fi
7027
7028
7029 CFLAGS="$xorg_testset_save_CFLAGS"
7030
7031 eval supported=\$$cacheid
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7033 $as_echo "$supported" >&6; }
7034 if test "$supported" = "yes" ; then
7035 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7036 found="yes"
7037 fi
7038 fi
7039
7040 if test $found = "no" ; then
7041 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7043 fi
7044
7045 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7047 fi
7048
7049 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7050
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7052 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7053 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
7054 if eval \${$cacheid+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059 int i;
7060 int
7061 main ()
7062 {
7063
7064 ;
7065 return 0;
7066 }
7067 _ACEOF
7068 if ac_fn_c_try_link "$LINENO"; then :
7069 eval $cacheid=yes
7070 else
7071 eval $cacheid=no
7072 fi
7073 rm -f core conftest.err conftest.$ac_objext \
7074 conftest$ac_exeext conftest.$ac_ext
7075 fi
7076
7077
7078 CFLAGS="$xorg_testset_save_CFLAGS"
7079
7080 eval supported=\$$cacheid
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7082 $as_echo "$supported" >&6; }
7083 if test "$supported" = "yes" ; then
7084 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7085 found="yes"
7086 fi
7087 fi
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103 xorg_testset_save_CFLAGS="$CFLAGS"
7104
7105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7108 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7109 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7114 int i;
7115 _ACEOF
7116 if ac_fn_c_try_compile "$LINENO"; then :
7117 xorg_cv_cc_flag_unknown_warning_option=yes
7118 else
7119 xorg_cv_cc_flag_unknown_warning_option=no
7120 fi
7121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122 fi
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7124 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7126 CFLAGS="$xorg_testset_save_CFLAGS"
7127 fi
7128
7129 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7132 fi
7133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7135 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7136 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141 int i;
7142 _ACEOF
7143 if ac_fn_c_try_compile "$LINENO"; then :
7144 xorg_cv_cc_flag_unused_command_line_argument=yes
7145 else
7146 xorg_cv_cc_flag_unused_command_line_argument=no
7147 fi
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 fi
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7151 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7153 CFLAGS="$xorg_testset_save_CFLAGS"
7154 fi
7155
7156 found="no"
7157
7158 if test $found = "no" ; then
7159 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7161 fi
7162
7163 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7165 fi
7166
7167 CFLAGS="$CFLAGS -Werror=nonnull"
7168
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
7170 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
7171 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7172 if eval \${$cacheid+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 int i;
7178 int
7179 main ()
7180 {
7181
7182 ;
7183 return 0;
7184 }
7185 _ACEOF
7186 if ac_fn_c_try_link "$LINENO"; then :
7187 eval $cacheid=yes
7188 else
7189 eval $cacheid=no
7190 fi
7191 rm -f core conftest.err conftest.$ac_objext \
7192 conftest$ac_exeext conftest.$ac_ext
7193 fi
7194
7195
7196 CFLAGS="$xorg_testset_save_CFLAGS"
7197
7198 eval supported=\$$cacheid
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7200 $as_echo "$supported" >&6; }
7201 if test "$supported" = "yes" ; then
7202 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7203 found="yes"
7204 fi
7205 fi
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221 xorg_testset_save_CFLAGS="$CFLAGS"
7222
7223 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7226 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7227 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 int i;
7233 _ACEOF
7234 if ac_fn_c_try_compile "$LINENO"; then :
7235 xorg_cv_cc_flag_unknown_warning_option=yes
7236 else
7237 xorg_cv_cc_flag_unknown_warning_option=no
7238 fi
7239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240 fi
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7242 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7244 CFLAGS="$xorg_testset_save_CFLAGS"
7245 fi
7246
7247 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7250 fi
7251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7253 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7254 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259 int i;
7260 _ACEOF
7261 if ac_fn_c_try_compile "$LINENO"; then :
7262 xorg_cv_cc_flag_unused_command_line_argument=yes
7263 else
7264 xorg_cv_cc_flag_unused_command_line_argument=no
7265 fi
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 fi
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7269 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7271 CFLAGS="$xorg_testset_save_CFLAGS"
7272 fi
7273
7274 found="no"
7275
7276 if test $found = "no" ; then
7277 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7279 fi
7280
7281 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7283 fi
7284
7285 CFLAGS="$CFLAGS -Werror=init-self"
7286
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7288 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7289 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7290 if eval \${$cacheid+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295 int i;
7296 int
7297 main ()
7298 {
7299
7300 ;
7301 return 0;
7302 }
7303 _ACEOF
7304 if ac_fn_c_try_link "$LINENO"; then :
7305 eval $cacheid=yes
7306 else
7307 eval $cacheid=no
7308 fi
7309 rm -f core conftest.err conftest.$ac_objext \
7310 conftest$ac_exeext conftest.$ac_ext
7311 fi
7312
7313
7314 CFLAGS="$xorg_testset_save_CFLAGS"
7315
7316 eval supported=\$$cacheid
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7318 $as_echo "$supported" >&6; }
7319 if test "$supported" = "yes" ; then
7320 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7321 found="yes"
7322 fi
7323 fi
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339 xorg_testset_save_CFLAGS="$CFLAGS"
7340
7341 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7344 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7345 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7346 $as_echo_n "(cached) " >&6
7347 else
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7350 int i;
7351 _ACEOF
7352 if ac_fn_c_try_compile "$LINENO"; then :
7353 xorg_cv_cc_flag_unknown_warning_option=yes
7354 else
7355 xorg_cv_cc_flag_unknown_warning_option=no
7356 fi
7357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358 fi
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7360 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7362 CFLAGS="$xorg_testset_save_CFLAGS"
7363 fi
7364
7365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7368 fi
7369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7371 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7372 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7377 int i;
7378 _ACEOF
7379 if ac_fn_c_try_compile "$LINENO"; then :
7380 xorg_cv_cc_flag_unused_command_line_argument=yes
7381 else
7382 xorg_cv_cc_flag_unused_command_line_argument=no
7383 fi
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385 fi
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7387 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7389 CFLAGS="$xorg_testset_save_CFLAGS"
7390 fi
7391
7392 found="no"
7393
7394 if test $found = "no" ; then
7395 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7397 fi
7398
7399 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7401 fi
7402
7403 CFLAGS="$CFLAGS -Werror=main"
7404
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7406 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7407 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7408 if eval \${$cacheid+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7413 int i;
7414 int
7415 main ()
7416 {
7417
7418 ;
7419 return 0;
7420 }
7421 _ACEOF
7422 if ac_fn_c_try_link "$LINENO"; then :
7423 eval $cacheid=yes
7424 else
7425 eval $cacheid=no
7426 fi
7427 rm -f core conftest.err conftest.$ac_objext \
7428 conftest$ac_exeext conftest.$ac_ext
7429 fi
7430
7431
7432 CFLAGS="$xorg_testset_save_CFLAGS"
7433
7434 eval supported=\$$cacheid
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7436 $as_echo "$supported" >&6; }
7437 if test "$supported" = "yes" ; then
7438 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7439 found="yes"
7440 fi
7441 fi
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457 xorg_testset_save_CFLAGS="$CFLAGS"
7458
7459 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7462 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7463 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468 int i;
7469 _ACEOF
7470 if ac_fn_c_try_compile "$LINENO"; then :
7471 xorg_cv_cc_flag_unknown_warning_option=yes
7472 else
7473 xorg_cv_cc_flag_unknown_warning_option=no
7474 fi
7475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7476 fi
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7478 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7480 CFLAGS="$xorg_testset_save_CFLAGS"
7481 fi
7482
7483 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7486 fi
7487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7489 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7490 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 int i;
7496 _ACEOF
7497 if ac_fn_c_try_compile "$LINENO"; then :
7498 xorg_cv_cc_flag_unused_command_line_argument=yes
7499 else
7500 xorg_cv_cc_flag_unused_command_line_argument=no
7501 fi
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 fi
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7505 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7507 CFLAGS="$xorg_testset_save_CFLAGS"
7508 fi
7509
7510 found="no"
7511
7512 if test $found = "no" ; then
7513 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515 fi
7516
7517 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7519 fi
7520
7521 CFLAGS="$CFLAGS -Werror=missing-braces"
7522
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7524 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7525 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7526 if eval \${$cacheid+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 int i;
7532 int
7533 main ()
7534 {
7535
7536 ;
7537 return 0;
7538 }
7539 _ACEOF
7540 if ac_fn_c_try_link "$LINENO"; then :
7541 eval $cacheid=yes
7542 else
7543 eval $cacheid=no
7544 fi
7545 rm -f core conftest.err conftest.$ac_objext \
7546 conftest$ac_exeext conftest.$ac_ext
7547 fi
7548
7549
7550 CFLAGS="$xorg_testset_save_CFLAGS"
7551
7552 eval supported=\$$cacheid
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7554 $as_echo "$supported" >&6; }
7555 if test "$supported" = "yes" ; then
7556 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7557 found="yes"
7558 fi
7559 fi
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575 xorg_testset_save_CFLAGS="$CFLAGS"
7576
7577 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7580 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7581 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 int i;
7587 _ACEOF
7588 if ac_fn_c_try_compile "$LINENO"; then :
7589 xorg_cv_cc_flag_unknown_warning_option=yes
7590 else
7591 xorg_cv_cc_flag_unknown_warning_option=no
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594 fi
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7596 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7598 CFLAGS="$xorg_testset_save_CFLAGS"
7599 fi
7600
7601 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7604 fi
7605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7607 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7608 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7613 int i;
7614 _ACEOF
7615 if ac_fn_c_try_compile "$LINENO"; then :
7616 xorg_cv_cc_flag_unused_command_line_argument=yes
7617 else
7618 xorg_cv_cc_flag_unused_command_line_argument=no
7619 fi
7620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7623 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7625 CFLAGS="$xorg_testset_save_CFLAGS"
7626 fi
7627
7628 found="no"
7629
7630 if test $found = "no" ; then
7631 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7633 fi
7634
7635 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7637 fi
7638
7639 CFLAGS="$CFLAGS -Werror=sequence-point"
7640
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7642 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7643 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7644 if eval \${$cacheid+:} false; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 int i;
7650 int
7651 main ()
7652 {
7653
7654 ;
7655 return 0;
7656 }
7657 _ACEOF
7658 if ac_fn_c_try_link "$LINENO"; then :
7659 eval $cacheid=yes
7660 else
7661 eval $cacheid=no
7662 fi
7663 rm -f core conftest.err conftest.$ac_objext \
7664 conftest$ac_exeext conftest.$ac_ext
7665 fi
7666
7667
7668 CFLAGS="$xorg_testset_save_CFLAGS"
7669
7670 eval supported=\$$cacheid
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7672 $as_echo "$supported" >&6; }
7673 if test "$supported" = "yes" ; then
7674 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7675 found="yes"
7676 fi
7677 fi
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693 xorg_testset_save_CFLAGS="$CFLAGS"
7694
7695 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7698 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7699 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7704 int i;
7705 _ACEOF
7706 if ac_fn_c_try_compile "$LINENO"; then :
7707 xorg_cv_cc_flag_unknown_warning_option=yes
7708 else
7709 xorg_cv_cc_flag_unknown_warning_option=no
7710 fi
7711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7712 fi
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7714 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7716 CFLAGS="$xorg_testset_save_CFLAGS"
7717 fi
7718
7719 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7722 fi
7723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7725 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7726 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7731 int i;
7732 _ACEOF
7733 if ac_fn_c_try_compile "$LINENO"; then :
7734 xorg_cv_cc_flag_unused_command_line_argument=yes
7735 else
7736 xorg_cv_cc_flag_unused_command_line_argument=no
7737 fi
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 fi
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7741 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7743 CFLAGS="$xorg_testset_save_CFLAGS"
7744 fi
7745
7746 found="no"
7747
7748 if test $found = "no" ; then
7749 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7751 fi
7752
7753 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7755 fi
7756
7757 CFLAGS="$CFLAGS -Werror=return-type"
7758
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7760 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7761 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7762 if eval \${$cacheid+:} false; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767 int i;
7768 int
7769 main ()
7770 {
7771
7772 ;
7773 return 0;
7774 }
7775 _ACEOF
7776 if ac_fn_c_try_link "$LINENO"; then :
7777 eval $cacheid=yes
7778 else
7779 eval $cacheid=no
7780 fi
7781 rm -f core conftest.err conftest.$ac_objext \
7782 conftest$ac_exeext conftest.$ac_ext
7783 fi
7784
7785
7786 CFLAGS="$xorg_testset_save_CFLAGS"
7787
7788 eval supported=\$$cacheid
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7790 $as_echo "$supported" >&6; }
7791 if test "$supported" = "yes" ; then
7792 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7793 found="yes"
7794 fi
7795 fi
7796
7797 if test $found = "no" ; then
7798 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800 fi
7801
7802 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7804 fi
7805
7806 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7807
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7809 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7810 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7811 if eval \${$cacheid+:} false; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7816 int i;
7817 int
7818 main ()
7819 {
7820
7821 ;
7822 return 0;
7823 }
7824 _ACEOF
7825 if ac_fn_c_try_link "$LINENO"; then :
7826 eval $cacheid=yes
7827 else
7828 eval $cacheid=no
7829 fi
7830 rm -f core conftest.err conftest.$ac_objext \
7831 conftest$ac_exeext conftest.$ac_ext
7832 fi
7833
7834
7835 CFLAGS="$xorg_testset_save_CFLAGS"
7836
7837 eval supported=\$$cacheid
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7839 $as_echo "$supported" >&6; }
7840 if test "$supported" = "yes" ; then
7841 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7842 found="yes"
7843 fi
7844 fi
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860 xorg_testset_save_CFLAGS="$CFLAGS"
7861
7862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7865 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7866 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7871 int i;
7872 _ACEOF
7873 if ac_fn_c_try_compile "$LINENO"; then :
7874 xorg_cv_cc_flag_unknown_warning_option=yes
7875 else
7876 xorg_cv_cc_flag_unknown_warning_option=no
7877 fi
7878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879 fi
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7881 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7883 CFLAGS="$xorg_testset_save_CFLAGS"
7884 fi
7885
7886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889 fi
7890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7892 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7893 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 int i;
7899 _ACEOF
7900 if ac_fn_c_try_compile "$LINENO"; then :
7901 xorg_cv_cc_flag_unused_command_line_argument=yes
7902 else
7903 xorg_cv_cc_flag_unused_command_line_argument=no
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7908 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7910 CFLAGS="$xorg_testset_save_CFLAGS"
7911 fi
7912
7913 found="no"
7914
7915 if test $found = "no" ; then
7916 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7918 fi
7919
7920 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7922 fi
7923
7924 CFLAGS="$CFLAGS -Werror=trigraphs"
7925
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7927 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7928 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7929 if eval \${$cacheid+:} false; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7934 int i;
7935 int
7936 main ()
7937 {
7938
7939 ;
7940 return 0;
7941 }
7942 _ACEOF
7943 if ac_fn_c_try_link "$LINENO"; then :
7944 eval $cacheid=yes
7945 else
7946 eval $cacheid=no
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext \
7949 conftest$ac_exeext conftest.$ac_ext
7950 fi
7951
7952
7953 CFLAGS="$xorg_testset_save_CFLAGS"
7954
7955 eval supported=\$$cacheid
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7957 $as_echo "$supported" >&6; }
7958 if test "$supported" = "yes" ; then
7959 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7960 found="yes"
7961 fi
7962 fi
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978 xorg_testset_save_CFLAGS="$CFLAGS"
7979
7980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7983 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7984 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989 int i;
7990 _ACEOF
7991 if ac_fn_c_try_compile "$LINENO"; then :
7992 xorg_cv_cc_flag_unknown_warning_option=yes
7993 else
7994 xorg_cv_cc_flag_unknown_warning_option=no
7995 fi
7996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997 fi
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7999 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8001 CFLAGS="$xorg_testset_save_CFLAGS"
8002 fi
8003
8004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8007 fi
8008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8010 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8011 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016 int i;
8017 _ACEOF
8018 if ac_fn_c_try_compile "$LINENO"; then :
8019 xorg_cv_cc_flag_unused_command_line_argument=yes
8020 else
8021 xorg_cv_cc_flag_unused_command_line_argument=no
8022 fi
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024 fi
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8026 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8028 CFLAGS="$xorg_testset_save_CFLAGS"
8029 fi
8030
8031 found="no"
8032
8033 if test $found = "no" ; then
8034 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8036 fi
8037
8038 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8040 fi
8041
8042 CFLAGS="$CFLAGS -Werror=array-bounds"
8043
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
8045 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
8046 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
8047 if eval \${$cacheid+:} false; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052 int i;
8053 int
8054 main ()
8055 {
8056
8057 ;
8058 return 0;
8059 }
8060 _ACEOF
8061 if ac_fn_c_try_link "$LINENO"; then :
8062 eval $cacheid=yes
8063 else
8064 eval $cacheid=no
8065 fi
8066 rm -f core conftest.err conftest.$ac_objext \
8067 conftest$ac_exeext conftest.$ac_ext
8068 fi
8069
8070
8071 CFLAGS="$xorg_testset_save_CFLAGS"
8072
8073 eval supported=\$$cacheid
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8075 $as_echo "$supported" >&6; }
8076 if test "$supported" = "yes" ; then
8077 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8078 found="yes"
8079 fi
8080 fi
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096 xorg_testset_save_CFLAGS="$CFLAGS"
8097
8098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8101 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8102 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 int i;
8108 _ACEOF
8109 if ac_fn_c_try_compile "$LINENO"; then :
8110 xorg_cv_cc_flag_unknown_warning_option=yes
8111 else
8112 xorg_cv_cc_flag_unknown_warning_option=no
8113 fi
8114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115 fi
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8117 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8119 CFLAGS="$xorg_testset_save_CFLAGS"
8120 fi
8121
8122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8125 fi
8126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8128 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8129 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8134 int i;
8135 _ACEOF
8136 if ac_fn_c_try_compile "$LINENO"; then :
8137 xorg_cv_cc_flag_unused_command_line_argument=yes
8138 else
8139 xorg_cv_cc_flag_unused_command_line_argument=no
8140 fi
8141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 fi
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8144 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8146 CFLAGS="$xorg_testset_save_CFLAGS"
8147 fi
8148
8149 found="no"
8150
8151 if test $found = "no" ; then
8152 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8154 fi
8155
8156 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8158 fi
8159
8160 CFLAGS="$CFLAGS -Werror=write-strings"
8161
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
8163 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
8164 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8165 if eval \${$cacheid+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170 int i;
8171 int
8172 main ()
8173 {
8174
8175 ;
8176 return 0;
8177 }
8178 _ACEOF
8179 if ac_fn_c_try_link "$LINENO"; then :
8180 eval $cacheid=yes
8181 else
8182 eval $cacheid=no
8183 fi
8184 rm -f core conftest.err conftest.$ac_objext \
8185 conftest$ac_exeext conftest.$ac_ext
8186 fi
8187
8188
8189 CFLAGS="$xorg_testset_save_CFLAGS"
8190
8191 eval supported=\$$cacheid
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8193 $as_echo "$supported" >&6; }
8194 if test "$supported" = "yes" ; then
8195 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8196 found="yes"
8197 fi
8198 fi
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214 xorg_testset_save_CFLAGS="$CFLAGS"
8215
8216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8219 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8220 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 int i;
8226 _ACEOF
8227 if ac_fn_c_try_compile "$LINENO"; then :
8228 xorg_cv_cc_flag_unknown_warning_option=yes
8229 else
8230 xorg_cv_cc_flag_unknown_warning_option=no
8231 fi
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 fi
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8235 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8237 CFLAGS="$xorg_testset_save_CFLAGS"
8238 fi
8239
8240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8243 fi
8244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8246 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8247 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 int i;
8253 _ACEOF
8254 if ac_fn_c_try_compile "$LINENO"; then :
8255 xorg_cv_cc_flag_unused_command_line_argument=yes
8256 else
8257 xorg_cv_cc_flag_unused_command_line_argument=no
8258 fi
8259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8260 fi
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8262 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8264 CFLAGS="$xorg_testset_save_CFLAGS"
8265 fi
8266
8267 found="no"
8268
8269 if test $found = "no" ; then
8270 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8272 fi
8273
8274 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8276 fi
8277
8278 CFLAGS="$CFLAGS -Werror=address"
8279
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8281 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8282 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8283 if eval \${$cacheid+:} false; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8288 int i;
8289 int
8290 main ()
8291 {
8292
8293 ;
8294 return 0;
8295 }
8296 _ACEOF
8297 if ac_fn_c_try_link "$LINENO"; then :
8298 eval $cacheid=yes
8299 else
8300 eval $cacheid=no
8301 fi
8302 rm -f core conftest.err conftest.$ac_objext \
8303 conftest$ac_exeext conftest.$ac_ext
8304 fi
8305
8306
8307 CFLAGS="$xorg_testset_save_CFLAGS"
8308
8309 eval supported=\$$cacheid
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8311 $as_echo "$supported" >&6; }
8312 if test "$supported" = "yes" ; then
8313 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8314 found="yes"
8315 fi
8316 fi
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332 xorg_testset_save_CFLAGS="$CFLAGS"
8333
8334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8337 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8338 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 int i;
8344 _ACEOF
8345 if ac_fn_c_try_compile "$LINENO"; then :
8346 xorg_cv_cc_flag_unknown_warning_option=yes
8347 else
8348 xorg_cv_cc_flag_unknown_warning_option=no
8349 fi
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351 fi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8353 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8355 CFLAGS="$xorg_testset_save_CFLAGS"
8356 fi
8357
8358 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8361 fi
8362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8364 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8365 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8370 int i;
8371 _ACEOF
8372 if ac_fn_c_try_compile "$LINENO"; then :
8373 xorg_cv_cc_flag_unused_command_line_argument=yes
8374 else
8375 xorg_cv_cc_flag_unused_command_line_argument=no
8376 fi
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 fi
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8380 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8382 CFLAGS="$xorg_testset_save_CFLAGS"
8383 fi
8384
8385 found="no"
8386
8387 if test $found = "no" ; then
8388 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8390 fi
8391
8392 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8394 fi
8395
8396 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8397
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8399 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8400 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8401 if eval \${$cacheid+:} false; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8406 int i;
8407 int
8408 main ()
8409 {
8410
8411 ;
8412 return 0;
8413 }
8414 _ACEOF
8415 if ac_fn_c_try_link "$LINENO"; then :
8416 eval $cacheid=yes
8417 else
8418 eval $cacheid=no
8419 fi
8420 rm -f core conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
8422 fi
8423
8424
8425 CFLAGS="$xorg_testset_save_CFLAGS"
8426
8427 eval supported=\$$cacheid
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8429 $as_echo "$supported" >&6; }
8430 if test "$supported" = "yes" ; then
8431 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8432 found="yes"
8433 fi
8434 fi
8435
8436 if test $found = "no" ; then
8437 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8439 fi
8440
8441 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8443 fi
8444
8445 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8446
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8448 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8449 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8450 if eval \${$cacheid+:} false; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 int i;
8456 int
8457 main ()
8458 {
8459
8460 ;
8461 return 0;
8462 }
8463 _ACEOF
8464 if ac_fn_c_try_link "$LINENO"; then :
8465 eval $cacheid=yes
8466 else
8467 eval $cacheid=no
8468 fi
8469 rm -f core conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext conftest.$ac_ext
8471 fi
8472
8473
8474 CFLAGS="$xorg_testset_save_CFLAGS"
8475
8476 eval supported=\$$cacheid
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8478 $as_echo "$supported" >&6; }
8479 if test "$supported" = "yes" ; then
8480 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8481 found="yes"
8482 fi
8483 fi
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499 xorg_testset_save_CFLAGS="$CFLAGS"
8500
8501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8504 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8505 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8506 $as_echo_n "(cached) " >&6
8507 else
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510 int i;
8511 _ACEOF
8512 if ac_fn_c_try_compile "$LINENO"; then :
8513 xorg_cv_cc_flag_unknown_warning_option=yes
8514 else
8515 xorg_cv_cc_flag_unknown_warning_option=no
8516 fi
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 fi
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8520 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8522 CFLAGS="$xorg_testset_save_CFLAGS"
8523 fi
8524
8525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8528 fi
8529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8531 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8532 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537 int i;
8538 _ACEOF
8539 if ac_fn_c_try_compile "$LINENO"; then :
8540 xorg_cv_cc_flag_unused_command_line_argument=yes
8541 else
8542 xorg_cv_cc_flag_unused_command_line_argument=no
8543 fi
8544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 fi
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8547 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8549 CFLAGS="$xorg_testset_save_CFLAGS"
8550 fi
8551
8552 found="no"
8553
8554 if test $found = "no" ; then
8555 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8557 fi
8558
8559 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8561 fi
8562
8563 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8564
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8566 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8567 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8568 if eval \${$cacheid+:} false; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8573 int i;
8574 int
8575 main ()
8576 {
8577
8578 ;
8579 return 0;
8580 }
8581 _ACEOF
8582 if ac_fn_c_try_link "$LINENO"; then :
8583 eval $cacheid=yes
8584 else
8585 eval $cacheid=no
8586 fi
8587 rm -f core conftest.err conftest.$ac_objext \
8588 conftest$ac_exeext conftest.$ac_ext
8589 fi
8590
8591
8592 CFLAGS="$xorg_testset_save_CFLAGS"
8593
8594 eval supported=\$$cacheid
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8596 $as_echo "$supported" >&6; }
8597 if test "$supported" = "yes" ; then
8598 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8599 found="yes"
8600 fi
8601 fi
8602
8603 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8604 else
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8606 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620 xorg_testset_save_CFLAGS="$CFLAGS"
8621
8622 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8625 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8626 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8631 int i;
8632 _ACEOF
8633 if ac_fn_c_try_compile "$LINENO"; then :
8634 xorg_cv_cc_flag_unknown_warning_option=yes
8635 else
8636 xorg_cv_cc_flag_unknown_warning_option=no
8637 fi
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 fi
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8641 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8643 CFLAGS="$xorg_testset_save_CFLAGS"
8644 fi
8645
8646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8649 fi
8650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8652 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8653 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8658 int i;
8659 _ACEOF
8660 if ac_fn_c_try_compile "$LINENO"; then :
8661 xorg_cv_cc_flag_unused_command_line_argument=yes
8662 else
8663 xorg_cv_cc_flag_unused_command_line_argument=no
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 fi
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8668 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8670 CFLAGS="$xorg_testset_save_CFLAGS"
8671 fi
8672
8673 found="no"
8674
8675 if test $found = "no" ; then
8676 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8678 fi
8679
8680 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8682 fi
8683
8684 CFLAGS="$CFLAGS -Wimplicit"
8685
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8687 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8688 cacheid=xorg_cv_cc_flag__Wimplicit
8689 if eval \${$cacheid+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8694 int i;
8695 int
8696 main ()
8697 {
8698
8699 ;
8700 return 0;
8701 }
8702 _ACEOF
8703 if ac_fn_c_try_link "$LINENO"; then :
8704 eval $cacheid=yes
8705 else
8706 eval $cacheid=no
8707 fi
8708 rm -f core conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8710 fi
8711
8712
8713 CFLAGS="$xorg_testset_save_CFLAGS"
8714
8715 eval supported=\$$cacheid
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8717 $as_echo "$supported" >&6; }
8718 if test "$supported" = "yes" ; then
8719 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8720 found="yes"
8721 fi
8722 fi
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738 xorg_testset_save_CFLAGS="$CFLAGS"
8739
8740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8743 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8744 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8749 int i;
8750 _ACEOF
8751 if ac_fn_c_try_compile "$LINENO"; then :
8752 xorg_cv_cc_flag_unknown_warning_option=yes
8753 else
8754 xorg_cv_cc_flag_unknown_warning_option=no
8755 fi
8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 fi
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8759 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8761 CFLAGS="$xorg_testset_save_CFLAGS"
8762 fi
8763
8764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8767 fi
8768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8771 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776 int i;
8777 _ACEOF
8778 if ac_fn_c_try_compile "$LINENO"; then :
8779 xorg_cv_cc_flag_unused_command_line_argument=yes
8780 else
8781 xorg_cv_cc_flag_unused_command_line_argument=no
8782 fi
8783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784 fi
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8786 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8788 CFLAGS="$xorg_testset_save_CFLAGS"
8789 fi
8790
8791 found="no"
8792
8793 if test $found = "no" ; then
8794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8796 fi
8797
8798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8800 fi
8801
8802 CFLAGS="$CFLAGS -Wnonnull"
8803
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8805 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8806 cacheid=xorg_cv_cc_flag__Wnonnull
8807 if eval \${$cacheid+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8812 int i;
8813 int
8814 main ()
8815 {
8816
8817 ;
8818 return 0;
8819 }
8820 _ACEOF
8821 if ac_fn_c_try_link "$LINENO"; then :
8822 eval $cacheid=yes
8823 else
8824 eval $cacheid=no
8825 fi
8826 rm -f core conftest.err conftest.$ac_objext \
8827 conftest$ac_exeext conftest.$ac_ext
8828 fi
8829
8830
8831 CFLAGS="$xorg_testset_save_CFLAGS"
8832
8833 eval supported=\$$cacheid
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8835 $as_echo "$supported" >&6; }
8836 if test "$supported" = "yes" ; then
8837 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8838 found="yes"
8839 fi
8840 fi
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856 xorg_testset_save_CFLAGS="$CFLAGS"
8857
8858 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8861 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8862 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8867 int i;
8868 _ACEOF
8869 if ac_fn_c_try_compile "$LINENO"; then :
8870 xorg_cv_cc_flag_unknown_warning_option=yes
8871 else
8872 xorg_cv_cc_flag_unknown_warning_option=no
8873 fi
8874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875 fi
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8877 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8879 CFLAGS="$xorg_testset_save_CFLAGS"
8880 fi
8881
8882 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8885 fi
8886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8888 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8889 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8894 int i;
8895 _ACEOF
8896 if ac_fn_c_try_compile "$LINENO"; then :
8897 xorg_cv_cc_flag_unused_command_line_argument=yes
8898 else
8899 xorg_cv_cc_flag_unused_command_line_argument=no
8900 fi
8901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902 fi
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8904 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8906 CFLAGS="$xorg_testset_save_CFLAGS"
8907 fi
8908
8909 found="no"
8910
8911 if test $found = "no" ; then
8912 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8914 fi
8915
8916 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8918 fi
8919
8920 CFLAGS="$CFLAGS -Winit-self"
8921
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8923 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8924 cacheid=xorg_cv_cc_flag__Winit_self
8925 if eval \${$cacheid+:} false; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 int i;
8931 int
8932 main ()
8933 {
8934
8935 ;
8936 return 0;
8937 }
8938 _ACEOF
8939 if ac_fn_c_try_link "$LINENO"; then :
8940 eval $cacheid=yes
8941 else
8942 eval $cacheid=no
8943 fi
8944 rm -f core conftest.err conftest.$ac_objext \
8945 conftest$ac_exeext conftest.$ac_ext
8946 fi
8947
8948
8949 CFLAGS="$xorg_testset_save_CFLAGS"
8950
8951 eval supported=\$$cacheid
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8953 $as_echo "$supported" >&6; }
8954 if test "$supported" = "yes" ; then
8955 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8956 found="yes"
8957 fi
8958 fi
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974 xorg_testset_save_CFLAGS="$CFLAGS"
8975
8976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8979 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8980 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8985 int i;
8986 _ACEOF
8987 if ac_fn_c_try_compile "$LINENO"; then :
8988 xorg_cv_cc_flag_unknown_warning_option=yes
8989 else
8990 xorg_cv_cc_flag_unknown_warning_option=no
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 fi
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8995 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8997 CFLAGS="$xorg_testset_save_CFLAGS"
8998 fi
8999
9000 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9003 fi
9004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9006 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9007 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9012 int i;
9013 _ACEOF
9014 if ac_fn_c_try_compile "$LINENO"; then :
9015 xorg_cv_cc_flag_unused_command_line_argument=yes
9016 else
9017 xorg_cv_cc_flag_unused_command_line_argument=no
9018 fi
9019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020 fi
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9022 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9024 CFLAGS="$xorg_testset_save_CFLAGS"
9025 fi
9026
9027 found="no"
9028
9029 if test $found = "no" ; then
9030 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9032 fi
9033
9034 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9036 fi
9037
9038 CFLAGS="$CFLAGS -Wmain"
9039
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
9041 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
9042 cacheid=xorg_cv_cc_flag__Wmain
9043 if eval \${$cacheid+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 int i;
9049 int
9050 main ()
9051 {
9052
9053 ;
9054 return 0;
9055 }
9056 _ACEOF
9057 if ac_fn_c_try_link "$LINENO"; then :
9058 eval $cacheid=yes
9059 else
9060 eval $cacheid=no
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 fi
9065
9066
9067 CFLAGS="$xorg_testset_save_CFLAGS"
9068
9069 eval supported=\$$cacheid
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9071 $as_echo "$supported" >&6; }
9072 if test "$supported" = "yes" ; then
9073 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9074 found="yes"
9075 fi
9076 fi
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092 xorg_testset_save_CFLAGS="$CFLAGS"
9093
9094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9097 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9098 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9103 int i;
9104 _ACEOF
9105 if ac_fn_c_try_compile "$LINENO"; then :
9106 xorg_cv_cc_flag_unknown_warning_option=yes
9107 else
9108 xorg_cv_cc_flag_unknown_warning_option=no
9109 fi
9110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9111 fi
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9113 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9115 CFLAGS="$xorg_testset_save_CFLAGS"
9116 fi
9117
9118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9121 fi
9122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9124 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9125 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9130 int i;
9131 _ACEOF
9132 if ac_fn_c_try_compile "$LINENO"; then :
9133 xorg_cv_cc_flag_unused_command_line_argument=yes
9134 else
9135 xorg_cv_cc_flag_unused_command_line_argument=no
9136 fi
9137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138 fi
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9140 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9142 CFLAGS="$xorg_testset_save_CFLAGS"
9143 fi
9144
9145 found="no"
9146
9147 if test $found = "no" ; then
9148 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9150 fi
9151
9152 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9154 fi
9155
9156 CFLAGS="$CFLAGS -Wmissing-braces"
9157
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
9159 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9160 cacheid=xorg_cv_cc_flag__Wmissing_braces
9161 if eval \${$cacheid+:} false; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9166 int i;
9167 int
9168 main ()
9169 {
9170
9171 ;
9172 return 0;
9173 }
9174 _ACEOF
9175 if ac_fn_c_try_link "$LINENO"; then :
9176 eval $cacheid=yes
9177 else
9178 eval $cacheid=no
9179 fi
9180 rm -f core conftest.err conftest.$ac_objext \
9181 conftest$ac_exeext conftest.$ac_ext
9182 fi
9183
9184
9185 CFLAGS="$xorg_testset_save_CFLAGS"
9186
9187 eval supported=\$$cacheid
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9189 $as_echo "$supported" >&6; }
9190 if test "$supported" = "yes" ; then
9191 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9192 found="yes"
9193 fi
9194 fi
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210 xorg_testset_save_CFLAGS="$CFLAGS"
9211
9212 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9215 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9216 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221 int i;
9222 _ACEOF
9223 if ac_fn_c_try_compile "$LINENO"; then :
9224 xorg_cv_cc_flag_unknown_warning_option=yes
9225 else
9226 xorg_cv_cc_flag_unknown_warning_option=no
9227 fi
9228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 fi
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9231 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9233 CFLAGS="$xorg_testset_save_CFLAGS"
9234 fi
9235
9236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9239 fi
9240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9242 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9243 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9248 int i;
9249 _ACEOF
9250 if ac_fn_c_try_compile "$LINENO"; then :
9251 xorg_cv_cc_flag_unused_command_line_argument=yes
9252 else
9253 xorg_cv_cc_flag_unused_command_line_argument=no
9254 fi
9255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256 fi
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9258 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9260 CFLAGS="$xorg_testset_save_CFLAGS"
9261 fi
9262
9263 found="no"
9264
9265 if test $found = "no" ; then
9266 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9268 fi
9269
9270 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9272 fi
9273
9274 CFLAGS="$CFLAGS -Wsequence-point"
9275
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9277 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9278 cacheid=xorg_cv_cc_flag__Wsequence_point
9279 if eval \${$cacheid+:} false; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9284 int i;
9285 int
9286 main ()
9287 {
9288
9289 ;
9290 return 0;
9291 }
9292 _ACEOF
9293 if ac_fn_c_try_link "$LINENO"; then :
9294 eval $cacheid=yes
9295 else
9296 eval $cacheid=no
9297 fi
9298 rm -f core conftest.err conftest.$ac_objext \
9299 conftest$ac_exeext conftest.$ac_ext
9300 fi
9301
9302
9303 CFLAGS="$xorg_testset_save_CFLAGS"
9304
9305 eval supported=\$$cacheid
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9307 $as_echo "$supported" >&6; }
9308 if test "$supported" = "yes" ; then
9309 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9310 found="yes"
9311 fi
9312 fi
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328 xorg_testset_save_CFLAGS="$CFLAGS"
9329
9330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9333 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9334 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9335 $as_echo_n "(cached) " >&6
9336 else
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9339 int i;
9340 _ACEOF
9341 if ac_fn_c_try_compile "$LINENO"; then :
9342 xorg_cv_cc_flag_unknown_warning_option=yes
9343 else
9344 xorg_cv_cc_flag_unknown_warning_option=no
9345 fi
9346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 fi
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9349 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9351 CFLAGS="$xorg_testset_save_CFLAGS"
9352 fi
9353
9354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9357 fi
9358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9360 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9361 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366 int i;
9367 _ACEOF
9368 if ac_fn_c_try_compile "$LINENO"; then :
9369 xorg_cv_cc_flag_unused_command_line_argument=yes
9370 else
9371 xorg_cv_cc_flag_unused_command_line_argument=no
9372 fi
9373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374 fi
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9376 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9378 CFLAGS="$xorg_testset_save_CFLAGS"
9379 fi
9380
9381 found="no"
9382
9383 if test $found = "no" ; then
9384 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9386 fi
9387
9388 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9390 fi
9391
9392 CFLAGS="$CFLAGS -Wreturn-type"
9393
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9395 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9396 cacheid=xorg_cv_cc_flag__Wreturn_type
9397 if eval \${$cacheid+:} false; then :
9398 $as_echo_n "(cached) " >&6
9399 else
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402 int i;
9403 int
9404 main ()
9405 {
9406
9407 ;
9408 return 0;
9409 }
9410 _ACEOF
9411 if ac_fn_c_try_link "$LINENO"; then :
9412 eval $cacheid=yes
9413 else
9414 eval $cacheid=no
9415 fi
9416 rm -f core conftest.err conftest.$ac_objext \
9417 conftest$ac_exeext conftest.$ac_ext
9418 fi
9419
9420
9421 CFLAGS="$xorg_testset_save_CFLAGS"
9422
9423 eval supported=\$$cacheid
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9425 $as_echo "$supported" >&6; }
9426 if test "$supported" = "yes" ; then
9427 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9428 found="yes"
9429 fi
9430 fi
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446 xorg_testset_save_CFLAGS="$CFLAGS"
9447
9448 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9451 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9452 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9453 $as_echo_n "(cached) " >&6
9454 else
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9457 int i;
9458 _ACEOF
9459 if ac_fn_c_try_compile "$LINENO"; then :
9460 xorg_cv_cc_flag_unknown_warning_option=yes
9461 else
9462 xorg_cv_cc_flag_unknown_warning_option=no
9463 fi
9464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465 fi
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9467 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9469 CFLAGS="$xorg_testset_save_CFLAGS"
9470 fi
9471
9472 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9475 fi
9476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9478 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9479 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9480 $as_echo_n "(cached) " >&6
9481 else
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9484 int i;
9485 _ACEOF
9486 if ac_fn_c_try_compile "$LINENO"; then :
9487 xorg_cv_cc_flag_unused_command_line_argument=yes
9488 else
9489 xorg_cv_cc_flag_unused_command_line_argument=no
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492 fi
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9494 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9496 CFLAGS="$xorg_testset_save_CFLAGS"
9497 fi
9498
9499 found="no"
9500
9501 if test $found = "no" ; then
9502 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9504 fi
9505
9506 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9508 fi
9509
9510 CFLAGS="$CFLAGS -Wtrigraphs"
9511
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9513 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9514 cacheid=xorg_cv_cc_flag__Wtrigraphs
9515 if eval \${$cacheid+:} false; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9520 int i;
9521 int
9522 main ()
9523 {
9524
9525 ;
9526 return 0;
9527 }
9528 _ACEOF
9529 if ac_fn_c_try_link "$LINENO"; then :
9530 eval $cacheid=yes
9531 else
9532 eval $cacheid=no
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9536 fi
9537
9538
9539 CFLAGS="$xorg_testset_save_CFLAGS"
9540
9541 eval supported=\$$cacheid
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9543 $as_echo "$supported" >&6; }
9544 if test "$supported" = "yes" ; then
9545 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9546 found="yes"
9547 fi
9548 fi
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564 xorg_testset_save_CFLAGS="$CFLAGS"
9565
9566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9569 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9570 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9575 int i;
9576 _ACEOF
9577 if ac_fn_c_try_compile "$LINENO"; then :
9578 xorg_cv_cc_flag_unknown_warning_option=yes
9579 else
9580 xorg_cv_cc_flag_unknown_warning_option=no
9581 fi
9582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9583 fi
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9585 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9587 CFLAGS="$xorg_testset_save_CFLAGS"
9588 fi
9589
9590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9593 fi
9594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9596 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9597 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9602 int i;
9603 _ACEOF
9604 if ac_fn_c_try_compile "$LINENO"; then :
9605 xorg_cv_cc_flag_unused_command_line_argument=yes
9606 else
9607 xorg_cv_cc_flag_unused_command_line_argument=no
9608 fi
9609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610 fi
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9612 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9614 CFLAGS="$xorg_testset_save_CFLAGS"
9615 fi
9616
9617 found="no"
9618
9619 if test $found = "no" ; then
9620 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9622 fi
9623
9624 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9626 fi
9627
9628 CFLAGS="$CFLAGS -Warray-bounds"
9629
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9631 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9632 cacheid=xorg_cv_cc_flag__Warray_bounds
9633 if eval \${$cacheid+:} false; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9638 int i;
9639 int
9640 main ()
9641 {
9642
9643 ;
9644 return 0;
9645 }
9646 _ACEOF
9647 if ac_fn_c_try_link "$LINENO"; then :
9648 eval $cacheid=yes
9649 else
9650 eval $cacheid=no
9651 fi
9652 rm -f core conftest.err conftest.$ac_objext \
9653 conftest$ac_exeext conftest.$ac_ext
9654 fi
9655
9656
9657 CFLAGS="$xorg_testset_save_CFLAGS"
9658
9659 eval supported=\$$cacheid
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9661 $as_echo "$supported" >&6; }
9662 if test "$supported" = "yes" ; then
9663 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9664 found="yes"
9665 fi
9666 fi
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682 xorg_testset_save_CFLAGS="$CFLAGS"
9683
9684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9687 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9688 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693 int i;
9694 _ACEOF
9695 if ac_fn_c_try_compile "$LINENO"; then :
9696 xorg_cv_cc_flag_unknown_warning_option=yes
9697 else
9698 xorg_cv_cc_flag_unknown_warning_option=no
9699 fi
9700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701 fi
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9703 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9705 CFLAGS="$xorg_testset_save_CFLAGS"
9706 fi
9707
9708 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9711 fi
9712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9714 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9715 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9720 int i;
9721 _ACEOF
9722 if ac_fn_c_try_compile "$LINENO"; then :
9723 xorg_cv_cc_flag_unused_command_line_argument=yes
9724 else
9725 xorg_cv_cc_flag_unused_command_line_argument=no
9726 fi
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728 fi
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9730 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9732 CFLAGS="$xorg_testset_save_CFLAGS"
9733 fi
9734
9735 found="no"
9736
9737 if test $found = "no" ; then
9738 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9740 fi
9741
9742 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9744 fi
9745
9746 CFLAGS="$CFLAGS -Wwrite-strings"
9747
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9749 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9750 cacheid=xorg_cv_cc_flag__Wwrite_strings
9751 if eval \${$cacheid+:} false; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9756 int i;
9757 int
9758 main ()
9759 {
9760
9761 ;
9762 return 0;
9763 }
9764 _ACEOF
9765 if ac_fn_c_try_link "$LINENO"; then :
9766 eval $cacheid=yes
9767 else
9768 eval $cacheid=no
9769 fi
9770 rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772 fi
9773
9774
9775 CFLAGS="$xorg_testset_save_CFLAGS"
9776
9777 eval supported=\$$cacheid
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9779 $as_echo "$supported" >&6; }
9780 if test "$supported" = "yes" ; then
9781 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9782 found="yes"
9783 fi
9784 fi
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800 xorg_testset_save_CFLAGS="$CFLAGS"
9801
9802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9805 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9806 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811 int i;
9812 _ACEOF
9813 if ac_fn_c_try_compile "$LINENO"; then :
9814 xorg_cv_cc_flag_unknown_warning_option=yes
9815 else
9816 xorg_cv_cc_flag_unknown_warning_option=no
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9819 fi
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9821 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9823 CFLAGS="$xorg_testset_save_CFLAGS"
9824 fi
9825
9826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829 fi
9830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9832 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9833 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9838 int i;
9839 _ACEOF
9840 if ac_fn_c_try_compile "$LINENO"; then :
9841 xorg_cv_cc_flag_unused_command_line_argument=yes
9842 else
9843 xorg_cv_cc_flag_unused_command_line_argument=no
9844 fi
9845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9846 fi
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9848 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9850 CFLAGS="$xorg_testset_save_CFLAGS"
9851 fi
9852
9853 found="no"
9854
9855 if test $found = "no" ; then
9856 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9858 fi
9859
9860 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9862 fi
9863
9864 CFLAGS="$CFLAGS -Waddress"
9865
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9867 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9868 cacheid=xorg_cv_cc_flag__Waddress
9869 if eval \${$cacheid+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9874 int i;
9875 int
9876 main ()
9877 {
9878
9879 ;
9880 return 0;
9881 }
9882 _ACEOF
9883 if ac_fn_c_try_link "$LINENO"; then :
9884 eval $cacheid=yes
9885 else
9886 eval $cacheid=no
9887 fi
9888 rm -f core conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9890 fi
9891
9892
9893 CFLAGS="$xorg_testset_save_CFLAGS"
9894
9895 eval supported=\$$cacheid
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9897 $as_echo "$supported" >&6; }
9898 if test "$supported" = "yes" ; then
9899 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9900 found="yes"
9901 fi
9902 fi
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918 xorg_testset_save_CFLAGS="$CFLAGS"
9919
9920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9923 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9924 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9929 int i;
9930 _ACEOF
9931 if ac_fn_c_try_compile "$LINENO"; then :
9932 xorg_cv_cc_flag_unknown_warning_option=yes
9933 else
9934 xorg_cv_cc_flag_unknown_warning_option=no
9935 fi
9936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9939 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9941 CFLAGS="$xorg_testset_save_CFLAGS"
9942 fi
9943
9944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9947 fi
9948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9950 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9951 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9952 $as_echo_n "(cached) " >&6
9953 else
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9956 int i;
9957 _ACEOF
9958 if ac_fn_c_try_compile "$LINENO"; then :
9959 xorg_cv_cc_flag_unused_command_line_argument=yes
9960 else
9961 xorg_cv_cc_flag_unused_command_line_argument=no
9962 fi
9963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964 fi
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9966 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9968 CFLAGS="$xorg_testset_save_CFLAGS"
9969 fi
9970
9971 found="no"
9972
9973 if test $found = "no" ; then
9974 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9976 fi
9977
9978 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9980 fi
9981
9982 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9983
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9985 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9986 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9987 if eval \${$cacheid+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h. */
9992 int i;
9993 int
9994 main ()
9995 {
9996
9997 ;
9998 return 0;
9999 }
10000 _ACEOF
10001 if ac_fn_c_try_link "$LINENO"; then :
10002 eval $cacheid=yes
10003 else
10004 eval $cacheid=no
10005 fi
10006 rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008 fi
10009
10010
10011 CFLAGS="$xorg_testset_save_CFLAGS"
10012
10013 eval supported=\$$cacheid
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10015 $as_echo "$supported" >&6; }
10016 if test "$supported" = "yes" ; then
10017 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10018 found="yes"
10019 fi
10020 fi
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036 xorg_testset_save_CFLAGS="$CFLAGS"
10037
10038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10041 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10042 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10047 int i;
10048 _ACEOF
10049 if ac_fn_c_try_compile "$LINENO"; then :
10050 xorg_cv_cc_flag_unknown_warning_option=yes
10051 else
10052 xorg_cv_cc_flag_unknown_warning_option=no
10053 fi
10054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10055 fi
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10057 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10059 CFLAGS="$xorg_testset_save_CFLAGS"
10060 fi
10061
10062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10065 fi
10066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10068 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10069 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10070 $as_echo_n "(cached) " >&6
10071 else
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10074 int i;
10075 _ACEOF
10076 if ac_fn_c_try_compile "$LINENO"; then :
10077 xorg_cv_cc_flag_unused_command_line_argument=yes
10078 else
10079 xorg_cv_cc_flag_unused_command_line_argument=no
10080 fi
10081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10082 fi
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10084 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10086 CFLAGS="$xorg_testset_save_CFLAGS"
10087 fi
10088
10089 found="no"
10090
10091 if test $found = "no" ; then
10092 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10094 fi
10095
10096 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10098 fi
10099
10100 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10101
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
10103 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
10104 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10105 if eval \${$cacheid+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110 int i;
10111 int
10112 main ()
10113 {
10114
10115 ;
10116 return 0;
10117 }
10118 _ACEOF
10119 if ac_fn_c_try_link "$LINENO"; then :
10120 eval $cacheid=yes
10121 else
10122 eval $cacheid=no
10123 fi
10124 rm -f core conftest.err conftest.$ac_objext \
10125 conftest$ac_exeext conftest.$ac_ext
10126 fi
10127
10128
10129 CFLAGS="$xorg_testset_save_CFLAGS"
10130
10131 eval supported=\$$cacheid
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10133 $as_echo "$supported" >&6; }
10134 if test "$supported" = "yes" ; then
10135 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10136 found="yes"
10137 fi
10138 fi
10139
10140
10141 fi
10142
10143
10144
10145
10146
10147
10148
10149 CWARNFLAGS="$BASE_CFLAGS"
10150 if test "x$GCC" = xyes ; then
10151 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10152 fi
10153
10154
10155
10156
10157
10158
10159
10160
10161 # Check whether --enable-strict-compilation was given.
10162 if test "${enable_strict_compilation+set}" = set; then :
10163 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10164 else
10165 STRICT_COMPILE=no
10166 fi
10167
10168
10169
10170
10171
10172
10173 STRICT_CFLAGS=""
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187 xorg_testset_save_CFLAGS="$CFLAGS"
10188
10189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10192 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10193 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 int i;
10199 _ACEOF
10200 if ac_fn_c_try_compile "$LINENO"; then :
10201 xorg_cv_cc_flag_unknown_warning_option=yes
10202 else
10203 xorg_cv_cc_flag_unknown_warning_option=no
10204 fi
10205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10206 fi
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10208 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10210 CFLAGS="$xorg_testset_save_CFLAGS"
10211 fi
10212
10213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10216 fi
10217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10219 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10220 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10221 $as_echo_n "(cached) " >&6
10222 else
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225 int i;
10226 _ACEOF
10227 if ac_fn_c_try_compile "$LINENO"; then :
10228 xorg_cv_cc_flag_unused_command_line_argument=yes
10229 else
10230 xorg_cv_cc_flag_unused_command_line_argument=no
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10235 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10237 CFLAGS="$xorg_testset_save_CFLAGS"
10238 fi
10239
10240 found="no"
10241
10242 if test $found = "no" ; then
10243 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10245 fi
10246
10247 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10249 fi
10250
10251 CFLAGS="$CFLAGS -pedantic"
10252
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10254 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
10255 cacheid=xorg_cv_cc_flag__pedantic
10256 if eval \${$cacheid+:} false; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10261 int i;
10262 int
10263 main ()
10264 {
10265
10266 ;
10267 return 0;
10268 }
10269 _ACEOF
10270 if ac_fn_c_try_link "$LINENO"; then :
10271 eval $cacheid=yes
10272 else
10273 eval $cacheid=no
10274 fi
10275 rm -f core conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
10277 fi
10278
10279
10280 CFLAGS="$xorg_testset_save_CFLAGS"
10281
10282 eval supported=\$$cacheid
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10284 $as_echo "$supported" >&6; }
10285 if test "$supported" = "yes" ; then
10286 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10287 found="yes"
10288 fi
10289 fi
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305 xorg_testset_save_CFLAGS="$CFLAGS"
10306
10307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10310 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10311 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315 /* end confdefs.h. */
10316 int i;
10317 _ACEOF
10318 if ac_fn_c_try_compile "$LINENO"; then :
10319 xorg_cv_cc_flag_unknown_warning_option=yes
10320 else
10321 xorg_cv_cc_flag_unknown_warning_option=no
10322 fi
10323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10324 fi
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10326 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10328 CFLAGS="$xorg_testset_save_CFLAGS"
10329 fi
10330
10331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10334 fi
10335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10337 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10338 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343 int i;
10344 _ACEOF
10345 if ac_fn_c_try_compile "$LINENO"; then :
10346 xorg_cv_cc_flag_unused_command_line_argument=yes
10347 else
10348 xorg_cv_cc_flag_unused_command_line_argument=no
10349 fi
10350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10351 fi
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10353 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10355 CFLAGS="$xorg_testset_save_CFLAGS"
10356 fi
10357
10358 found="no"
10359
10360 if test $found = "no" ; then
10361 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10363 fi
10364
10365 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10367 fi
10368
10369 CFLAGS="$CFLAGS -Werror"
10370
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10372 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10373 cacheid=xorg_cv_cc_flag__Werror
10374 if eval \${$cacheid+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10379 int i;
10380 int
10381 main ()
10382 {
10383
10384 ;
10385 return 0;
10386 }
10387 _ACEOF
10388 if ac_fn_c_try_link "$LINENO"; then :
10389 eval $cacheid=yes
10390 else
10391 eval $cacheid=no
10392 fi
10393 rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395 fi
10396
10397
10398 CFLAGS="$xorg_testset_save_CFLAGS"
10399
10400 eval supported=\$$cacheid
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10402 $as_echo "$supported" >&6; }
10403 if test "$supported" = "yes" ; then
10404 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10405 found="yes"
10406 fi
10407 fi
10408
10409 if test $found = "no" ; then
10410 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10412 fi
10413
10414 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10416 fi
10417
10418 CFLAGS="$CFLAGS -errwarn"
10419
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10421 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10422 cacheid=xorg_cv_cc_flag__errwarn
10423 if eval \${$cacheid+:} false; then :
10424 $as_echo_n "(cached) " >&6
10425 else
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428 int i;
10429 int
10430 main ()
10431 {
10432
10433 ;
10434 return 0;
10435 }
10436 _ACEOF
10437 if ac_fn_c_try_link "$LINENO"; then :
10438 eval $cacheid=yes
10439 else
10440 eval $cacheid=no
10441 fi
10442 rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10444 fi
10445
10446
10447 CFLAGS="$xorg_testset_save_CFLAGS"
10448
10449 eval supported=\$$cacheid
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10451 $as_echo "$supported" >&6; }
10452 if test "$supported" = "yes" ; then
10453 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10454 found="yes"
10455 fi
10456 fi
10457
10458
10459
10460 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10461 # activate it with -Werror, so we add it here explicitly.
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475 xorg_testset_save_CFLAGS="$CFLAGS"
10476
10477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10480 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10481 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h. */
10486 int i;
10487 _ACEOF
10488 if ac_fn_c_try_compile "$LINENO"; then :
10489 xorg_cv_cc_flag_unknown_warning_option=yes
10490 else
10491 xorg_cv_cc_flag_unknown_warning_option=no
10492 fi
10493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10494 fi
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10496 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10498 CFLAGS="$xorg_testset_save_CFLAGS"
10499 fi
10500
10501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10504 fi
10505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10507 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10508 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10509 $as_echo_n "(cached) " >&6
10510 else
10511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10512 /* end confdefs.h. */
10513 int i;
10514 _ACEOF
10515 if ac_fn_c_try_compile "$LINENO"; then :
10516 xorg_cv_cc_flag_unused_command_line_argument=yes
10517 else
10518 xorg_cv_cc_flag_unused_command_line_argument=no
10519 fi
10520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10521 fi
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10523 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10525 CFLAGS="$xorg_testset_save_CFLAGS"
10526 fi
10527
10528 found="no"
10529
10530 if test $found = "no" ; then
10531 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10533 fi
10534
10535 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10537 fi
10538
10539 CFLAGS="$CFLAGS -Werror=attributes"
10540
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10542 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10543 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10544 if eval \${$cacheid+:} false; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549 int i;
10550 int
10551 main ()
10552 {
10553
10554 ;
10555 return 0;
10556 }
10557 _ACEOF
10558 if ac_fn_c_try_link "$LINENO"; then :
10559 eval $cacheid=yes
10560 else
10561 eval $cacheid=no
10562 fi
10563 rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10565 fi
10566
10567
10568 CFLAGS="$xorg_testset_save_CFLAGS"
10569
10570 eval supported=\$$cacheid
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10572 $as_echo "$supported" >&6; }
10573 if test "$supported" = "yes" ; then
10574 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10575 found="yes"
10576 fi
10577 fi
10578
10579
10580
10581 if test "x$STRICT_COMPILE" = "xyes"; then
10582 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10583 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10584 fi
10585
10586
10587
10588
10589
10590
10591 cat >>confdefs.h <<_ACEOF
10592 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10593 _ACEOF
10594
10595 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10596 if test "x$PVM" = "x"; then
10597 PVM="0"
10598 fi
10599
10600 cat >>confdefs.h <<_ACEOF
10601 #define PACKAGE_VERSION_MINOR $PVM
10602 _ACEOF
10603
10604 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10605 if test "x$PVP" = "x"; then
10606 PVP="0"
10607 fi
10608
10609 cat >>confdefs.h <<_ACEOF
10610 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10611 _ACEOF
10612
10613
10614
10615 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10616 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10617 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10618 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10619
10620
10621
10622
10623 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10624 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10625 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10626 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10627 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10628
10629
10630
10631
10632
10633
10634 if test x$APP_MAN_SUFFIX = x ; then
10635 APP_MAN_SUFFIX=1
10636 fi
10637 if test x$APP_MAN_DIR = x ; then
10638 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10639 fi
10640
10641 if test x$LIB_MAN_SUFFIX = x ; then
10642 LIB_MAN_SUFFIX=3
10643 fi
10644 if test x$LIB_MAN_DIR = x ; then
10645 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10646 fi
10647
10648 if test x$FILE_MAN_SUFFIX = x ; then
10649 case $host_os in
10650 solaris*) FILE_MAN_SUFFIX=4 ;;
10651 *) FILE_MAN_SUFFIX=5 ;;
10652 esac
10653 fi
10654 if test x$FILE_MAN_DIR = x ; then
10655 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10656 fi
10657
10658 if test x$MISC_MAN_SUFFIX = x ; then
10659 case $host_os in
10660 solaris*) MISC_MAN_SUFFIX=5 ;;
10661 *) MISC_MAN_SUFFIX=7 ;;
10662 esac
10663 fi
10664 if test x$MISC_MAN_DIR = x ; then
10665 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10666 fi
10667
10668 if test x$DRIVER_MAN_SUFFIX = x ; then
10669 case $host_os in
10670 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10671 *) DRIVER_MAN_SUFFIX=4 ;;
10672 esac
10673 fi
10674 if test x$DRIVER_MAN_DIR = x ; then
10675 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10676 fi
10677
10678 if test x$ADMIN_MAN_SUFFIX = x ; then
10679 case $host_os in
10680 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10681 *) ADMIN_MAN_SUFFIX=8 ;;
10682 esac
10683 fi
10684 if test x$ADMIN_MAN_DIR = x ; then
10685 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10686 fi
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702 XORG_MAN_PAGE="X Version 11"
10703
10704 MAN_SUBSTS="\
10705 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10706 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10707 -e 's|__xservername__|Xorg|g' \
10708 -e 's|__xconfigfile__|xorg.conf|g' \
10709 -e 's|__projectroot__|\$(prefix)|g' \
10710 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10711 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10712 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10713 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10714 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10715 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10716 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10717
10718
10719
10720 # Check whether --enable-silent-rules was given.
10721 if test "${enable_silent_rules+set}" = set; then :
10722 enableval=$enable_silent_rules;
10723 fi
10724
10725 case $enable_silent_rules in
10726 yes) AM_DEFAULT_VERBOSITY=0;;
10727 no) AM_DEFAULT_VERBOSITY=1;;
10728 *) AM_DEFAULT_VERBOSITY=0;;
10729 esac
10730 am_make=${MAKE-make}
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10732 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10733 if ${am_cv_make_support_nested_variables+:} false; then :
10734 $as_echo_n "(cached) " >&6
10735 else
10736 if $as_echo 'TRUE=$(BAR$(V))
10737 BAR0=false
10738 BAR1=true
10739 V=1
10740 am__doit:
10741 @$(TRUE)
10742 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10743 am_cv_make_support_nested_variables=yes
10744 else
10745 am_cv_make_support_nested_variables=no
10746 fi
10747 fi
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10749 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10750 if test $am_cv_make_support_nested_variables = yes; then
10751 AM_V='$(V)'
10752 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10753 else
10754 AM_V=$AM_DEFAULT_VERBOSITY
10755 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10756 fi
10757 AM_BACKSLASH='\'
10758
10759
10760
10761 # Initialize libtool
10762 # Check whether --enable-static was given.
10763 if test "${enable_static+set}" = set; then :
10764 enableval=$enable_static; p=${PACKAGE-default}
10765 case $enableval in
10766 yes) enable_static=yes ;;
10767 no) enable_static=no ;;
10768 *)
10769 enable_static=no
10770 # Look at the argument we got. We use all the common list separators.
10771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10772 for pkg in $enableval; do
10773 IFS="$lt_save_ifs"
10774 if test "X$pkg" = "X$p"; then
10775 enable_static=yes
10776 fi
10777 done
10778 IFS="$lt_save_ifs"
10779 ;;
10780 esac
10781 else
10782 enable_static=no
10783 fi
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793 case `pwd` in
10794 *\ * | *\ *)
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10796 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10797 esac
10798
10799
10800
10801 macro_version='2.4.2'
10802 macro_revision='1.3337'
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816 ltmain="$ac_aux_dir/ltmain.sh"
10817
10818 # Backslashify metacharacters that are still active within
10819 # double-quoted strings.
10820 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10821
10822 # Same as above, but do not quote variable references.
10823 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10824
10825 # Sed substitution to delay expansion of an escaped shell variable in a
10826 # double_quote_subst'ed string.
10827 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10828
10829 # Sed substitution to delay expansion of an escaped single quote.
10830 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10831
10832 # Sed substitution to avoid accidental globbing in evaled expressions
10833 no_glob_subst='s/\*/\\\*/g'
10834
10835 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10836 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10837 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10838
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10840 $as_echo_n "checking how to print strings... " >&6; }
10841 # Test print first, because it will be a builtin if present.
10842 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10843 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10844 ECHO='print -r --'
10845 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10846 ECHO='printf %s\n'
10847 else
10848 # Use this function as a fallback that always works.
10849 func_fallback_echo ()
10850 {
10851 eval 'cat <<_LTECHO_EOF
10852 $1
10853 _LTECHO_EOF'
10854 }
10855 ECHO='func_fallback_echo'
10856 fi
10857
10858 # func_echo_all arg...
10859 # Invoke $ECHO with all args, space-separated.
10860 func_echo_all ()
10861 {
10862 $ECHO ""
10863 }
10864
10865 case "$ECHO" in
10866 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10867 $as_echo "printf" >&6; } ;;
10868 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10869 $as_echo "print -r" >&6; } ;;
10870 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10871 $as_echo "cat" >&6; } ;;
10872 esac
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10888 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10889 if ${ac_cv_path_SED+:} false; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10893 for ac_i in 1 2 3 4 5 6 7; do
10894 ac_script="$ac_script$as_nl$ac_script"
10895 done
10896 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10897 { ac_script=; unset ac_script;}
10898 if test -z "$SED"; then
10899 ac_path_SED_found=false
10900 # Loop through the user's path and test for each of PROGNAME-LIST
10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10903 do
10904 IFS=$as_save_IFS
10905 test -z "$as_dir" && as_dir=.
10906 for ac_prog in sed gsed; do
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10909 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10910 # Check for GNU ac_path_SED and select it if it is found.
10911 # Check for GNU $ac_path_SED
10912 case `"$ac_path_SED" --version 2>&1` in
10913 *GNU*)
10914 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10915 *)
10916 ac_count=0
10917 $as_echo_n 0123456789 >"conftest.in"
10918 while :
10919 do
10920 cat "conftest.in" "conftest.in" >"conftest.tmp"
10921 mv "conftest.tmp" "conftest.in"
10922 cp "conftest.in" "conftest.nl"
10923 $as_echo '' >> "conftest.nl"
10924 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10926 as_fn_arith $ac_count + 1 && ac_count=$as_val
10927 if test $ac_count -gt ${ac_path_SED_max-0}; then
10928 # Best one so far, save it but keep looking for a better one
10929 ac_cv_path_SED="$ac_path_SED"
10930 ac_path_SED_max=$ac_count
10931 fi
10932 # 10*(2^10) chars as input seems more than enough
10933 test $ac_count -gt 10 && break
10934 done
10935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10936 esac
10937
10938 $ac_path_SED_found && break 3
10939 done
10940 done
10941 done
10942 IFS=$as_save_IFS
10943 if test -z "$ac_cv_path_SED"; then
10944 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10945 fi
10946 else
10947 ac_cv_path_SED=$SED
10948 fi
10949
10950 fi
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10952 $as_echo "$ac_cv_path_SED" >&6; }
10953 SED="$ac_cv_path_SED"
10954 rm -f conftest.sed
10955
10956 test -z "$SED" && SED=sed
10957 Xsed="$SED -e 1s/^X//"
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10970 $as_echo_n "checking for fgrep... " >&6; }
10971 if ${ac_cv_path_FGREP+:} false; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10975 then ac_cv_path_FGREP="$GREP -F"
10976 else
10977 if test -z "$FGREP"; then
10978 ac_path_FGREP_found=false
10979 # Loop through the user's path and test for each of PROGNAME-LIST
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10982 do
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
10985 for ac_prog in fgrep; do
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10988 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10989 # Check for GNU ac_path_FGREP and select it if it is found.
10990 # Check for GNU $ac_path_FGREP
10991 case `"$ac_path_FGREP" --version 2>&1` in
10992 *GNU*)
10993 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10994 *)
10995 ac_count=0
10996 $as_echo_n 0123456789 >"conftest.in"
10997 while :
10998 do
10999 cat "conftest.in" "conftest.in" >"conftest.tmp"
11000 mv "conftest.tmp" "conftest.in"
11001 cp "conftest.in" "conftest.nl"
11002 $as_echo 'FGREP' >> "conftest.nl"
11003 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11005 as_fn_arith $ac_count + 1 && ac_count=$as_val
11006 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11007 # Best one so far, save it but keep looking for a better one
11008 ac_cv_path_FGREP="$ac_path_FGREP"
11009 ac_path_FGREP_max=$ac_count
11010 fi
11011 # 10*(2^10) chars as input seems more than enough
11012 test $ac_count -gt 10 && break
11013 done
11014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11015 esac
11016
11017 $ac_path_FGREP_found && break 3
11018 done
11019 done
11020 done
11021 IFS=$as_save_IFS
11022 if test -z "$ac_cv_path_FGREP"; then
11023 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11024 fi
11025 else
11026 ac_cv_path_FGREP=$FGREP
11027 fi
11028
11029 fi
11030 fi
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11032 $as_echo "$ac_cv_path_FGREP" >&6; }
11033 FGREP="$ac_cv_path_FGREP"
11034
11035
11036 test -z "$GREP" && GREP=grep
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056 # Check whether --with-gnu-ld was given.
11057 if test "${with_gnu_ld+set}" = set; then :
11058 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11059 else
11060 with_gnu_ld=no
11061 fi
11062
11063 ac_prog=ld
11064 if test "$GCC" = yes; then
11065 # Check if gcc -print-prog-name=ld gives a path.
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11067 $as_echo_n "checking for ld used by $CC... " >&6; }
11068 case $host in
11069 *-*-mingw*)
11070 # gcc leaves a trailing carriage return which upsets mingw
11071 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11072 *)
11073 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11074 esac
11075 case $ac_prog in
11076 # Accept absolute paths.
11077 [\\/]* | ?:[\\/]*)
11078 re_direlt='/[^/][^/]*/\.\./'
11079 # Canonicalize the pathname of ld
11080 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11081 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11082 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11083 done
11084 test -z "$LD" && LD="$ac_prog"
11085 ;;
11086 "")
11087 # If it fails, then pretend we aren't using GCC.
11088 ac_prog=ld
11089 ;;
11090 *)
11091 # If it is relative, then search for the first ld in PATH.
11092 with_gnu_ld=unknown
11093 ;;
11094 esac
11095 elif test "$with_gnu_ld" = yes; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11097 $as_echo_n "checking for GNU ld... " >&6; }
11098 else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11100 $as_echo_n "checking for non-GNU ld... " >&6; }
11101 fi
11102 if ${lt_cv_path_LD+:} false; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 if test -z "$LD"; then
11106 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11107 for ac_dir in $PATH; do
11108 IFS="$lt_save_ifs"
11109 test -z "$ac_dir" && ac_dir=.
11110 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11111 lt_cv_path_LD="$ac_dir/$ac_prog"
11112 # Check to see if the program is GNU ld. I'd rather use --version,
11113 # but apparently some variants of GNU ld only accept -v.
11114 # Break only if it was the GNU/non-GNU ld that we prefer.
11115 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11116 *GNU* | *'with BFD'*)
11117 test "$with_gnu_ld" != no && break
11118 ;;
11119 *)
11120 test "$with_gnu_ld" != yes && break
11121 ;;
11122 esac
11123 fi
11124 done
11125 IFS="$lt_save_ifs"
11126 else
11127 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11128 fi
11129 fi
11130
11131 LD="$lt_cv_path_LD"
11132 if test -n "$LD"; then
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11134 $as_echo "$LD" >&6; }
11135 else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137 $as_echo "no" >&6; }
11138 fi
11139 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11141 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11142 if ${lt_cv_prog_gnu_ld+:} false; then :
11143 $as_echo_n "(cached) " >&6
11144 else
11145 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11146 case `$LD -v 2>&1 </dev/null` in
11147 *GNU* | *'with BFD'*)
11148 lt_cv_prog_gnu_ld=yes
11149 ;;
11150 *)
11151 lt_cv_prog_gnu_ld=no
11152 ;;
11153 esac
11154 fi
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11156 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11157 with_gnu_ld=$lt_cv_prog_gnu_ld
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11168 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11169 if ${lt_cv_path_NM+:} false; then :
11170 $as_echo_n "(cached) " >&6
11171 else
11172 if test -n "$NM"; then
11173 # Let the user override the test.
11174 lt_cv_path_NM="$NM"
11175 else
11176 lt_nm_to_check="${ac_tool_prefix}nm"
11177 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11178 lt_nm_to_check="$lt_nm_to_check nm"
11179 fi
11180 for lt_tmp_nm in $lt_nm_to_check; do
11181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11182 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11183 IFS="$lt_save_ifs"
11184 test -z "$ac_dir" && ac_dir=.
11185 tmp_nm="$ac_dir/$lt_tmp_nm"
11186 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11187 # Check to see if the nm accepts a BSD-compat flag.
11188 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11189 # nm: unknown option "B" ignored
11190 # Tru64's nm complains that /dev/null is an invalid object file
11191 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11192 */dev/null* | *'Invalid file or object type'*)
11193 lt_cv_path_NM="$tmp_nm -B"
11194 break
11195 ;;
11196 *)
11197 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11198 */dev/null*)
11199 lt_cv_path_NM="$tmp_nm -p"
11200 break
11201 ;;
11202 *)
11203 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11204 continue # so that we can try to find one that supports BSD flags
11205 ;;
11206 esac
11207 ;;
11208 esac
11209 fi
11210 done
11211 IFS="$lt_save_ifs"
11212 done
11213 : ${lt_cv_path_NM=no}
11214 fi
11215 fi
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11217 $as_echo "$lt_cv_path_NM" >&6; }
11218 if test "$lt_cv_path_NM" != "no"; then
11219 NM="$lt_cv_path_NM"
11220 else
11221 # Didn't find any BSD compatible name lister, look for dumpbin.
11222 if test -n "$DUMPBIN"; then :
11223 # Let the user override the test.
11224 else
11225 if test -n "$ac_tool_prefix"; then
11226 for ac_prog in dumpbin "link -dump"
11227 do
11228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11231 $as_echo_n "checking for $ac_word... " >&6; }
11232 if ${ac_cv_prog_DUMPBIN+:} false; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 if test -n "$DUMPBIN"; then
11236 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11237 else
11238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239 for as_dir in $PATH
11240 do
11241 IFS=$as_save_IFS
11242 test -z "$as_dir" && as_dir=.
11243 for ac_exec_ext in '' $ac_executable_extensions; do
11244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11245 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11247 break 2
11248 fi
11249 done
11250 done
11251 IFS=$as_save_IFS
11252
11253 fi
11254 fi
11255 DUMPBIN=$ac_cv_prog_DUMPBIN
11256 if test -n "$DUMPBIN"; then
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11258 $as_echo "$DUMPBIN" >&6; }
11259 else
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261 $as_echo "no" >&6; }
11262 fi
11263
11264
11265 test -n "$DUMPBIN" && break
11266 done
11267 fi
11268 if test -z "$DUMPBIN"; then
11269 ac_ct_DUMPBIN=$DUMPBIN
11270 for ac_prog in dumpbin "link -dump"
11271 do
11272 # Extract the first word of "$ac_prog", so it can be a program name with args.
11273 set dummy $ac_prog; ac_word=$2
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275 $as_echo_n "checking for $ac_word... " >&6; }
11276 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 if test -n "$ac_ct_DUMPBIN"; then
11280 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11281 else
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11284 do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11289 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 break 2
11292 fi
11293 done
11294 done
11295 IFS=$as_save_IFS
11296
11297 fi
11298 fi
11299 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11300 if test -n "$ac_ct_DUMPBIN"; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11302 $as_echo "$ac_ct_DUMPBIN" >&6; }
11303 else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 $as_echo "no" >&6; }
11306 fi
11307
11308
11309 test -n "$ac_ct_DUMPBIN" && break
11310 done
11311
11312 if test "x$ac_ct_DUMPBIN" = x; then
11313 DUMPBIN=":"
11314 else
11315 case $cross_compiling:$ac_tool_warned in
11316 yes:)
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11319 ac_tool_warned=yes ;;
11320 esac
11321 DUMPBIN=$ac_ct_DUMPBIN
11322 fi
11323 fi
11324
11325 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11326 *COFF*)
11327 DUMPBIN="$DUMPBIN -symbols"
11328 ;;
11329 *)
11330 DUMPBIN=:
11331 ;;
11332 esac
11333 fi
11334
11335 if test "$DUMPBIN" != ":"; then
11336 NM="$DUMPBIN"
11337 fi
11338 fi
11339 test -z "$NM" && NM=nm
11340
11341
11342
11343
11344
11345
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11347 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11348 if ${lt_cv_nm_interface+:} false; then :
11349 $as_echo_n "(cached) " >&6
11350 else
11351 lt_cv_nm_interface="BSD nm"
11352 echo "int some_variable = 0;" > conftest.$ac_ext
11353 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11354 (eval "$ac_compile" 2>conftest.err)
11355 cat conftest.err >&5
11356 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11357 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11358 cat conftest.err >&5
11359 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11360 cat conftest.out >&5
11361 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11362 lt_cv_nm_interface="MS dumpbin"
11363 fi
11364 rm -f conftest*
11365 fi
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11367 $as_echo "$lt_cv_nm_interface" >&6; }
11368
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11370 $as_echo_n "checking whether ln -s works... " >&6; }
11371 LN_S=$as_ln_s
11372 if test "$LN_S" = "ln -s"; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11374 $as_echo "yes" >&6; }
11375 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11377 $as_echo "no, using $LN_S" >&6; }
11378 fi
11379
11380 # find the maximum length of command line arguments
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11382 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11383 if ${lt_cv_sys_max_cmd_len+:} false; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 i=0
11387 teststring="ABCD"
11388
11389 case $build_os in
11390 msdosdjgpp*)
11391 # On DJGPP, this test can blow up pretty badly due to problems in libc
11392 # (any single argument exceeding 2000 bytes causes a buffer overrun
11393 # during glob expansion). Even if it were fixed, the result of this
11394 # check would be larger than it should be.
11395 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11396 ;;
11397
11398 gnu*)
11399 # Under GNU Hurd, this test is not required because there is
11400 # no limit to the length of command line arguments.
11401 # Libtool will interpret -1 as no limit whatsoever
11402 lt_cv_sys_max_cmd_len=-1;
11403 ;;
11404
11405 cygwin* | mingw* | cegcc*)
11406 # On Win9x/ME, this test blows up -- it succeeds, but takes
11407 # about 5 minutes as the teststring grows exponentially.
11408 # Worse, since 9x/ME are not pre-emptively multitasking,
11409 # you end up with a "frozen" computer, even though with patience
11410 # the test eventually succeeds (with a max line length of 256k).
11411 # Instead, let's just punt: use the minimum linelength reported by
11412 # all of the supported platforms: 8192 (on NT/2K/XP).
11413 lt_cv_sys_max_cmd_len=8192;
11414 ;;
11415
11416 mint*)
11417 # On MiNT this can take a long time and run out of memory.
11418 lt_cv_sys_max_cmd_len=8192;
11419 ;;
11420
11421 amigaos*)
11422 # On AmigaOS with pdksh, this test takes hours, literally.
11423 # So we just punt and use a minimum line length of 8192.
11424 lt_cv_sys_max_cmd_len=8192;
11425 ;;
11426
11427 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11428 # This has been around since 386BSD, at least. Likely further.
11429 if test -x /sbin/sysctl; then
11430 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11431 elif test -x /usr/sbin/sysctl; then
11432 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11433 else
11434 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11435 fi
11436 # And add a safety zone
11437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11439 ;;
11440
11441 interix*)
11442 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11443 lt_cv_sys_max_cmd_len=196608
11444 ;;
11445
11446 os2*)
11447 # The test takes a long time on OS/2.
11448 lt_cv_sys_max_cmd_len=8192
11449 ;;
11450
11451 osf*)
11452 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11453 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11454 # nice to cause kernel panics so lets avoid the loop below.
11455 # First set a reasonable default.
11456 lt_cv_sys_max_cmd_len=16384
11457 #
11458 if test -x /sbin/sysconfig; then
11459 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11460 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11461 esac
11462 fi
11463 ;;
11464 sco3.2v5*)
11465 lt_cv_sys_max_cmd_len=102400
11466 ;;
11467 sysv5* | sco5v6* | sysv4.2uw2*)
11468 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11469 if test -n "$kargmax"; then
11470 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11471 else
11472 lt_cv_sys_max_cmd_len=32768
11473 fi
11474 ;;
11475 *)
11476 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11477 if test -n "$lt_cv_sys_max_cmd_len"; then
11478 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11480 else
11481 # Make teststring a little bigger before we do anything with it.
11482 # a 1K string should be a reasonable start.
11483 for i in 1 2 3 4 5 6 7 8 ; do
11484 teststring=$teststring$teststring
11485 done
11486 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11487 # If test is not a shell built-in, we'll probably end up computing a
11488 # maximum length that is only half of the actual maximum length, but
11489 # we can't tell.
11490 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11491 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11492 test $i != 17 # 1/2 MB should be enough
11493 do
11494 i=`expr $i + 1`
11495 teststring=$teststring$teststring
11496 done
11497 # Only check the string length outside the loop.
11498 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11499 teststring=
11500 # Add a significant safety factor because C++ compilers can tack on
11501 # massive amounts of additional arguments before passing them to the
11502 # linker. It appears as though 1/2 is a usable value.
11503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11504 fi
11505 ;;
11506 esac
11507
11508 fi
11509
11510 if test -n $lt_cv_sys_max_cmd_len ; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11512 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11513 else
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11515 $as_echo "none" >&6; }
11516 fi
11517 max_cmd_len=$lt_cv_sys_max_cmd_len
11518
11519
11520
11521
11522
11523
11524 : ${CP="cp -f"}
11525 : ${MV="mv -f"}
11526 : ${RM="rm -f"}
11527
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11529 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11530 # Try some XSI features
11531 xsi_shell=no
11532 ( _lt_dummy="a/b/c"
11533 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11534 = c,a/b,b/c, \
11535 && eval 'test $(( 1 + 1 )) -eq 2 \
11536 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11537 && xsi_shell=yes
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11539 $as_echo "$xsi_shell" >&6; }
11540
11541
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11543 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11544 lt_shell_append=no
11545 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11546 >/dev/null 2>&1 \
11547 && lt_shell_append=yes
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11549 $as_echo "$lt_shell_append" >&6; }
11550
11551
11552 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11553 lt_unset=unset
11554 else
11555 lt_unset=false
11556 fi
11557
11558
11559
11560
11561
11562 # test EBCDIC or ASCII
11563 case `echo X|tr X '\101'` in
11564 A) # ASCII based system
11565 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11566 lt_SP2NL='tr \040 \012'
11567 lt_NL2SP='tr \015\012 \040\040'
11568 ;;
11569 *) # EBCDIC based system
11570 lt_SP2NL='tr \100 \n'
11571 lt_NL2SP='tr \r\n \100\100'
11572 ;;
11573 esac
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11584 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11585 if ${lt_cv_to_host_file_cmd+:} false; then :
11586 $as_echo_n "(cached) " >&6
11587 else
11588 case $host in
11589 *-*-mingw* )
11590 case $build in
11591 *-*-mingw* ) # actually msys
11592 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11593 ;;
11594 *-*-cygwin* )
11595 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11596 ;;
11597 * ) # otherwise, assume *nix
11598 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11599 ;;
11600 esac
11601 ;;
11602 *-*-cygwin* )
11603 case $build in
11604 *-*-mingw* ) # actually msys
11605 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11606 ;;
11607 *-*-cygwin* )
11608 lt_cv_to_host_file_cmd=func_convert_file_noop
11609 ;;
11610 * ) # otherwise, assume *nix
11611 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11612 ;;
11613 esac
11614 ;;
11615 * ) # unhandled hosts (and "normal" native builds)
11616 lt_cv_to_host_file_cmd=func_convert_file_noop
11617 ;;
11618 esac
11619
11620 fi
11621
11622 to_host_file_cmd=$lt_cv_to_host_file_cmd
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11624 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11625
11626
11627
11628
11629
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11631 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11632 if ${lt_cv_to_tool_file_cmd+:} false; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 #assume ordinary cross tools, or native build.
11636 lt_cv_to_tool_file_cmd=func_convert_file_noop
11637 case $host in
11638 *-*-mingw* )
11639 case $build in
11640 *-*-mingw* ) # actually msys
11641 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11642 ;;
11643 esac
11644 ;;
11645 esac
11646
11647 fi
11648
11649 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11651 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11652
11653
11654
11655
11656
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11658 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11659 if ${lt_cv_ld_reload_flag+:} false; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 lt_cv_ld_reload_flag='-r'
11663 fi
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11665 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11666 reload_flag=$lt_cv_ld_reload_flag
11667 case $reload_flag in
11668 "" | " "*) ;;
11669 *) reload_flag=" $reload_flag" ;;
11670 esac
11671 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11672 case $host_os in
11673 cygwin* | mingw* | pw32* | cegcc*)
11674 if test "$GCC" != yes; then
11675 reload_cmds=false
11676 fi
11677 ;;
11678 darwin*)
11679 if test "$GCC" = yes; then
11680 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11681 else
11682 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11683 fi
11684 ;;
11685 esac
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695 if test -n "$ac_tool_prefix"; then
11696 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11697 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_prog_OBJDUMP+:} false; then :
11701 $as_echo_n "(cached) " >&6
11702 else
11703 if test -n "$OBJDUMP"; then
11704 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11705 else
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11708 do
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11713 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 break 2
11716 fi
11717 done
11718 done
11719 IFS=$as_save_IFS
11720
11721 fi
11722 fi
11723 OBJDUMP=$ac_cv_prog_OBJDUMP
11724 if test -n "$OBJDUMP"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11726 $as_echo "$OBJDUMP" >&6; }
11727 else
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729 $as_echo "no" >&6; }
11730 fi
11731
11732
11733 fi
11734 if test -z "$ac_cv_prog_OBJDUMP"; then
11735 ac_ct_OBJDUMP=$OBJDUMP
11736 # Extract the first word of "objdump", so it can be a program name with args.
11737 set dummy objdump; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 if test -n "$ac_ct_OBJDUMP"; then
11744 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11745 else
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in $PATH
11748 do
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11753 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 break 2
11756 fi
11757 done
11758 done
11759 IFS=$as_save_IFS
11760
11761 fi
11762 fi
11763 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11764 if test -n "$ac_ct_OBJDUMP"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11766 $as_echo "$ac_ct_OBJDUMP" >&6; }
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11770 fi
11771
11772 if test "x$ac_ct_OBJDUMP" = x; then
11773 OBJDUMP="false"
11774 else
11775 case $cross_compiling:$ac_tool_warned in
11776 yes:)
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11779 ac_tool_warned=yes ;;
11780 esac
11781 OBJDUMP=$ac_ct_OBJDUMP
11782 fi
11783 else
11784 OBJDUMP="$ac_cv_prog_OBJDUMP"
11785 fi
11786
11787 test -z "$OBJDUMP" && OBJDUMP=objdump
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11798 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11799 if ${lt_cv_deplibs_check_method+:} false; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 lt_cv_file_magic_cmd='$MAGIC_CMD'
11803 lt_cv_file_magic_test_file=
11804 lt_cv_deplibs_check_method='unknown'
11805 # Need to set the preceding variable on all platforms that support
11806 # interlibrary dependencies.
11807 # 'none' -- dependencies not supported.
11808 # `unknown' -- same as none, but documents that we really don't know.
11809 # 'pass_all' -- all dependencies passed with no checks.
11810 # 'test_compile' -- check by making test program.
11811 # 'file_magic [[regex]]' -- check by looking for files in library path
11812 # which responds to the $file_magic_cmd with a given extended regex.
11813 # If you have `file' or equivalent on your system and you're not sure
11814 # whether `pass_all' will *always* work, you probably want this one.
11815
11816 case $host_os in
11817 aix[4-9]*)
11818 lt_cv_deplibs_check_method=pass_all
11819 ;;
11820
11821 beos*)
11822 lt_cv_deplibs_check_method=pass_all
11823 ;;
11824
11825 bsdi[45]*)
11826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11827 lt_cv_file_magic_cmd='/usr/bin/file -L'
11828 lt_cv_file_magic_test_file=/shlib/libc.so
11829 ;;
11830
11831 cygwin*)
11832 # func_win32_libid is a shell function defined in ltmain.sh
11833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11834 lt_cv_file_magic_cmd='func_win32_libid'
11835 ;;
11836
11837 mingw* | pw32*)
11838 # Base MSYS/MinGW do not provide the 'file' command needed by
11839 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11840 # unless we find 'file', for example because we are cross-compiling.
11841 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11842 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11843 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11844 lt_cv_file_magic_cmd='func_win32_libid'
11845 else
11846 # Keep this pattern in sync with the one in func_win32_libid.
11847 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11848 lt_cv_file_magic_cmd='$OBJDUMP -f'
11849 fi
11850 ;;
11851
11852 cegcc*)
11853 # use the weaker test based on 'objdump'. See mingw*.
11854 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11855 lt_cv_file_magic_cmd='$OBJDUMP -f'
11856 ;;
11857
11858 darwin* | rhapsody*)
11859 lt_cv_deplibs_check_method=pass_all
11860 ;;
11861
11862 freebsd* | dragonfly*)
11863 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11864 case $host_cpu in
11865 i*86 )
11866 # Not sure whether the presence of OpenBSD here was a mistake.
11867 # Let's accept both of them until this is cleared up.
11868 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11869 lt_cv_file_magic_cmd=/usr/bin/file
11870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11871 ;;
11872 esac
11873 else
11874 lt_cv_deplibs_check_method=pass_all
11875 fi
11876 ;;
11877
11878 gnu*)
11879 lt_cv_deplibs_check_method=pass_all
11880 ;;
11881
11882 haiku*)
11883 lt_cv_deplibs_check_method=pass_all
11884 ;;
11885
11886 hpux10.20* | hpux11*)
11887 lt_cv_file_magic_cmd=/usr/bin/file
11888 case $host_cpu in
11889 ia64*)
11890 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11891 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11892 ;;
11893 hppa*64*)
11894 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
11895 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11896 ;;
11897 *)
11898 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11899 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11900 ;;
11901 esac
11902 ;;
11903
11904 interix[3-9]*)
11905 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11907 ;;
11908
11909 irix5* | irix6* | nonstopux*)
11910 case $LD in
11911 *-32|*"-32 ") libmagic=32-bit;;
11912 *-n32|*"-n32 ") libmagic=N32;;
11913 *-64|*"-64 ") libmagic=64-bit;;
11914 *) libmagic=never-match;;
11915 esac
11916 lt_cv_deplibs_check_method=pass_all
11917 ;;
11918
11919 # This must be glibc/ELF.
11920 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11921 lt_cv_deplibs_check_method=pass_all
11922 ;;
11923
11924 netbsd* | netbsdelf*-gnu)
11925 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11927 else
11928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11929 fi
11930 ;;
11931
11932 newos6*)
11933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11934 lt_cv_file_magic_cmd=/usr/bin/file
11935 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11936 ;;
11937
11938 *nto* | *qnx*)
11939 lt_cv_deplibs_check_method=pass_all
11940 ;;
11941
11942 openbsd*)
11943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11945 else
11946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11947 fi
11948 ;;
11949
11950 osf3* | osf4* | osf5*)
11951 lt_cv_deplibs_check_method=pass_all
11952 ;;
11953
11954 rdos*)
11955 lt_cv_deplibs_check_method=pass_all
11956 ;;
11957
11958 solaris*)
11959 lt_cv_deplibs_check_method=pass_all
11960 ;;
11961
11962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11963 lt_cv_deplibs_check_method=pass_all
11964 ;;
11965
11966 sysv4 | sysv4.3*)
11967 case $host_vendor in
11968 motorola)
11969 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]'
11970 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11971 ;;
11972 ncr)
11973 lt_cv_deplibs_check_method=pass_all
11974 ;;
11975 sequent)
11976 lt_cv_file_magic_cmd='/bin/file'
11977 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11978 ;;
11979 sni)
11980 lt_cv_file_magic_cmd='/bin/file'
11981 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11982 lt_cv_file_magic_test_file=/lib/libc.so
11983 ;;
11984 siemens)
11985 lt_cv_deplibs_check_method=pass_all
11986 ;;
11987 pc)
11988 lt_cv_deplibs_check_method=pass_all
11989 ;;
11990 esac
11991 ;;
11992
11993 tpf*)
11994 lt_cv_deplibs_check_method=pass_all
11995 ;;
11996 esac
11997
11998 fi
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12000 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12001
12002 file_magic_glob=
12003 want_nocaseglob=no
12004 if test "$build" = "$host"; then
12005 case $host_os in
12006 mingw* | pw32*)
12007 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12008 want_nocaseglob=yes
12009 else
12010 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12011 fi
12012 ;;
12013 esac
12014 fi
12015
12016 file_magic_cmd=$lt_cv_file_magic_cmd
12017 deplibs_check_method=$lt_cv_deplibs_check_method
12018 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041 if test -n "$ac_tool_prefix"; then
12042 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12043 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12045 $as_echo_n "checking for $ac_word... " >&6; }
12046 if ${ac_cv_prog_DLLTOOL+:} false; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 if test -n "$DLLTOOL"; then
12050 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12051 else
12052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12053 for as_dir in $PATH
12054 do
12055 IFS=$as_save_IFS
12056 test -z "$as_dir" && as_dir=.
12057 for ac_exec_ext in '' $ac_executable_extensions; do
12058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12059 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12061 break 2
12062 fi
12063 done
12064 done
12065 IFS=$as_save_IFS
12066
12067 fi
12068 fi
12069 DLLTOOL=$ac_cv_prog_DLLTOOL
12070 if test -n "$DLLTOOL"; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12072 $as_echo "$DLLTOOL" >&6; }
12073 else
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075 $as_echo "no" >&6; }
12076 fi
12077
12078
12079 fi
12080 if test -z "$ac_cv_prog_DLLTOOL"; then
12081 ac_ct_DLLTOOL=$DLLTOOL
12082 # Extract the first word of "dlltool", so it can be a program name with args.
12083 set dummy dlltool; ac_word=$2
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085 $as_echo_n "checking for $ac_word... " >&6; }
12086 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 if test -n "$ac_ct_DLLTOOL"; then
12090 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12091 else
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
12094 do
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12099 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 break 2
12102 fi
12103 done
12104 done
12105 IFS=$as_save_IFS
12106
12107 fi
12108 fi
12109 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12110 if test -n "$ac_ct_DLLTOOL"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12112 $as_echo "$ac_ct_DLLTOOL" >&6; }
12113 else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12116 fi
12117
12118 if test "x$ac_ct_DLLTOOL" = x; then
12119 DLLTOOL="false"
12120 else
12121 case $cross_compiling:$ac_tool_warned in
12122 yes:)
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12125 ac_tool_warned=yes ;;
12126 esac
12127 DLLTOOL=$ac_ct_DLLTOOL
12128 fi
12129 else
12130 DLLTOOL="$ac_cv_prog_DLLTOOL"
12131 fi
12132
12133 test -z "$DLLTOOL" && DLLTOOL=dlltool
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12145 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12146 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 lt_cv_sharedlib_from_linklib_cmd='unknown'
12150
12151 case $host_os in
12152 cygwin* | mingw* | pw32* | cegcc*)
12153 # two different shell functions defined in ltmain.sh
12154 # decide which to use based on capabilities of $DLLTOOL
12155 case `$DLLTOOL --help 2>&1` in
12156 *--identify-strict*)
12157 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12158 ;;
12159 *)
12160 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12161 ;;
12162 esac
12163 ;;
12164 *)
12165 # fallback: assume linklib IS sharedlib
12166 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12167 ;;
12168 esac
12169
12170 fi
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12172 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12173 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12174 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12175
12176
12177
12178
12179
12180
12181
12182 if test -n "$ac_tool_prefix"; then
12183 for ac_prog in ar
12184 do
12185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188 $as_echo_n "checking for $ac_word... " >&6; }
12189 if ${ac_cv_prog_AR+:} false; then :
12190 $as_echo_n "(cached) " >&6
12191 else
12192 if test -n "$AR"; then
12193 ac_cv_prog_AR="$AR" # Let the user override the test.
12194 else
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12197 do
12198 IFS=$as_save_IFS
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
12201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12202 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12204 break 2
12205 fi
12206 done
12207 done
12208 IFS=$as_save_IFS
12209
12210 fi
12211 fi
12212 AR=$ac_cv_prog_AR
12213 if test -n "$AR"; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12215 $as_echo "$AR" >&6; }
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 $as_echo "no" >&6; }
12219 fi
12220
12221
12222 test -n "$AR" && break
12223 done
12224 fi
12225 if test -z "$AR"; then
12226 ac_ct_AR=$AR
12227 for ac_prog in ar
12228 do
12229 # Extract the first word of "$ac_prog", so it can be a program name with args.
12230 set dummy $ac_prog; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12234 $as_echo_n "(cached) " >&6
12235 else
12236 if test -n "$ac_ct_AR"; then
12237 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12238 else
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12241 do
12242 IFS=$as_save_IFS
12243 test -z "$as_dir" && as_dir=.
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246 ac_cv_prog_ac_ct_AR="$ac_prog"
12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248 break 2
12249 fi
12250 done
12251 done
12252 IFS=$as_save_IFS
12253
12254 fi
12255 fi
12256 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12257 if test -n "$ac_ct_AR"; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12259 $as_echo "$ac_ct_AR" >&6; }
12260 else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12263 fi
12264
12265
12266 test -n "$ac_ct_AR" && break
12267 done
12268
12269 if test "x$ac_ct_AR" = x; then
12270 AR="false"
12271 else
12272 case $cross_compiling:$ac_tool_warned in
12273 yes:)
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12276 ac_tool_warned=yes ;;
12277 esac
12278 AR=$ac_ct_AR
12279 fi
12280 fi
12281
12282 : ${AR=ar}
12283 : ${AR_FLAGS=cru}
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12296 $as_echo_n "checking for archiver @FILE support... " >&6; }
12297 if ${lt_cv_ar_at_file+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 lt_cv_ar_at_file=no
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h. */
12303
12304 int
12305 main ()
12306 {
12307
12308 ;
12309 return 0;
12310 }
12311 _ACEOF
12312 if ac_fn_c_try_compile "$LINENO"; then :
12313 echo conftest.$ac_objext > conftest.lst
12314 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12316 (eval $lt_ar_try) 2>&5
12317 ac_status=$?
12318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12319 test $ac_status = 0; }
12320 if test "$ac_status" -eq 0; then
12321 # Ensure the archiver fails upon bogus file names.
12322 rm -f conftest.$ac_objext libconftest.a
12323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12324 (eval $lt_ar_try) 2>&5
12325 ac_status=$?
12326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12327 test $ac_status = 0; }
12328 if test "$ac_status" -ne 0; then
12329 lt_cv_ar_at_file=@
12330 fi
12331 fi
12332 rm -f conftest.* libconftest.a
12333
12334 fi
12335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336
12337 fi
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12339 $as_echo "$lt_cv_ar_at_file" >&6; }
12340
12341 if test "x$lt_cv_ar_at_file" = xno; then
12342 archiver_list_spec=
12343 else
12344 archiver_list_spec=$lt_cv_ar_at_file
12345 fi
12346
12347
12348
12349
12350
12351
12352
12353 if test -n "$ac_tool_prefix"; then
12354 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12355 set dummy ${ac_tool_prefix}strip; ac_word=$2
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357 $as_echo_n "checking for $ac_word... " >&6; }
12358 if ${ac_cv_prog_STRIP+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 if test -n "$STRIP"; then
12362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12363 else
12364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365 for as_dir in $PATH
12366 do
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12371 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12374 fi
12375 done
12376 done
12377 IFS=$as_save_IFS
12378
12379 fi
12380 fi
12381 STRIP=$ac_cv_prog_STRIP
12382 if test -n "$STRIP"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12384 $as_echo "$STRIP" >&6; }
12385 else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12388 fi
12389
12390
12391 fi
12392 if test -z "$ac_cv_prog_STRIP"; then
12393 ac_ct_STRIP=$STRIP
12394 # Extract the first word of "strip", so it can be a program name with args.
12395 set dummy strip; ac_word=$2
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397 $as_echo_n "checking for $ac_word... " >&6; }
12398 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 if test -n "$ac_ct_STRIP"; then
12402 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12403 else
12404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405 for as_dir in $PATH
12406 do
12407 IFS=$as_save_IFS
12408 test -z "$as_dir" && as_dir=.
12409 for ac_exec_ext in '' $ac_executable_extensions; do
12410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12411 ac_cv_prog_ac_ct_STRIP="strip"
12412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413 break 2
12414 fi
12415 done
12416 done
12417 IFS=$as_save_IFS
12418
12419 fi
12420 fi
12421 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12422 if test -n "$ac_ct_STRIP"; then
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12424 $as_echo "$ac_ct_STRIP" >&6; }
12425 else
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 $as_echo "no" >&6; }
12428 fi
12429
12430 if test "x$ac_ct_STRIP" = x; then
12431 STRIP=":"
12432 else
12433 case $cross_compiling:$ac_tool_warned in
12434 yes:)
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12437 ac_tool_warned=yes ;;
12438 esac
12439 STRIP=$ac_ct_STRIP
12440 fi
12441 else
12442 STRIP="$ac_cv_prog_STRIP"
12443 fi
12444
12445 test -z "$STRIP" && STRIP=:
12446
12447
12448
12449
12450
12451
12452 if test -n "$ac_tool_prefix"; then
12453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12454 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456 $as_echo_n "checking for $ac_word... " >&6; }
12457 if ${ac_cv_prog_RANLIB+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 if test -n "$RANLIB"; then
12461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12462 else
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12465 do
12466 IFS=$as_save_IFS
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12472 break 2
12473 fi
12474 done
12475 done
12476 IFS=$as_save_IFS
12477
12478 fi
12479 fi
12480 RANLIB=$ac_cv_prog_RANLIB
12481 if test -n "$RANLIB"; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12483 $as_echo "$RANLIB" >&6; }
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12487 fi
12488
12489
12490 fi
12491 if test -z "$ac_cv_prog_RANLIB"; then
12492 ac_ct_RANLIB=$RANLIB
12493 # Extract the first word of "ranlib", so it can be a program name with args.
12494 set dummy ranlib; ac_word=$2
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496 $as_echo_n "checking for $ac_word... " >&6; }
12497 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 if test -n "$ac_ct_RANLIB"; then
12501 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12502 else
12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504 for as_dir in $PATH
12505 do
12506 IFS=$as_save_IFS
12507 test -z "$as_dir" && as_dir=.
12508 for ac_exec_ext in '' $ac_executable_extensions; do
12509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12510 ac_cv_prog_ac_ct_RANLIB="ranlib"
12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512 break 2
12513 fi
12514 done
12515 done
12516 IFS=$as_save_IFS
12517
12518 fi
12519 fi
12520 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12521 if test -n "$ac_ct_RANLIB"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12523 $as_echo "$ac_ct_RANLIB" >&6; }
12524 else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12527 fi
12528
12529 if test "x$ac_ct_RANLIB" = x; then
12530 RANLIB=":"
12531 else
12532 case $cross_compiling:$ac_tool_warned in
12533 yes:)
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12536 ac_tool_warned=yes ;;
12537 esac
12538 RANLIB=$ac_ct_RANLIB
12539 fi
12540 else
12541 RANLIB="$ac_cv_prog_RANLIB"
12542 fi
12543
12544 test -z "$RANLIB" && RANLIB=:
12545
12546
12547
12548
12549
12550
12551 # Determine commands to create old-style static archives.
12552 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12553 old_postinstall_cmds='chmod 644 $oldlib'
12554 old_postuninstall_cmds=
12555
12556 if test -n "$RANLIB"; then
12557 case $host_os in
12558 openbsd*)
12559 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12560 ;;
12561 *)
12562 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12563 ;;
12564 esac
12565 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12566 fi
12567
12568 case $host_os in
12569 darwin*)
12570 lock_old_archive_extraction=yes ;;
12571 *)
12572 lock_old_archive_extraction=no ;;
12573 esac
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613 # If no C compiler was specified, use CC.
12614 LTCC=${LTCC-"$CC"}
12615
12616 # If no C compiler flags were specified, use CFLAGS.
12617 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12618
12619 # Allow CC to be a program name with arguments.
12620 compiler=$CC
12621
12622
12623 # Check for command to grab the raw symbol name followed by C symbol from nm.
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12625 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12626 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629
12630 # These are sane defaults that work on at least a few old systems.
12631 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12632
12633 # Character class describing NM global symbol codes.
12634 symcode='[BCDEGRST]'
12635
12636 # Regexp to match symbols that can be accessed directly from C.
12637 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12638
12639 # Define system-specific variables.
12640 case $host_os in
12641 aix*)
12642 symcode='[BCDT]'
12643 ;;
12644 cygwin* | mingw* | pw32* | cegcc*)
12645 symcode='[ABCDGISTW]'
12646 ;;
12647 hpux*)
12648 if test "$host_cpu" = ia64; then
12649 symcode='[ABCDEGRST]'
12650 fi
12651 ;;
12652 irix* | nonstopux*)
12653 symcode='[BCDEGRST]'
12654 ;;
12655 osf*)
12656 symcode='[BCDEGQRST]'
12657 ;;
12658 solaris*)
12659 symcode='[BDRT]'
12660 ;;
12661 sco3.2v5*)
12662 symcode='[DT]'
12663 ;;
12664 sysv4.2uw2*)
12665 symcode='[DT]'
12666 ;;
12667 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12668 symcode='[ABDT]'
12669 ;;
12670 sysv4)
12671 symcode='[DFNSTU]'
12672 ;;
12673 esac
12674
12675 # If we're using GNU nm, then use its standard symbol codes.
12676 case `$NM -V 2>&1` in
12677 *GNU* | *'with BFD'*)
12678 symcode='[ABCDGIRSTW]' ;;
12679 esac
12680
12681 # Transform an extracted symbol line into a proper C declaration.
12682 # Some systems (esp. on ia64) link data and code symbols differently,
12683 # so use this general approach.
12684 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12685
12686 # Transform an extracted symbol line into symbol name and symbol address
12687 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12688 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'"
12689
12690 # Handle CRLF in mingw tool chain
12691 opt_cr=
12692 case $build_os in
12693 mingw*)
12694 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12695 ;;
12696 esac
12697
12698 # Try without a prefix underscore, then with it.
12699 for ac_symprfx in "" "_"; do
12700
12701 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12702 symxfrm="\\1 $ac_symprfx\\2 \\2"
12703
12704 # Write the raw and C identifiers.
12705 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12706 # Fake it for dumpbin and say T for any non-static function
12707 # and D for any global variable.
12708 # Also find C++ and __fastcall symbols from MSVC++,
12709 # which start with @ or ?.
12710 lt_cv_sys_global_symbol_pipe="$AWK '"\
12711 " {last_section=section; section=\$ 3};"\
12712 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12713 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12714 " \$ 0!~/External *\|/{next};"\
12715 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12716 " {if(hide[section]) next};"\
12717 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12718 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12719 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12720 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12721 " ' prfx=^$ac_symprfx"
12722 else
12723 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12724 fi
12725 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12726
12727 # Check to see that the pipe works correctly.
12728 pipe_works=no
12729
12730 rm -f conftest*
12731 cat > conftest.$ac_ext <<_LT_EOF
12732 #ifdef __cplusplus
12733 extern "C" {
12734 #endif
12735 char nm_test_var;
12736 void nm_test_func(void);
12737 void nm_test_func(void){}
12738 #ifdef __cplusplus
12739 }
12740 #endif
12741 int main(){nm_test_var='a';nm_test_func();return(0);}
12742 _LT_EOF
12743
12744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12745 (eval $ac_compile) 2>&5
12746 ac_status=$?
12747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12748 test $ac_status = 0; }; then
12749 # Now try to grab the symbols.
12750 nlist=conftest.nm
12751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12752 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12753 ac_status=$?
12754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12755 test $ac_status = 0; } && test -s "$nlist"; then
12756 # Try sorting and uniquifying the output.
12757 if sort "$nlist" | uniq > "$nlist"T; then
12758 mv -f "$nlist"T "$nlist"
12759 else
12760 rm -f "$nlist"T
12761 fi
12762
12763 # Make sure that we snagged all the symbols we need.
12764 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12765 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12766 cat <<_LT_EOF > conftest.$ac_ext
12767 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12768 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12769 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12770 relocations are performed -- see ld's documentation on pseudo-relocs. */
12771 # define LT_DLSYM_CONST
12772 #elif defined(__osf__)
12773 /* This system does not cope well with relocations in const data. */
12774 # define LT_DLSYM_CONST
12775 #else
12776 # define LT_DLSYM_CONST const
12777 #endif
12778
12779 #ifdef __cplusplus
12780 extern "C" {
12781 #endif
12782
12783 _LT_EOF
12784 # Now generate the symbol file.
12785 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12786
12787 cat <<_LT_EOF >> conftest.$ac_ext
12788
12789 /* The mapping between symbol names and symbols. */
12790 LT_DLSYM_CONST struct {
12791 const char *name;
12792 void *address;
12793 }
12794 lt__PROGRAM__LTX_preloaded_symbols[] =
12795 {
12796 { "@PROGRAM@", (void *) 0 },
12797 _LT_EOF
12798 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12799 cat <<\_LT_EOF >> conftest.$ac_ext
12800 {0, (void *) 0}
12801 };
12802
12803 /* This works around a problem in FreeBSD linker */
12804 #ifdef FREEBSD_WORKAROUND
12805 static const void *lt_preloaded_setup() {
12806 return lt__PROGRAM__LTX_preloaded_symbols;
12807 }
12808 #endif
12809
12810 #ifdef __cplusplus
12811 }
12812 #endif
12813 _LT_EOF
12814 # Now try linking the two files.
12815 mv conftest.$ac_objext conftstm.$ac_objext
12816 lt_globsym_save_LIBS=$LIBS
12817 lt_globsym_save_CFLAGS=$CFLAGS
12818 LIBS="conftstm.$ac_objext"
12819 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12821 (eval $ac_link) 2>&5
12822 ac_status=$?
12823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12824 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12825 pipe_works=yes
12826 fi
12827 LIBS=$lt_globsym_save_LIBS
12828 CFLAGS=$lt_globsym_save_CFLAGS
12829 else
12830 echo "cannot find nm_test_func in $nlist" >&5
12831 fi
12832 else
12833 echo "cannot find nm_test_var in $nlist" >&5
12834 fi
12835 else
12836 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12837 fi
12838 else
12839 echo "$progname: failed program was:" >&5
12840 cat conftest.$ac_ext >&5
12841 fi
12842 rm -rf conftest* conftst*
12843
12844 # Do not use the global_symbol_pipe unless it works.
12845 if test "$pipe_works" = yes; then
12846 break
12847 else
12848 lt_cv_sys_global_symbol_pipe=
12849 fi
12850 done
12851
12852 fi
12853
12854 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12855 lt_cv_sys_global_symbol_to_cdecl=
12856 fi
12857 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12859 $as_echo "failed" >&6; }
12860 else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12862 $as_echo "ok" >&6; }
12863 fi
12864
12865 # Response file support.
12866 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12867 nm_file_list_spec='@'
12868 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12869 nm_file_list_spec='@'
12870 fi
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12899 $as_echo_n "checking for sysroot... " >&6; }
12900
12901 # Check whether --with-sysroot was given.
12902 if test "${with_sysroot+set}" = set; then :
12903 withval=$with_sysroot;
12904 else
12905 with_sysroot=no
12906 fi
12907
12908
12909 lt_sysroot=
12910 case ${with_sysroot} in #(
12911 yes)
12912 if test "$GCC" = yes; then
12913 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12914 fi
12915 ;; #(
12916 /*)
12917 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12918 ;; #(
12919 no|'')
12920 ;; #(
12921 *)
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12923 $as_echo "${with_sysroot}" >&6; }
12924 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12925 ;;
12926 esac
12927
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12929 $as_echo "${lt_sysroot:-no}" >&6; }
12930
12931
12932
12933
12934
12935 # Check whether --enable-libtool-lock was given.
12936 if test "${enable_libtool_lock+set}" = set; then :
12937 enableval=$enable_libtool_lock;
12938 fi
12939
12940 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12941
12942 # Some flags need to be propagated to the compiler or linker for good
12943 # libtool support.
12944 case $host in
12945 ia64-*-hpux*)
12946 # Find out which ABI we are using.
12947 echo 'int i;' > conftest.$ac_ext
12948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12949 (eval $ac_compile) 2>&5
12950 ac_status=$?
12951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12952 test $ac_status = 0; }; then
12953 case `/usr/bin/file conftest.$ac_objext` in
12954 *ELF-32*)
12955 HPUX_IA64_MODE="32"
12956 ;;
12957 *ELF-64*)
12958 HPUX_IA64_MODE="64"
12959 ;;
12960 esac
12961 fi
12962 rm -rf conftest*
12963 ;;
12964 *-*-irix6*)
12965 # Find out which ABI we are using.
12966 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12968 (eval $ac_compile) 2>&5
12969 ac_status=$?
12970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12971 test $ac_status = 0; }; then
12972 if test "$lt_cv_prog_gnu_ld" = yes; then
12973 case `/usr/bin/file conftest.$ac_objext` in
12974 *32-bit*)
12975 LD="${LD-ld} -melf32bsmip"
12976 ;;
12977 *N32*)
12978 LD="${LD-ld} -melf32bmipn32"
12979 ;;
12980 *64-bit*)
12981 LD="${LD-ld} -melf64bmip"
12982 ;;
12983 esac
12984 else
12985 case `/usr/bin/file conftest.$ac_objext` in
12986 *32-bit*)
12987 LD="${LD-ld} -32"
12988 ;;
12989 *N32*)
12990 LD="${LD-ld} -n32"
12991 ;;
12992 *64-bit*)
12993 LD="${LD-ld} -64"
12994 ;;
12995 esac
12996 fi
12997 fi
12998 rm -rf conftest*
12999 ;;
13000
13001 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13002 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13003 # Find out which ABI we are using.
13004 echo 'int i;' > conftest.$ac_ext
13005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13006 (eval $ac_compile) 2>&5
13007 ac_status=$?
13008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13009 test $ac_status = 0; }; then
13010 case `/usr/bin/file conftest.o` in
13011 *32-bit*)
13012 case $host in
13013 x86_64-*kfreebsd*-gnu)
13014 LD="${LD-ld} -m elf_i386_fbsd"
13015 ;;
13016 x86_64-*linux*)
13017 LD="${LD-ld} -m elf_i386"
13018 ;;
13019 ppc64-*linux*|powerpc64-*linux*)
13020 LD="${LD-ld} -m elf32ppclinux"
13021 ;;
13022 s390x-*linux*)
13023 LD="${LD-ld} -m elf_s390"
13024 ;;
13025 sparc64-*linux*)
13026 LD="${LD-ld} -m elf32_sparc"
13027 ;;
13028 esac
13029 ;;
13030 *64-bit*)
13031 case $host in
13032 x86_64-*kfreebsd*-gnu)
13033 LD="${LD-ld} -m elf_x86_64_fbsd"
13034 ;;
13035 x86_64-*linux*)
13036 LD="${LD-ld} -m elf_x86_64"
13037 ;;
13038 ppc*-*linux*|powerpc*-*linux*)
13039 LD="${LD-ld} -m elf64ppc"
13040 ;;
13041 s390*-*linux*|s390*-*tpf*)
13042 LD="${LD-ld} -m elf64_s390"
13043 ;;
13044 sparc*-*linux*)
13045 LD="${LD-ld} -m elf64_sparc"
13046 ;;
13047 esac
13048 ;;
13049 esac
13050 fi
13051 rm -rf conftest*
13052 ;;
13053
13054 *-*-sco3.2v5*)
13055 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13056 SAVE_CFLAGS="$CFLAGS"
13057 CFLAGS="$CFLAGS -belf"
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13059 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13060 if ${lt_cv_cc_needs_belf+:} false; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 ac_ext=c
13064 ac_cpp='$CPP $CPPFLAGS'
13065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13068
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13071
13072 int
13073 main ()
13074 {
13075
13076 ;
13077 return 0;
13078 }
13079 _ACEOF
13080 if ac_fn_c_try_link "$LINENO"; then :
13081 lt_cv_cc_needs_belf=yes
13082 else
13083 lt_cv_cc_needs_belf=no
13084 fi
13085 rm -f core conftest.err conftest.$ac_objext \
13086 conftest$ac_exeext conftest.$ac_ext
13087 ac_ext=c
13088 ac_cpp='$CPP $CPPFLAGS'
13089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13092
13093 fi
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13095 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13096 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13097 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13098 CFLAGS="$SAVE_CFLAGS"
13099 fi
13100 ;;
13101 *-*solaris*)
13102 # Find out which ABI we are using.
13103 echo 'int i;' > conftest.$ac_ext
13104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13105 (eval $ac_compile) 2>&5
13106 ac_status=$?
13107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13108 test $ac_status = 0; }; then
13109 case `/usr/bin/file conftest.o` in
13110 *64-bit*)
13111 case $lt_cv_prog_gnu_ld in
13112 yes*)
13113 case $host in
13114 i?86-*-solaris*)
13115 LD="${LD-ld} -m elf_x86_64"
13116 ;;
13117 sparc*-*-solaris*)
13118 LD="${LD-ld} -m elf64_sparc"
13119 ;;
13120 esac
13121 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13122 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13123 LD="${LD-ld}_sol2"
13124 fi
13125 ;;
13126 *)
13127 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13128 LD="${LD-ld} -64"
13129 fi
13130 ;;
13131 esac
13132 ;;
13133 esac
13134 fi
13135 rm -rf conftest*
13136 ;;
13137 esac
13138
13139 need_locks="$enable_libtool_lock"
13140
13141 if test -n "$ac_tool_prefix"; then
13142 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13143 set dummy ${ac_tool_prefix}mt; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 if test -n "$MANIFEST_TOOL"; then
13150 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13151 else
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13154 do
13155 IFS=$as_save_IFS
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13159 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161 break 2
13162 fi
13163 done
13164 done
13165 IFS=$as_save_IFS
13166
13167 fi
13168 fi
13169 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13170 if test -n "$MANIFEST_TOOL"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13172 $as_echo "$MANIFEST_TOOL" >&6; }
13173 else
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13176 fi
13177
13178
13179 fi
13180 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13181 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13182 # Extract the first word of "mt", so it can be a program name with args.
13183 set dummy mt; ac_word=$2
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185 $as_echo_n "checking for $ac_word... " >&6; }
13186 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 if test -n "$ac_ct_MANIFEST_TOOL"; then
13190 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13191 else
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13194 do
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13199 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 break 2
13202 fi
13203 done
13204 done
13205 IFS=$as_save_IFS
13206
13207 fi
13208 fi
13209 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13210 if test -n "$ac_ct_MANIFEST_TOOL"; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13212 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13213 else
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215 $as_echo "no" >&6; }
13216 fi
13217
13218 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13219 MANIFEST_TOOL=":"
13220 else
13221 case $cross_compiling:$ac_tool_warned in
13222 yes:)
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13225 ac_tool_warned=yes ;;
13226 esac
13227 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13228 fi
13229 else
13230 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13231 fi
13232
13233 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13235 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13236 if ${lt_cv_path_mainfest_tool+:} false; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 lt_cv_path_mainfest_tool=no
13240 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13241 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13242 cat conftest.err >&5
13243 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13244 lt_cv_path_mainfest_tool=yes
13245 fi
13246 rm -f conftest*
13247 fi
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13249 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13250 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13251 MANIFEST_TOOL=:
13252 fi
13253
13254
13255
13256
13257
13258
13259 case $host_os in
13260 rhapsody* | darwin*)
13261 if test -n "$ac_tool_prefix"; then
13262 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13263 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265 $as_echo_n "checking for $ac_word... " >&6; }
13266 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 if test -n "$DSYMUTIL"; then
13270 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13271 else
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13274 do
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13279 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 break 2
13282 fi
13283 done
13284 done
13285 IFS=$as_save_IFS
13286
13287 fi
13288 fi
13289 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13290 if test -n "$DSYMUTIL"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13292 $as_echo "$DSYMUTIL" >&6; }
13293 else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13296 fi
13297
13298
13299 fi
13300 if test -z "$ac_cv_prog_DSYMUTIL"; then
13301 ac_ct_DSYMUTIL=$DSYMUTIL
13302 # Extract the first word of "dsymutil", so it can be a program name with args.
13303 set dummy dsymutil; ac_word=$2
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13305 $as_echo_n "checking for $ac_word... " >&6; }
13306 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309 if test -n "$ac_ct_DSYMUTIL"; then
13310 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13311 else
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13314 do
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13319 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13322 fi
13323 done
13324 done
13325 IFS=$as_save_IFS
13326
13327 fi
13328 fi
13329 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13330 if test -n "$ac_ct_DSYMUTIL"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13332 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13333 else
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335 $as_echo "no" >&6; }
13336 fi
13337
13338 if test "x$ac_ct_DSYMUTIL" = x; then
13339 DSYMUTIL=":"
13340 else
13341 case $cross_compiling:$ac_tool_warned in
13342 yes:)
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13345 ac_tool_warned=yes ;;
13346 esac
13347 DSYMUTIL=$ac_ct_DSYMUTIL
13348 fi
13349 else
13350 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13351 fi
13352
13353 if test -n "$ac_tool_prefix"; then
13354 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13355 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357 $as_echo_n "checking for $ac_word... " >&6; }
13358 if ${ac_cv_prog_NMEDIT+:} false; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 if test -n "$NMEDIT"; then
13362 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13363 else
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13366 do
13367 IFS=$as_save_IFS
13368 test -z "$as_dir" && as_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13371 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373 break 2
13374 fi
13375 done
13376 done
13377 IFS=$as_save_IFS
13378
13379 fi
13380 fi
13381 NMEDIT=$ac_cv_prog_NMEDIT
13382 if test -n "$NMEDIT"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13384 $as_echo "$NMEDIT" >&6; }
13385 else
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13388 fi
13389
13390
13391 fi
13392 if test -z "$ac_cv_prog_NMEDIT"; then
13393 ac_ct_NMEDIT=$NMEDIT
13394 # Extract the first word of "nmedit", so it can be a program name with args.
13395 set dummy nmedit; ac_word=$2
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397 $as_echo_n "checking for $ac_word... " >&6; }
13398 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13399 $as_echo_n "(cached) " >&6
13400 else
13401 if test -n "$ac_ct_NMEDIT"; then
13402 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13403 else
13404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405 for as_dir in $PATH
13406 do
13407 IFS=$as_save_IFS
13408 test -z "$as_dir" && as_dir=.
13409 for ac_exec_ext in '' $ac_executable_extensions; do
13410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13411 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13413 break 2
13414 fi
13415 done
13416 done
13417 IFS=$as_save_IFS
13418
13419 fi
13420 fi
13421 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13422 if test -n "$ac_ct_NMEDIT"; then
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13424 $as_echo "$ac_ct_NMEDIT" >&6; }
13425 else
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13428 fi
13429
13430 if test "x$ac_ct_NMEDIT" = x; then
13431 NMEDIT=":"
13432 else
13433 case $cross_compiling:$ac_tool_warned in
13434 yes:)
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13437 ac_tool_warned=yes ;;
13438 esac
13439 NMEDIT=$ac_ct_NMEDIT
13440 fi
13441 else
13442 NMEDIT="$ac_cv_prog_NMEDIT"
13443 fi
13444
13445 if test -n "$ac_tool_prefix"; then
13446 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13447 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449 $as_echo_n "checking for $ac_word... " >&6; }
13450 if ${ac_cv_prog_LIPO+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 if test -n "$LIPO"; then
13454 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13455 else
13456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457 for as_dir in $PATH
13458 do
13459 IFS=$as_save_IFS
13460 test -z "$as_dir" && as_dir=.
13461 for ac_exec_ext in '' $ac_executable_extensions; do
13462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13463 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13465 break 2
13466 fi
13467 done
13468 done
13469 IFS=$as_save_IFS
13470
13471 fi
13472 fi
13473 LIPO=$ac_cv_prog_LIPO
13474 if test -n "$LIPO"; then
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13476 $as_echo "$LIPO" >&6; }
13477 else
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 $as_echo "no" >&6; }
13480 fi
13481
13482
13483 fi
13484 if test -z "$ac_cv_prog_LIPO"; then
13485 ac_ct_LIPO=$LIPO
13486 # Extract the first word of "lipo", so it can be a program name with args.
13487 set dummy lipo; ac_word=$2
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13489 $as_echo_n "checking for $ac_word... " >&6; }
13490 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 if test -n "$ac_ct_LIPO"; then
13494 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13495 else
13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 for as_dir in $PATH
13498 do
13499 IFS=$as_save_IFS
13500 test -z "$as_dir" && as_dir=.
13501 for ac_exec_ext in '' $ac_executable_extensions; do
13502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13503 ac_cv_prog_ac_ct_LIPO="lipo"
13504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13505 break 2
13506 fi
13507 done
13508 done
13509 IFS=$as_save_IFS
13510
13511 fi
13512 fi
13513 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13514 if test -n "$ac_ct_LIPO"; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13516 $as_echo "$ac_ct_LIPO" >&6; }
13517 else
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519 $as_echo "no" >&6; }
13520 fi
13521
13522 if test "x$ac_ct_LIPO" = x; then
13523 LIPO=":"
13524 else
13525 case $cross_compiling:$ac_tool_warned in
13526 yes:)
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13529 ac_tool_warned=yes ;;
13530 esac
13531 LIPO=$ac_ct_LIPO
13532 fi
13533 else
13534 LIPO="$ac_cv_prog_LIPO"
13535 fi
13536
13537 if test -n "$ac_tool_prefix"; then
13538 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13539 set dummy ${ac_tool_prefix}otool; ac_word=$2
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541 $as_echo_n "checking for $ac_word... " >&6; }
13542 if ${ac_cv_prog_OTOOL+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 if test -n "$OTOOL"; then
13546 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13547 else
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549 for as_dir in $PATH
13550 do
13551 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do
13554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13555 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 break 2
13558 fi
13559 done
13560 done
13561 IFS=$as_save_IFS
13562
13563 fi
13564 fi
13565 OTOOL=$ac_cv_prog_OTOOL
13566 if test -n "$OTOOL"; then
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13568 $as_echo "$OTOOL" >&6; }
13569 else
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571 $as_echo "no" >&6; }
13572 fi
13573
13574
13575 fi
13576 if test -z "$ac_cv_prog_OTOOL"; then
13577 ac_ct_OTOOL=$OTOOL
13578 # Extract the first word of "otool", so it can be a program name with args.
13579 set dummy otool; ac_word=$2
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581 $as_echo_n "checking for $ac_word... " >&6; }
13582 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 if test -n "$ac_ct_OTOOL"; then
13586 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13587 else
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589 for as_dir in $PATH
13590 do
13591 IFS=$as_save_IFS
13592 test -z "$as_dir" && as_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do
13594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13595 ac_cv_prog_ac_ct_OTOOL="otool"
13596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 break 2
13598 fi
13599 done
13600 done
13601 IFS=$as_save_IFS
13602
13603 fi
13604 fi
13605 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13606 if test -n "$ac_ct_OTOOL"; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13608 $as_echo "$ac_ct_OTOOL" >&6; }
13609 else
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611 $as_echo "no" >&6; }
13612 fi
13613
13614 if test "x$ac_ct_OTOOL" = x; then
13615 OTOOL=":"
13616 else
13617 case $cross_compiling:$ac_tool_warned in
13618 yes:)
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13621 ac_tool_warned=yes ;;
13622 esac
13623 OTOOL=$ac_ct_OTOOL
13624 fi
13625 else
13626 OTOOL="$ac_cv_prog_OTOOL"
13627 fi
13628
13629 if test -n "$ac_tool_prefix"; then
13630 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13631 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13633 $as_echo_n "checking for $ac_word... " >&6; }
13634 if ${ac_cv_prog_OTOOL64+:} false; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 if test -n "$OTOOL64"; then
13638 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13639 else
13640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13641 for as_dir in $PATH
13642 do
13643 IFS=$as_save_IFS
13644 test -z "$as_dir" && as_dir=.
13645 for ac_exec_ext in '' $ac_executable_extensions; do
13646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13647 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13649 break 2
13650 fi
13651 done
13652 done
13653 IFS=$as_save_IFS
13654
13655 fi
13656 fi
13657 OTOOL64=$ac_cv_prog_OTOOL64
13658 if test -n "$OTOOL64"; then
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13660 $as_echo "$OTOOL64" >&6; }
13661 else
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13663 $as_echo "no" >&6; }
13664 fi
13665
13666
13667 fi
13668 if test -z "$ac_cv_prog_OTOOL64"; then
13669 ac_ct_OTOOL64=$OTOOL64
13670 # Extract the first word of "otool64", so it can be a program name with args.
13671 set dummy otool64; ac_word=$2
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13673 $as_echo_n "checking for $ac_word... " >&6; }
13674 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677 if test -n "$ac_ct_OTOOL64"; then
13678 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13679 else
13680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681 for as_dir in $PATH
13682 do
13683 IFS=$as_save_IFS
13684 test -z "$as_dir" && as_dir=.
13685 for ac_exec_ext in '' $ac_executable_extensions; do
13686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13687 ac_cv_prog_ac_ct_OTOOL64="otool64"
13688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13689 break 2
13690 fi
13691 done
13692 done
13693 IFS=$as_save_IFS
13694
13695 fi
13696 fi
13697 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13698 if test -n "$ac_ct_OTOOL64"; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13700 $as_echo "$ac_ct_OTOOL64" >&6; }
13701 else
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703 $as_echo "no" >&6; }
13704 fi
13705
13706 if test "x$ac_ct_OTOOL64" = x; then
13707 OTOOL64=":"
13708 else
13709 case $cross_compiling:$ac_tool_warned in
13710 yes:)
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13713 ac_tool_warned=yes ;;
13714 esac
13715 OTOOL64=$ac_ct_OTOOL64
13716 fi
13717 else
13718 OTOOL64="$ac_cv_prog_OTOOL64"
13719 fi
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13748 $as_echo_n "checking for -single_module linker flag... " >&6; }
13749 if ${lt_cv_apple_cc_single_mod+:} false; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 lt_cv_apple_cc_single_mod=no
13753 if test -z "${LT_MULTI_MODULE}"; then
13754 # By default we will add the -single_module flag. You can override
13755 # by either setting the environment variable LT_MULTI_MODULE
13756 # non-empty at configure time, or by adding -multi_module to the
13757 # link flags.
13758 rm -rf libconftest.dylib*
13759 echo "int foo(void){return 1;}" > conftest.c
13760 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13761 -dynamiclib -Wl,-single_module conftest.c" >&5
13762 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13763 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13764 _lt_result=$?
13765 # If there is a non-empty error log, and "single_module"
13766 # appears in it, assume the flag caused a linker warning
13767 if test -s conftest.err && $GREP single_module conftest.err; then
13768 cat conftest.err >&5
13769 # Otherwise, if the output was created with a 0 exit code from
13770 # the compiler, it worked.
13771 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13772 lt_cv_apple_cc_single_mod=yes
13773 else
13774 cat conftest.err >&5
13775 fi
13776 rm -rf libconftest.dylib*
13777 rm -f conftest.*
13778 fi
13779 fi
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13781 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13782
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13784 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13785 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13786 $as_echo_n "(cached) " >&6
13787 else
13788 lt_cv_ld_exported_symbols_list=no
13789 save_LDFLAGS=$LDFLAGS
13790 echo "_main" > conftest.sym
13791 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13794
13795 int
13796 main ()
13797 {
13798
13799 ;
13800 return 0;
13801 }
13802 _ACEOF
13803 if ac_fn_c_try_link "$LINENO"; then :
13804 lt_cv_ld_exported_symbols_list=yes
13805 else
13806 lt_cv_ld_exported_symbols_list=no
13807 fi
13808 rm -f core conftest.err conftest.$ac_objext \
13809 conftest$ac_exeext conftest.$ac_ext
13810 LDFLAGS="$save_LDFLAGS"
13811
13812 fi
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13814 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13815
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13817 $as_echo_n "checking for -force_load linker flag... " >&6; }
13818 if ${lt_cv_ld_force_load+:} false; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 lt_cv_ld_force_load=no
13822 cat > conftest.c << _LT_EOF
13823 int forced_loaded() { return 2;}
13824 _LT_EOF
13825 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13826 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13827 echo "$AR cru libconftest.a conftest.o" >&5
13828 $AR cru libconftest.a conftest.o 2>&5
13829 echo "$RANLIB libconftest.a" >&5
13830 $RANLIB libconftest.a 2>&5
13831 cat > conftest.c << _LT_EOF
13832 int main() { return 0;}
13833 _LT_EOF
13834 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13835 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13836 _lt_result=$?
13837 if test -s conftest.err && $GREP force_load conftest.err; then
13838 cat conftest.err >&5
13839 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13840 lt_cv_ld_force_load=yes
13841 else
13842 cat conftest.err >&5
13843 fi
13844 rm -f conftest.err libconftest.a conftest conftest.c
13845 rm -rf conftest.dSYM
13846
13847 fi
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13849 $as_echo "$lt_cv_ld_force_load" >&6; }
13850 case $host_os in
13851 rhapsody* | darwin1.[012])
13852 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13853 darwin1.*)
13854 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13855 darwin*) # darwin 5.x on
13856 # if running on 10.5 or later, the deployment target defaults
13857 # to the OS version, if on x86, and 10.4, the deployment
13858 # target defaults to 10.4. Don't you love it?
13859 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13860 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13861 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13862 10.[012]*)
13863 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13864 10.*)
13865 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13866 esac
13867 ;;
13868 esac
13869 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13870 _lt_dar_single_mod='$single_module'
13871 fi
13872 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13873 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13874 else
13875 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13876 fi
13877 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13878 _lt_dsymutil='~$DSYMUTIL $lib || :'
13879 else
13880 _lt_dsymutil=
13881 fi
13882 ;;
13883 esac
13884
13885 for ac_header in dlfcn.h
13886 do :
13887 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13888 "
13889 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13890 cat >>confdefs.h <<_ACEOF
13891 #define HAVE_DLFCN_H 1
13892 _ACEOF
13893
13894 fi
13895
13896 done
13897
13898
13899
13900
13901
13902 # Set options
13903
13904
13905
13906 enable_dlopen=no
13907
13908
13909 enable_win32_dll=no
13910
13911
13912 # Check whether --enable-shared was given.
13913 if test "${enable_shared+set}" = set; then :
13914 enableval=$enable_shared; p=${PACKAGE-default}
13915 case $enableval in
13916 yes) enable_shared=yes ;;
13917 no) enable_shared=no ;;
13918 *)
13919 enable_shared=no
13920 # Look at the argument we got. We use all the common list separators.
13921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13922 for pkg in $enableval; do
13923 IFS="$lt_save_ifs"
13924 if test "X$pkg" = "X$p"; then
13925 enable_shared=yes
13926 fi
13927 done
13928 IFS="$lt_save_ifs"
13929 ;;
13930 esac
13931 else
13932 enable_shared=yes
13933 fi
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945 # Check whether --with-pic was given.
13946 if test "${with_pic+set}" = set; then :
13947 withval=$with_pic; lt_p=${PACKAGE-default}
13948 case $withval in
13949 yes|no) pic_mode=$withval ;;
13950 *)
13951 pic_mode=default
13952 # Look at the argument we got. We use all the common list separators.
13953 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13954 for lt_pkg in $withval; do
13955 IFS="$lt_save_ifs"
13956 if test "X$lt_pkg" = "X$lt_p"; then
13957 pic_mode=yes
13958 fi
13959 done
13960 IFS="$lt_save_ifs"
13961 ;;
13962 esac
13963 else
13964 pic_mode=default
13965 fi
13966
13967
13968 test -z "$pic_mode" && pic_mode=default
13969
13970
13971
13972
13973
13974
13975
13976 # Check whether --enable-fast-install was given.
13977 if test "${enable_fast_install+set}" = set; then :
13978 enableval=$enable_fast_install; p=${PACKAGE-default}
13979 case $enableval in
13980 yes) enable_fast_install=yes ;;
13981 no) enable_fast_install=no ;;
13982 *)
13983 enable_fast_install=no
13984 # Look at the argument we got. We use all the common list separators.
13985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13986 for pkg in $enableval; do
13987 IFS="$lt_save_ifs"
13988 if test "X$pkg" = "X$p"; then
13989 enable_fast_install=yes
13990 fi
13991 done
13992 IFS="$lt_save_ifs"
13993 ;;
13994 esac
13995 else
13996 enable_fast_install=yes
13997 fi
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009 # This can be used to rebuild libtool when needed
14010 LIBTOOL_DEPS="$ltmain"
14011
14012 # Always use our own libtool.
14013 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044 test -z "$LN_S" && LN_S="ln -s"
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059 if test -n "${ZSH_VERSION+set}" ; then
14060 setopt NO_GLOB_SUBST
14061 fi
14062
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14064 $as_echo_n "checking for objdir... " >&6; }
14065 if ${lt_cv_objdir+:} false; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14068 rm -f .libs 2>/dev/null
14069 mkdir .libs 2>/dev/null
14070 if test -d .libs; then
14071 lt_cv_objdir=.libs
14072 else
14073 # MS-DOS does not allow filenames that begin with a dot.
14074 lt_cv_objdir=_libs
14075 fi
14076 rmdir .libs 2>/dev/null
14077 fi
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14079 $as_echo "$lt_cv_objdir" >&6; }
14080 objdir=$lt_cv_objdir
14081
14082
14083
14084
14085
14086 cat >>confdefs.h <<_ACEOF
14087 #define LT_OBJDIR "$lt_cv_objdir/"
14088 _ACEOF
14089
14090
14091
14092
14093 case $host_os in
14094 aix3*)
14095 # AIX sometimes has problems with the GCC collect2 program. For some
14096 # reason, if we set the COLLECT_NAMES environment variable, the problems
14097 # vanish in a puff of smoke.
14098 if test "X${COLLECT_NAMES+set}" != Xset; then
14099 COLLECT_NAMES=
14100 export COLLECT_NAMES
14101 fi
14102 ;;
14103 esac
14104
14105 # Global variables:
14106 ofile=libtool
14107 can_build_shared=yes
14108
14109 # All known linkers require a `.a' archive for static linking (except MSVC,
14110 # which needs '.lib').
14111 libext=a
14112
14113 with_gnu_ld="$lt_cv_prog_gnu_ld"
14114
14115 old_CC="$CC"
14116 old_CFLAGS="$CFLAGS"
14117
14118 # Set sane defaults for various variables
14119 test -z "$CC" && CC=cc
14120 test -z "$LTCC" && LTCC=$CC
14121 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14122 test -z "$LD" && LD=ld
14123 test -z "$ac_objext" && ac_objext=o
14124
14125 for cc_temp in $compiler""; do
14126 case $cc_temp in
14127 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14128 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14129 \-*) ;;
14130 *) break;;
14131 esac
14132 done
14133 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14134
14135
14136 # Only perform the check for file, if the check method requires it
14137 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14138 case $deplibs_check_method in
14139 file_magic*)
14140 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14142 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14143 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14144 $as_echo_n "(cached) " >&6
14145 else
14146 case $MAGIC_CMD in
14147 [\\/*] | ?:[\\/]*)
14148 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14149 ;;
14150 *)
14151 lt_save_MAGIC_CMD="$MAGIC_CMD"
14152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14153 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14154 for ac_dir in $ac_dummy; do
14155 IFS="$lt_save_ifs"
14156 test -z "$ac_dir" && ac_dir=.
14157 if test -f $ac_dir/${ac_tool_prefix}file; then
14158 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14159 if test -n "$file_magic_test_file"; then
14160 case $deplibs_check_method in
14161 "file_magic "*)
14162 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14164 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14165 $EGREP "$file_magic_regex" > /dev/null; then
14166 :
14167 else
14168 cat <<_LT_EOF 1>&2
14169
14170 *** Warning: the command libtool uses to detect shared libraries,
14171 *** $file_magic_cmd, produces output that libtool cannot recognize.
14172 *** The result is that libtool may fail to recognize shared libraries
14173 *** as such. This will affect the creation of libtool libraries that
14174 *** depend on shared libraries, but programs linked with such libtool
14175 *** libraries will work regardless of this problem. Nevertheless, you
14176 *** may want to report the problem to your system manager and/or to
14177 *** bug-libtool@gnu.org
14178
14179 _LT_EOF
14180 fi ;;
14181 esac
14182 fi
14183 break
14184 fi
14185 done
14186 IFS="$lt_save_ifs"
14187 MAGIC_CMD="$lt_save_MAGIC_CMD"
14188 ;;
14189 esac
14190 fi
14191
14192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14193 if test -n "$MAGIC_CMD"; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14195 $as_echo "$MAGIC_CMD" >&6; }
14196 else
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198 $as_echo "no" >&6; }
14199 fi
14200
14201
14202
14203
14204
14205 if test -z "$lt_cv_path_MAGIC_CMD"; then
14206 if test -n "$ac_tool_prefix"; then
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14208 $as_echo_n "checking for file... " >&6; }
14209 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 case $MAGIC_CMD in
14213 [\\/*] | ?:[\\/]*)
14214 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14215 ;;
14216 *)
14217 lt_save_MAGIC_CMD="$MAGIC_CMD"
14218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14219 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14220 for ac_dir in $ac_dummy; do
14221 IFS="$lt_save_ifs"
14222 test -z "$ac_dir" && ac_dir=.
14223 if test -f $ac_dir/file; then
14224 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14225 if test -n "$file_magic_test_file"; then
14226 case $deplibs_check_method in
14227 "file_magic "*)
14228 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14230 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14231 $EGREP "$file_magic_regex" > /dev/null; then
14232 :
14233 else
14234 cat <<_LT_EOF 1>&2
14235
14236 *** Warning: the command libtool uses to detect shared libraries,
14237 *** $file_magic_cmd, produces output that libtool cannot recognize.
14238 *** The result is that libtool may fail to recognize shared libraries
14239 *** as such. This will affect the creation of libtool libraries that
14240 *** depend on shared libraries, but programs linked with such libtool
14241 *** libraries will work regardless of this problem. Nevertheless, you
14242 *** may want to report the problem to your system manager and/or to
14243 *** bug-libtool@gnu.org
14244
14245 _LT_EOF
14246 fi ;;
14247 esac
14248 fi
14249 break
14250 fi
14251 done
14252 IFS="$lt_save_ifs"
14253 MAGIC_CMD="$lt_save_MAGIC_CMD"
14254 ;;
14255 esac
14256 fi
14257
14258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14259 if test -n "$MAGIC_CMD"; then
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14261 $as_echo "$MAGIC_CMD" >&6; }
14262 else
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264 $as_echo "no" >&6; }
14265 fi
14266
14267
14268 else
14269 MAGIC_CMD=:
14270 fi
14271 fi
14272
14273 fi
14274 ;;
14275 esac
14276
14277 # Use C for the default configuration in the libtool script
14278
14279 lt_save_CC="$CC"
14280 ac_ext=c
14281 ac_cpp='$CPP $CPPFLAGS'
14282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14285
14286
14287 # Source file extension for C test sources.
14288 ac_ext=c
14289
14290 # Object file extension for compiled C test sources.
14291 objext=o
14292 objext=$objext
14293
14294 # Code to be used in simple compile tests
14295 lt_simple_compile_test_code="int some_variable = 0;"
14296
14297 # Code to be used in simple link tests
14298 lt_simple_link_test_code='int main(){return(0);}'
14299
14300
14301
14302
14303
14304
14305
14306 # If no C compiler was specified, use CC.
14307 LTCC=${LTCC-"$CC"}
14308
14309 # If no C compiler flags were specified, use CFLAGS.
14310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14311
14312 # Allow CC to be a program name with arguments.
14313 compiler=$CC
14314
14315 # Save the default compiler, since it gets overwritten when the other
14316 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14317 compiler_DEFAULT=$CC
14318
14319 # save warnings/boilerplate of simple test code
14320 ac_outfile=conftest.$ac_objext
14321 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14322 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14323 _lt_compiler_boilerplate=`cat conftest.err`
14324 $RM conftest*
14325
14326 ac_outfile=conftest.$ac_objext
14327 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14328 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14329 _lt_linker_boilerplate=`cat conftest.err`
14330 $RM -r conftest*
14331
14332
14333 if test -n "$compiler"; then
14334
14335 lt_prog_compiler_no_builtin_flag=
14336
14337 if test "$GCC" = yes; then
14338 case $cc_basename in
14339 nvcc*)
14340 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14341 *)
14342 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14343 esac
14344
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14346 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14347 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14348 $as_echo_n "(cached) " >&6
14349 else
14350 lt_cv_prog_compiler_rtti_exceptions=no
14351 ac_outfile=conftest.$ac_objext
14352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14353 lt_compiler_flag="-fno-rtti -fno-exceptions"
14354 # Insert the option either (1) after the last *FLAGS variable, or
14355 # (2) before a word containing "conftest.", or (3) at the end.
14356 # Note that $ac_compile itself does not contain backslashes and begins
14357 # with a dollar sign (not a hyphen), so the echo should work correctly.
14358 # The option is referenced via a variable to avoid confusing sed.
14359 lt_compile=`echo "$ac_compile" | $SED \
14360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14362 -e 's:$: $lt_compiler_flag:'`
14363 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14364 (eval "$lt_compile" 2>conftest.err)
14365 ac_status=$?
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 if (exit $ac_status) && test -s "$ac_outfile"; then
14369 # The compiler can only warn and ignore the option if not recognized
14370 # So say no if there are warnings other than the usual output.
14371 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14373 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14374 lt_cv_prog_compiler_rtti_exceptions=yes
14375 fi
14376 fi
14377 $RM conftest*
14378
14379 fi
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14381 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14382
14383 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14384 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14385 else
14386 :
14387 fi
14388
14389 fi
14390
14391
14392
14393
14394
14395
14396 lt_prog_compiler_wl=
14397 lt_prog_compiler_pic=
14398 lt_prog_compiler_static=
14399
14400
14401 if test "$GCC" = yes; then
14402 lt_prog_compiler_wl='-Wl,'
14403 lt_prog_compiler_static='-static'
14404
14405 case $host_os in
14406 aix*)
14407 # All AIX code is PIC.
14408 if test "$host_cpu" = ia64; then
14409 # AIX 5 now supports IA64 processor
14410 lt_prog_compiler_static='-Bstatic'
14411 fi
14412 ;;
14413
14414 amigaos*)
14415 case $host_cpu in
14416 powerpc)
14417 # see comment about AmigaOS4 .so support
14418 lt_prog_compiler_pic='-fPIC'
14419 ;;
14420 m68k)
14421 # FIXME: we need at least 68020 code to build shared libraries, but
14422 # adding the `-m68020' flag to GCC prevents building anything better,
14423 # like `-m68040'.
14424 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14425 ;;
14426 esac
14427 ;;
14428
14429 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14430 # PIC is the default for these OSes.
14431 ;;
14432
14433 mingw* | cygwin* | pw32* | os2* | cegcc*)
14434 # This hack is so that the source file can tell whether it is being
14435 # built for inclusion in a dll (and should export symbols for example).
14436 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14437 # (--disable-auto-import) libraries
14438 lt_prog_compiler_pic='-DDLL_EXPORT'
14439 ;;
14440
14441 darwin* | rhapsody*)
14442 # PIC is the default on this platform
14443 # Common symbols not allowed in MH_DYLIB files
14444 lt_prog_compiler_pic='-fno-common'
14445 ;;
14446
14447 haiku*)
14448 # PIC is the default for Haiku.
14449 # The "-static" flag exists, but is broken.
14450 lt_prog_compiler_static=
14451 ;;
14452
14453 hpux*)
14454 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14455 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14456 # sets the default TLS model and affects inlining.
14457 case $host_cpu in
14458 hppa*64*)
14459 # +Z the default
14460 ;;
14461 *)
14462 lt_prog_compiler_pic='-fPIC'
14463 ;;
14464 esac
14465 ;;
14466
14467 interix[3-9]*)
14468 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14469 # Instead, we relocate shared libraries at runtime.
14470 ;;
14471
14472 msdosdjgpp*)
14473 # Just because we use GCC doesn't mean we suddenly get shared libraries
14474 # on systems that don't support them.
14475 lt_prog_compiler_can_build_shared=no
14476 enable_shared=no
14477 ;;
14478
14479 *nto* | *qnx*)
14480 # QNX uses GNU C++, but need to define -shared option too, otherwise
14481 # it will coredump.
14482 lt_prog_compiler_pic='-fPIC -shared'
14483 ;;
14484
14485 sysv4*MP*)
14486 if test -d /usr/nec; then
14487 lt_prog_compiler_pic=-Kconform_pic
14488 fi
14489 ;;
14490
14491 *)
14492 lt_prog_compiler_pic='-fPIC'
14493 ;;
14494 esac
14495
14496 case $cc_basename in
14497 nvcc*) # Cuda Compiler Driver 2.2
14498 lt_prog_compiler_wl='-Xlinker '
14499 if test -n "$lt_prog_compiler_pic"; then
14500 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14501 fi
14502 ;;
14503 esac
14504 else
14505 # PORTME Check for flag to pass linker flags through the system compiler.
14506 case $host_os in
14507 aix*)
14508 lt_prog_compiler_wl='-Wl,'
14509 if test "$host_cpu" = ia64; then
14510 # AIX 5 now supports IA64 processor
14511 lt_prog_compiler_static='-Bstatic'
14512 else
14513 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14514 fi
14515 ;;
14516
14517 mingw* | cygwin* | pw32* | os2* | cegcc*)
14518 # This hack is so that the source file can tell whether it is being
14519 # built for inclusion in a dll (and should export symbols for example).
14520 lt_prog_compiler_pic='-DDLL_EXPORT'
14521 ;;
14522
14523 hpux9* | hpux10* | hpux11*)
14524 lt_prog_compiler_wl='-Wl,'
14525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14526 # not for PA HP-UX.
14527 case $host_cpu in
14528 hppa*64*|ia64*)
14529 # +Z the default
14530 ;;
14531 *)
14532 lt_prog_compiler_pic='+Z'
14533 ;;
14534 esac
14535 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14536 lt_prog_compiler_static='${wl}-a ${wl}archive'
14537 ;;
14538
14539 irix5* | irix6* | nonstopux*)
14540 lt_prog_compiler_wl='-Wl,'
14541 # PIC (with -KPIC) is the default.
14542 lt_prog_compiler_static='-non_shared'
14543 ;;
14544
14545 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14546 case $cc_basename in
14547 # old Intel for x86_64 which still supported -KPIC.
14548 ecc*)
14549 lt_prog_compiler_wl='-Wl,'
14550 lt_prog_compiler_pic='-KPIC'
14551 lt_prog_compiler_static='-static'
14552 ;;
14553 # icc used to be incompatible with GCC.
14554 # ICC 10 doesn't accept -KPIC any more.
14555 icc* | ifort*)
14556 lt_prog_compiler_wl='-Wl,'
14557 lt_prog_compiler_pic='-fPIC'
14558 lt_prog_compiler_static='-static'
14559 ;;
14560 # Lahey Fortran 8.1.
14561 lf95*)
14562 lt_prog_compiler_wl='-Wl,'
14563 lt_prog_compiler_pic='--shared'
14564 lt_prog_compiler_static='--static'
14565 ;;
14566 nagfor*)
14567 # NAG Fortran compiler
14568 lt_prog_compiler_wl='-Wl,-Wl,,'
14569 lt_prog_compiler_pic='-PIC'
14570 lt_prog_compiler_static='-Bstatic'
14571 ;;
14572 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14573 # Portland Group compilers (*not* the Pentium gcc compiler,
14574 # which looks to be a dead project)
14575 lt_prog_compiler_wl='-Wl,'
14576 lt_prog_compiler_pic='-fpic'
14577 lt_prog_compiler_static='-Bstatic'
14578 ;;
14579 ccc*)
14580 lt_prog_compiler_wl='-Wl,'
14581 # All Alpha code is PIC.
14582 lt_prog_compiler_static='-non_shared'
14583 ;;
14584 xl* | bgxl* | bgf* | mpixl*)
14585 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14586 lt_prog_compiler_wl='-Wl,'
14587 lt_prog_compiler_pic='-qpic'
14588 lt_prog_compiler_static='-qstaticlink'
14589 ;;
14590 *)
14591 case `$CC -V 2>&1 | sed 5q` in
14592 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14593 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14594 lt_prog_compiler_pic='-KPIC'
14595 lt_prog_compiler_static='-Bstatic'
14596 lt_prog_compiler_wl=''
14597 ;;
14598 *Sun\ F* | *Sun*Fortran*)
14599 lt_prog_compiler_pic='-KPIC'
14600 lt_prog_compiler_static='-Bstatic'
14601 lt_prog_compiler_wl='-Qoption ld '
14602 ;;
14603 *Sun\ C*)
14604 # Sun C 5.9
14605 lt_prog_compiler_pic='-KPIC'
14606 lt_prog_compiler_static='-Bstatic'
14607 lt_prog_compiler_wl='-Wl,'
14608 ;;
14609 *Intel*\ [CF]*Compiler*)
14610 lt_prog_compiler_wl='-Wl,'
14611 lt_prog_compiler_pic='-fPIC'
14612 lt_prog_compiler_static='-static'
14613 ;;
14614 *Portland\ Group*)
14615 lt_prog_compiler_wl='-Wl,'
14616 lt_prog_compiler_pic='-fpic'
14617 lt_prog_compiler_static='-Bstatic'
14618 ;;
14619 esac
14620 ;;
14621 esac
14622 ;;
14623
14624 newsos6)
14625 lt_prog_compiler_pic='-KPIC'
14626 lt_prog_compiler_static='-Bstatic'
14627 ;;
14628
14629 *nto* | *qnx*)
14630 # QNX uses GNU C++, but need to define -shared option too, otherwise
14631 # it will coredump.
14632 lt_prog_compiler_pic='-fPIC -shared'
14633 ;;
14634
14635 osf3* | osf4* | osf5*)
14636 lt_prog_compiler_wl='-Wl,'
14637 # All OSF/1 code is PIC.
14638 lt_prog_compiler_static='-non_shared'
14639 ;;
14640
14641 rdos*)
14642 lt_prog_compiler_static='-non_shared'
14643 ;;
14644
14645 solaris*)
14646 lt_prog_compiler_pic='-KPIC'
14647 lt_prog_compiler_static='-Bstatic'
14648 case $cc_basename in
14649 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14650 lt_prog_compiler_wl='-Qoption ld ';;
14651 *)
14652 lt_prog_compiler_wl='-Wl,';;
14653 esac
14654 ;;
14655
14656 sunos4*)
14657 lt_prog_compiler_wl='-Qoption ld '
14658 lt_prog_compiler_pic='-PIC'
14659 lt_prog_compiler_static='-Bstatic'
14660 ;;
14661
14662 sysv4 | sysv4.2uw2* | sysv4.3*)
14663 lt_prog_compiler_wl='-Wl,'
14664 lt_prog_compiler_pic='-KPIC'
14665 lt_prog_compiler_static='-Bstatic'
14666 ;;
14667
14668 sysv4*MP*)
14669 if test -d /usr/nec ;then
14670 lt_prog_compiler_pic='-Kconform_pic'
14671 lt_prog_compiler_static='-Bstatic'
14672 fi
14673 ;;
14674
14675 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14676 lt_prog_compiler_wl='-Wl,'
14677 lt_prog_compiler_pic='-KPIC'
14678 lt_prog_compiler_static='-Bstatic'
14679 ;;
14680
14681 unicos*)
14682 lt_prog_compiler_wl='-Wl,'
14683 lt_prog_compiler_can_build_shared=no
14684 ;;
14685
14686 uts4*)
14687 lt_prog_compiler_pic='-pic'
14688 lt_prog_compiler_static='-Bstatic'
14689 ;;
14690
14691 *)
14692 lt_prog_compiler_can_build_shared=no
14693 ;;
14694 esac
14695 fi
14696
14697 case $host_os in
14698 # For platforms which do not support PIC, -DPIC is meaningless:
14699 *djgpp*)
14700 lt_prog_compiler_pic=
14701 ;;
14702 *)
14703 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14704 ;;
14705 esac
14706
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14708 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14709 if ${lt_cv_prog_compiler_pic+:} false; then :
14710 $as_echo_n "(cached) " >&6
14711 else
14712 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14713 fi
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14715 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14716 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14717
14718 #
14719 # Check to make sure the PIC flag actually works.
14720 #
14721 if test -n "$lt_prog_compiler_pic"; then
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14723 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14724 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14725 $as_echo_n "(cached) " >&6
14726 else
14727 lt_cv_prog_compiler_pic_works=no
14728 ac_outfile=conftest.$ac_objext
14729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14730 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14731 # Insert the option either (1) after the last *FLAGS variable, or
14732 # (2) before a word containing "conftest.", or (3) at the end.
14733 # Note that $ac_compile itself does not contain backslashes and begins
14734 # with a dollar sign (not a hyphen), so the echo should work correctly.
14735 # The option is referenced via a variable to avoid confusing sed.
14736 lt_compile=`echo "$ac_compile" | $SED \
14737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14739 -e 's:$: $lt_compiler_flag:'`
14740 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14741 (eval "$lt_compile" 2>conftest.err)
14742 ac_status=$?
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 if (exit $ac_status) && test -s "$ac_outfile"; then
14746 # The compiler can only warn and ignore the option if not recognized
14747 # So say no if there are warnings other than the usual output.
14748 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14750 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14751 lt_cv_prog_compiler_pic_works=yes
14752 fi
14753 fi
14754 $RM conftest*
14755
14756 fi
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14758 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14759
14760 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14761 case $lt_prog_compiler_pic in
14762 "" | " "*) ;;
14763 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14764 esac
14765 else
14766 lt_prog_compiler_pic=
14767 lt_prog_compiler_can_build_shared=no
14768 fi
14769
14770 fi
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782 #
14783 # Check to make sure the static flag actually works.
14784 #
14785 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14787 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14788 if ${lt_cv_prog_compiler_static_works+:} false; then :
14789 $as_echo_n "(cached) " >&6
14790 else
14791 lt_cv_prog_compiler_static_works=no
14792 save_LDFLAGS="$LDFLAGS"
14793 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14794 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14795 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14796 # The linker can only warn and ignore the option if not recognized
14797 # So say no if there are warnings
14798 if test -s conftest.err; then
14799 # Append any errors to the config.log.
14800 cat conftest.err 1>&5
14801 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14803 if diff conftest.exp conftest.er2 >/dev/null; then
14804 lt_cv_prog_compiler_static_works=yes
14805 fi
14806 else
14807 lt_cv_prog_compiler_static_works=yes
14808 fi
14809 fi
14810 $RM -r conftest*
14811 LDFLAGS="$save_LDFLAGS"
14812
14813 fi
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14815 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14816
14817 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14818 :
14819 else
14820 lt_prog_compiler_static=
14821 fi
14822
14823
14824
14825
14826
14827
14828
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14830 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14831 if ${lt_cv_prog_compiler_c_o+:} false; then :
14832 $as_echo_n "(cached) " >&6
14833 else
14834 lt_cv_prog_compiler_c_o=no
14835 $RM -r conftest 2>/dev/null
14836 mkdir conftest
14837 cd conftest
14838 mkdir out
14839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14840
14841 lt_compiler_flag="-o out/conftest2.$ac_objext"
14842 # Insert the option either (1) after the last *FLAGS variable, or
14843 # (2) before a word containing "conftest.", or (3) at the end.
14844 # Note that $ac_compile itself does not contain backslashes and begins
14845 # with a dollar sign (not a hyphen), so the echo should work correctly.
14846 lt_compile=`echo "$ac_compile" | $SED \
14847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14849 -e 's:$: $lt_compiler_flag:'`
14850 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14851 (eval "$lt_compile" 2>out/conftest.err)
14852 ac_status=$?
14853 cat out/conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14856 then
14857 # The compiler can only warn and ignore the option if not recognized
14858 # So say no if there are warnings
14859 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14860 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14861 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14862 lt_cv_prog_compiler_c_o=yes
14863 fi
14864 fi
14865 chmod u+w . 2>&5
14866 $RM conftest*
14867 # SGI C++ compiler will create directory out/ii_files/ for
14868 # template instantiation
14869 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14870 $RM out/* && rmdir out
14871 cd ..
14872 $RM -r conftest
14873 $RM conftest*
14874
14875 fi
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14877 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14878
14879
14880
14881
14882
14883
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14885 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14886 if ${lt_cv_prog_compiler_c_o+:} false; then :
14887 $as_echo_n "(cached) " >&6
14888 else
14889 lt_cv_prog_compiler_c_o=no
14890 $RM -r conftest 2>/dev/null
14891 mkdir conftest
14892 cd conftest
14893 mkdir out
14894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14895
14896 lt_compiler_flag="-o out/conftest2.$ac_objext"
14897 # Insert the option either (1) after the last *FLAGS variable, or
14898 # (2) before a word containing "conftest.", or (3) at the end.
14899 # Note that $ac_compile itself does not contain backslashes and begins
14900 # with a dollar sign (not a hyphen), so the echo should work correctly.
14901 lt_compile=`echo "$ac_compile" | $SED \
14902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14904 -e 's:$: $lt_compiler_flag:'`
14905 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14906 (eval "$lt_compile" 2>out/conftest.err)
14907 ac_status=$?
14908 cat out/conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14911 then
14912 # The compiler can only warn and ignore the option if not recognized
14913 # So say no if there are warnings
14914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14915 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14916 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14917 lt_cv_prog_compiler_c_o=yes
14918 fi
14919 fi
14920 chmod u+w . 2>&5
14921 $RM conftest*
14922 # SGI C++ compiler will create directory out/ii_files/ for
14923 # template instantiation
14924 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14925 $RM out/* && rmdir out
14926 cd ..
14927 $RM -r conftest
14928 $RM conftest*
14929
14930 fi
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14932 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14933
14934
14935
14936
14937 hard_links="nottested"
14938 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14939 # do not overwrite the value of need_locks provided by the user
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14941 $as_echo_n "checking if we can lock with hard links... " >&6; }
14942 hard_links=yes
14943 $RM conftest*
14944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14945 touch conftest.a
14946 ln conftest.a conftest.b 2>&5 || hard_links=no
14947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14949 $as_echo "$hard_links" >&6; }
14950 if test "$hard_links" = no; then
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14952 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14953 need_locks=warn
14954 fi
14955 else
14956 need_locks=no
14957 fi
14958
14959
14960
14961
14962
14963
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14965 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14966
14967 runpath_var=
14968 allow_undefined_flag=
14969 always_export_symbols=no
14970 archive_cmds=
14971 archive_expsym_cmds=
14972 compiler_needs_object=no
14973 enable_shared_with_static_runtimes=no
14974 export_dynamic_flag_spec=
14975 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14976 hardcode_automatic=no
14977 hardcode_direct=no
14978 hardcode_direct_absolute=no
14979 hardcode_libdir_flag_spec=
14980 hardcode_libdir_separator=
14981 hardcode_minus_L=no
14982 hardcode_shlibpath_var=unsupported
14983 inherit_rpath=no
14984 link_all_deplibs=unknown
14985 module_cmds=
14986 module_expsym_cmds=
14987 old_archive_from_new_cmds=
14988 old_archive_from_expsyms_cmds=
14989 thread_safe_flag_spec=
14990 whole_archive_flag_spec=
14991 # include_expsyms should be a list of space-separated symbols to be *always*
14992 # included in the symbol list
14993 include_expsyms=
14994 # exclude_expsyms can be an extended regexp of symbols to exclude
14995 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14996 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14997 # as well as any symbol that contains `d'.
14998 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14999 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15000 # platforms (ab)use it in PIC code, but their linkers get confused if
15001 # the symbol is explicitly referenced. Since portable code cannot
15002 # rely on this symbol name, it's probably fine to never include it in
15003 # preloaded symbol tables.
15004 # Exclude shared library initialization/finalization symbols.
15005 extract_expsyms_cmds=
15006
15007 case $host_os in
15008 cygwin* | mingw* | pw32* | cegcc*)
15009 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15010 # When not using gcc, we currently assume that we are using
15011 # Microsoft Visual C++.
15012 if test "$GCC" != yes; then
15013 with_gnu_ld=no
15014 fi
15015 ;;
15016 interix*)
15017 # we just hope/assume this is gcc and not c89 (= MSVC++)
15018 with_gnu_ld=yes
15019 ;;
15020 openbsd*)
15021 with_gnu_ld=no
15022 ;;
15023 linux* | k*bsd*-gnu | gnu*)
15024 link_all_deplibs=no
15025 ;;
15026 esac
15027
15028 ld_shlibs=yes
15029
15030 # On some targets, GNU ld is compatible enough with the native linker
15031 # that we're better off using the native interface for both.
15032 lt_use_gnu_ld_interface=no
15033 if test "$with_gnu_ld" = yes; then
15034 case $host_os in
15035 aix*)
15036 # The AIX port of GNU ld has always aspired to compatibility
15037 # with the native linker. However, as the warning in the GNU ld
15038 # block says, versions before 2.19.5* couldn't really create working
15039 # shared libraries, regardless of the interface used.
15040 case `$LD -v 2>&1` in
15041 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15042 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15043 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15044 *)
15045 lt_use_gnu_ld_interface=yes
15046 ;;
15047 esac
15048 ;;
15049 *)
15050 lt_use_gnu_ld_interface=yes
15051 ;;
15052 esac
15053 fi
15054
15055 if test "$lt_use_gnu_ld_interface" = yes; then
15056 # If archive_cmds runs LD, not CC, wlarc should be empty
15057 wlarc='${wl}'
15058
15059 # Set some defaults for GNU ld with shared library support. These
15060 # are reset later if shared libraries are not supported. Putting them
15061 # here allows them to be overridden if necessary.
15062 runpath_var=LD_RUN_PATH
15063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15064 export_dynamic_flag_spec='${wl}--export-dynamic'
15065 # ancient GNU ld didn't support --whole-archive et. al.
15066 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15067 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15068 else
15069 whole_archive_flag_spec=
15070 fi
15071 supports_anon_versioning=no
15072 case `$LD -v 2>&1` in
15073 *GNU\ gold*) supports_anon_versioning=yes ;;
15074 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15075 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15076 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15077 *\ 2.11.*) ;; # other 2.11 versions
15078 *) supports_anon_versioning=yes ;;
15079 esac
15080
15081 # See if GNU ld supports shared libraries.
15082 case $host_os in
15083 aix[3-9]*)
15084 # On AIX/PPC, the GNU linker is very broken
15085 if test "$host_cpu" != ia64; then
15086 ld_shlibs=no
15087 cat <<_LT_EOF 1>&2
15088
15089 *** Warning: the GNU linker, at least up to release 2.19, is reported
15090 *** to be unable to reliably create shared libraries on AIX.
15091 *** Therefore, libtool is disabling shared libraries support. If you
15092 *** really care for shared libraries, you may want to install binutils
15093 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15094 *** You will then need to restart the configuration process.
15095
15096 _LT_EOF
15097 fi
15098 ;;
15099
15100 amigaos*)
15101 case $host_cpu in
15102 powerpc)
15103 # see comment about AmigaOS4 .so support
15104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15105 archive_expsym_cmds=''
15106 ;;
15107 m68k)
15108 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)'
15109 hardcode_libdir_flag_spec='-L$libdir'
15110 hardcode_minus_L=yes
15111 ;;
15112 esac
15113 ;;
15114
15115 beos*)
15116 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15117 allow_undefined_flag=unsupported
15118 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15119 # support --undefined. This deserves some investigation. FIXME
15120 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15121 else
15122 ld_shlibs=no
15123 fi
15124 ;;
15125
15126 cygwin* | mingw* | pw32* | cegcc*)
15127 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15128 # as there is no search path for DLLs.
15129 hardcode_libdir_flag_spec='-L$libdir'
15130 export_dynamic_flag_spec='${wl}--export-all-symbols'
15131 allow_undefined_flag=unsupported
15132 always_export_symbols=no
15133 enable_shared_with_static_runtimes=yes
15134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15135 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15136
15137 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15139 # If the export-symbols file already is a .def file (1st line
15140 # is EXPORTS), use it as is; otherwise, prepend...
15141 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15142 cp $export_symbols $output_objdir/$soname.def;
15143 else
15144 echo EXPORTS > $output_objdir/$soname.def;
15145 cat $export_symbols >> $output_objdir/$soname.def;
15146 fi~
15147 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15148 else
15149 ld_shlibs=no
15150 fi
15151 ;;
15152
15153 haiku*)
15154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15155 link_all_deplibs=yes
15156 ;;
15157
15158 interix[3-9]*)
15159 hardcode_direct=no
15160 hardcode_shlibpath_var=no
15161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15162 export_dynamic_flag_spec='${wl}-E'
15163 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15164 # Instead, shared libraries are loaded at an image base (0x10000000 by
15165 # default) and relocated if they conflict, which is a slow very memory
15166 # consuming and fragmenting process. To avoid this, we pick a random,
15167 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15168 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15170 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'
15171 ;;
15172
15173 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15174 tmp_diet=no
15175 if test "$host_os" = linux-dietlibc; then
15176 case $cc_basename in
15177 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15178 esac
15179 fi
15180 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15181 && test "$tmp_diet" = no
15182 then
15183 tmp_addflag=' $pic_flag'
15184 tmp_sharedflag='-shared'
15185 case $cc_basename,$host_cpu in
15186 pgcc*) # Portland Group C compiler
15187 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15188 tmp_addflag=' $pic_flag'
15189 ;;
15190 pgf77* | pgf90* | pgf95* | pgfortran*)
15191 # Portland Group f77 and f90 compilers
15192 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15193 tmp_addflag=' $pic_flag -Mnomain' ;;
15194 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15195 tmp_addflag=' -i_dynamic' ;;
15196 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15197 tmp_addflag=' -i_dynamic -nofor_main' ;;
15198 ifc* | ifort*) # Intel Fortran compiler
15199 tmp_addflag=' -nofor_main' ;;
15200 lf95*) # Lahey Fortran 8.1
15201 whole_archive_flag_spec=
15202 tmp_sharedflag='--shared' ;;
15203 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15204 tmp_sharedflag='-qmkshrobj'
15205 tmp_addflag= ;;
15206 nvcc*) # Cuda Compiler Driver 2.2
15207 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15208 compiler_needs_object=yes
15209 ;;
15210 esac
15211 case `$CC -V 2>&1 | sed 5q` in
15212 *Sun\ C*) # Sun C 5.9
15213 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15214 compiler_needs_object=yes
15215 tmp_sharedflag='-G' ;;
15216 *Sun\ F*) # Sun Fortran 8.3
15217 tmp_sharedflag='-G' ;;
15218 esac
15219 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15220
15221 if test "x$supports_anon_versioning" = xyes; then
15222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15224 echo "local: *; };" >> $output_objdir/$libname.ver~
15225 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15226 fi
15227
15228 case $cc_basename in
15229 xlf* | bgf* | bgxlf* | mpixlf*)
15230 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15231 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15233 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15234 if test "x$supports_anon_versioning" = xyes; then
15235 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15236 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15237 echo "local: *; };" >> $output_objdir/$libname.ver~
15238 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15239 fi
15240 ;;
15241 esac
15242 else
15243 ld_shlibs=no
15244 fi
15245 ;;
15246
15247 netbsd* | netbsdelf*-gnu)
15248 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15249 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15250 wlarc=
15251 else
15252 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15253 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15254 fi
15255 ;;
15256
15257 solaris*)
15258 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15259 ld_shlibs=no
15260 cat <<_LT_EOF 1>&2
15261
15262 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15263 *** create shared libraries on Solaris systems. Therefore, libtool
15264 *** is disabling shared libraries support. We urge you to upgrade GNU
15265 *** binutils to release 2.9.1 or newer. Another option is to modify
15266 *** your PATH or compiler configuration so that the native linker is
15267 *** used, and then restart.
15268
15269 _LT_EOF
15270 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15271 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15272 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15273 else
15274 ld_shlibs=no
15275 fi
15276 ;;
15277
15278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15279 case `$LD -v 2>&1` in
15280 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15281 ld_shlibs=no
15282 cat <<_LT_EOF 1>&2
15283
15284 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15285 *** reliably create shared libraries on SCO systems. Therefore, libtool
15286 *** is disabling shared libraries support. We urge you to upgrade GNU
15287 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15288 *** your PATH or compiler configuration so that the native linker is
15289 *** used, and then restart.
15290
15291 _LT_EOF
15292 ;;
15293 *)
15294 # For security reasons, it is highly recommended that you always
15295 # use absolute paths for naming shared libraries, and exclude the
15296 # DT_RUNPATH tag from executables and libraries. But doing so
15297 # requires that you compile everything twice, which is a pain.
15298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15301 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15302 else
15303 ld_shlibs=no
15304 fi
15305 ;;
15306 esac
15307 ;;
15308
15309 sunos4*)
15310 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15311 wlarc=
15312 hardcode_direct=yes
15313 hardcode_shlibpath_var=no
15314 ;;
15315
15316 *)
15317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15318 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15319 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15320 else
15321 ld_shlibs=no
15322 fi
15323 ;;
15324 esac
15325
15326 if test "$ld_shlibs" = no; then
15327 runpath_var=
15328 hardcode_libdir_flag_spec=
15329 export_dynamic_flag_spec=
15330 whole_archive_flag_spec=
15331 fi
15332 else
15333 # PORTME fill in a description of your system's linker (not GNU ld)
15334 case $host_os in
15335 aix3*)
15336 allow_undefined_flag=unsupported
15337 always_export_symbols=yes
15338 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'
15339 # Note: this linker hardcodes the directories in LIBPATH if there
15340 # are no directories specified by -L.
15341 hardcode_minus_L=yes
15342 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15343 # Neither direct hardcoding nor static linking is supported with a
15344 # broken collect2.
15345 hardcode_direct=unsupported
15346 fi
15347 ;;
15348
15349 aix[4-9]*)
15350 if test "$host_cpu" = ia64; then
15351 # On IA64, the linker does run time linking by default, so we don't
15352 # have to do anything special.
15353 aix_use_runtimelinking=no
15354 exp_sym_flag='-Bexport'
15355 no_entry_flag=""
15356 else
15357 # If we're using GNU nm, then we don't want the "-C" option.
15358 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15359 # Also, AIX nm treats weak defined symbols like other global
15360 # defined symbols, whereas GNU nm marks them as "W".
15361 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15362 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15363 else
15364 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'
15365 fi
15366 aix_use_runtimelinking=no
15367
15368 # Test if we are trying to use run time linking or normal
15369 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15370 # need to do runtime linking.
15371 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15372 for ld_flag in $LDFLAGS; do
15373 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15374 aix_use_runtimelinking=yes
15375 break
15376 fi
15377 done
15378 ;;
15379 esac
15380
15381 exp_sym_flag='-bexport'
15382 no_entry_flag='-bnoentry'
15383 fi
15384
15385 # When large executables or shared objects are built, AIX ld can
15386 # have problems creating the table of contents. If linking a library
15387 # or program results in "error TOC overflow" add -mminimal-toc to
15388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15390
15391 archive_cmds=''
15392 hardcode_direct=yes
15393 hardcode_direct_absolute=yes
15394 hardcode_libdir_separator=':'
15395 link_all_deplibs=yes
15396 file_list_spec='${wl}-f,'
15397
15398 if test "$GCC" = yes; then
15399 case $host_os in aix4.[012]|aix4.[012].*)
15400 # We only want to do this on AIX 4.2 and lower, the check
15401 # below for broken collect2 doesn't work under 4.3+
15402 collect2name=`${CC} -print-prog-name=collect2`
15403 if test -f "$collect2name" &&
15404 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15405 then
15406 # We have reworked collect2
15407 :
15408 else
15409 # We have old collect2
15410 hardcode_direct=unsupported
15411 # It fails to find uninstalled libraries when the uninstalled
15412 # path is not listed in the libpath. Setting hardcode_minus_L
15413 # to unsupported forces relinking
15414 hardcode_minus_L=yes
15415 hardcode_libdir_flag_spec='-L$libdir'
15416 hardcode_libdir_separator=
15417 fi
15418 ;;
15419 esac
15420 shared_flag='-shared'
15421 if test "$aix_use_runtimelinking" = yes; then
15422 shared_flag="$shared_flag "'${wl}-G'
15423 fi
15424 link_all_deplibs=no
15425 else
15426 # not using gcc
15427 if test "$host_cpu" = ia64; then
15428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15429 # chokes on -Wl,-G. The following line is correct:
15430 shared_flag='-G'
15431 else
15432 if test "$aix_use_runtimelinking" = yes; then
15433 shared_flag='${wl}-G'
15434 else
15435 shared_flag='${wl}-bM:SRE'
15436 fi
15437 fi
15438 fi
15439
15440 export_dynamic_flag_spec='${wl}-bexpall'
15441 # It seems that -bexpall does not export symbols beginning with
15442 # underscore (_), so it is better to generate a list of symbols to export.
15443 always_export_symbols=yes
15444 if test "$aix_use_runtimelinking" = yes; then
15445 # Warning - without using the other runtime loading flags (-brtl),
15446 # -berok will link without error, but may produce a broken library.
15447 allow_undefined_flag='-berok'
15448 # Determine the default libpath from the value encoded in an
15449 # empty executable.
15450 if test "${lt_cv_aix_libpath+set}" = set; then
15451 aix_libpath=$lt_cv_aix_libpath
15452 else
15453 if ${lt_cv_aix_libpath_+:} false; then :
15454 $as_echo_n "(cached) " >&6
15455 else
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15458
15459 int
15460 main ()
15461 {
15462
15463 ;
15464 return 0;
15465 }
15466 _ACEOF
15467 if ac_fn_c_try_link "$LINENO"; then :
15468
15469 lt_aix_libpath_sed='
15470 /Import File Strings/,/^$/ {
15471 /^0/ {
15472 s/^0 *\([^ ]*\) *$/\1/
15473 p
15474 }
15475 }'
15476 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15477 # Check for a 64-bit object if we didn't find anything.
15478 if test -z "$lt_cv_aix_libpath_"; then
15479 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15480 fi
15481 fi
15482 rm -f core conftest.err conftest.$ac_objext \
15483 conftest$ac_exeext conftest.$ac_ext
15484 if test -z "$lt_cv_aix_libpath_"; then
15485 lt_cv_aix_libpath_="/usr/lib:/lib"
15486 fi
15487
15488 fi
15489
15490 aix_libpath=$lt_cv_aix_libpath_
15491 fi
15492
15493 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15494 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15495 else
15496 if test "$host_cpu" = ia64; then
15497 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15498 allow_undefined_flag="-z nodefs"
15499 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"
15500 else
15501 # Determine the default libpath from the value encoded in an
15502 # empty executable.
15503 if test "${lt_cv_aix_libpath+set}" = set; then
15504 aix_libpath=$lt_cv_aix_libpath
15505 else
15506 if ${lt_cv_aix_libpath_+:} false; then :
15507 $as_echo_n "(cached) " >&6
15508 else
15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15511
15512 int
15513 main ()
15514 {
15515
15516 ;
15517 return 0;
15518 }
15519 _ACEOF
15520 if ac_fn_c_try_link "$LINENO"; then :
15521
15522 lt_aix_libpath_sed='
15523 /Import File Strings/,/^$/ {
15524 /^0/ {
15525 s/^0 *\([^ ]*\) *$/\1/
15526 p
15527 }
15528 }'
15529 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15530 # Check for a 64-bit object if we didn't find anything.
15531 if test -z "$lt_cv_aix_libpath_"; then
15532 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15533 fi
15534 fi
15535 rm -f core conftest.err conftest.$ac_objext \
15536 conftest$ac_exeext conftest.$ac_ext
15537 if test -z "$lt_cv_aix_libpath_"; then
15538 lt_cv_aix_libpath_="/usr/lib:/lib"
15539 fi
15540
15541 fi
15542
15543 aix_libpath=$lt_cv_aix_libpath_
15544 fi
15545
15546 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15547 # Warning - without using the other run time loading flags,
15548 # -berok will link without error, but may produce a broken library.
15549 no_undefined_flag=' ${wl}-bernotok'
15550 allow_undefined_flag=' ${wl}-berok'
15551 if test "$with_gnu_ld" = yes; then
15552 # We only use this code for GNU lds that support --whole-archive.
15553 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15554 else
15555 # Exported symbols can be pulled into shared objects from archives
15556 whole_archive_flag_spec='$convenience'
15557 fi
15558 archive_cmds_need_lc=yes
15559 # This is similar to how AIX traditionally builds its shared libraries.
15560 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'
15561 fi
15562 fi
15563 ;;
15564
15565 amigaos*)
15566 case $host_cpu in
15567 powerpc)
15568 # see comment about AmigaOS4 .so support
15569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15570 archive_expsym_cmds=''
15571 ;;
15572 m68k)
15573 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)'
15574 hardcode_libdir_flag_spec='-L$libdir'
15575 hardcode_minus_L=yes
15576 ;;
15577 esac
15578 ;;
15579
15580 bsdi[45]*)
15581 export_dynamic_flag_spec=-rdynamic
15582 ;;
15583
15584 cygwin* | mingw* | pw32* | cegcc*)
15585 # When not using gcc, we currently assume that we are using
15586 # Microsoft Visual C++.
15587 # hardcode_libdir_flag_spec is actually meaningless, as there is
15588 # no search path for DLLs.
15589 case $cc_basename in
15590 cl*)
15591 # Native MSVC
15592 hardcode_libdir_flag_spec=' '
15593 allow_undefined_flag=unsupported
15594 always_export_symbols=yes
15595 file_list_spec='@'
15596 # Tell ltmain to make .lib files, not .a files.
15597 libext=lib
15598 # Tell ltmain to make .dll files, not .so files.
15599 shrext_cmds=".dll"
15600 # FIXME: Setting linknames here is a bad hack.
15601 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15602 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15603 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15604 else
15605 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15606 fi~
15607 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15608 linknames='
15609 # The linker will not automatically build a static lib if we build a DLL.
15610 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15611 enable_shared_with_static_runtimes=yes
15612 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15613 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15614 # Don't use ranlib
15615 old_postinstall_cmds='chmod 644 $oldlib'
15616 postlink_cmds='lt_outputfile="@OUTPUT@"~
15617 lt_tool_outputfile="@TOOL_OUTPUT@"~
15618 case $lt_outputfile in
15619 *.exe|*.EXE) ;;
15620 *)
15621 lt_outputfile="$lt_outputfile.exe"
15622 lt_tool_outputfile="$lt_tool_outputfile.exe"
15623 ;;
15624 esac~
15625 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15626 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15627 $RM "$lt_outputfile.manifest";
15628 fi'
15629 ;;
15630 *)
15631 # Assume MSVC wrapper
15632 hardcode_libdir_flag_spec=' '
15633 allow_undefined_flag=unsupported
15634 # Tell ltmain to make .lib files, not .a files.
15635 libext=lib
15636 # Tell ltmain to make .dll files, not .so files.
15637 shrext_cmds=".dll"
15638 # FIXME: Setting linknames here is a bad hack.
15639 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15640 # The linker will automatically build a .lib file if we build a DLL.
15641 old_archive_from_new_cmds='true'
15642 # FIXME: Should let the user specify the lib program.
15643 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15644 enable_shared_with_static_runtimes=yes
15645 ;;
15646 esac
15647 ;;
15648
15649 darwin* | rhapsody*)
15650
15651
15652 archive_cmds_need_lc=no
15653 hardcode_direct=no
15654 hardcode_automatic=yes
15655 hardcode_shlibpath_var=unsupported
15656 if test "$lt_cv_ld_force_load" = "yes"; then
15657 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15658
15659 else
15660 whole_archive_flag_spec=''
15661 fi
15662 link_all_deplibs=yes
15663 allow_undefined_flag="$_lt_dar_allow_undefined"
15664 case $cc_basename in
15665 ifort*) _lt_dar_can_shared=yes ;;
15666 *) _lt_dar_can_shared=$GCC ;;
15667 esac
15668 if test "$_lt_dar_can_shared" = "yes"; then
15669 output_verbose_link_cmd=func_echo_all
15670 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15671 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15672 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}"
15673 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}"
15674
15675 else
15676 ld_shlibs=no
15677 fi
15678
15679 ;;
15680
15681 dgux*)
15682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15683 hardcode_libdir_flag_spec='-L$libdir'
15684 hardcode_shlibpath_var=no
15685 ;;
15686
15687 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15688 # support. Future versions do this automatically, but an explicit c++rt0.o
15689 # does not break anything, and helps significantly (at the cost of a little
15690 # extra space).
15691 freebsd2.2*)
15692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15693 hardcode_libdir_flag_spec='-R$libdir'
15694 hardcode_direct=yes
15695 hardcode_shlibpath_var=no
15696 ;;
15697
15698 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15699 freebsd2.*)
15700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15701 hardcode_direct=yes
15702 hardcode_minus_L=yes
15703 hardcode_shlibpath_var=no
15704 ;;
15705
15706 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15707 freebsd* | dragonfly*)
15708 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15709 hardcode_libdir_flag_spec='-R$libdir'
15710 hardcode_direct=yes
15711 hardcode_shlibpath_var=no
15712 ;;
15713
15714 hpux9*)
15715 if test "$GCC" = yes; then
15716 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15717 else
15718 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'
15719 fi
15720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15721 hardcode_libdir_separator=:
15722 hardcode_direct=yes
15723
15724 # hardcode_minus_L: Not really in the search PATH,
15725 # but as the default location of the library.
15726 hardcode_minus_L=yes
15727 export_dynamic_flag_spec='${wl}-E'
15728 ;;
15729
15730 hpux10*)
15731 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15732 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15733 else
15734 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15735 fi
15736 if test "$with_gnu_ld" = no; then
15737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15738 hardcode_libdir_separator=:
15739 hardcode_direct=yes
15740 hardcode_direct_absolute=yes
15741 export_dynamic_flag_spec='${wl}-E'
15742 # hardcode_minus_L: Not really in the search PATH,
15743 # but as the default location of the library.
15744 hardcode_minus_L=yes
15745 fi
15746 ;;
15747
15748 hpux11*)
15749 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15750 case $host_cpu in
15751 hppa*64*)
15752 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15753 ;;
15754 ia64*)
15755 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15756 ;;
15757 *)
15758 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15759 ;;
15760 esac
15761 else
15762 case $host_cpu in
15763 hppa*64*)
15764 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15765 ;;
15766 ia64*)
15767 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15768 ;;
15769 *)
15770
15771 # Older versions of the 11.00 compiler do not understand -b yet
15772 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15774 $as_echo_n "checking if $CC understands -b... " >&6; }
15775 if ${lt_cv_prog_compiler__b+:} false; then :
15776 $as_echo_n "(cached) " >&6
15777 else
15778 lt_cv_prog_compiler__b=no
15779 save_LDFLAGS="$LDFLAGS"
15780 LDFLAGS="$LDFLAGS -b"
15781 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15783 # The linker can only warn and ignore the option if not recognized
15784 # So say no if there are warnings
15785 if test -s conftest.err; then
15786 # Append any errors to the config.log.
15787 cat conftest.err 1>&5
15788 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15790 if diff conftest.exp conftest.er2 >/dev/null; then
15791 lt_cv_prog_compiler__b=yes
15792 fi
15793 else
15794 lt_cv_prog_compiler__b=yes
15795 fi
15796 fi
15797 $RM -r conftest*
15798 LDFLAGS="$save_LDFLAGS"
15799
15800 fi
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15802 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15803
15804 if test x"$lt_cv_prog_compiler__b" = xyes; then
15805 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15806 else
15807 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15808 fi
15809
15810 ;;
15811 esac
15812 fi
15813 if test "$with_gnu_ld" = no; then
15814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15815 hardcode_libdir_separator=:
15816
15817 case $host_cpu in
15818 hppa*64*|ia64*)
15819 hardcode_direct=no
15820 hardcode_shlibpath_var=no
15821 ;;
15822 *)
15823 hardcode_direct=yes
15824 hardcode_direct_absolute=yes
15825 export_dynamic_flag_spec='${wl}-E'
15826
15827 # hardcode_minus_L: Not really in the search PATH,
15828 # but as the default location of the library.
15829 hardcode_minus_L=yes
15830 ;;
15831 esac
15832 fi
15833 ;;
15834
15835 irix5* | irix6* | nonstopux*)
15836 if test "$GCC" = yes; then
15837 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15838 # Try to use the -exported_symbol ld option, if it does not
15839 # work, assume that -exports_file does not work either and
15840 # implicitly export all symbols.
15841 # This should be the same for all languages, so no per-tag cache variable.
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15843 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15844 if ${lt_cv_irix_exported_symbol+:} false; then :
15845 $as_echo_n "(cached) " >&6
15846 else
15847 save_LDFLAGS="$LDFLAGS"
15848 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850 /* end confdefs.h. */
15851 int foo (void) { return 0; }
15852 _ACEOF
15853 if ac_fn_c_try_link "$LINENO"; then :
15854 lt_cv_irix_exported_symbol=yes
15855 else
15856 lt_cv_irix_exported_symbol=no
15857 fi
15858 rm -f core conftest.err conftest.$ac_objext \
15859 conftest$ac_exeext conftest.$ac_ext
15860 LDFLAGS="$save_LDFLAGS"
15861 fi
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15863 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15864 if test "$lt_cv_irix_exported_symbol" = yes; then
15865 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15866 fi
15867 else
15868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
15870 fi
15871 archive_cmds_need_lc='no'
15872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15873 hardcode_libdir_separator=:
15874 inherit_rpath=yes
15875 link_all_deplibs=yes
15876 ;;
15877
15878 netbsd* | netbsdelf*-gnu)
15879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15881 else
15882 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15883 fi
15884 hardcode_libdir_flag_spec='-R$libdir'
15885 hardcode_direct=yes
15886 hardcode_shlibpath_var=no
15887 ;;
15888
15889 newsos6)
15890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15891 hardcode_direct=yes
15892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15893 hardcode_libdir_separator=:
15894 hardcode_shlibpath_var=no
15895 ;;
15896
15897 *nto* | *qnx*)
15898 ;;
15899
15900 openbsd*)
15901 if test -f /usr/libexec/ld.so; then
15902 hardcode_direct=yes
15903 hardcode_shlibpath_var=no
15904 hardcode_direct_absolute=yes
15905 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15906 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15907 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15908 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15909 export_dynamic_flag_spec='${wl}-E'
15910 else
15911 case $host_os in
15912 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15914 hardcode_libdir_flag_spec='-R$libdir'
15915 ;;
15916 *)
15917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15918 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15919 ;;
15920 esac
15921 fi
15922 else
15923 ld_shlibs=no
15924 fi
15925 ;;
15926
15927 os2*)
15928 hardcode_libdir_flag_spec='-L$libdir'
15929 hardcode_minus_L=yes
15930 allow_undefined_flag=unsupported
15931 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'
15932 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15933 ;;
15934
15935 osf3*)
15936 if test "$GCC" = yes; then
15937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15938 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15939 else
15940 allow_undefined_flag=' -expect_unresolved \*'
15941 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15942 fi
15943 archive_cmds_need_lc='no'
15944 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15945 hardcode_libdir_separator=:
15946 ;;
15947
15948 osf4* | osf5*) # as osf3* with the addition of -msym flag
15949 if test "$GCC" = yes; then
15950 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15951 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15953 else
15954 allow_undefined_flag=' -expect_unresolved \*'
15955 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15956 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~
15957 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
15958
15959 # Both c and cxx compiler support -rpath directly
15960 hardcode_libdir_flag_spec='-rpath $libdir'
15961 fi
15962 archive_cmds_need_lc='no'
15963 hardcode_libdir_separator=:
15964 ;;
15965
15966 solaris*)
15967 no_undefined_flag=' -z defs'
15968 if test "$GCC" = yes; then
15969 wlarc='${wl}'
15970 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15972 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15973 else
15974 case `$CC -V 2>&1` in
15975 *"Compilers 5.0"*)
15976 wlarc=''
15977 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15978 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15979 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15980 ;;
15981 *)
15982 wlarc='${wl}'
15983 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15984 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15985 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15986 ;;
15987 esac
15988 fi
15989 hardcode_libdir_flag_spec='-R$libdir'
15990 hardcode_shlibpath_var=no
15991 case $host_os in
15992 solaris2.[0-5] | solaris2.[0-5].*) ;;
15993 *)
15994 # The compiler driver will combine and reorder linker options,
15995 # but understands `-z linker_flag'. GCC discards it without `$wl',
15996 # but is careful enough not to reorder.
15997 # Supported since Solaris 2.6 (maybe 2.5.1?)
15998 if test "$GCC" = yes; then
15999 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16000 else
16001 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16002 fi
16003 ;;
16004 esac
16005 link_all_deplibs=yes
16006 ;;
16007
16008 sunos4*)
16009 if test "x$host_vendor" = xsequent; then
16010 # Use $CC to link under sequent, because it throws in some extra .o
16011 # files that make .init and .fini sections work.
16012 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16013 else
16014 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16015 fi
16016 hardcode_libdir_flag_spec='-L$libdir'
16017 hardcode_direct=yes
16018 hardcode_minus_L=yes
16019 hardcode_shlibpath_var=no
16020 ;;
16021
16022 sysv4)
16023 case $host_vendor in
16024 sni)
16025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16026 hardcode_direct=yes # is this really true???
16027 ;;
16028 siemens)
16029 ## LD is ld it makes a PLAMLIB
16030 ## CC just makes a GrossModule.
16031 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16032 reload_cmds='$CC -r -o $output$reload_objs'
16033 hardcode_direct=no
16034 ;;
16035 motorola)
16036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16037 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16038 ;;
16039 esac
16040 runpath_var='LD_RUN_PATH'
16041 hardcode_shlibpath_var=no
16042 ;;
16043
16044 sysv4.3*)
16045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16046 hardcode_shlibpath_var=no
16047 export_dynamic_flag_spec='-Bexport'
16048 ;;
16049
16050 sysv4*MP*)
16051 if test -d /usr/nec; then
16052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16053 hardcode_shlibpath_var=no
16054 runpath_var=LD_RUN_PATH
16055 hardcode_runpath_var=yes
16056 ld_shlibs=yes
16057 fi
16058 ;;
16059
16060 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16061 no_undefined_flag='${wl}-z,text'
16062 archive_cmds_need_lc=no
16063 hardcode_shlibpath_var=no
16064 runpath_var='LD_RUN_PATH'
16065
16066 if test "$GCC" = yes; then
16067 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16068 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16069 else
16070 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16071 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16072 fi
16073 ;;
16074
16075 sysv5* | sco3.2v5* | sco5v6*)
16076 # Note: We can NOT use -z defs as we might desire, because we do not
16077 # link with -lc, and that would cause any symbols used from libc to
16078 # always be unresolved, which means just about no library would
16079 # ever link correctly. If we're not using GNU ld we use -z text
16080 # though, which does catch some bad symbols but isn't as heavy-handed
16081 # as -z defs.
16082 no_undefined_flag='${wl}-z,text'
16083 allow_undefined_flag='${wl}-z,nodefs'
16084 archive_cmds_need_lc=no
16085 hardcode_shlibpath_var=no
16086 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16087 hardcode_libdir_separator=':'
16088 link_all_deplibs=yes
16089 export_dynamic_flag_spec='${wl}-Bexport'
16090 runpath_var='LD_RUN_PATH'
16091
16092 if test "$GCC" = yes; then
16093 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16094 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16095 else
16096 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16097 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16098 fi
16099 ;;
16100
16101 uts4*)
16102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16103 hardcode_libdir_flag_spec='-L$libdir'
16104 hardcode_shlibpath_var=no
16105 ;;
16106
16107 *)
16108 ld_shlibs=no
16109 ;;
16110 esac
16111
16112 if test x$host_vendor = xsni; then
16113 case $host in
16114 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16115 export_dynamic_flag_spec='${wl}-Blargedynsym'
16116 ;;
16117 esac
16118 fi
16119 fi
16120
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16122 $as_echo "$ld_shlibs" >&6; }
16123 test "$ld_shlibs" = no && can_build_shared=no
16124
16125 with_gnu_ld=$with_gnu_ld
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141 #
16142 # Do we need to explicitly link libc?
16143 #
16144 case "x$archive_cmds_need_lc" in
16145 x|xyes)
16146 # Assume -lc should be added
16147 archive_cmds_need_lc=yes
16148
16149 if test "$enable_shared" = yes && test "$GCC" = yes; then
16150 case $archive_cmds in
16151 *'~'*)
16152 # FIXME: we may have to deal with multi-command sequences.
16153 ;;
16154 '$CC '*)
16155 # Test whether the compiler implicitly links with -lc since on some
16156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16157 # to ld, don't add -lc before -lgcc.
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16159 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16160 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16161 $as_echo_n "(cached) " >&6
16162 else
16163 $RM conftest*
16164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16165
16166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16167 (eval $ac_compile) 2>&5
16168 ac_status=$?
16169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16170 test $ac_status = 0; } 2>conftest.err; then
16171 soname=conftest
16172 lib=conftest
16173 libobjs=conftest.$ac_objext
16174 deplibs=
16175 wl=$lt_prog_compiler_wl
16176 pic_flag=$lt_prog_compiler_pic
16177 compiler_flags=-v
16178 linker_flags=-v
16179 verstring=
16180 output_objdir=.
16181 libname=conftest
16182 lt_save_allow_undefined_flag=$allow_undefined_flag
16183 allow_undefined_flag=
16184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16185 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16186 ac_status=$?
16187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16188 test $ac_status = 0; }
16189 then
16190 lt_cv_archive_cmds_need_lc=no
16191 else
16192 lt_cv_archive_cmds_need_lc=yes
16193 fi
16194 allow_undefined_flag=$lt_save_allow_undefined_flag
16195 else
16196 cat conftest.err 1>&5
16197 fi
16198 $RM conftest*
16199
16200 fi
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16202 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16203 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16204 ;;
16205 esac
16206 fi
16207 ;;
16208 esac
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16362 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16363
16364 if test "$GCC" = yes; then
16365 case $host_os in
16366 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16367 *) lt_awk_arg="/^libraries:/" ;;
16368 esac
16369 case $host_os in
16370 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16371 *) lt_sed_strip_eq="s,=/,/,g" ;;
16372 esac
16373 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16374 case $lt_search_path_spec in
16375 *\;*)
16376 # if the path contains ";" then we assume it to be the separator
16377 # otherwise default to the standard path separator (i.e. ":") - it is
16378 # assumed that no part of a normal pathname contains ";" but that should
16379 # okay in the real world where ";" in dirpaths is itself problematic.
16380 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16381 ;;
16382 *)
16383 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16384 ;;
16385 esac
16386 # Ok, now we have the path, separated by spaces, we can step through it
16387 # and add multilib dir if necessary.
16388 lt_tmp_lt_search_path_spec=
16389 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16390 for lt_sys_path in $lt_search_path_spec; do
16391 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16392 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16393 else
16394 test -d "$lt_sys_path" && \
16395 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16396 fi
16397 done
16398 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16399 BEGIN {RS=" "; FS="/|\n";} {
16400 lt_foo="";
16401 lt_count=0;
16402 for (lt_i = NF; lt_i > 0; lt_i--) {
16403 if ($lt_i != "" && $lt_i != ".") {
16404 if ($lt_i == "..") {
16405 lt_count++;
16406 } else {
16407 if (lt_count == 0) {
16408 lt_foo="/" $lt_i lt_foo;
16409 } else {
16410 lt_count--;
16411 }
16412 }
16413 }
16414 }
16415 if (lt_foo != "") { lt_freq[lt_foo]++; }
16416 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16417 }'`
16418 # AWK program above erroneously prepends '/' to C:/dos/paths
16419 # for these hosts.
16420 case $host_os in
16421 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16422 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16423 esac
16424 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16425 else
16426 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16427 fi
16428 library_names_spec=
16429 libname_spec='lib$name'
16430 soname_spec=
16431 shrext_cmds=".so"
16432 postinstall_cmds=
16433 postuninstall_cmds=
16434 finish_cmds=
16435 finish_eval=
16436 shlibpath_var=
16437 shlibpath_overrides_runpath=unknown
16438 version_type=none
16439 dynamic_linker="$host_os ld.so"
16440 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16441 need_lib_prefix=unknown
16442 hardcode_into_libs=no
16443
16444 # when you set need_version to no, make sure it does not cause -set_version
16445 # flags to be left without arguments
16446 need_version=unknown
16447
16448 case $host_os in
16449 aix3*)
16450 version_type=linux # correct to gnu/linux during the next big refactor
16451 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16452 shlibpath_var=LIBPATH
16453
16454 # AIX 3 has no versioning support, so we append a major version to the name.
16455 soname_spec='${libname}${release}${shared_ext}$major'
16456 ;;
16457
16458 aix[4-9]*)
16459 version_type=linux # correct to gnu/linux during the next big refactor
16460 need_lib_prefix=no
16461 need_version=no
16462 hardcode_into_libs=yes
16463 if test "$host_cpu" = ia64; then
16464 # AIX 5 supports IA64
16465 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16466 shlibpath_var=LD_LIBRARY_PATH
16467 else
16468 # With GCC up to 2.95.x, collect2 would create an import file
16469 # for dependence libraries. The import file would start with
16470 # the line `#! .'. This would cause the generated library to
16471 # depend on `.', always an invalid library. This was fixed in
16472 # development snapshots of GCC prior to 3.0.
16473 case $host_os in
16474 aix4 | aix4.[01] | aix4.[01].*)
16475 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16476 echo ' yes '
16477 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16478 :
16479 else
16480 can_build_shared=no
16481 fi
16482 ;;
16483 esac
16484 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16485 # soname into executable. Probably we can add versioning support to
16486 # collect2, so additional links can be useful in future.
16487 if test "$aix_use_runtimelinking" = yes; then
16488 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16489 # instead of lib<name>.a to let people know that these are not
16490 # typical AIX shared libraries.
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492 else
16493 # We preserve .a as extension for shared libraries through AIX4.2
16494 # and later when we are not doing run time linking.
16495 library_names_spec='${libname}${release}.a $libname.a'
16496 soname_spec='${libname}${release}${shared_ext}$major'
16497 fi
16498 shlibpath_var=LIBPATH
16499 fi
16500 ;;
16501
16502 amigaos*)
16503 case $host_cpu in
16504 powerpc)
16505 # Since July 2007 AmigaOS4 officially supports .so libraries.
16506 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16508 ;;
16509 m68k)
16510 library_names_spec='$libname.ixlibrary $libname.a'
16511 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16512 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
16513 ;;
16514 esac
16515 ;;
16516
16517 beos*)
16518 library_names_spec='${libname}${shared_ext}'
16519 dynamic_linker="$host_os ld.so"
16520 shlibpath_var=LIBRARY_PATH
16521 ;;
16522
16523 bsdi[45]*)
16524 version_type=linux # correct to gnu/linux during the next big refactor
16525 need_version=no
16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16527 soname_spec='${libname}${release}${shared_ext}$major'
16528 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16529 shlibpath_var=LD_LIBRARY_PATH
16530 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16531 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16532 # the default ld.so.conf also contains /usr/contrib/lib and
16533 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16534 # libtool to hard-code these into programs
16535 ;;
16536
16537 cygwin* | mingw* | pw32* | cegcc*)
16538 version_type=windows
16539 shrext_cmds=".dll"
16540 need_version=no
16541 need_lib_prefix=no
16542
16543 case $GCC,$cc_basename in
16544 yes,*)
16545 # gcc
16546 library_names_spec='$libname.dll.a'
16547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16548 postinstall_cmds='base_file=`basename \${file}`~
16549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16550 dldir=$destdir/`dirname \$dlpath`~
16551 test -d \$dldir || mkdir -p \$dldir~
16552 $install_prog $dir/$dlname \$dldir/$dlname~
16553 chmod a+x \$dldir/$dlname~
16554 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16555 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16556 fi'
16557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16558 dlpath=$dir/\$dldll~
16559 $RM \$dlpath'
16560 shlibpath_overrides_runpath=yes
16561
16562 case $host_os in
16563 cygwin*)
16564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16565 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16566
16567 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16568 ;;
16569 mingw* | cegcc*)
16570 # MinGW DLLs use traditional 'lib' prefix
16571 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16572 ;;
16573 pw32*)
16574 # pw32 DLLs use 'pw' prefix rather than 'lib'
16575 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16576 ;;
16577 esac
16578 dynamic_linker='Win32 ld.exe'
16579 ;;
16580
16581 *,cl*)
16582 # Native MSVC
16583 libname_spec='$name'
16584 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16585 library_names_spec='${libname}.dll.lib'
16586
16587 case $build_os in
16588 mingw*)
16589 sys_lib_search_path_spec=
16590 lt_save_ifs=$IFS
16591 IFS=';'
16592 for lt_path in $LIB
16593 do
16594 IFS=$lt_save_ifs
16595 # Let DOS variable expansion print the short 8.3 style file name.
16596 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16597 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16598 done
16599 IFS=$lt_save_ifs
16600 # Convert to MSYS style.
16601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16602 ;;
16603 cygwin*)
16604 # Convert to unix form, then to dos form, then back to unix form
16605 # but this time dos style (no spaces!) so that the unix form looks
16606 # like /cygdrive/c/PROGRA~1:/cygdr...
16607 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16608 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16609 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16610 ;;
16611 *)
16612 sys_lib_search_path_spec="$LIB"
16613 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16614 # It is most probably a Windows format PATH.
16615 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16616 else
16617 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16618 fi
16619 # FIXME: find the short name or the path components, as spaces are
16620 # common. (e.g. "Program Files" -> "PROGRA~1")
16621 ;;
16622 esac
16623
16624 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16625 postinstall_cmds='base_file=`basename \${file}`~
16626 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16627 dldir=$destdir/`dirname \$dlpath`~
16628 test -d \$dldir || mkdir -p \$dldir~
16629 $install_prog $dir/$dlname \$dldir/$dlname'
16630 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16631 dlpath=$dir/\$dldll~
16632 $RM \$dlpath'
16633 shlibpath_overrides_runpath=yes
16634 dynamic_linker='Win32 link.exe'
16635 ;;
16636
16637 *)
16638 # Assume MSVC wrapper
16639 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16640 dynamic_linker='Win32 ld.exe'
16641 ;;
16642 esac
16643 # FIXME: first we should search . and the directory the executable is in
16644 shlibpath_var=PATH
16645 ;;
16646
16647 darwin* | rhapsody*)
16648 dynamic_linker="$host_os dyld"
16649 version_type=darwin
16650 need_lib_prefix=no
16651 need_version=no
16652 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16653 soname_spec='${libname}${release}${major}$shared_ext'
16654 shlibpath_overrides_runpath=yes
16655 shlibpath_var=DYLD_LIBRARY_PATH
16656 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16657
16658 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16659 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16660 ;;
16661
16662 dgux*)
16663 version_type=linux # correct to gnu/linux during the next big refactor
16664 need_lib_prefix=no
16665 need_version=no
16666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16667 soname_spec='${libname}${release}${shared_ext}$major'
16668 shlibpath_var=LD_LIBRARY_PATH
16669 ;;
16670
16671 freebsd* | dragonfly*)
16672 # DragonFly does not have aout. When/if they implement a new
16673 # versioning mechanism, adjust this.
16674 if test -x /usr/bin/objformat; then
16675 objformat=`/usr/bin/objformat`
16676 else
16677 case $host_os in
16678 freebsd[23].*) objformat=aout ;;
16679 *) objformat=elf ;;
16680 esac
16681 fi
16682 version_type=freebsd-$objformat
16683 case $version_type in
16684 freebsd-elf*)
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16686 need_version=no
16687 need_lib_prefix=no
16688 ;;
16689 freebsd-*)
16690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16691 need_version=yes
16692 ;;
16693 esac
16694 shlibpath_var=LD_LIBRARY_PATH
16695 case $host_os in
16696 freebsd2.*)
16697 shlibpath_overrides_runpath=yes
16698 ;;
16699 freebsd3.[01]* | freebsdelf3.[01]*)
16700 shlibpath_overrides_runpath=yes
16701 hardcode_into_libs=yes
16702 ;;
16703 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16704 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16705 shlibpath_overrides_runpath=no
16706 hardcode_into_libs=yes
16707 ;;
16708 *) # from 4.6 on, and DragonFly
16709 shlibpath_overrides_runpath=yes
16710 hardcode_into_libs=yes
16711 ;;
16712 esac
16713 ;;
16714
16715 gnu*)
16716 version_type=linux # correct to gnu/linux during the next big refactor
16717 need_lib_prefix=no
16718 need_version=no
16719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16720 soname_spec='${libname}${release}${shared_ext}$major'
16721 shlibpath_var=LD_LIBRARY_PATH
16722 shlibpath_overrides_runpath=no
16723 hardcode_into_libs=yes
16724 ;;
16725
16726 haiku*)
16727 version_type=linux # correct to gnu/linux during the next big refactor
16728 need_lib_prefix=no
16729 need_version=no
16730 dynamic_linker="$host_os runtime_loader"
16731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16732 soname_spec='${libname}${release}${shared_ext}$major'
16733 shlibpath_var=LIBRARY_PATH
16734 shlibpath_overrides_runpath=yes
16735 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16736 hardcode_into_libs=yes
16737 ;;
16738
16739 hpux9* | hpux10* | hpux11*)
16740 # Give a soname corresponding to the major version so that dld.sl refuses to
16741 # link against other versions.
16742 version_type=sunos
16743 need_lib_prefix=no
16744 need_version=no
16745 case $host_cpu in
16746 ia64*)
16747 shrext_cmds='.so'
16748 hardcode_into_libs=yes
16749 dynamic_linker="$host_os dld.so"
16750 shlibpath_var=LD_LIBRARY_PATH
16751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 if test "X$HPUX_IA64_MODE" = X32; then
16755 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16756 else
16757 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16758 fi
16759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16760 ;;
16761 hppa*64*)
16762 shrext_cmds='.sl'
16763 hardcode_into_libs=yes
16764 dynamic_linker="$host_os dld.sl"
16765 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768 soname_spec='${libname}${release}${shared_ext}$major'
16769 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16771 ;;
16772 *)
16773 shrext_cmds='.sl'
16774 dynamic_linker="$host_os dld.sl"
16775 shlibpath_var=SHLIB_PATH
16776 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778 soname_spec='${libname}${release}${shared_ext}$major'
16779 ;;
16780 esac
16781 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16782 postinstall_cmds='chmod 555 $lib'
16783 # or fails outright, so override atomically:
16784 install_override_mode=555
16785 ;;
16786
16787 interix[3-9]*)
16788 version_type=linux # correct to gnu/linux during the next big refactor
16789 need_lib_prefix=no
16790 need_version=no
16791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16792 soname_spec='${libname}${release}${shared_ext}$major'
16793 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16794 shlibpath_var=LD_LIBRARY_PATH
16795 shlibpath_overrides_runpath=no
16796 hardcode_into_libs=yes
16797 ;;
16798
16799 irix5* | irix6* | nonstopux*)
16800 case $host_os in
16801 nonstopux*) version_type=nonstopux ;;
16802 *)
16803 if test "$lt_cv_prog_gnu_ld" = yes; then
16804 version_type=linux # correct to gnu/linux during the next big refactor
16805 else
16806 version_type=irix
16807 fi ;;
16808 esac
16809 need_lib_prefix=no
16810 need_version=no
16811 soname_spec='${libname}${release}${shared_ext}$major'
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16813 case $host_os in
16814 irix5* | nonstopux*)
16815 libsuff= shlibsuff=
16816 ;;
16817 *)
16818 case $LD in # libtool.m4 will add one of these switches to LD
16819 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16820 libsuff= shlibsuff= libmagic=32-bit;;
16821 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16822 libsuff=32 shlibsuff=N32 libmagic=N32;;
16823 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16824 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16825 *) libsuff= shlibsuff= libmagic=never-match;;
16826 esac
16827 ;;
16828 esac
16829 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16830 shlibpath_overrides_runpath=no
16831 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16832 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16833 hardcode_into_libs=yes
16834 ;;
16835
16836 # No shared lib support for Linux oldld, aout, or coff.
16837 linux*oldld* | linux*aout* | linux*coff*)
16838 dynamic_linker=no
16839 ;;
16840
16841 # This must be glibc/ELF.
16842 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16843 version_type=linux # correct to gnu/linux during the next big refactor
16844 need_lib_prefix=no
16845 need_version=no
16846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16847 soname_spec='${libname}${release}${shared_ext}$major'
16848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16849 shlibpath_var=LD_LIBRARY_PATH
16850 shlibpath_overrides_runpath=no
16851
16852 # Some binutils ld are patched to set DT_RUNPATH
16853 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16854 $as_echo_n "(cached) " >&6
16855 else
16856 lt_cv_shlibpath_overrides_runpath=no
16857 save_LDFLAGS=$LDFLAGS
16858 save_libdir=$libdir
16859 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16860 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862 /* end confdefs.h. */
16863
16864 int
16865 main ()
16866 {
16867
16868 ;
16869 return 0;
16870 }
16871 _ACEOF
16872 if ac_fn_c_try_link "$LINENO"; then :
16873 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16874 lt_cv_shlibpath_overrides_runpath=yes
16875 fi
16876 fi
16877 rm -f core conftest.err conftest.$ac_objext \
16878 conftest$ac_exeext conftest.$ac_ext
16879 LDFLAGS=$save_LDFLAGS
16880 libdir=$save_libdir
16881
16882 fi
16883
16884 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16885
16886 # This implies no fast_install, which is unacceptable.
16887 # Some rework will be needed to allow for fast_install
16888 # before this can be enabled.
16889 hardcode_into_libs=yes
16890
16891 # Append ld.so.conf contents to the search path
16892 if test -f /etc/ld.so.conf; then
16893 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;s/"//g;/^$/d' | tr '\n' ' '`
16894 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16895 fi
16896
16897 # We used to test for /lib/ld.so.1 and disable shared libraries on
16898 # powerpc, because MkLinux only supported shared libraries with the
16899 # GNU dynamic linker. Since this was broken with cross compilers,
16900 # most powerpc-linux boxes support dynamic linking these days and
16901 # people can always --disable-shared, the test was removed, and we
16902 # assume the GNU/Linux dynamic linker is in use.
16903 dynamic_linker='GNU/Linux ld.so'
16904 ;;
16905
16906 netbsdelf*-gnu)
16907 version_type=linux
16908 need_lib_prefix=no
16909 need_version=no
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16911 soname_spec='${libname}${release}${shared_ext}$major'
16912 shlibpath_var=LD_LIBRARY_PATH
16913 shlibpath_overrides_runpath=no
16914 hardcode_into_libs=yes
16915 dynamic_linker='NetBSD ld.elf_so'
16916 ;;
16917
16918 netbsd*)
16919 version_type=sunos
16920 need_lib_prefix=no
16921 need_version=no
16922 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16925 dynamic_linker='NetBSD (a.out) ld.so'
16926 else
16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16928 soname_spec='${libname}${release}${shared_ext}$major'
16929 dynamic_linker='NetBSD ld.elf_so'
16930 fi
16931 shlibpath_var=LD_LIBRARY_PATH
16932 shlibpath_overrides_runpath=yes
16933 hardcode_into_libs=yes
16934 ;;
16935
16936 newsos6)
16937 version_type=linux # correct to gnu/linux during the next big refactor
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939 shlibpath_var=LD_LIBRARY_PATH
16940 shlibpath_overrides_runpath=yes
16941 ;;
16942
16943 *nto* | *qnx*)
16944 version_type=qnx
16945 need_lib_prefix=no
16946 need_version=no
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948 soname_spec='${libname}${release}${shared_ext}$major'
16949 shlibpath_var=LD_LIBRARY_PATH
16950 shlibpath_overrides_runpath=no
16951 hardcode_into_libs=yes
16952 dynamic_linker='ldqnx.so'
16953 ;;
16954
16955 openbsd*)
16956 version_type=sunos
16957 sys_lib_dlsearch_path_spec="/usr/lib"
16958 need_lib_prefix=no
16959 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16960 case $host_os in
16961 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16962 *) need_version=no ;;
16963 esac
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16966 shlibpath_var=LD_LIBRARY_PATH
16967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16968 case $host_os in
16969 openbsd2.[89] | openbsd2.[89].*)
16970 shlibpath_overrides_runpath=no
16971 ;;
16972 *)
16973 shlibpath_overrides_runpath=yes
16974 ;;
16975 esac
16976 else
16977 shlibpath_overrides_runpath=yes
16978 fi
16979 ;;
16980
16981 os2*)
16982 libname_spec='$name'
16983 shrext_cmds=".dll"
16984 need_lib_prefix=no
16985 library_names_spec='$libname${shared_ext} $libname.a'
16986 dynamic_linker='OS/2 ld.exe'
16987 shlibpath_var=LIBPATH
16988 ;;
16989
16990 osf3* | osf4* | osf5*)
16991 version_type=osf
16992 need_lib_prefix=no
16993 need_version=no
16994 soname_spec='${libname}${release}${shared_ext}$major'
16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996 shlibpath_var=LD_LIBRARY_PATH
16997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16998 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16999 ;;
17000
17001 rdos*)
17002 dynamic_linker=no
17003 ;;
17004
17005 solaris*)
17006 version_type=linux # correct to gnu/linux during the next big refactor
17007 need_lib_prefix=no
17008 need_version=no
17009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010 soname_spec='${libname}${release}${shared_ext}$major'
17011 shlibpath_var=LD_LIBRARY_PATH
17012 shlibpath_overrides_runpath=yes
17013 hardcode_into_libs=yes
17014 # ldd complains unless libraries are executable
17015 postinstall_cmds='chmod +x $lib'
17016 ;;
17017
17018 sunos4*)
17019 version_type=sunos
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 shlibpath_overrides_runpath=yes
17024 if test "$with_gnu_ld" = yes; then
17025 need_lib_prefix=no
17026 fi
17027 need_version=yes
17028 ;;
17029
17030 sysv4 | sysv4.3*)
17031 version_type=linux # correct to gnu/linux during the next big refactor
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 shlibpath_var=LD_LIBRARY_PATH
17035 case $host_vendor in
17036 sni)
17037 shlibpath_overrides_runpath=no
17038 need_lib_prefix=no
17039 runpath_var=LD_RUN_PATH
17040 ;;
17041 siemens)
17042 need_lib_prefix=no
17043 ;;
17044 motorola)
17045 need_lib_prefix=no
17046 need_version=no
17047 shlibpath_overrides_runpath=no
17048 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17049 ;;
17050 esac
17051 ;;
17052
17053 sysv4*MP*)
17054 if test -d /usr/nec ;then
17055 version_type=linux # correct to gnu/linux during the next big refactor
17056 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17057 soname_spec='$libname${shared_ext}.$major'
17058 shlibpath_var=LD_LIBRARY_PATH
17059 fi
17060 ;;
17061
17062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17063 version_type=freebsd-elf
17064 need_lib_prefix=no
17065 need_version=no
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17067 soname_spec='${libname}${release}${shared_ext}$major'
17068 shlibpath_var=LD_LIBRARY_PATH
17069 shlibpath_overrides_runpath=yes
17070 hardcode_into_libs=yes
17071 if test "$with_gnu_ld" = yes; then
17072 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17073 else
17074 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17075 case $host_os in
17076 sco3.2v5*)
17077 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17078 ;;
17079 esac
17080 fi
17081 sys_lib_dlsearch_path_spec='/usr/lib'
17082 ;;
17083
17084 tpf*)
17085 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17086 version_type=linux # correct to gnu/linux during the next big refactor
17087 need_lib_prefix=no
17088 need_version=no
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 shlibpath_var=LD_LIBRARY_PATH
17091 shlibpath_overrides_runpath=no
17092 hardcode_into_libs=yes
17093 ;;
17094
17095 uts4*)
17096 version_type=linux # correct to gnu/linux during the next big refactor
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098 soname_spec='${libname}${release}${shared_ext}$major'
17099 shlibpath_var=LD_LIBRARY_PATH
17100 ;;
17101
17102 *)
17103 dynamic_linker=no
17104 ;;
17105 esac
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17107 $as_echo "$dynamic_linker" >&6; }
17108 test "$dynamic_linker" = no && can_build_shared=no
17109
17110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17111 if test "$GCC" = yes; then
17112 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17113 fi
17114
17115 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17116 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17117 fi
17118 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17119 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17120 fi
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17214 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17215 hardcode_action=
17216 if test -n "$hardcode_libdir_flag_spec" ||
17217 test -n "$runpath_var" ||
17218 test "X$hardcode_automatic" = "Xyes" ; then
17219
17220 # We can hardcode non-existent directories.
17221 if test "$hardcode_direct" != no &&
17222 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17223 # have to relink, otherwise we might link with an installed library
17224 # when we should be linking with a yet-to-be-installed one
17225 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17226 test "$hardcode_minus_L" != no; then
17227 # Linking always hardcodes the temporary library directory.
17228 hardcode_action=relink
17229 else
17230 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17231 hardcode_action=immediate
17232 fi
17233 else
17234 # We cannot hardcode anything, or else we can only hardcode existing
17235 # directories.
17236 hardcode_action=unsupported
17237 fi
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17239 $as_echo "$hardcode_action" >&6; }
17240
17241 if test "$hardcode_action" = relink ||
17242 test "$inherit_rpath" = yes; then
17243 # Fast installation is not supported
17244 enable_fast_install=no
17245 elif test "$shlibpath_overrides_runpath" = yes ||
17246 test "$enable_shared" = no; then
17247 # Fast installation is not necessary
17248 enable_fast_install=needless
17249 fi
17250
17251
17252
17253
17254
17255
17256 if test "x$enable_dlopen" != xyes; then
17257 enable_dlopen=unknown
17258 enable_dlopen_self=unknown
17259 enable_dlopen_self_static=unknown
17260 else
17261 lt_cv_dlopen=no
17262 lt_cv_dlopen_libs=
17263
17264 case $host_os in
17265 beos*)
17266 lt_cv_dlopen="load_add_on"
17267 lt_cv_dlopen_libs=
17268 lt_cv_dlopen_self=yes
17269 ;;
17270
17271 mingw* | pw32* | cegcc*)
17272 lt_cv_dlopen="LoadLibrary"
17273 lt_cv_dlopen_libs=
17274 ;;
17275
17276 cygwin*)
17277 lt_cv_dlopen="dlopen"
17278 lt_cv_dlopen_libs=
17279 ;;
17280
17281 darwin*)
17282 # if libdl is installed we need to link against it
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17284 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17285 if ${ac_cv_lib_dl_dlopen+:} false; then :
17286 $as_echo_n "(cached) " >&6
17287 else
17288 ac_check_lib_save_LIBS=$LIBS
17289 LIBS="-ldl $LIBS"
17290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291 /* end confdefs.h. */
17292
17293 /* Override any GCC internal prototype to avoid an error.
17294 Use char because int might match the return type of a GCC
17295 builtin and then its argument prototype would still apply. */
17296 #ifdef __cplusplus
17297 extern "C"
17298 #endif
17299 char dlopen ();
17300 int
17301 main ()
17302 {
17303 return dlopen ();
17304 ;
17305 return 0;
17306 }
17307 _ACEOF
17308 if ac_fn_c_try_link "$LINENO"; then :
17309 ac_cv_lib_dl_dlopen=yes
17310 else
17311 ac_cv_lib_dl_dlopen=no
17312 fi
17313 rm -f core conftest.err conftest.$ac_objext \
17314 conftest$ac_exeext conftest.$ac_ext
17315 LIBS=$ac_check_lib_save_LIBS
17316 fi
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17318 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17319 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17321 else
17322
17323 lt_cv_dlopen="dyld"
17324 lt_cv_dlopen_libs=
17325 lt_cv_dlopen_self=yes
17326
17327 fi
17328
17329 ;;
17330
17331 *)
17332 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17333 if test "x$ac_cv_func_shl_load" = xyes; then :
17334 lt_cv_dlopen="shl_load"
17335 else
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17337 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17338 if ${ac_cv_lib_dld_shl_load+:} false; then :
17339 $as_echo_n "(cached) " >&6
17340 else
17341 ac_check_lib_save_LIBS=$LIBS
17342 LIBS="-ldld $LIBS"
17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17345
17346 /* Override any GCC internal prototype to avoid an error.
17347 Use char because int might match the return type of a GCC
17348 builtin and then its argument prototype would still apply. */
17349 #ifdef __cplusplus
17350 extern "C"
17351 #endif
17352 char shl_load ();
17353 int
17354 main ()
17355 {
17356 return shl_load ();
17357 ;
17358 return 0;
17359 }
17360 _ACEOF
17361 if ac_fn_c_try_link "$LINENO"; then :
17362 ac_cv_lib_dld_shl_load=yes
17363 else
17364 ac_cv_lib_dld_shl_load=no
17365 fi
17366 rm -f core conftest.err conftest.$ac_objext \
17367 conftest$ac_exeext conftest.$ac_ext
17368 LIBS=$ac_check_lib_save_LIBS
17369 fi
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17371 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17372 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17373 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17374 else
17375 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17376 if test "x$ac_cv_func_dlopen" = xyes; then :
17377 lt_cv_dlopen="dlopen"
17378 else
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17380 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17381 if ${ac_cv_lib_dl_dlopen+:} false; then :
17382 $as_echo_n "(cached) " >&6
17383 else
17384 ac_check_lib_save_LIBS=$LIBS
17385 LIBS="-ldl $LIBS"
17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17388
17389 /* Override any GCC internal prototype to avoid an error.
17390 Use char because int might match the return type of a GCC
17391 builtin and then its argument prototype would still apply. */
17392 #ifdef __cplusplus
17393 extern "C"
17394 #endif
17395 char dlopen ();
17396 int
17397 main ()
17398 {
17399 return dlopen ();
17400 ;
17401 return 0;
17402 }
17403 _ACEOF
17404 if ac_fn_c_try_link "$LINENO"; then :
17405 ac_cv_lib_dl_dlopen=yes
17406 else
17407 ac_cv_lib_dl_dlopen=no
17408 fi
17409 rm -f core conftest.err conftest.$ac_objext \
17410 conftest$ac_exeext conftest.$ac_ext
17411 LIBS=$ac_check_lib_save_LIBS
17412 fi
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17414 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17415 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17416 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17417 else
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17419 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17420 if ${ac_cv_lib_svld_dlopen+:} false; then :
17421 $as_echo_n "(cached) " >&6
17422 else
17423 ac_check_lib_save_LIBS=$LIBS
17424 LIBS="-lsvld $LIBS"
17425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17426 /* end confdefs.h. */
17427
17428 /* Override any GCC internal prototype to avoid an error.
17429 Use char because int might match the return type of a GCC
17430 builtin and then its argument prototype would still apply. */
17431 #ifdef __cplusplus
17432 extern "C"
17433 #endif
17434 char dlopen ();
17435 int
17436 main ()
17437 {
17438 return dlopen ();
17439 ;
17440 return 0;
17441 }
17442 _ACEOF
17443 if ac_fn_c_try_link "$LINENO"; then :
17444 ac_cv_lib_svld_dlopen=yes
17445 else
17446 ac_cv_lib_svld_dlopen=no
17447 fi
17448 rm -f core conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
17450 LIBS=$ac_check_lib_save_LIBS
17451 fi
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17453 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17454 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17455 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17456 else
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17458 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17459 if ${ac_cv_lib_dld_dld_link+:} false; then :
17460 $as_echo_n "(cached) " >&6
17461 else
17462 ac_check_lib_save_LIBS=$LIBS
17463 LIBS="-ldld $LIBS"
17464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17465 /* end confdefs.h. */
17466
17467 /* Override any GCC internal prototype to avoid an error.
17468 Use char because int might match the return type of a GCC
17469 builtin and then its argument prototype would still apply. */
17470 #ifdef __cplusplus
17471 extern "C"
17472 #endif
17473 char dld_link ();
17474 int
17475 main ()
17476 {
17477 return dld_link ();
17478 ;
17479 return 0;
17480 }
17481 _ACEOF
17482 if ac_fn_c_try_link "$LINENO"; then :
17483 ac_cv_lib_dld_dld_link=yes
17484 else
17485 ac_cv_lib_dld_dld_link=no
17486 fi
17487 rm -f core conftest.err conftest.$ac_objext \
17488 conftest$ac_exeext conftest.$ac_ext
17489 LIBS=$ac_check_lib_save_LIBS
17490 fi
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17492 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17493 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17494 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17495 fi
17496
17497
17498 fi
17499
17500
17501 fi
17502
17503
17504 fi
17505
17506
17507 fi
17508
17509
17510 fi
17511
17512 ;;
17513 esac
17514
17515 if test "x$lt_cv_dlopen" != xno; then
17516 enable_dlopen=yes
17517 else
17518 enable_dlopen=no
17519 fi
17520
17521 case $lt_cv_dlopen in
17522 dlopen)
17523 save_CPPFLAGS="$CPPFLAGS"
17524 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17525
17526 save_LDFLAGS="$LDFLAGS"
17527 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17528
17529 save_LIBS="$LIBS"
17530 LIBS="$lt_cv_dlopen_libs $LIBS"
17531
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17533 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17534 if ${lt_cv_dlopen_self+:} false; then :
17535 $as_echo_n "(cached) " >&6
17536 else
17537 if test "$cross_compiling" = yes; then :
17538 lt_cv_dlopen_self=cross
17539 else
17540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17541 lt_status=$lt_dlunknown
17542 cat > conftest.$ac_ext <<_LT_EOF
17543 #line $LINENO "configure"
17544 #include "confdefs.h"
17545
17546 #if HAVE_DLFCN_H
17547 #include <dlfcn.h>
17548 #endif
17549
17550 #include <stdio.h>
17551
17552 #ifdef RTLD_GLOBAL
17553 # define LT_DLGLOBAL RTLD_GLOBAL
17554 #else
17555 # ifdef DL_GLOBAL
17556 # define LT_DLGLOBAL DL_GLOBAL
17557 # else
17558 # define LT_DLGLOBAL 0
17559 # endif
17560 #endif
17561
17562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17563 find out it does not work in some platform. */
17564 #ifndef LT_DLLAZY_OR_NOW
17565 # ifdef RTLD_LAZY
17566 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17567 # else
17568 # ifdef DL_LAZY
17569 # define LT_DLLAZY_OR_NOW DL_LAZY
17570 # else
17571 # ifdef RTLD_NOW
17572 # define LT_DLLAZY_OR_NOW RTLD_NOW
17573 # else
17574 # ifdef DL_NOW
17575 # define LT_DLLAZY_OR_NOW DL_NOW
17576 # else
17577 # define LT_DLLAZY_OR_NOW 0
17578 # endif
17579 # endif
17580 # endif
17581 # endif
17582 #endif
17583
17584 /* When -fvisbility=hidden is used, assume the code has been annotated
17585 correspondingly for the symbols needed. */
17586 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17587 int fnord () __attribute__((visibility("default")));
17588 #endif
17589
17590 int fnord () { return 42; }
17591 int main ()
17592 {
17593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17594 int status = $lt_dlunknown;
17595
17596 if (self)
17597 {
17598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17599 else
17600 {
17601 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17602 else puts (dlerror ());
17603 }
17604 /* dlclose (self); */
17605 }
17606 else
17607 puts (dlerror ());
17608
17609 return status;
17610 }
17611 _LT_EOF
17612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17613 (eval $ac_link) 2>&5
17614 ac_status=$?
17615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17616 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17617 (./conftest; exit; ) >&5 2>/dev/null
17618 lt_status=$?
17619 case x$lt_status in
17620 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17621 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17622 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17623 esac
17624 else :
17625 # compilation failed
17626 lt_cv_dlopen_self=no
17627 fi
17628 fi
17629 rm -fr conftest*
17630
17631
17632 fi
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17634 $as_echo "$lt_cv_dlopen_self" >&6; }
17635
17636 if test "x$lt_cv_dlopen_self" = xyes; then
17637 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17639 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17640 if ${lt_cv_dlopen_self_static+:} false; then :
17641 $as_echo_n "(cached) " >&6
17642 else
17643 if test "$cross_compiling" = yes; then :
17644 lt_cv_dlopen_self_static=cross
17645 else
17646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17647 lt_status=$lt_dlunknown
17648 cat > conftest.$ac_ext <<_LT_EOF
17649 #line $LINENO "configure"
17650 #include "confdefs.h"
17651
17652 #if HAVE_DLFCN_H
17653 #include <dlfcn.h>
17654 #endif
17655
17656 #include <stdio.h>
17657
17658 #ifdef RTLD_GLOBAL
17659 # define LT_DLGLOBAL RTLD_GLOBAL
17660 #else
17661 # ifdef DL_GLOBAL
17662 # define LT_DLGLOBAL DL_GLOBAL
17663 # else
17664 # define LT_DLGLOBAL 0
17665 # endif
17666 #endif
17667
17668 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17669 find out it does not work in some platform. */
17670 #ifndef LT_DLLAZY_OR_NOW
17671 # ifdef RTLD_LAZY
17672 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17673 # else
17674 # ifdef DL_LAZY
17675 # define LT_DLLAZY_OR_NOW DL_LAZY
17676 # else
17677 # ifdef RTLD_NOW
17678 # define LT_DLLAZY_OR_NOW RTLD_NOW
17679 # else
17680 # ifdef DL_NOW
17681 # define LT_DLLAZY_OR_NOW DL_NOW
17682 # else
17683 # define LT_DLLAZY_OR_NOW 0
17684 # endif
17685 # endif
17686 # endif
17687 # endif
17688 #endif
17689
17690 /* When -fvisbility=hidden is used, assume the code has been annotated
17691 correspondingly for the symbols needed. */
17692 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17693 int fnord () __attribute__((visibility("default")));
17694 #endif
17695
17696 int fnord () { return 42; }
17697 int main ()
17698 {
17699 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17700 int status = $lt_dlunknown;
17701
17702 if (self)
17703 {
17704 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17705 else
17706 {
17707 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17708 else puts (dlerror ());
17709 }
17710 /* dlclose (self); */
17711 }
17712 else
17713 puts (dlerror ());
17714
17715 return status;
17716 }
17717 _LT_EOF
17718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17719 (eval $ac_link) 2>&5
17720 ac_status=$?
17721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17722 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17723 (./conftest; exit; ) >&5 2>/dev/null
17724 lt_status=$?
17725 case x$lt_status in
17726 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17727 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17728 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17729 esac
17730 else :
17731 # compilation failed
17732 lt_cv_dlopen_self_static=no
17733 fi
17734 fi
17735 rm -fr conftest*
17736
17737
17738 fi
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17740 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17741 fi
17742
17743 CPPFLAGS="$save_CPPFLAGS"
17744 LDFLAGS="$save_LDFLAGS"
17745 LIBS="$save_LIBS"
17746 ;;
17747 esac
17748
17749 case $lt_cv_dlopen_self in
17750 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17751 *) enable_dlopen_self=unknown ;;
17752 esac
17753
17754 case $lt_cv_dlopen_self_static in
17755 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17756 *) enable_dlopen_self_static=unknown ;;
17757 esac
17758 fi
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776 striplib=
17777 old_striplib=
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17779 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17780 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17781 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17782 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17784 $as_echo "yes" >&6; }
17785 else
17786 # FIXME - insert some real tests, host_os isn't really good enough
17787 case $host_os in
17788 darwin*)
17789 if test -n "$STRIP" ; then
17790 striplib="$STRIP -x"
17791 old_striplib="$STRIP -S"
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17793 $as_echo "yes" >&6; }
17794 else
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17796 $as_echo "no" >&6; }
17797 fi
17798 ;;
17799 *)
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17801 $as_echo "no" >&6; }
17802 ;;
17803 esac
17804 fi
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817 # Report which library types will actually be built
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17819 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17821 $as_echo "$can_build_shared" >&6; }
17822
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17824 $as_echo_n "checking whether to build shared libraries... " >&6; }
17825 test "$can_build_shared" = "no" && enable_shared=no
17826
17827 # On AIX, shared libraries and static libraries use the same namespace, and
17828 # are all built from PIC.
17829 case $host_os in
17830 aix3*)
17831 test "$enable_shared" = yes && enable_static=no
17832 if test -n "$RANLIB"; then
17833 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17834 postinstall_cmds='$RANLIB $lib'
17835 fi
17836 ;;
17837
17838 aix[4-9]*)
17839 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17840 test "$enable_shared" = yes && enable_static=no
17841 fi
17842 ;;
17843 esac
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17845 $as_echo "$enable_shared" >&6; }
17846
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17848 $as_echo_n "checking whether to build static libraries... " >&6; }
17849 # Make sure either enable_shared or enable_static is yes.
17850 test "$enable_shared" = yes || enable_static=yes
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17852 $as_echo "$enable_static" >&6; }
17853
17854
17855
17856
17857 fi
17858 ac_ext=c
17859 ac_cpp='$CPP $CPPFLAGS'
17860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17863
17864 CC="$lt_save_CC"
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880 ac_config_commands="$ac_config_commands libtool"
17881
17882
17883
17884
17885 # Only expand once:
17886
17887
17888
17889 # Checks for programs.
17890 if test "x$CC" != xcc; then
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
17892 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
17893 else
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
17895 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
17896 fi
17897 set dummy $CC; ac_cc=`$as_echo "$2" |
17898 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17899 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
17900 $as_echo_n "(cached) " >&6
17901 else
17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17903 /* end confdefs.h. */
17904
17905 int
17906 main ()
17907 {
17908
17909 ;
17910 return 0;
17911 }
17912 _ACEOF
17913 # Make sure it works both with $CC and with simple cc.
17914 # We do the test twice because some compilers refuse to overwrite an
17915 # existing .o file with -o, though they will create one.
17916 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17917 rm -f conftest2.*
17918 if { { case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17921 esac
17922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17923 $as_echo "$ac_try_echo"; } >&5
17924 (eval "$ac_try") 2>&5
17925 ac_status=$?
17926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17927 test $ac_status = 0; } &&
17928 test -f conftest2.$ac_objext && { { case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931 esac
17932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17933 $as_echo "$ac_try_echo"; } >&5
17934 (eval "$ac_try") 2>&5
17935 ac_status=$?
17936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17937 test $ac_status = 0; };
17938 then
17939 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17940 if test "x$CC" != xcc; then
17941 # Test first that cc exists at all.
17942 if { ac_try='cc -c conftest.$ac_ext >&5'
17943 { { case "(($ac_try" in
17944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945 *) ac_try_echo=$ac_try;;
17946 esac
17947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17948 $as_echo "$ac_try_echo"; } >&5
17949 (eval "$ac_try") 2>&5
17950 ac_status=$?
17951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17952 test $ac_status = 0; }; }; then
17953 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17954 rm -f conftest2.*
17955 if { { case "(($ac_try" in
17956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957 *) ac_try_echo=$ac_try;;
17958 esac
17959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17960 $as_echo "$ac_try_echo"; } >&5
17961 (eval "$ac_try") 2>&5
17962 ac_status=$?
17963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17964 test $ac_status = 0; } &&
17965 test -f conftest2.$ac_objext && { { case "(($ac_try" in
17966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967 *) ac_try_echo=$ac_try;;
17968 esac
17969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17970 $as_echo "$ac_try_echo"; } >&5
17971 (eval "$ac_try") 2>&5
17972 ac_status=$?
17973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17974 test $ac_status = 0; };
17975 then
17976 # cc works too.
17977 :
17978 else
17979 # cc exists but doesn't like -o.
17980 eval ac_cv_prog_cc_${ac_cc}_c_o=no
17981 fi
17982 fi
17983 fi
17984 else
17985 eval ac_cv_prog_cc_${ac_cc}_c_o=no
17986 fi
17987 rm -f core conftest*
17988
17989 fi
17990 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17992 $as_echo "yes" >&6; }
17993 else
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17995 $as_echo "no" >&6; }
17996
17997 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
17998
17999 fi
18000
18001 # FIXME: we rely on the cache variable name because
18002 # there is no other way.
18003 set dummy $CC
18004 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18005 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
18006 if test "$am_t" != yes; then
18007 # Losing compiler, so override with the script.
18008 # FIXME: It is wrong to rewrite CC.
18009 # But if we don't then we get into trouble of one sort or another.
18010 # A longer-term fix would be to have automake use am__CC in this case,
18011 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18012 CC="$am_aux_dir/compile $CC"
18013 fi
18014
18015
18016
18017
18018
18019 # Define a configure option for an alternate module directory
18020
18021 # Check whether --with-xorg-module-dir was given.
18022 if test "${with_xorg_module_dir+set}" = set; then :
18023 withval=$with_xorg_module_dir; moduledir="$withval"
18024 else
18025 moduledir="$libdir/xorg/modules"
18026 fi
18027
18028
18029 # Define a configure option to build the vmwarectrl client tool
18030 # Check whether --enable-vmwarectrl-client was given.
18031 if test "${enable_vmwarectrl_client+set}" = set; then :
18032 enableval=$enable_vmwarectrl_client; VMWARECTRL=$enableval
18033 else
18034 VMWARECTRL=no
18035 fi
18036
18037 if test "x$VMWARECTRL" = xyes; then
18038 BUILD_VMWARECTRL_TRUE=
18039 BUILD_VMWARECTRL_FALSE='#'
18040 else
18041 BUILD_VMWARECTRL_TRUE='#'
18042 BUILD_VMWARECTRL_FALSE=
18043 fi
18044
18045
18046 # Store the list of server defined optional extensions in REQUIRED_MODULES
18047
18048
18049 SAVE_CFLAGS="$CFLAGS"
18050 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052 /* end confdefs.h. */
18053
18054 #include "xorg-server.h"
18055 #if !defined RANDR
18056 #error RANDR not defined
18057 #endif
18058
18059 int
18060 main ()
18061 {
18062
18063 ;
18064 return 0;
18065 }
18066 _ACEOF
18067 if ac_fn_c_try_compile "$LINENO"; then :
18068 _EXT_CHECK=yes
18069 else
18070 _EXT_CHECK=no
18071 fi
18072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18073 CFLAGS="$SAVE_CFLAGS"
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18075 $as_echo_n "checking if RANDR is defined... " >&6; }
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18077 $as_echo "$_EXT_CHECK" >&6; }
18078 if test "$_EXT_CHECK" != no; then
18079 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18080 fi
18081
18082
18083
18084 SAVE_CFLAGS="$CFLAGS"
18085 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h. */
18088
18089 #include "xorg-server.h"
18090 #if !defined RENDER
18091 #error RENDER not defined
18092 #endif
18093
18094 int
18095 main ()
18096 {
18097
18098 ;
18099 return 0;
18100 }
18101 _ACEOF
18102 if ac_fn_c_try_compile "$LINENO"; then :
18103 _EXT_CHECK=yes
18104 else
18105 _EXT_CHECK=no
18106 fi
18107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18108 CFLAGS="$SAVE_CFLAGS"
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18110 $as_echo_n "checking if RENDER is defined... " >&6; }
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18112 $as_echo "$_EXT_CHECK" >&6; }
18113 if test "$_EXT_CHECK" != no; then
18114 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18115 fi
18116
18117
18118
18119 SAVE_CFLAGS="$CFLAGS"
18120 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122 /* end confdefs.h. */
18123
18124 #include "xorg-server.h"
18125 #if !defined DPMSExtension
18126 #error DPMSExtension not defined
18127 #endif
18128
18129 int
18130 main ()
18131 {
18132
18133 ;
18134 return 0;
18135 }
18136 _ACEOF
18137 if ac_fn_c_try_compile "$LINENO"; then :
18138 _EXT_CHECK=yes
18139 else
18140 _EXT_CHECK=no
18141 fi
18142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143 CFLAGS="$SAVE_CFLAGS"
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18145 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18147 $as_echo "$_EXT_CHECK" >&6; }
18148 if test "$_EXT_CHECK" != no; then
18149 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18150 fi
18151
18152
18153
18154 SAVE_CFLAGS="$CFLAGS"
18155 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18157 /* end confdefs.h. */
18158
18159 #include "xorg-server.h"
18160 #if !defined XINERAMA
18161 #error XINERAMA not defined
18162 #endif
18163
18164 int
18165 main ()
18166 {
18167
18168 ;
18169 return 0;
18170 }
18171 _ACEOF
18172 if ac_fn_c_try_compile "$LINENO"; then :
18173 _EXT_CHECK=yes
18174 else
18175 _EXT_CHECK=no
18176 fi
18177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18178 CFLAGS="$SAVE_CFLAGS"
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINERAMA is defined" >&5
18180 $as_echo_n "checking if XINERAMA is defined... " >&6; }
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18182 $as_echo "$_EXT_CHECK" >&6; }
18183 if test "$_EXT_CHECK" != no; then
18184 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
18185 fi
18186
18187
18188
18189 SAVE_CFLAGS="$CFLAGS"
18190 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192 /* end confdefs.h. */
18193
18194 #include "xorg-server.h"
18195 #if !defined XV
18196 #error XV not defined
18197 #endif
18198
18199 int
18200 main ()
18201 {
18202
18203 ;
18204 return 0;
18205 }
18206 _ACEOF
18207 if ac_fn_c_try_compile "$LINENO"; then :
18208 _EXT_CHECK=yes
18209 else
18210 _EXT_CHECK=no
18211 fi
18212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18213 CFLAGS="$SAVE_CFLAGS"
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18215 $as_echo_n "checking if XV is defined... " >&6; }
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18217 $as_echo "$_EXT_CHECK" >&6; }
18218 if test "$_EXT_CHECK" != no; then
18219 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18220 fi
18221
18222
18223 # Obtain compiler/linker options for the driver dependencies
18224
18225 pkg_failed=no
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18227 $as_echo_n "checking for XORG... " >&6; }
18228
18229 if test -n "$XORG_CFLAGS"; then
18230 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18231 elif test -n "$PKG_CONFIG"; then
18232 if test -n "$PKG_CONFIG" && \
18233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18234 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5
18235 ac_status=$?
18236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18237 test $ac_status = 0; }; then
18238 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18239 test "x$?" != "x0" && pkg_failed=yes
18240 else
18241 pkg_failed=yes
18242 fi
18243 else
18244 pkg_failed=untried
18245 fi
18246 if test -n "$XORG_LIBS"; then
18247 pkg_cv_XORG_LIBS="$XORG_LIBS"
18248 elif test -n "$PKG_CONFIG"; then
18249 if test -n "$PKG_CONFIG" && \
18250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18251 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5
18252 ac_status=$?
18253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18254 test $ac_status = 0; }; then
18255 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18256 test "x$?" != "x0" && pkg_failed=yes
18257 else
18258 pkg_failed=yes
18259 fi
18260 else
18261 pkg_failed=untried
18262 fi
18263
18264
18265
18266 if test $pkg_failed = yes; then
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18268 $as_echo "no" >&6; }
18269
18270 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18271 _pkg_short_errors_supported=yes
18272 else
18273 _pkg_short_errors_supported=no
18274 fi
18275 if test $_pkg_short_errors_supported = yes; then
18276 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18277 else
18278 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18279 fi
18280 # Put the nasty error message in config.log where it belongs
18281 echo "$XORG_PKG_ERRORS" >&5
18282
18283 as_fn_error $? "Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met:
18284
18285 $XORG_PKG_ERRORS
18286
18287 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18288 installed software in a non-standard prefix.
18289
18290 Alternatively, you may set the environment variables XORG_CFLAGS
18291 and XORG_LIBS to avoid the need to call pkg-config.
18292 See the pkg-config man page for more details." "$LINENO" 5
18293 elif test $pkg_failed = untried; then
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18295 $as_echo "no" >&6; }
18296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18298 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18299 is in your PATH or set the PKG_CONFIG environment variable to the full
18300 path to pkg-config.
18301
18302 Alternatively, you may set the environment variables XORG_CFLAGS
18303 and XORG_LIBS to avoid the need to call pkg-config.
18304 See the pkg-config man page for more details.
18305
18306 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18307 See \`config.log' for more details" "$LINENO" 5; }
18308 else
18309 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18310 XORG_LIBS=$pkg_cv_XORG_LIBS
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18312 $as_echo "yes" >&6; }
18313
18314 fi
18315 if test -n "$PKG_CONFIG" && \
18316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\""; } >&5
18317 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5
18318 ac_status=$?
18319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18320 test $ac_status = 0; }; then
18321
18322 $as_echo "#define HAVE_XORG_SERVER_1_1_0 1" >>confdefs.h
18323
18324 fi
18325
18326 if test -n "$PKG_CONFIG" && \
18327 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.0\""; } >&5
18328 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.0") 2>&5
18329 ac_status=$?
18330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18331 test $ac_status = 0; }; then
18332
18333 $as_echo "#define HAVE_XORG_SERVER_1_2_0 1" >>confdefs.h
18334
18335 fi
18336
18337 if test -n "$PKG_CONFIG" && \
18338 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4.99\""; } >&5
18339 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4.99") 2>&5
18340 ac_status=$?
18341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18342 test $ac_status = 0; }; then
18343
18344 $as_echo "#define HAVE_XORG_SERVER_1_5_0 1" >>confdefs.h
18345
18346 fi
18347
18348 if test -n "$PKG_CONFIG" && \
18349 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0\""; } >&5
18350 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0") 2>&5
18351 ac_status=$?
18352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18353 test $ac_status = 0; }; then
18354
18355 $as_echo "#define HAVE_XORG_SERVER_1_7_0 1" >>confdefs.h
18356
18357 BUILD_VMWGFX=yes
18358 else
18359 BUILD_VMWGFX=no
18360 fi
18361
18362 if test -n "$PKG_CONFIG" && \
18363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.12.0\""; } >&5
18364 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.12.0") 2>&5
18365 ac_status=$?
18366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18367 test $ac_status = 0; }; then
18368
18369 $as_echo "#define HAVE_XORG_SERVER_1_12_0 1" >>confdefs.h
18370
18371 fi
18372
18373 # Obtain compiler/linker options for the vmwarectrl client tool
18374
18375 pkg_failed=no
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
18377 $as_echo_n "checking for X11... " >&6; }
18378
18379 if test -n "$X11_CFLAGS"; then
18380 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
18381 elif test -n "$PKG_CONFIG"; then
18382 if test -n "$PKG_CONFIG" && \
18383 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5
18384 ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5
18385 ac_status=$?
18386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18387 test $ac_status = 0; }; then
18388 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xext" 2>/dev/null`
18389 test "x$?" != "x0" && pkg_failed=yes
18390 else
18391 pkg_failed=yes
18392 fi
18393 else
18394 pkg_failed=untried
18395 fi
18396 if test -n "$X11_LIBS"; then
18397 pkg_cv_X11_LIBS="$X11_LIBS"
18398 elif test -n "$PKG_CONFIG"; then
18399 if test -n "$PKG_CONFIG" && \
18400 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5
18401 ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5
18402 ac_status=$?
18403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18404 test $ac_status = 0; }; then
18405 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xext" 2>/dev/null`
18406 test "x$?" != "x0" && pkg_failed=yes
18407 else
18408 pkg_failed=yes
18409 fi
18410 else
18411 pkg_failed=untried
18412 fi
18413
18414
18415
18416 if test $pkg_failed = yes; then
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18418 $as_echo "no" >&6; }
18419
18420 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18421 _pkg_short_errors_supported=yes
18422 else
18423 _pkg_short_errors_supported=no
18424 fi
18425 if test $_pkg_short_errors_supported = yes; then
18426 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext" 2>&1`
18427 else
18428 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext" 2>&1`
18429 fi
18430 # Put the nasty error message in config.log where it belongs
18431 echo "$X11_PKG_ERRORS" >&5
18432
18433 as_fn_error $? "Package requirements (x11 xext) were not met:
18434
18435 $X11_PKG_ERRORS
18436
18437 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18438 installed software in a non-standard prefix.
18439
18440 Alternatively, you may set the environment variables X11_CFLAGS
18441 and X11_LIBS to avoid the need to call pkg-config.
18442 See the pkg-config man page for more details." "$LINENO" 5
18443 elif test $pkg_failed = untried; then
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18445 $as_echo "no" >&6; }
18446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18448 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18449 is in your PATH or set the PKG_CONFIG environment variable to the full
18450 path to pkg-config.
18451
18452 Alternatively, you may set the environment variables X11_CFLAGS
18453 and X11_LIBS to avoid the need to call pkg-config.
18454 See the pkg-config man page for more details.
18455
18456 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18457 See \`config.log' for more details" "$LINENO" 5; }
18458 else
18459 X11_CFLAGS=$pkg_cv_X11_CFLAGS
18460 X11_LIBS=$pkg_cv_X11_LIBS
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18462 $as_echo "yes" >&6; }
18463
18464 fi
18465
18466 # Checks for libraries.
18467
18468 save_CFLAGS="$CFLAGS"
18469 CFLAGS="$XORG_CFLAGS"
18470 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18471 "
18472 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18473 XSERVER_LIBPCIACCESS=yes
18474 else
18475 XSERVER_LIBPCIACCESS=no
18476 fi
18477
18478 CFLAGS="$save_CFLAGS"
18479
18480 if test x$XSERVER_LIBPCIACCESS = xyes; then
18481
18482 pkg_failed=no
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18484 $as_echo_n "checking for PCIACCESS... " >&6; }
18485
18486 if test -n "$PCIACCESS_CFLAGS"; then
18487 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18488 elif test -n "$PKG_CONFIG"; then
18489 if test -n "$PKG_CONFIG" && \
18490 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18491 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18492 ac_status=$?
18493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18494 test $ac_status = 0; }; then
18495 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18496 test "x$?" != "x0" && pkg_failed=yes
18497 else
18498 pkg_failed=yes
18499 fi
18500 else
18501 pkg_failed=untried
18502 fi
18503 if test -n "$PCIACCESS_LIBS"; then
18504 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18505 elif test -n "$PKG_CONFIG"; then
18506 if test -n "$PKG_CONFIG" && \
18507 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18508 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18509 ac_status=$?
18510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18511 test $ac_status = 0; }; then
18512 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18513 test "x$?" != "x0" && pkg_failed=yes
18514 else
18515 pkg_failed=yes
18516 fi
18517 else
18518 pkg_failed=untried
18519 fi
18520
18521
18522
18523 if test $pkg_failed = yes; then
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18525 $as_echo "no" >&6; }
18526
18527 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18528 _pkg_short_errors_supported=yes
18529 else
18530 _pkg_short_errors_supported=no
18531 fi
18532 if test $_pkg_short_errors_supported = yes; then
18533 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18534 else
18535 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18536 fi
18537 # Put the nasty error message in config.log where it belongs
18538 echo "$PCIACCESS_PKG_ERRORS" >&5
18539
18540 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18541
18542 $PCIACCESS_PKG_ERRORS
18543
18544 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18545 installed software in a non-standard prefix.
18546
18547 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18548 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18549 See the pkg-config man page for more details." "$LINENO" 5
18550 elif test $pkg_failed = untried; then
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18552 $as_echo "no" >&6; }
18553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18555 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18556 is in your PATH or set the PKG_CONFIG environment variable to the full
18557 path to pkg-config.
18558
18559 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18560 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18561 See the pkg-config man page for more details.
18562
18563 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18564 See \`config.log' for more details" "$LINENO" 5; }
18565 else
18566 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18567 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18569 $as_echo "yes" >&6; }
18570
18571 fi
18572 fi
18573
18574 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18575 XSERVER_LIBPCIACCESS_TRUE=
18576 XSERVER_LIBPCIACCESS_FALSE='#'
18577 else
18578 XSERVER_LIBPCIACCESS_TRUE='#'
18579 XSERVER_LIBPCIACCESS_FALSE=
18580 fi
18581
18582
18583
18584
18585 if test x$BUILD_VMWGFX = xyes; then
18586
18587 pkg_failed=no
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
18589 $as_echo_n "checking for LIBDRM... " >&6; }
18590
18591 if test -n "$LIBDRM_CFLAGS"; then
18592 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
18593 elif test -n "$PKG_CONFIG"; then
18594 if test -n "$PKG_CONFIG" && \
18595 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5
18596 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
18597 ac_status=$?
18598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18599 test $ac_status = 0; }; then
18600 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm" 2>/dev/null`
18601 test "x$?" != "x0" && pkg_failed=yes
18602 else
18603 pkg_failed=yes
18604 fi
18605 else
18606 pkg_failed=untried
18607 fi
18608 if test -n "$LIBDRM_LIBS"; then
18609 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
18610 elif test -n "$PKG_CONFIG"; then
18611 if test -n "$PKG_CONFIG" && \
18612 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5
18613 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
18614 ac_status=$?
18615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18616 test $ac_status = 0; }; then
18617 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm" 2>/dev/null`
18618 test "x$?" != "x0" && pkg_failed=yes
18619 else
18620 pkg_failed=yes
18621 fi
18622 else
18623 pkg_failed=untried
18624 fi
18625
18626
18627
18628 if test $pkg_failed = yes; then
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18630 $as_echo "no" >&6; }
18631
18632 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18633 _pkg_short_errors_supported=yes
18634 else
18635 _pkg_short_errors_supported=no
18636 fi
18637 if test $_pkg_short_errors_supported = yes; then
18638 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm" 2>&1`
18639 else
18640 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm" 2>&1`
18641 fi
18642 # Put the nasty error message in config.log where it belongs
18643 echo "$LIBDRM_PKG_ERRORS" >&5
18644
18645 BUILD_VMWGFX=no
18646 elif test $pkg_failed = untried; then
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18648 $as_echo "no" >&6; }
18649 BUILD_VMWGFX=no
18650 else
18651 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
18652 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18654 $as_echo "yes" >&6; }
18655
18656 fi
18657 fi
18658 if test x$BUILD_VMWGFX = xyes; then
18659 #
18660 # Early versions of mesa 10 forgot to bump the XA major version number in
18661 # the xa_tracker.h header
18662 #
18663
18664 pkg_failed=no
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATRACKER" >&5
18666 $as_echo_n "checking for XATRACKER... " >&6; }
18667
18668 if test -n "$XATRACKER_CFLAGS"; then
18669 pkg_cv_XATRACKER_CFLAGS="$XATRACKER_CFLAGS"
18670 elif test -n "$PKG_CONFIG"; then
18671 if test -n "$PKG_CONFIG" && \
18672 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xatracker >= 0.4.0\""; } >&5
18673 ($PKG_CONFIG --exists --print-errors "xatracker >= 0.4.0") 2>&5
18674 ac_status=$?
18675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18676 test $ac_status = 0; }; then
18677 pkg_cv_XATRACKER_CFLAGS=`$PKG_CONFIG --cflags "xatracker >= 0.4.0" 2>/dev/null`
18678 test "x$?" != "x0" && pkg_failed=yes
18679 else
18680 pkg_failed=yes
18681 fi
18682 else
18683 pkg_failed=untried
18684 fi
18685 if test -n "$XATRACKER_LIBS"; then
18686 pkg_cv_XATRACKER_LIBS="$XATRACKER_LIBS"
18687 elif test -n "$PKG_CONFIG"; then
18688 if test -n "$PKG_CONFIG" && \
18689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xatracker >= 0.4.0\""; } >&5
18690 ($PKG_CONFIG --exists --print-errors "xatracker >= 0.4.0") 2>&5
18691 ac_status=$?
18692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18693 test $ac_status = 0; }; then
18694 pkg_cv_XATRACKER_LIBS=`$PKG_CONFIG --libs "xatracker >= 0.4.0" 2>/dev/null`
18695 test "x$?" != "x0" && pkg_failed=yes
18696 else
18697 pkg_failed=yes
18698 fi
18699 else
18700 pkg_failed=untried
18701 fi
18702
18703
18704
18705 if test $pkg_failed = yes; then
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18707 $as_echo "no" >&6; }
18708
18709 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18710 _pkg_short_errors_supported=yes
18711 else
18712 _pkg_short_errors_supported=no
18713 fi
18714 if test $_pkg_short_errors_supported = yes; then
18715 XATRACKER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xatracker >= 0.4.0" 2>&1`
18716 else
18717 XATRACKER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xatracker >= 0.4.0" 2>&1`
18718 fi
18719 # Put the nasty error message in config.log where it belongs
18720 echo "$XATRACKER_PKG_ERRORS" >&5
18721
18722 as_fn_error $? "Package requirements (xatracker >= 0.4.0) were not met:
18723
18724 $XATRACKER_PKG_ERRORS
18725
18726 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18727 installed software in a non-standard prefix.
18728
18729 Alternatively, you may set the environment variables XATRACKER_CFLAGS
18730 and XATRACKER_LIBS to avoid the need to call pkg-config.
18731 See the pkg-config man page for more details." "$LINENO" 5
18732 elif test $pkg_failed = untried; then
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18734 $as_echo "no" >&6; }
18735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18737 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18738 is in your PATH or set the PKG_CONFIG environment variable to the full
18739 path to pkg-config.
18740
18741 Alternatively, you may set the environment variables XATRACKER_CFLAGS
18742 and XATRACKER_LIBS to avoid the need to call pkg-config.
18743 See the pkg-config man page for more details.
18744
18745 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18746 See \`config.log' for more details" "$LINENO" 5; }
18747 else
18748 XATRACKER_CFLAGS=$pkg_cv_XATRACKER_CFLAGS
18749 XATRACKER_LIBS=$pkg_cv_XATRACKER_LIBS
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18751 $as_echo "yes" >&6; }
18752 if test -n "$PKG_CONFIG" && \
18753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xatracker = 2.0.0\""; } >&5
18754 ($PKG_CONFIG --exists --print-errors "xatracker = 2.0.0") 2>&5
18755 ac_status=$?
18756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18757 test $ac_status = 0; }; then
18758
18759 $as_echo "#define HAVE_XA_2 1" >>confdefs.h
18760
18761 fi
18762 fi
18763 #
18764 # Check for prime.
18765 #
18766 if test -n "$PKG_CONFIG" && \
18767 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.38\""; } >&5
18768 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.38") 2>&5
18769 ac_status=$?
18770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18771 test $ac_status = 0; }; then
18772
18773 $as_echo "#define HAVE_LIBDRM_2_4_38 1" >>confdefs.h
18774
18775 fi
18776 fi
18777
18778 DRIVER_NAME=vmware
18779
18780
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Kernel Mode Setting and 3D" >&5
18782 $as_echo_n "checking whether to build Kernel Mode Setting and 3D... " >&6; }
18783 if test x$BUILD_VMWGFX = xyes; then
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18785 $as_echo "yes" >&6; }
18786
18787 $as_echo "#define BUILD_VMWGFX 1" >>confdefs.h
18788
18789 else
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18791 $as_echo "no" >&6; }
18792 fi
18793
18794 if test "x$BUILD_VMWGFX" = xyes; then
18795 BUILD_VMWGFX_TRUE=
18796 BUILD_VMWGFX_FALSE='#'
18797 else
18798 BUILD_VMWGFX_TRUE='#'
18799 BUILD_VMWGFX_FALSE=
18800 fi
18801
18802
18803 ac_config_files="$ac_config_files Makefile man/Makefile saa/Makefile vmwgfx/Makefile src/Makefile vmwarectrl/Makefile"
18804
18805
18806 cat >confcache <<\_ACEOF
18807 # This file is a shell script that caches the results of configure
18808 # tests run on this system so they can be shared between configure
18809 # scripts and configure runs, see configure's option --config-cache.
18810 # It is not useful on other systems. If it contains results you don't
18811 # want to keep, you may remove or edit it.
18812 #
18813 # config.status only pays attention to the cache file if you give it
18814 # the --recheck option to rerun configure.
18815 #
18816 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18817 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18818 # following values.
18819
18820 _ACEOF
18821
18822 # The following way of writing the cache mishandles newlines in values,
18823 # but we know of no workaround that is simple, portable, and efficient.
18824 # So, we kill variables containing newlines.
18825 # Ultrix sh set writes to stderr and can't be redirected directly,
18826 # and sets the high bit in the cache file unless we assign to the vars.
18827 (
18828 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18829 eval ac_val=\$$ac_var
18830 case $ac_val in #(
18831 *${as_nl}*)
18832 case $ac_var in #(
18833 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18835 esac
18836 case $ac_var in #(
18837 _ | IFS | as_nl) ;; #(
18838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18839 *) { eval $ac_var=; unset $ac_var;} ;;
18840 esac ;;
18841 esac
18842 done
18843
18844 (set) 2>&1 |
18845 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18846 *${as_nl}ac_space=\ *)
18847 # `set' does not quote correctly, so add quotes: double-quote
18848 # substitution turns \\\\ into \\, and sed turns \\ into \.
18849 sed -n \
18850 "s/'/'\\\\''/g;
18851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18852 ;; #(
18853 *)
18854 # `set' quotes correctly as required by POSIX, so do not add quotes.
18855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18856 ;;
18857 esac |
18858 sort
18859 ) |
18860 sed '
18861 /^ac_cv_env_/b end
18862 t clear
18863 :clear
18864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18865 t end
18866 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18867 :end' >>confcache
18868 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18869 if test -w "$cache_file"; then
18870 if test "x$cache_file" != "x/dev/null"; then
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18872 $as_echo "$as_me: updating cache $cache_file" >&6;}
18873 if test ! -f "$cache_file" || test -h "$cache_file"; then
18874 cat confcache >"$cache_file"
18875 else
18876 case $cache_file in #(
18877 */* | ?:*)
18878 mv -f confcache "$cache_file"$$ &&
18879 mv -f "$cache_file"$$ "$cache_file" ;; #(
18880 *)
18881 mv -f confcache "$cache_file" ;;
18882 esac
18883 fi
18884 fi
18885 else
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18887 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18888 fi
18889 fi
18890 rm -f confcache
18891
18892 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18893 # Let make expand exec_prefix.
18894 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18895
18896 DEFS=-DHAVE_CONFIG_H
18897
18898 ac_libobjs=
18899 ac_ltlibobjs=
18900 U=
18901 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18902 # 1. Remove the extension, and $U if already installed.
18903 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18904 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18905 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18906 # will be set to the directory where LIBOBJS objects are built.
18907 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18908 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18909 done
18910 LIBOBJS=$ac_libobjs
18911
18912 LTLIBOBJS=$ac_ltlibobjs
18913
18914
18915 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18916 as_fn_error $? "conditional \"AMDEP\" was never defined.
18917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18918 fi
18919 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18920 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18922 fi
18923 if test -n "$EXEEXT"; then
18924 am__EXEEXT_TRUE=
18925 am__EXEEXT_FALSE='#'
18926 else
18927 am__EXEEXT_TRUE='#'
18928 am__EXEEXT_FALSE=
18929 fi
18930
18931 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18932 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18934 fi
18935 if test -z "${BUILD_VMWARECTRL_TRUE}" && test -z "${BUILD_VMWARECTRL_FALSE}"; then
18936 as_fn_error $? "conditional \"BUILD_VMWARECTRL\" was never defined.
18937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18938 fi
18939 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18940 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18942 fi
18943 if test -z "${BUILD_VMWGFX_TRUE}" && test -z "${BUILD_VMWGFX_FALSE}"; then
18944 as_fn_error $? "conditional \"BUILD_VMWGFX\" was never defined.
18945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18946 fi
18947
18948 : "${CONFIG_STATUS=./config.status}"
18949 ac_write_fail=0
18950 ac_clean_files_save=$ac_clean_files
18951 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18953 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18954 as_write_fail=0
18955 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18956 #! $SHELL
18957 # Generated by $as_me.
18958 # Run this file to recreate the current configuration.
18959 # Compiler output produced by configure, useful for debugging
18960 # configure, is in config.log if it exists.
18961
18962 debug=false
18963 ac_cs_recheck=false
18964 ac_cs_silent=false
18965
18966 SHELL=\${CONFIG_SHELL-$SHELL}
18967 export SHELL
18968 _ASEOF
18969 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18970 ## -------------------- ##
18971 ## M4sh Initialization. ##
18972 ## -------------------- ##
18973
18974 # Be more Bourne compatible
18975 DUALCASE=1; export DUALCASE # for MKS sh
18976 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18977 emulate sh
18978 NULLCMD=:
18979 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18980 # is contrary to our usage. Disable this feature.
18981 alias -g '${1+"$@"}'='"$@"'
18982 setopt NO_GLOB_SUBST
18983 else
18984 case `(set -o) 2>/dev/null` in #(
18985 *posix*) :
18986 set -o posix ;; #(
18987 *) :
18988 ;;
18989 esac
18990 fi
18991
18992
18993 as_nl='
18994 '
18995 export as_nl
18996 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18997 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18998 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18999 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19000 # Prefer a ksh shell builtin over an external printf program on Solaris,
19001 # but without wasting forks for bash or zsh.
19002 if test -z "$BASH_VERSION$ZSH_VERSION" \
19003 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19004 as_echo='print -r --'
19005 as_echo_n='print -rn --'
19006 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19007 as_echo='printf %s\n'
19008 as_echo_n='printf %s'
19009 else
19010 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19011 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19012 as_echo_n='/usr/ucb/echo -n'
19013 else
19014 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19015 as_echo_n_body='eval
19016 arg=$1;
19017 case $arg in #(
19018 *"$as_nl"*)
19019 expr "X$arg" : "X\\(.*\\)$as_nl";
19020 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19021 esac;
19022 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19023 '
19024 export as_echo_n_body
19025 as_echo_n='sh -c $as_echo_n_body as_echo'
19026 fi
19027 export as_echo_body
19028 as_echo='sh -c $as_echo_body as_echo'
19029 fi
19030
19031 # The user is always right.
19032 if test "${PATH_SEPARATOR+set}" != set; then
19033 PATH_SEPARATOR=:
19034 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19035 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19036 PATH_SEPARATOR=';'
19037 }
19038 fi
19039
19040
19041 # IFS
19042 # We need space, tab and new line, in precisely that order. Quoting is
19043 # there to prevent editors from complaining about space-tab.
19044 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19045 # splitting by setting IFS to empty value.)
19046 IFS=" "" $as_nl"
19047
19048 # Find who we are. Look in the path if we contain no directory separator.
19049 as_myself=
19050 case $0 in #((
19051 *[\\/]* ) as_myself=$0 ;;
19052 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19053 for as_dir in $PATH
19054 do
19055 IFS=$as_save_IFS
19056 test -z "$as_dir" && as_dir=.
19057 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19058 done
19059 IFS=$as_save_IFS
19060
19061 ;;
19062 esac
19063 # We did not find ourselves, most probably we were run as `sh COMMAND'
19064 # in which case we are not to be found in the path.
19065 if test "x$as_myself" = x; then
19066 as_myself=$0
19067 fi
19068 if test ! -f "$as_myself"; then
19069 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19070 exit 1
19071 fi
19072
19073 # Unset variables that we do not need and which cause bugs (e.g. in
19074 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19075 # suppresses any "Segmentation fault" message there. '((' could
19076 # trigger a bug in pdksh 5.2.14.
19077 for as_var in BASH_ENV ENV MAIL MAILPATH
19078 do eval test x\${$as_var+set} = xset \
19079 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19080 done
19081 PS1='$ '
19082 PS2='> '
19083 PS4='+ '
19084
19085 # NLS nuisances.
19086 LC_ALL=C
19087 export LC_ALL
19088 LANGUAGE=C
19089 export LANGUAGE
19090
19091 # CDPATH.
19092 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19093
19094
19095 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19096 # ----------------------------------------
19097 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19098 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19099 # script with STATUS, using 1 if that was 0.
19100 as_fn_error ()
19101 {
19102 as_status=$1; test $as_status -eq 0 && as_status=1
19103 if test "$4"; then
19104 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19105 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19106 fi
19107 $as_echo "$as_me: error: $2" >&2
19108 as_fn_exit $as_status
19109 } # as_fn_error
19110
19111
19112 # as_fn_set_status STATUS
19113 # -----------------------
19114 # Set $? to STATUS, without forking.
19115 as_fn_set_status ()
19116 {
19117 return $1
19118 } # as_fn_set_status
19119
19120 # as_fn_exit STATUS
19121 # -----------------
19122 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19123 as_fn_exit ()
19124 {
19125 set +e
19126 as_fn_set_status $1
19127 exit $1
19128 } # as_fn_exit
19129
19130 # as_fn_unset VAR
19131 # ---------------
19132 # Portably unset VAR.
19133 as_fn_unset ()
19134 {
19135 { eval $1=; unset $1;}
19136 }
19137 as_unset=as_fn_unset
19138 # as_fn_append VAR VALUE
19139 # ----------------------
19140 # Append the text in VALUE to the end of the definition contained in VAR. Take
19141 # advantage of any shell optimizations that allow amortized linear growth over
19142 # repeated appends, instead of the typical quadratic growth present in naive
19143 # implementations.
19144 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19145 eval 'as_fn_append ()
19146 {
19147 eval $1+=\$2
19148 }'
19149 else
19150 as_fn_append ()
19151 {
19152 eval $1=\$$1\$2
19153 }
19154 fi # as_fn_append
19155
19156 # as_fn_arith ARG...
19157 # ------------------
19158 # Perform arithmetic evaluation on the ARGs, and store the result in the
19159 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19160 # must be portable across $(()) and expr.
19161 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19162 eval 'as_fn_arith ()
19163 {
19164 as_val=$(( $* ))
19165 }'
19166 else
19167 as_fn_arith ()
19168 {
19169 as_val=`expr "$@" || test $? -eq 1`
19170 }
19171 fi # as_fn_arith
19172
19173
19174 if expr a : '\(a\)' >/dev/null 2>&1 &&
19175 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19176 as_expr=expr
19177 else
19178 as_expr=false
19179 fi
19180
19181 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19182 as_basename=basename
19183 else
19184 as_basename=false
19185 fi
19186
19187 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19188 as_dirname=dirname
19189 else
19190 as_dirname=false
19191 fi
19192
19193 as_me=`$as_basename -- "$0" ||
19194 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19195 X"$0" : 'X\(//\)$' \| \
19196 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19197 $as_echo X/"$0" |
19198 sed '/^.*\/\([^/][^/]*\)\/*$/{
19199 s//\1/
19200 q
19201 }
19202 /^X\/\(\/\/\)$/{
19203 s//\1/
19204 q
19205 }
19206 /^X\/\(\/\).*/{
19207 s//\1/
19208 q
19209 }
19210 s/.*/./; q'`
19211
19212 # Avoid depending upon Character Ranges.
19213 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19214 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19215 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19216 as_cr_digits='0123456789'
19217 as_cr_alnum=$as_cr_Letters$as_cr_digits
19218
19219 ECHO_C= ECHO_N= ECHO_T=
19220 case `echo -n x` in #(((((
19221 -n*)
19222 case `echo 'xy\c'` in
19223 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19224 xy) ECHO_C='\c';;
19225 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19226 ECHO_T=' ';;
19227 esac;;
19228 *)
19229 ECHO_N='-n';;
19230 esac
19231
19232 rm -f conf$$ conf$$.exe conf$$.file
19233 if test -d conf$$.dir; then
19234 rm -f conf$$.dir/conf$$.file
19235 else
19236 rm -f conf$$.dir
19237 mkdir conf$$.dir 2>/dev/null
19238 fi
19239 if (echo >conf$$.file) 2>/dev/null; then
19240 if ln -s conf$$.file conf$$ 2>/dev/null; then
19241 as_ln_s='ln -s'
19242 # ... but there are two gotchas:
19243 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19244 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19245 # In both cases, we have to default to `cp -p'.
19246 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19247 as_ln_s='cp -p'
19248 elif ln conf$$.file conf$$ 2>/dev/null; then
19249 as_ln_s=ln
19250 else
19251 as_ln_s='cp -p'
19252 fi
19253 else
19254 as_ln_s='cp -p'
19255 fi
19256 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19257 rmdir conf$$.dir 2>/dev/null
19258
19259
19260 # as_fn_mkdir_p
19261 # -------------
19262 # Create "$as_dir" as a directory, including parents if necessary.
19263 as_fn_mkdir_p ()
19264 {
19265
19266 case $as_dir in #(
19267 -*) as_dir=./$as_dir;;
19268 esac
19269 test -d "$as_dir" || eval $as_mkdir_p || {
19270 as_dirs=
19271 while :; do
19272 case $as_dir in #(
19273 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19274 *) as_qdir=$as_dir;;
19275 esac
19276 as_dirs="'$as_qdir' $as_dirs"
19277 as_dir=`$as_dirname -- "$as_dir" ||
19278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19279 X"$as_dir" : 'X\(//\)[^/]' \| \
19280 X"$as_dir" : 'X\(//\)$' \| \
19281 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19282 $as_echo X"$as_dir" |
19283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19284 s//\1/
19285 q
19286 }
19287 /^X\(\/\/\)[^/].*/{
19288 s//\1/
19289 q
19290 }
19291 /^X\(\/\/\)$/{
19292 s//\1/
19293 q
19294 }
19295 /^X\(\/\).*/{
19296 s//\1/
19297 q
19298 }
19299 s/.*/./; q'`
19300 test -d "$as_dir" && break
19301 done
19302 test -z "$as_dirs" || eval "mkdir $as_dirs"
19303 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19304
19305
19306 } # as_fn_mkdir_p
19307 if mkdir -p . 2>/dev/null; then
19308 as_mkdir_p='mkdir -p "$as_dir"'
19309 else
19310 test -d ./-p && rmdir ./-p
19311 as_mkdir_p=false
19312 fi
19313
19314 if test -x / >/dev/null 2>&1; then
19315 as_test_x='test -x'
19316 else
19317 if ls -dL / >/dev/null 2>&1; then
19318 as_ls_L_option=L
19319 else
19320 as_ls_L_option=
19321 fi
19322 as_test_x='
19323 eval sh -c '\''
19324 if test -d "$1"; then
19325 test -d "$1/.";
19326 else
19327 case $1 in #(
19328 -*)set "./$1";;
19329 esac;
19330 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19331 ???[sx]*):;;*)false;;esac;fi
19332 '\'' sh
19333 '
19334 fi
19335 as_executable_p=$as_test_x
19336
19337 # Sed expression to map a string onto a valid CPP name.
19338 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19339
19340 # Sed expression to map a string onto a valid variable name.
19341 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19342
19343
19344 exec 6>&1
19345 ## ----------------------------------- ##
19346 ## Main body of $CONFIG_STATUS script. ##
19347 ## ----------------------------------- ##
19348 _ASEOF
19349 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19350
19351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19352 # Save the log message, to keep $0 and so on meaningful, and to
19353 # report actual input values of CONFIG_FILES etc. instead of their
19354 # values after options handling.
19355 ac_log="
19356 This file was extended by xf86-video-vmware $as_me 13.0.2, which was
19357 generated by GNU Autoconf 2.68. Invocation command line was
19358
19359 CONFIG_FILES = $CONFIG_FILES
19360 CONFIG_HEADERS = $CONFIG_HEADERS
19361 CONFIG_LINKS = $CONFIG_LINKS
19362 CONFIG_COMMANDS = $CONFIG_COMMANDS
19363 $ $0 $@
19364
19365 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19366 "
19367
19368 _ACEOF
19369
19370 case $ac_config_files in *"
19371 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19372 esac
19373
19374 case $ac_config_headers in *"
19375 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19376 esac
19377
19378
19379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19380 # Files that config.status was made for.
19381 config_files="$ac_config_files"
19382 config_headers="$ac_config_headers"
19383 config_commands="$ac_config_commands"
19384
19385 _ACEOF
19386
19387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19388 ac_cs_usage="\
19389 \`$as_me' instantiates files and other configuration actions
19390 from templates according to the current configuration. Unless the files
19391 and actions are specified as TAGs, all are instantiated by default.
19392
19393 Usage: $0 [OPTION]... [TAG]...
19394
19395 -h, --help print this help, then exit
19396 -V, --version print version number and configuration settings, then exit
19397 --config print configuration, then exit
19398 -q, --quiet, --silent
19399 do not print progress messages
19400 -d, --debug don't remove temporary files
19401 --recheck update $as_me by reconfiguring in the same conditions
19402 --file=FILE[:TEMPLATE]
19403 instantiate the configuration file FILE
19404 --header=FILE[:TEMPLATE]
19405 instantiate the configuration header FILE
19406
19407 Configuration files:
19408 $config_files
19409
19410 Configuration headers:
19411 $config_headers
19412
19413 Configuration commands:
19414 $config_commands
19415
19416 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19417
19418 _ACEOF
19419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19420 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19421 ac_cs_version="\\
19422 xf86-video-vmware config.status 13.0.2
19423 configured by $0, generated by GNU Autoconf 2.68,
19424 with options \\"\$ac_cs_config\\"
19425
19426 Copyright (C) 2010 Free Software Foundation, Inc.
19427 This config.status script is free software; the Free Software Foundation
19428 gives unlimited permission to copy, distribute and modify it."
19429
19430 ac_pwd='$ac_pwd'
19431 srcdir='$srcdir'
19432 INSTALL='$INSTALL'
19433 MKDIR_P='$MKDIR_P'
19434 AWK='$AWK'
19435 test -n "\$AWK" || AWK=awk
19436 _ACEOF
19437
19438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19439 # The default lists apply if the user does not specify any file.
19440 ac_need_defaults=:
19441 while test $# != 0
19442 do
19443 case $1 in
19444 --*=?*)
19445 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19446 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19447 ac_shift=:
19448 ;;
19449 --*=)
19450 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19451 ac_optarg=
19452 ac_shift=:
19453 ;;
19454 *)
19455 ac_option=$1
19456 ac_optarg=$2
19457 ac_shift=shift
19458 ;;
19459 esac
19460
19461 case $ac_option in
19462 # Handling of the options.
19463 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19464 ac_cs_recheck=: ;;
19465 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19466 $as_echo "$ac_cs_version"; exit ;;
19467 --config | --confi | --conf | --con | --co | --c )
19468 $as_echo "$ac_cs_config"; exit ;;
19469 --debug | --debu | --deb | --de | --d | -d )
19470 debug=: ;;
19471 --file | --fil | --fi | --f )
19472 $ac_shift
19473 case $ac_optarg in
19474 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19475 '') as_fn_error $? "missing file argument" ;;
19476 esac
19477 as_fn_append CONFIG_FILES " '$ac_optarg'"
19478 ac_need_defaults=false;;
19479 --header | --heade | --head | --hea )
19480 $ac_shift
19481 case $ac_optarg in
19482 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19483 esac
19484 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19485 ac_need_defaults=false;;
19486 --he | --h)
19487 # Conflict between --help and --header
19488 as_fn_error $? "ambiguous option: \`$1'
19489 Try \`$0 --help' for more information.";;
19490 --help | --hel | -h )
19491 $as_echo "$ac_cs_usage"; exit ;;
19492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19493 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19494 ac_cs_silent=: ;;
19495
19496 # This is an error.
19497 -*) as_fn_error $? "unrecognized option: \`$1'
19498 Try \`$0 --help' for more information." ;;
19499
19500 *) as_fn_append ac_config_targets " $1"
19501 ac_need_defaults=false ;;
19502
19503 esac
19504 shift
19505 done
19506
19507 ac_configure_extra_args=
19508
19509 if $ac_cs_silent; then
19510 exec 6>/dev/null
19511 ac_configure_extra_args="$ac_configure_extra_args --silent"
19512 fi
19513
19514 _ACEOF
19515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19516 if \$ac_cs_recheck; then
19517 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19518 shift
19519 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19520 CONFIG_SHELL='$SHELL'
19521 export CONFIG_SHELL
19522 exec "\$@"
19523 fi
19524
19525 _ACEOF
19526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19527 exec 5>>config.log
19528 {
19529 echo
19530 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19531 ## Running $as_me. ##
19532 _ASBOX
19533 $as_echo "$ac_log"
19534 } >&5
19535
19536 _ACEOF
19537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19538 #
19539 # INIT-COMMANDS
19540 #
19541 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19542
19543
19544 # The HP-UX ksh and POSIX shell print the target directory to stdout
19545 # if CDPATH is set.
19546 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19547
19548 sed_quote_subst='$sed_quote_subst'
19549 double_quote_subst='$double_quote_subst'
19550 delay_variable_subst='$delay_variable_subst'
19551 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19552 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19553 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19554 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19555 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19556 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19557 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19558 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19559 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19560 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19561 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19562 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19563 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19564 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19565 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19566 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19567 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19568 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19569 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19570 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19571 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19572 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19573 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19574 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19575 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19576 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19577 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19578 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19579 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19580 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19581 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19582 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19583 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19584 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19585 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19586 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19587 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19588 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19589 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19590 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19591 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19592 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19593 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19594 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19595 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19596 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19597 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19598 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19599 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19600 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19601 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19602 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19603 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19604 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19605 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19606 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19607 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19608 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19609 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19610 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19611 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19612 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19613 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19614 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19615 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19616 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19617 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19618 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19619 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19620 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19621 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19622 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19623 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19624 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19625 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19626 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19627 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19628 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19629 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19630 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19631 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19632 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19633 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19634 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19635 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19636 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19637 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19638 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19639 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19640 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19641 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19642 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19643 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19644 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19645 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19646 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19647 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19648 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19649 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19650 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19651 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19652 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19653 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19654 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19655 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19656 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19657 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19658 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19659 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19660 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19661 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19662 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19663 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19664 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19665 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19666 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19667 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19668 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19669 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19670 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19671 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19672 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19673 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19674 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19675 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19676 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19677 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19678 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19679 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19680 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19681
19682 LTCC='$LTCC'
19683 LTCFLAGS='$LTCFLAGS'
19684 compiler='$compiler_DEFAULT'
19685
19686 # A function that is used when there is no print builtin or printf.
19687 func_fallback_echo ()
19688 {
19689 eval 'cat <<_LTECHO_EOF
19690 \$1
19691 _LTECHO_EOF'
19692 }
19693
19694 # Quote evaled strings.
19695 for var in SHELL \
19696 ECHO \
19697 PATH_SEPARATOR \
19698 SED \
19699 GREP \
19700 EGREP \
19701 FGREP \
19702 LD \
19703 NM \
19704 LN_S \
19705 lt_SP2NL \
19706 lt_NL2SP \
19707 reload_flag \
19708 OBJDUMP \
19709 deplibs_check_method \
19710 file_magic_cmd \
19711 file_magic_glob \
19712 want_nocaseglob \
19713 DLLTOOL \
19714 sharedlib_from_linklib_cmd \
19715 AR \
19716 AR_FLAGS \
19717 archiver_list_spec \
19718 STRIP \
19719 RANLIB \
19720 CC \
19721 CFLAGS \
19722 compiler \
19723 lt_cv_sys_global_symbol_pipe \
19724 lt_cv_sys_global_symbol_to_cdecl \
19725 lt_cv_sys_global_symbol_to_c_name_address \
19726 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19727 nm_file_list_spec \
19728 lt_prog_compiler_no_builtin_flag \
19729 lt_prog_compiler_pic \
19730 lt_prog_compiler_wl \
19731 lt_prog_compiler_static \
19732 lt_cv_prog_compiler_c_o \
19733 need_locks \
19734 MANIFEST_TOOL \
19735 DSYMUTIL \
19736 NMEDIT \
19737 LIPO \
19738 OTOOL \
19739 OTOOL64 \
19740 shrext_cmds \
19741 export_dynamic_flag_spec \
19742 whole_archive_flag_spec \
19743 compiler_needs_object \
19744 with_gnu_ld \
19745 allow_undefined_flag \
19746 no_undefined_flag \
19747 hardcode_libdir_flag_spec \
19748 hardcode_libdir_separator \
19749 exclude_expsyms \
19750 include_expsyms \
19751 file_list_spec \
19752 variables_saved_for_relink \
19753 libname_spec \
19754 library_names_spec \
19755 soname_spec \
19756 install_override_mode \
19757 finish_eval \
19758 old_striplib \
19759 striplib; do
19760 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19761 *[\\\\\\\`\\"\\\$]*)
19762 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19763 ;;
19764 *)
19765 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19766 ;;
19767 esac
19768 done
19769
19770 # Double-quote double-evaled strings.
19771 for var in reload_cmds \
19772 old_postinstall_cmds \
19773 old_postuninstall_cmds \
19774 old_archive_cmds \
19775 extract_expsyms_cmds \
19776 old_archive_from_new_cmds \
19777 old_archive_from_expsyms_cmds \
19778 archive_cmds \
19779 archive_expsym_cmds \
19780 module_cmds \
19781 module_expsym_cmds \
19782 export_symbols_cmds \
19783 prelink_cmds \
19784 postlink_cmds \
19785 postinstall_cmds \
19786 postuninstall_cmds \
19787 finish_cmds \
19788 sys_lib_search_path_spec \
19789 sys_lib_dlsearch_path_spec; do
19790 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19791 *[\\\\\\\`\\"\\\$]*)
19792 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19793 ;;
19794 *)
19795 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19796 ;;
19797 esac
19798 done
19799
19800 ac_aux_dir='$ac_aux_dir'
19801 xsi_shell='$xsi_shell'
19802 lt_shell_append='$lt_shell_append'
19803
19804 # See if we are running on zsh, and set the options which allow our
19805 # commands through without removal of \ escapes INIT.
19806 if test -n "\${ZSH_VERSION+set}" ; then
19807 setopt NO_GLOB_SUBST
19808 fi
19809
19810
19811 PACKAGE='$PACKAGE'
19812 VERSION='$VERSION'
19813 TIMESTAMP='$TIMESTAMP'
19814 RM='$RM'
19815 ofile='$ofile'
19816
19817
19818
19819
19820 _ACEOF
19821
19822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19823
19824 # Handling of arguments.
19825 for ac_config_target in $ac_config_targets
19826 do
19827 case $ac_config_target in
19828 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19829 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19830 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19831 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19832 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19833 "saa/Makefile") CONFIG_FILES="$CONFIG_FILES saa/Makefile" ;;
19834 "vmwgfx/Makefile") CONFIG_FILES="$CONFIG_FILES vmwgfx/Makefile" ;;
19835 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19836 "vmwarectrl/Makefile") CONFIG_FILES="$CONFIG_FILES vmwarectrl/Makefile" ;;
19837
19838 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19839 esac
19840 done
19841
19842
19843 # If the user did not use the arguments to specify the items to instantiate,
19844 # then the envvar interface is used. Set only those that are not.
19845 # We use the long form for the default assignment because of an extremely
19846 # bizarre bug on SunOS 4.1.3.
19847 if $ac_need_defaults; then
19848 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19849 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19850 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19851 fi
19852
19853 # Have a temporary directory for convenience. Make it in the build tree
19854 # simply because there is no reason against having it here, and in addition,
19855 # creating and moving files from /tmp can sometimes cause problems.
19856 # Hook for its removal unless debugging.
19857 # Note that there is a small window in which the directory will not be cleaned:
19858 # after its creation but before its name has been assigned to `$tmp'.
19859 $debug ||
19860 {
19861 tmp= ac_tmp=
19862 trap 'exit_status=$?
19863 : "${ac_tmp:=$tmp}"
19864 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19865 ' 0
19866 trap 'as_fn_exit 1' 1 2 13 15
19867 }
19868 # Create a (secure) tmp directory for tmp files.
19869
19870 {
19871 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19872 test -d "$tmp"
19873 } ||
19874 {
19875 tmp=./conf$$-$RANDOM
19876 (umask 077 && mkdir "$tmp")
19877 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19878 ac_tmp=$tmp
19879
19880 # Set up the scripts for CONFIG_FILES section.
19881 # No need to generate them if there are no CONFIG_FILES.
19882 # This happens for instance with `./config.status config.h'.
19883 if test -n "$CONFIG_FILES"; then
19884
19885
19886 ac_cr=`echo X | tr X '\015'`
19887 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19888 # But we know of no other shell where ac_cr would be empty at this
19889 # point, so we can use a bashism as a fallback.
19890 if test "x$ac_cr" = x; then
19891 eval ac_cr=\$\'\\r\'
19892 fi
19893 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19894 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19895 ac_cs_awk_cr='\\r'
19896 else
19897 ac_cs_awk_cr=$ac_cr
19898 fi
19899
19900 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19901 _ACEOF
19902
19903
19904 {
19905 echo "cat >conf$$subs.awk <<_ACEOF" &&
19906 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19907 echo "_ACEOF"
19908 } >conf$$subs.sh ||
19909 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19910 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19911 ac_delim='%!_!# '
19912 for ac_last_try in false false false false false :; do
19913 . ./conf$$subs.sh ||
19914 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19915
19916 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19917 if test $ac_delim_n = $ac_delim_num; then
19918 break
19919 elif $ac_last_try; then
19920 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19921 else
19922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19923 fi
19924 done
19925 rm -f conf$$subs.sh
19926
19927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19928 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19929 _ACEOF
19930 sed -n '
19931 h
19932 s/^/S["/; s/!.*/"]=/
19933 p
19934 g
19935 s/^[^!]*!//
19936 :repl
19937 t repl
19938 s/'"$ac_delim"'$//
19939 t delim
19940 :nl
19941 h
19942 s/\(.\{148\}\)..*/\1/
19943 t more1
19944 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19945 p
19946 n
19947 b repl
19948 :more1
19949 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19950 p
19951 g
19952 s/.\{148\}//
19953 t nl
19954 :delim
19955 h
19956 s/\(.\{148\}\)..*/\1/
19957 t more2
19958 s/["\\]/\\&/g; s/^/"/; s/$/"/
19959 p
19960 b
19961 :more2
19962 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19963 p
19964 g
19965 s/.\{148\}//
19966 t delim
19967 ' <conf$$subs.awk | sed '
19968 /^[^""]/{
19969 N
19970 s/\n//
19971 }
19972 ' >>$CONFIG_STATUS || ac_write_fail=1
19973 rm -f conf$$subs.awk
19974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19975 _ACAWK
19976 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19977 for (key in S) S_is_set[key] = 1
19978 FS = ""
19979
19980 }
19981 {
19982 line = $ 0
19983 nfields = split(line, field, "@")
19984 substed = 0
19985 len = length(field[1])
19986 for (i = 2; i < nfields; i++) {
19987 key = field[i]
19988 keylen = length(key)
19989 if (S_is_set[key]) {
19990 value = S[key]
19991 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19992 len += length(value) + length(field[++i])
19993 substed = 1
19994 } else
19995 len += 1 + keylen
19996 }
19997
19998 print line
19999 }
20000
20001 _ACAWK
20002 _ACEOF
20003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20004 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20005 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20006 else
20007 cat
20008 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20009 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20010 _ACEOF
20011
20012 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20013 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20014 # trailing colons and then remove the whole line if VPATH becomes empty
20015 # (actually we leave an empty line to preserve line numbers).
20016 if test "x$srcdir" = x.; then
20017 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20018 h
20019 s///
20020 s/^/:/
20021 s/[ ]*$/:/
20022 s/:\$(srcdir):/:/g
20023 s/:\${srcdir}:/:/g
20024 s/:@srcdir@:/:/g
20025 s/^:*//
20026 s/:*$//
20027 x
20028 s/\(=[ ]*\).*/\1/
20029 G
20030 s/\n//
20031 s/^[^=]*=[ ]*$//
20032 }'
20033 fi
20034
20035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20036 fi # test -n "$CONFIG_FILES"
20037
20038 # Set up the scripts for CONFIG_HEADERS section.
20039 # No need to generate them if there are no CONFIG_HEADERS.
20040 # This happens for instance with `./config.status Makefile'.
20041 if test -n "$CONFIG_HEADERS"; then
20042 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20043 BEGIN {
20044 _ACEOF
20045
20046 # Transform confdefs.h into an awk script `defines.awk', embedded as
20047 # here-document in config.status, that substitutes the proper values into
20048 # config.h.in to produce config.h.
20049
20050 # Create a delimiter string that does not exist in confdefs.h, to ease
20051 # handling of long lines.
20052 ac_delim='%!_!# '
20053 for ac_last_try in false false :; do
20054 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20055 if test -z "$ac_tt"; then
20056 break
20057 elif $ac_last_try; then
20058 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20059 else
20060 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20061 fi
20062 done
20063
20064 # For the awk script, D is an array of macro values keyed by name,
20065 # likewise P contains macro parameters if any. Preserve backslash
20066 # newline sequences.
20067
20068 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20069 sed -n '
20070 s/.\{148\}/&'"$ac_delim"'/g
20071 t rset
20072 :rset
20073 s/^[ ]*#[ ]*define[ ][ ]*/ /
20074 t def
20075 d
20076 :def
20077 s/\\$//
20078 t bsnl
20079 s/["\\]/\\&/g
20080 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20081 D["\1"]=" \3"/p
20082 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20083 d
20084 :bsnl
20085 s/["\\]/\\&/g
20086 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20087 D["\1"]=" \3\\\\\\n"\\/p
20088 t cont
20089 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20090 t cont
20091 d
20092 :cont
20093 n
20094 s/.\{148\}/&'"$ac_delim"'/g
20095 t clear
20096 :clear
20097 s/\\$//
20098 t bsnlc
20099 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20100 d
20101 :bsnlc
20102 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20103 b cont
20104 ' <confdefs.h | sed '
20105 s/'"$ac_delim"'/"\\\
20106 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20107
20108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20109 for (key in D) D_is_set[key] = 1
20110 FS = ""
20111 }
20112 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20113 line = \$ 0
20114 split(line, arg, " ")
20115 if (arg[1] == "#") {
20116 defundef = arg[2]
20117 mac1 = arg[3]
20118 } else {
20119 defundef = substr(arg[1], 2)
20120 mac1 = arg[2]
20121 }
20122 split(mac1, mac2, "(") #)
20123 macro = mac2[1]
20124 prefix = substr(line, 1, index(line, defundef) - 1)
20125 if (D_is_set[macro]) {
20126 # Preserve the white space surrounding the "#".
20127 print prefix "define", macro P[macro] D[macro]
20128 next
20129 } else {
20130 # Replace #undef with comments. This is necessary, for example,
20131 # in the case of _POSIX_SOURCE, which is predefined and required
20132 # on some systems where configure will not decide to define it.
20133 if (defundef == "undef") {
20134 print "/*", prefix defundef, macro, "*/"
20135 next
20136 }
20137 }
20138 }
20139 { print }
20140 _ACAWK
20141 _ACEOF
20142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20143 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20144 fi # test -n "$CONFIG_HEADERS"
20145
20146
20147 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20148 shift
20149 for ac_tag
20150 do
20151 case $ac_tag in
20152 :[FHLC]) ac_mode=$ac_tag; continue;;
20153 esac
20154 case $ac_mode$ac_tag in
20155 :[FHL]*:*);;
20156 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20157 :[FH]-) ac_tag=-:-;;
20158 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20159 esac
20160 ac_save_IFS=$IFS
20161 IFS=:
20162 set x $ac_tag
20163 IFS=$ac_save_IFS
20164 shift
20165 ac_file=$1
20166 shift
20167
20168 case $ac_mode in
20169 :L) ac_source=$1;;
20170 :[FH])
20171 ac_file_inputs=
20172 for ac_f
20173 do
20174 case $ac_f in
20175 -) ac_f="$ac_tmp/stdin";;
20176 *) # Look for the file first in the build tree, then in the source tree
20177 # (if the path is not absolute). The absolute path cannot be DOS-style,
20178 # because $ac_f cannot contain `:'.
20179 test -f "$ac_f" ||
20180 case $ac_f in
20181 [\\/$]*) false;;
20182 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20183 esac ||
20184 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20185 esac
20186 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20187 as_fn_append ac_file_inputs " '$ac_f'"
20188 done
20189
20190 # Let's still pretend it is `configure' which instantiates (i.e., don't
20191 # use $as_me), people would be surprised to read:
20192 # /* config.h. Generated by config.status. */
20193 configure_input='Generated from '`
20194 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20195 `' by configure.'
20196 if test x"$ac_file" != x-; then
20197 configure_input="$ac_file. $configure_input"
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20199 $as_echo "$as_me: creating $ac_file" >&6;}
20200 fi
20201 # Neutralize special characters interpreted by sed in replacement strings.
20202 case $configure_input in #(
20203 *\&* | *\|* | *\\* )
20204 ac_sed_conf_input=`$as_echo "$configure_input" |
20205 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20206 *) ac_sed_conf_input=$configure_input;;
20207 esac
20208
20209 case $ac_tag in
20210 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20211 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20212 esac
20213 ;;
20214 esac
20215
20216 ac_dir=`$as_dirname -- "$ac_file" ||
20217 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20218 X"$ac_file" : 'X\(//\)[^/]' \| \
20219 X"$ac_file" : 'X\(//\)$' \| \
20220 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20221 $as_echo X"$ac_file" |
20222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20223 s//\1/
20224 q
20225 }
20226 /^X\(\/\/\)[^/].*/{
20227 s//\1/
20228 q
20229 }
20230 /^X\(\/\/\)$/{
20231 s//\1/
20232 q
20233 }
20234 /^X\(\/\).*/{
20235 s//\1/
20236 q
20237 }
20238 s/.*/./; q'`
20239 as_dir="$ac_dir"; as_fn_mkdir_p
20240 ac_builddir=.
20241
20242 case "$ac_dir" in
20243 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20244 *)
20245 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20246 # A ".." for each directory in $ac_dir_suffix.
20247 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20248 case $ac_top_builddir_sub in
20249 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20250 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20251 esac ;;
20252 esac
20253 ac_abs_top_builddir=$ac_pwd
20254 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20255 # for backward compatibility:
20256 ac_top_builddir=$ac_top_build_prefix
20257
20258 case $srcdir in
20259 .) # We are building in place.
20260 ac_srcdir=.
20261 ac_top_srcdir=$ac_top_builddir_sub
20262 ac_abs_top_srcdir=$ac_pwd ;;
20263 [\\/]* | ?:[\\/]* ) # Absolute name.
20264 ac_srcdir=$srcdir$ac_dir_suffix;
20265 ac_top_srcdir=$srcdir
20266 ac_abs_top_srcdir=$srcdir ;;
20267 *) # Relative name.
20268 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20269 ac_top_srcdir=$ac_top_build_prefix$srcdir
20270 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20271 esac
20272 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20273
20274
20275 case $ac_mode in
20276 :F)
20277 #
20278 # CONFIG_FILE
20279 #
20280
20281 case $INSTALL in
20282 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20283 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20284 esac
20285 ac_MKDIR_P=$MKDIR_P
20286 case $MKDIR_P in
20287 [\\/$]* | ?:[\\/]* ) ;;
20288 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20289 esac
20290 _ACEOF
20291
20292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20293 # If the template does not know about datarootdir, expand it.
20294 # FIXME: This hack should be removed a few years after 2.60.
20295 ac_datarootdir_hack=; ac_datarootdir_seen=
20296 ac_sed_dataroot='
20297 /datarootdir/ {
20298 p
20299 q
20300 }
20301 /@datadir@/p
20302 /@docdir@/p
20303 /@infodir@/p
20304 /@localedir@/p
20305 /@mandir@/p'
20306 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20307 *datarootdir*) ac_datarootdir_seen=yes;;
20308 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20310 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20311 _ACEOF
20312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20313 ac_datarootdir_hack='
20314 s&@datadir@&$datadir&g
20315 s&@docdir@&$docdir&g
20316 s&@infodir@&$infodir&g
20317 s&@localedir@&$localedir&g
20318 s&@mandir@&$mandir&g
20319 s&\\\${datarootdir}&$datarootdir&g' ;;
20320 esac
20321 _ACEOF
20322
20323 # Neutralize VPATH when `$srcdir' = `.'.
20324 # Shell code in configure.ac might set extrasub.
20325 # FIXME: do we really want to maintain this feature?
20326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20327 ac_sed_extra="$ac_vpsub
20328 $extrasub
20329 _ACEOF
20330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20331 :t
20332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20333 s|@configure_input@|$ac_sed_conf_input|;t t
20334 s&@top_builddir@&$ac_top_builddir_sub&;t t
20335 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20336 s&@srcdir@&$ac_srcdir&;t t
20337 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20338 s&@top_srcdir@&$ac_top_srcdir&;t t
20339 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20340 s&@builddir@&$ac_builddir&;t t
20341 s&@abs_builddir@&$ac_abs_builddir&;t t
20342 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20343 s&@INSTALL@&$ac_INSTALL&;t t
20344 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20345 $ac_datarootdir_hack
20346 "
20347 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20348 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20349
20350 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20351 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20352 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20353 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20355 which seems to be undefined. Please make sure it is defined" >&5
20356 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20357 which seems to be undefined. Please make sure it is defined" >&2;}
20358
20359 rm -f "$ac_tmp/stdin"
20360 case $ac_file in
20361 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20362 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20363 esac \
20364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20365 ;;
20366 :H)
20367 #
20368 # CONFIG_HEADER
20369 #
20370 if test x"$ac_file" != x-; then
20371 {
20372 $as_echo "/* $configure_input */" \
20373 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20374 } >"$ac_tmp/config.h" \
20375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20376 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20378 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20379 else
20380 rm -f "$ac_file"
20381 mv "$ac_tmp/config.h" "$ac_file" \
20382 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20383 fi
20384 else
20385 $as_echo "/* $configure_input */" \
20386 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20387 || as_fn_error $? "could not create -" "$LINENO" 5
20388 fi
20389 # Compute "$ac_file"'s index in $config_headers.
20390 _am_arg="$ac_file"
20391 _am_stamp_count=1
20392 for _am_header in $config_headers :; do
20393 case $_am_header in
20394 $_am_arg | $_am_arg:* )
20395 break ;;
20396 * )
20397 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20398 esac
20399 done
20400 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20401 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20402 X"$_am_arg" : 'X\(//\)[^/]' \| \
20403 X"$_am_arg" : 'X\(//\)$' \| \
20404 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20405 $as_echo X"$_am_arg" |
20406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20407 s//\1/
20408 q
20409 }
20410 /^X\(\/\/\)[^/].*/{
20411 s//\1/
20412 q
20413 }
20414 /^X\(\/\/\)$/{
20415 s//\1/
20416 q
20417 }
20418 /^X\(\/\).*/{
20419 s//\1/
20420 q
20421 }
20422 s/.*/./; q'`/stamp-h$_am_stamp_count
20423 ;;
20424
20425 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20426 $as_echo "$as_me: executing $ac_file commands" >&6;}
20427 ;;
20428 esac
20429
20430
20431 case $ac_file$ac_mode in
20432 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20433 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20434 # are listed without --file. Let's play safe and only enable the eval
20435 # if we detect the quoting.
20436 case $CONFIG_FILES in
20437 *\'*) eval set x "$CONFIG_FILES" ;;
20438 *) set x $CONFIG_FILES ;;
20439 esac
20440 shift
20441 for mf
20442 do
20443 # Strip MF so we end up with the name of the file.
20444 mf=`echo "$mf" | sed -e 's/:.*$//'`
20445 # Check whether this is an Automake generated Makefile or not.
20446 # We used to match only the files named `Makefile.in', but
20447 # some people rename them; so instead we look at the file content.
20448 # Grep'ing the first line is not enough: some people post-process
20449 # each Makefile.in and add a new line on top of each file to say so.
20450 # Grep'ing the whole file is not good either: AIX grep has a line
20451 # limit of 2048, but all sed's we know have understand at least 4000.
20452 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20453 dirpart=`$as_dirname -- "$mf" ||
20454 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20455 X"$mf" : 'X\(//\)[^/]' \| \
20456 X"$mf" : 'X\(//\)$' \| \
20457 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20458 $as_echo X"$mf" |
20459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20460 s//\1/
20461 q
20462 }
20463 /^X\(\/\/\)[^/].*/{
20464 s//\1/
20465 q
20466 }
20467 /^X\(\/\/\)$/{
20468 s//\1/
20469 q
20470 }
20471 /^X\(\/\).*/{
20472 s//\1/
20473 q
20474 }
20475 s/.*/./; q'`
20476 else
20477 continue
20478 fi
20479 # Extract the definition of DEPDIR, am__include, and am__quote
20480 # from the Makefile without running `make'.
20481 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20482 test -z "$DEPDIR" && continue
20483 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20484 test -z "am__include" && continue
20485 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20486 # When using ansi2knr, U may be empty or an underscore; expand it
20487 U=`sed -n 's/^U = //p' < "$mf"`
20488 # Find all dependency output files, they are included files with
20489 # $(DEPDIR) in their names. We invoke sed twice because it is the
20490 # simplest approach to changing $(DEPDIR) to its actual value in the
20491 # expansion.
20492 for file in `sed -n "
20493 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20494 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20495 # Make sure the directory exists.
20496 test -f "$dirpart/$file" && continue
20497 fdir=`$as_dirname -- "$file" ||
20498 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20499 X"$file" : 'X\(//\)[^/]' \| \
20500 X"$file" : 'X\(//\)$' \| \
20501 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20502 $as_echo X"$file" |
20503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20504 s//\1/
20505 q
20506 }
20507 /^X\(\/\/\)[^/].*/{
20508 s//\1/
20509 q
20510 }
20511 /^X\(\/\/\)$/{
20512 s//\1/
20513 q
20514 }
20515 /^X\(\/\).*/{
20516 s//\1/
20517 q
20518 }
20519 s/.*/./; q'`
20520 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20521 # echo "creating $dirpart/$file"
20522 echo '# dummy' > "$dirpart/$file"
20523 done
20524 done
20525 }
20526 ;;
20527 "libtool":C)
20528
20529 # See if we are running on zsh, and set the options which allow our
20530 # commands through without removal of \ escapes.
20531 if test -n "${ZSH_VERSION+set}" ; then
20532 setopt NO_GLOB_SUBST
20533 fi
20534
20535 cfgfile="${ofile}T"
20536 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20537 $RM "$cfgfile"
20538
20539 cat <<_LT_EOF >> "$cfgfile"
20540 #! $SHELL
20541
20542 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20543 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20544 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20545 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20546 #
20547 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20548 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20549 # Foundation, Inc.
20550 # Written by Gordon Matzigkeit, 1996
20551 #
20552 # This file is part of GNU Libtool.
20553 #
20554 # GNU Libtool is free software; you can redistribute it and/or
20555 # modify it under the terms of the GNU General Public License as
20556 # published by the Free Software Foundation; either version 2 of
20557 # the License, or (at your option) any later version.
20558 #
20559 # As a special exception to the GNU General Public License,
20560 # if you distribute this file as part of a program or library that
20561 # is built using GNU Libtool, you may include this file under the
20562 # same distribution terms that you use for the rest of that program.
20563 #
20564 # GNU Libtool is distributed in the hope that it will be useful,
20565 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20566 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20567 # GNU General Public License for more details.
20568 #
20569 # You should have received a copy of the GNU General Public License
20570 # along with GNU Libtool; see the file COPYING. If not, a copy
20571 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20572 # obtained by writing to the Free Software Foundation, Inc.,
20573 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20574
20575
20576 # The names of the tagged configurations supported by this script.
20577 available_tags=""
20578
20579 # ### BEGIN LIBTOOL CONFIG
20580
20581 # Whether or not to build static libraries.
20582 build_old_libs=$enable_static
20583
20584 # Which release of libtool.m4 was used?
20585 macro_version=$macro_version
20586 macro_revision=$macro_revision
20587
20588 # Whether or not to build shared libraries.
20589 build_libtool_libs=$enable_shared
20590
20591 # What type of objects to build.
20592 pic_mode=$pic_mode
20593
20594 # Whether or not to optimize for fast installation.
20595 fast_install=$enable_fast_install
20596
20597 # Shell to use when invoking shell scripts.
20598 SHELL=$lt_SHELL
20599
20600 # An echo program that protects backslashes.
20601 ECHO=$lt_ECHO
20602
20603 # The PATH separator for the build system.
20604 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20605
20606 # The host system.
20607 host_alias=$host_alias
20608 host=$host
20609 host_os=$host_os
20610
20611 # The build system.
20612 build_alias=$build_alias
20613 build=$build
20614 build_os=$build_os
20615
20616 # A sed program that does not truncate output.
20617 SED=$lt_SED
20618
20619 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20620 Xsed="\$SED -e 1s/^X//"
20621
20622 # A grep program that handles long lines.
20623 GREP=$lt_GREP
20624
20625 # An ERE matcher.
20626 EGREP=$lt_EGREP
20627
20628 # A literal string matcher.
20629 FGREP=$lt_FGREP
20630
20631 # A BSD- or MS-compatible name lister.
20632 NM=$lt_NM
20633
20634 # Whether we need soft or hard links.
20635 LN_S=$lt_LN_S
20636
20637 # What is the maximum length of a command?
20638 max_cmd_len=$max_cmd_len
20639
20640 # Object file suffix (normally "o").
20641 objext=$ac_objext
20642
20643 # Executable file suffix (normally "").
20644 exeext=$exeext
20645
20646 # whether the shell understands "unset".
20647 lt_unset=$lt_unset
20648
20649 # turn spaces into newlines.
20650 SP2NL=$lt_lt_SP2NL
20651
20652 # turn newlines into spaces.
20653 NL2SP=$lt_lt_NL2SP
20654
20655 # convert \$build file names to \$host format.
20656 to_host_file_cmd=$lt_cv_to_host_file_cmd
20657
20658 # convert \$build files to toolchain format.
20659 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20660
20661 # An object symbol dumper.
20662 OBJDUMP=$lt_OBJDUMP
20663
20664 # Method to check whether dependent libraries are shared objects.
20665 deplibs_check_method=$lt_deplibs_check_method
20666
20667 # Command to use when deplibs_check_method = "file_magic".
20668 file_magic_cmd=$lt_file_magic_cmd
20669
20670 # How to find potential files when deplibs_check_method = "file_magic".
20671 file_magic_glob=$lt_file_magic_glob
20672
20673 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20674 want_nocaseglob=$lt_want_nocaseglob
20675
20676 # DLL creation program.
20677 DLLTOOL=$lt_DLLTOOL
20678
20679 # Command to associate shared and link libraries.
20680 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20681
20682 # The archiver.
20683 AR=$lt_AR
20684
20685 # Flags to create an archive.
20686 AR_FLAGS=$lt_AR_FLAGS
20687
20688 # How to feed a file listing to the archiver.
20689 archiver_list_spec=$lt_archiver_list_spec
20690
20691 # A symbol stripping program.
20692 STRIP=$lt_STRIP
20693
20694 # Commands used to install an old-style archive.
20695 RANLIB=$lt_RANLIB
20696 old_postinstall_cmds=$lt_old_postinstall_cmds
20697 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20698
20699 # Whether to use a lock for old archive extraction.
20700 lock_old_archive_extraction=$lock_old_archive_extraction
20701
20702 # A C compiler.
20703 LTCC=$lt_CC
20704
20705 # LTCC compiler flags.
20706 LTCFLAGS=$lt_CFLAGS
20707
20708 # Take the output of nm and produce a listing of raw symbols and C names.
20709 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20710
20711 # Transform the output of nm in a proper C declaration.
20712 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20713
20714 # Transform the output of nm in a C name address pair.
20715 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20716
20717 # Transform the output of nm in a C name address pair when lib prefix is needed.
20718 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20719
20720 # Specify filename containing input files for \$NM.
20721 nm_file_list_spec=$lt_nm_file_list_spec
20722
20723 # The root where to search for dependent libraries,and in which our libraries should be installed.
20724 lt_sysroot=$lt_sysroot
20725
20726 # The name of the directory that contains temporary libtool files.
20727 objdir=$objdir
20728
20729 # Used to examine libraries when file_magic_cmd begins with "file".
20730 MAGIC_CMD=$MAGIC_CMD
20731
20732 # Must we lock files when doing compilation?
20733 need_locks=$lt_need_locks
20734
20735 # Manifest tool.
20736 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20737
20738 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20739 DSYMUTIL=$lt_DSYMUTIL
20740
20741 # Tool to change global to local symbols on Mac OS X.
20742 NMEDIT=$lt_NMEDIT
20743
20744 # Tool to manipulate fat objects and archives on Mac OS X.
20745 LIPO=$lt_LIPO
20746
20747 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20748 OTOOL=$lt_OTOOL
20749
20750 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20751 OTOOL64=$lt_OTOOL64
20752
20753 # Old archive suffix (normally "a").
20754 libext=$libext
20755
20756 # Shared library suffix (normally ".so").
20757 shrext_cmds=$lt_shrext_cmds
20758
20759 # The commands to extract the exported symbol list from a shared archive.
20760 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20761
20762 # Variables whose values should be saved in libtool wrapper scripts and
20763 # restored at link time.
20764 variables_saved_for_relink=$lt_variables_saved_for_relink
20765
20766 # Do we need the "lib" prefix for modules?
20767 need_lib_prefix=$need_lib_prefix
20768
20769 # Do we need a version for libraries?
20770 need_version=$need_version
20771
20772 # Library versioning type.
20773 version_type=$version_type
20774
20775 # Shared library runtime path variable.
20776 runpath_var=$runpath_var
20777
20778 # Shared library path variable.
20779 shlibpath_var=$shlibpath_var
20780
20781 # Is shlibpath searched before the hard-coded library search path?
20782 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20783
20784 # Format of library name prefix.
20785 libname_spec=$lt_libname_spec
20786
20787 # List of archive names. First name is the real one, the rest are links.
20788 # The last name is the one that the linker finds with -lNAME
20789 library_names_spec=$lt_library_names_spec
20790
20791 # The coded name of the library, if different from the real name.
20792 soname_spec=$lt_soname_spec
20793
20794 # Permission mode override for installation of shared libraries.
20795 install_override_mode=$lt_install_override_mode
20796
20797 # Command to use after installation of a shared archive.
20798 postinstall_cmds=$lt_postinstall_cmds
20799
20800 # Command to use after uninstallation of a shared archive.
20801 postuninstall_cmds=$lt_postuninstall_cmds
20802
20803 # Commands used to finish a libtool library installation in a directory.
20804 finish_cmds=$lt_finish_cmds
20805
20806 # As "finish_cmds", except a single script fragment to be evaled but
20807 # not shown.
20808 finish_eval=$lt_finish_eval
20809
20810 # Whether we should hardcode library paths into libraries.
20811 hardcode_into_libs=$hardcode_into_libs
20812
20813 # Compile-time system search path for libraries.
20814 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20815
20816 # Run-time system search path for libraries.
20817 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20818
20819 # Whether dlopen is supported.
20820 dlopen_support=$enable_dlopen
20821
20822 # Whether dlopen of programs is supported.
20823 dlopen_self=$enable_dlopen_self
20824
20825 # Whether dlopen of statically linked programs is supported.
20826 dlopen_self_static=$enable_dlopen_self_static
20827
20828 # Commands to strip libraries.
20829 old_striplib=$lt_old_striplib
20830 striplib=$lt_striplib
20831
20832
20833 # The linker used to build libraries.
20834 LD=$lt_LD
20835
20836 # How to create reloadable object files.
20837 reload_flag=$lt_reload_flag
20838 reload_cmds=$lt_reload_cmds
20839
20840 # Commands used to build an old-style archive.
20841 old_archive_cmds=$lt_old_archive_cmds
20842
20843 # A language specific compiler.
20844 CC=$lt_compiler
20845
20846 # Is the compiler the GNU compiler?
20847 with_gcc=$GCC
20848
20849 # Compiler flag to turn off builtin functions.
20850 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20851
20852 # Additional compiler flags for building library objects.
20853 pic_flag=$lt_lt_prog_compiler_pic
20854
20855 # How to pass a linker flag through the compiler.
20856 wl=$lt_lt_prog_compiler_wl
20857
20858 # Compiler flag to prevent dynamic linking.
20859 link_static_flag=$lt_lt_prog_compiler_static
20860
20861 # Does compiler simultaneously support -c and -o options?
20862 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20863
20864 # Whether or not to add -lc for building shared libraries.
20865 build_libtool_need_lc=$archive_cmds_need_lc
20866
20867 # Whether or not to disallow shared libs when runtime libs are static.
20868 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20869
20870 # Compiler flag to allow reflexive dlopens.
20871 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20872
20873 # Compiler flag to generate shared objects directly from archives.
20874 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20875
20876 # Whether the compiler copes with passing no objects directly.
20877 compiler_needs_object=$lt_compiler_needs_object
20878
20879 # Create an old-style archive from a shared archive.
20880 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20881
20882 # Create a temporary old-style archive to link instead of a shared archive.
20883 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20884
20885 # Commands used to build a shared archive.
20886 archive_cmds=$lt_archive_cmds
20887 archive_expsym_cmds=$lt_archive_expsym_cmds
20888
20889 # Commands used to build a loadable module if different from building
20890 # a shared archive.
20891 module_cmds=$lt_module_cmds
20892 module_expsym_cmds=$lt_module_expsym_cmds
20893
20894 # Whether we are building with GNU ld or not.
20895 with_gnu_ld=$lt_with_gnu_ld
20896
20897 # Flag that allows shared libraries with undefined symbols to be built.
20898 allow_undefined_flag=$lt_allow_undefined_flag
20899
20900 # Flag that enforces no undefined symbols.
20901 no_undefined_flag=$lt_no_undefined_flag
20902
20903 # Flag to hardcode \$libdir into a binary during linking.
20904 # This must work even if \$libdir does not exist
20905 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20906
20907 # Whether we need a single "-rpath" flag with a separated argument.
20908 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20909
20910 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20911 # DIR into the resulting binary.
20912 hardcode_direct=$hardcode_direct
20913
20914 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20915 # DIR into the resulting binary and the resulting library dependency is
20916 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20917 # library is relocated.
20918 hardcode_direct_absolute=$hardcode_direct_absolute
20919
20920 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20921 # into the resulting binary.
20922 hardcode_minus_L=$hardcode_minus_L
20923
20924 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20925 # into the resulting binary.
20926 hardcode_shlibpath_var=$hardcode_shlibpath_var
20927
20928 # Set to "yes" if building a shared library automatically hardcodes DIR
20929 # into the library and all subsequent libraries and executables linked
20930 # against it.
20931 hardcode_automatic=$hardcode_automatic
20932
20933 # Set to yes if linker adds runtime paths of dependent libraries
20934 # to runtime path list.
20935 inherit_rpath=$inherit_rpath
20936
20937 # Whether libtool must link a program against all its dependency libraries.
20938 link_all_deplibs=$link_all_deplibs
20939
20940 # Set to "yes" if exported symbols are required.
20941 always_export_symbols=$always_export_symbols
20942
20943 # The commands to list exported symbols.
20944 export_symbols_cmds=$lt_export_symbols_cmds
20945
20946 # Symbols that should not be listed in the preloaded symbols.
20947 exclude_expsyms=$lt_exclude_expsyms
20948
20949 # Symbols that must always be exported.
20950 include_expsyms=$lt_include_expsyms
20951
20952 # Commands necessary for linking programs (against libraries) with templates.
20953 prelink_cmds=$lt_prelink_cmds
20954
20955 # Commands necessary for finishing linking programs.
20956 postlink_cmds=$lt_postlink_cmds
20957
20958 # Specify filename containing input files.
20959 file_list_spec=$lt_file_list_spec
20960
20961 # How to hardcode a shared library path into an executable.
20962 hardcode_action=$hardcode_action
20963
20964 # ### END LIBTOOL CONFIG
20965
20966 _LT_EOF
20967
20968 case $host_os in
20969 aix3*)
20970 cat <<\_LT_EOF >> "$cfgfile"
20971 # AIX sometimes has problems with the GCC collect2 program. For some
20972 # reason, if we set the COLLECT_NAMES environment variable, the problems
20973 # vanish in a puff of smoke.
20974 if test "X${COLLECT_NAMES+set}" != Xset; then
20975 COLLECT_NAMES=
20976 export COLLECT_NAMES
20977 fi
20978 _LT_EOF
20979 ;;
20980 esac
20981
20982
20983 ltmain="$ac_aux_dir/ltmain.sh"
20984
20985
20986 # We use sed instead of cat because bash on DJGPP gets confused if
20987 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20988 # text mode, it properly converts lines to CR/LF. This bash problem
20989 # is reportedly fixed, but why not run on old versions too?
20990 sed '$q' "$ltmain" >> "$cfgfile" \
20991 || (rm -f "$cfgfile"; exit 1)
20992
20993 if test x"$xsi_shell" = xyes; then
20994 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20995 func_dirname ()\
20996 {\
20997 \ case ${1} in\
20998 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20999 \ * ) func_dirname_result="${3}" ;;\
21000 \ esac\
21001 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21002 && mv -f "$cfgfile.tmp" "$cfgfile" \
21003 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21004 test 0 -eq $? || _lt_function_replace_fail=:
21005
21006
21007 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21008 func_basename ()\
21009 {\
21010 \ func_basename_result="${1##*/}"\
21011 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21012 && mv -f "$cfgfile.tmp" "$cfgfile" \
21013 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21014 test 0 -eq $? || _lt_function_replace_fail=:
21015
21016
21017 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21018 func_dirname_and_basename ()\
21019 {\
21020 \ case ${1} in\
21021 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21022 \ * ) func_dirname_result="${3}" ;;\
21023 \ esac\
21024 \ func_basename_result="${1##*/}"\
21025 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21026 && mv -f "$cfgfile.tmp" "$cfgfile" \
21027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21028 test 0 -eq $? || _lt_function_replace_fail=:
21029
21030
21031 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21032 func_stripname ()\
21033 {\
21034 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21035 \ # positional parameters, so assign one to ordinary parameter first.\
21036 \ func_stripname_result=${3}\
21037 \ func_stripname_result=${func_stripname_result#"${1}"}\
21038 \ func_stripname_result=${func_stripname_result%"${2}"}\
21039 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21040 && mv -f "$cfgfile.tmp" "$cfgfile" \
21041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21042 test 0 -eq $? || _lt_function_replace_fail=:
21043
21044
21045 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21046 func_split_long_opt ()\
21047 {\
21048 \ func_split_long_opt_name=${1%%=*}\
21049 \ func_split_long_opt_arg=${1#*=}\
21050 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21051 && mv -f "$cfgfile.tmp" "$cfgfile" \
21052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21053 test 0 -eq $? || _lt_function_replace_fail=:
21054
21055
21056 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21057 func_split_short_opt ()\
21058 {\
21059 \ func_split_short_opt_arg=${1#??}\
21060 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21061 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21062 && mv -f "$cfgfile.tmp" "$cfgfile" \
21063 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21064 test 0 -eq $? || _lt_function_replace_fail=:
21065
21066
21067 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21068 func_lo2o ()\
21069 {\
21070 \ case ${1} in\
21071 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21072 \ *) func_lo2o_result=${1} ;;\
21073 \ esac\
21074 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21075 && mv -f "$cfgfile.tmp" "$cfgfile" \
21076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21077 test 0 -eq $? || _lt_function_replace_fail=:
21078
21079
21080 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21081 func_xform ()\
21082 {\
21083 func_xform_result=${1%.*}.lo\
21084 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21085 && mv -f "$cfgfile.tmp" "$cfgfile" \
21086 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21087 test 0 -eq $? || _lt_function_replace_fail=:
21088
21089
21090 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21091 func_arith ()\
21092 {\
21093 func_arith_result=$(( $* ))\
21094 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21095 && mv -f "$cfgfile.tmp" "$cfgfile" \
21096 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21097 test 0 -eq $? || _lt_function_replace_fail=:
21098
21099
21100 sed -e '/^func_len ()$/,/^} # func_len /c\
21101 func_len ()\
21102 {\
21103 func_len_result=${#1}\
21104 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21105 && mv -f "$cfgfile.tmp" "$cfgfile" \
21106 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21107 test 0 -eq $? || _lt_function_replace_fail=:
21108
21109 fi
21110
21111 if test x"$lt_shell_append" = xyes; then
21112 sed -e '/^func_append ()$/,/^} # func_append /c\
21113 func_append ()\
21114 {\
21115 eval "${1}+=\\${2}"\
21116 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21117 && mv -f "$cfgfile.tmp" "$cfgfile" \
21118 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21119 test 0 -eq $? || _lt_function_replace_fail=:
21120
21121
21122 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21123 func_append_quoted ()\
21124 {\
21125 \ func_quote_for_eval "${2}"\
21126 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21127 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21128 && mv -f "$cfgfile.tmp" "$cfgfile" \
21129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21130 test 0 -eq $? || _lt_function_replace_fail=:
21131
21132
21133 # Save a `func_append' function call where possible by direct use of '+='
21134 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21135 && mv -f "$cfgfile.tmp" "$cfgfile" \
21136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21137 test 0 -eq $? || _lt_function_replace_fail=:
21138 else
21139 # Save a `func_append' function call even when '+=' is not available
21140 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21141 && mv -f "$cfgfile.tmp" "$cfgfile" \
21142 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21143 test 0 -eq $? || _lt_function_replace_fail=:
21144 fi
21145
21146 if test x"$_lt_function_replace_fail" = x":"; then
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21148 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21149 fi
21150
21151
21152 mv -f "$cfgfile" "$ofile" ||
21153 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21154 chmod +x "$ofile"
21155
21156 ;;
21157
21158 esac
21159 done # for ac_tag
21160
21161
21162 as_fn_exit 0
21163 _ACEOF
21164 ac_clean_files=$ac_clean_files_save
21165
21166 test $ac_write_fail = 0 ||
21167 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21168
21169
21170 # configure is writing to config.log, and then calls config.status.
21171 # config.status does its own redirection, appending to config.log.
21172 # Unfortunately, on DOS this fails, as config.log is still kept open
21173 # by configure, so config.status won't be able to write to it; its
21174 # output is simply discarded. So we exec the FD to /dev/null,
21175 # effectively closing config.log, so it can be properly (re)opened and
21176 # appended to by config.status. When coming back to configure, we
21177 # need to make the FD available again.
21178 if test "$no_create" != yes; then
21179 ac_cs_success=:
21180 ac_config_status_args=
21181 test "$silent" = yes &&
21182 ac_config_status_args="$ac_config_status_args --quiet"
21183 exec 5>/dev/null
21184 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21185 exec 5>>config.log
21186 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21187 # would make configure fail if this is the last instruction.
21188 $ac_cs_success || as_fn_exit 1
21189 fi
21190 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21192 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21193 fi
21194
21195