take two
[profile/ivi/xorg-x11-drv-intel.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-intel 2.20.9.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-intel'
593 PACKAGE_TARNAME='xf86-video-intel'
594 PACKAGE_VERSION='2.20.9'
595 PACKAGE_STRING='xf86-video-intel 2.20.9'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 moduledir
641 DRIVER_NAME
642 VALGRIND_LIBS
643 VALGRIND_CFLAGS
644 FULL_DEBUG_FALSE
645 FULL_DEBUG_TRUE
646 DEBUG_FALSE
647 DEBUG_TRUE
648 UMS_ONLY_FALSE
649 UMS_ONLY_TRUE
650 KMS_ONLY_FALSE
651 KMS_ONLY_TRUE
652 XVMC_FALSE
653 XVMC_TRUE
654 XVMCLIB_LIBS
655 XVMCLIB_CFLAGS
656 DRI2_FALSE
657 DRI2_TRUE
658 DRI_FALSE
659 DRI_TRUE
660 PCIACCESS_LIBS
661 PCIACCESS_CFLAGS
662 DRI2_LIBS
663 DRI2_CFLAGS
664 DRI_LIBS
665 DRI_CFLAGS
666 DRM_LIBS
667 DRM_CFLAGS
668 USE_ASYNC_SWAP_FALSE
669 USE_ASYNC_SWAP_TRUE
670 USE_USERPTR_FALSE
671 USE_USERPTR_TRUE
672 DGA_FALSE
673 DGA_TRUE
674 XAA_FALSE
675 XAA_TRUE
676 XORG_LIBS
677 XORG_CFLAGS
678 LIBGLAMOR_EGL_LIBS
679 LIBGLAMOR_EGL_CFLAGS
680 LIBGLAMOR_LIBS
681 LIBGLAMOR_CFLAGS
682 GLAMOR_FALSE
683 GLAMOR_TRUE
684 DRMINTEL_LIBS
685 DRMINTEL_CFLAGS
686 UXA_FALSE
687 UXA_TRUE
688 SNA_FALSE
689 SNA_TRUE
690 HAVE_X11_FALSE
691 HAVE_X11_TRUE
692 X11_LIBS
693 X11_CFLAGS
694 UDEV_LIBS
695 UDEV_CFLAGS
696 HAVE_GEN4ASM_FALSE
697 HAVE_GEN4ASM_TRUE
698 GEN4ASM_LIBS
699 GEN4ASM_CFLAGS
700 HAVE_DOT_GIT_FALSE
701 HAVE_DOT_GIT_TRUE
702 OTOOL64
703 OTOOL
704 LIPO
705 NMEDIT
706 DSYMUTIL
707 MANIFEST_TOOL
708 RANLIB
709 ac_ct_AR
710 AR
711 DLLTOOL
712 OBJDUMP
713 LN_S
714 NM
715 ac_ct_DUMPBIN
716 DUMPBIN
717 LD
718 FGREP
719 LIBTOOL
720 AM_BACKSLASH
721 AM_DEFAULT_VERBOSITY
722 AM_DEFAULT_V
723 AM_V
724 MAN_SUBSTS
725 XORG_MAN_PAGE
726 ADMIN_MAN_DIR
727 DRIVER_MAN_DIR
728 MISC_MAN_DIR
729 FILE_MAN_DIR
730 LIB_MAN_DIR
731 APP_MAN_DIR
732 ADMIN_MAN_SUFFIX
733 DRIVER_MAN_SUFFIX
734 MISC_MAN_SUFFIX
735 FILE_MAN_SUFFIX
736 LIB_MAN_SUFFIX
737 APP_MAN_SUFFIX
738 SED
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 INSTALL_CMD
748 PKG_CONFIG_LIBDIR
749 PKG_CONFIG_PATH
750 PKG_CONFIG
751 CHANGELOG_CMD
752 STRICT_CFLAGS
753 CWARNFLAGS
754 BASE_CFLAGS
755 EGREP
756 GREP
757 CPP
758 am__fastdepCC_FALSE
759 am__fastdepCC_TRUE
760 CCDEPMODE
761 am__nodep
762 AMDEPBACKSLASH
763 AMDEP_FALSE
764 AMDEP_TRUE
765 am__quote
766 am__include
767 DEPDIR
768 OBJEXT
769 EXEEXT
770 ac_ct_CC
771 CPPFLAGS
772 LDFLAGS
773 CFLAGS
774 CC
775 MAINT
776 MAINTAINER_MODE_FALSE
777 MAINTAINER_MODE_TRUE
778 am__untar
779 am__tar
780 AMTAR
781 am__leading_dot
782 SET_MAKE
783 AWK
784 mkdir_p
785 MKDIR_P
786 INSTALL_STRIP_PROGRAM
787 STRIP
788 install_sh
789 MAKEINFO
790 AUTOHEADER
791 AUTOMAKE
792 AUTOCONF
793 ACLOCAL
794 VERSION
795 PACKAGE
796 CYGPATH_W
797 am__isrc
798 INSTALL_DATA
799 INSTALL_SCRIPT
800 INSTALL_PROGRAM
801 target_alias
802 host_alias
803 build_alias
804 LIBS
805 ECHO_T
806 ECHO_N
807 ECHO_C
808 DEFS
809 mandir
810 localedir
811 libdir
812 psdir
813 pdfdir
814 dvidir
815 htmldir
816 infodir
817 docdir
818 oldincludedir
819 includedir
820 localstatedir
821 sharedstatedir
822 sysconfdir
823 datadir
824 datarootdir
825 libexecdir
826 sbindir
827 bindir
828 program_transform_name
829 prefix
830 exec_prefix
831 PACKAGE_URL
832 PACKAGE_BUGREPORT
833 PACKAGE_STRING
834 PACKAGE_VERSION
835 PACKAGE_TARNAME
836 PACKAGE_NAME
837 PATH_SEPARATOR
838 SHELL'
839 ac_subst_files=''
840 ac_user_opts='
841 enable_option_checking
842 enable_maintainer_mode
843 enable_dependency_tracking
844 enable_selective_werror
845 enable_strict_compilation
846 enable_silent_rules
847 enable_static
848 enable_shared
849 with_pic
850 enable_fast_install
851 with_gnu_ld
852 with_sysroot
853 enable_libtool_lock
854 enable_largefile
855 with_builderstring
856 enable_udev
857 with_xorg_module_dir
858 enable_dri
859 enable_xvmc
860 enable_kms_only
861 enable_ums_only
862 enable_sna
863 enable_uxa
864 enable_glamor
865 enable_xaa
866 enable_dga
867 with_default_accel
868 enable_userptr
869 enable_async_swap
870 enable_debug
871 '
872       ac_precious_vars='build_alias
873 host_alias
874 target_alias
875 CC
876 CFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
880 CPP
881 PKG_CONFIG
882 PKG_CONFIG_PATH
883 PKG_CONFIG_LIBDIR
884 GEN4ASM_CFLAGS
885 GEN4ASM_LIBS
886 UDEV_CFLAGS
887 UDEV_LIBS
888 X11_CFLAGS
889 X11_LIBS
890 DRMINTEL_CFLAGS
891 DRMINTEL_LIBS
892 LIBGLAMOR_CFLAGS
893 LIBGLAMOR_LIBS
894 LIBGLAMOR_EGL_CFLAGS
895 LIBGLAMOR_EGL_LIBS
896 XORG_CFLAGS
897 XORG_LIBS
898 DRM_CFLAGS
899 DRM_LIBS
900 DRI_CFLAGS
901 DRI_LIBS
902 DRI2_CFLAGS
903 DRI2_LIBS
904 PCIACCESS_CFLAGS
905 PCIACCESS_LIBS
906 XVMCLIB_CFLAGS
907 XVMCLIB_LIBS
908 VALGRIND_CFLAGS
909 VALGRIND_LIBS'
910
911
912 # Initialize some variables set by options.
913 ac_init_help=
914 ac_init_version=false
915 ac_unrecognized_opts=
916 ac_unrecognized_sep=
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
919 cache_file=/dev/null
920 exec_prefix=NONE
921 no_create=
922 no_recursion=
923 prefix=NONE
924 program_prefix=NONE
925 program_suffix=NONE
926 program_transform_name=s,x,x,
927 silent=
928 site=
929 srcdir=
930 verbose=
931 x_includes=NONE
932 x_libraries=NONE
933
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir='${exec_prefix}/bin'
941 sbindir='${exec_prefix}/sbin'
942 libexecdir='${exec_prefix}/libexec'
943 datarootdir='${prefix}/share'
944 datadir='${datarootdir}'
945 sysconfdir='${prefix}/etc'
946 sharedstatedir='${prefix}/com'
947 localstatedir='${prefix}/var'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
951 infodir='${datarootdir}/info'
952 htmldir='${docdir}'
953 dvidir='${docdir}'
954 pdfdir='${docdir}'
955 psdir='${docdir}'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
959
960 ac_prev=
961 ac_dashdash=
962 for ac_option
963 do
964   # If the previous option needs an argument, assign it.
965   if test -n "$ac_prev"; then
966     eval $ac_prev=\$ac_option
967     ac_prev=
968     continue
969   fi
970
971   case $ac_option in
972   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973   *=)   ac_optarg= ;;
974   *)    ac_optarg=yes ;;
975   esac
976
977   # Accept the important Cygnus configure options, so we can diagnose typos.
978
979   case $ac_dashdash$ac_option in
980   --)
981     ac_dashdash=yes ;;
982
983   -bindir | --bindir | --bindi | --bind | --bin | --bi)
984     ac_prev=bindir ;;
985   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986     bindir=$ac_optarg ;;
987
988   -build | --build | --buil | --bui | --bu)
989     ac_prev=build_alias ;;
990   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991     build_alias=$ac_optarg ;;
992
993   -cache-file | --cache-file | --cache-fil | --cache-fi \
994   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995     ac_prev=cache_file ;;
996   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998     cache_file=$ac_optarg ;;
999
1000   --config-cache | -C)
1001     cache_file=config.cache ;;
1002
1003   -datadir | --datadir | --datadi | --datad)
1004     ac_prev=datadir ;;
1005   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006     datadir=$ac_optarg ;;
1007
1008   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009   | --dataroo | --dataro | --datar)
1010     ac_prev=datarootdir ;;
1011   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013     datarootdir=$ac_optarg ;;
1014
1015   -disable-* | --disable-*)
1016     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017     # Reject names that are not valid shell variable names.
1018     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019       as_fn_error $? "invalid feature name: $ac_useropt"
1020     ac_useropt_orig=$ac_useropt
1021     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022     case $ac_user_opts in
1023       *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027          ac_unrecognized_sep=', ';;
1028     esac
1029     eval enable_$ac_useropt=no ;;
1030
1031   -docdir | --docdir | --docdi | --doc | --do)
1032     ac_prev=docdir ;;
1033   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034     docdir=$ac_optarg ;;
1035
1036   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037     ac_prev=dvidir ;;
1038   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039     dvidir=$ac_optarg ;;
1040
1041   -enable-* | --enable-*)
1042     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043     # Reject names that are not valid shell variable names.
1044     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045       as_fn_error $? "invalid feature name: $ac_useropt"
1046     ac_useropt_orig=$ac_useropt
1047     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048     case $ac_user_opts in
1049       *"
1050 "enable_$ac_useropt"
1051 "*) ;;
1052       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053          ac_unrecognized_sep=', ';;
1054     esac
1055     eval enable_$ac_useropt=\$ac_optarg ;;
1056
1057   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059   | --exec | --exe | --ex)
1060     ac_prev=exec_prefix ;;
1061   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063   | --exec=* | --exe=* | --ex=*)
1064     exec_prefix=$ac_optarg ;;
1065
1066   -gas | --gas | --ga | --g)
1067     # Obsolete; use --with-gas.
1068     with_gas=yes ;;
1069
1070   -help | --help | --hel | --he | -h)
1071     ac_init_help=long ;;
1072   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073     ac_init_help=recursive ;;
1074   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075     ac_init_help=short ;;
1076
1077   -host | --host | --hos | --ho)
1078     ac_prev=host_alias ;;
1079   -host=* | --host=* | --hos=* | --ho=*)
1080     host_alias=$ac_optarg ;;
1081
1082   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083     ac_prev=htmldir ;;
1084   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085   | --ht=*)
1086     htmldir=$ac_optarg ;;
1087
1088   -includedir | --includedir | --includedi | --included | --include \
1089   | --includ | --inclu | --incl | --inc)
1090     ac_prev=includedir ;;
1091   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092   | --includ=* | --inclu=* | --incl=* | --inc=*)
1093     includedir=$ac_optarg ;;
1094
1095   -infodir | --infodir | --infodi | --infod | --info | --inf)
1096     ac_prev=infodir ;;
1097   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098     infodir=$ac_optarg ;;
1099
1100   -libdir | --libdir | --libdi | --libd)
1101     ac_prev=libdir ;;
1102   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103     libdir=$ac_optarg ;;
1104
1105   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106   | --libexe | --libex | --libe)
1107     ac_prev=libexecdir ;;
1108   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109   | --libexe=* | --libex=* | --libe=*)
1110     libexecdir=$ac_optarg ;;
1111
1112   -localedir | --localedir | --localedi | --localed | --locale)
1113     ac_prev=localedir ;;
1114   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115     localedir=$ac_optarg ;;
1116
1117   -localstatedir | --localstatedir | --localstatedi | --localstated \
1118   | --localstate | --localstat | --localsta | --localst | --locals)
1119     ac_prev=localstatedir ;;
1120   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122     localstatedir=$ac_optarg ;;
1123
1124   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125     ac_prev=mandir ;;
1126   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127     mandir=$ac_optarg ;;
1128
1129   -nfp | --nfp | --nf)
1130     # Obsolete; use --without-fp.
1131     with_fp=no ;;
1132
1133   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134   | --no-cr | --no-c | -n)
1135     no_create=yes ;;
1136
1137   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139     no_recursion=yes ;;
1140
1141   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143   | --oldin | --oldi | --old | --ol | --o)
1144     ac_prev=oldincludedir ;;
1145   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148     oldincludedir=$ac_optarg ;;
1149
1150   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151     ac_prev=prefix ;;
1152   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153     prefix=$ac_optarg ;;
1154
1155   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156   | --program-pre | --program-pr | --program-p)
1157     ac_prev=program_prefix ;;
1158   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160     program_prefix=$ac_optarg ;;
1161
1162   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163   | --program-suf | --program-su | --program-s)
1164     ac_prev=program_suffix ;;
1165   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167     program_suffix=$ac_optarg ;;
1168
1169   -program-transform-name | --program-transform-name \
1170   | --program-transform-nam | --program-transform-na \
1171   | --program-transform-n | --program-transform- \
1172   | --program-transform | --program-transfor \
1173   | --program-transfo | --program-transf \
1174   | --program-trans | --program-tran \
1175   | --progr-tra | --program-tr | --program-t)
1176     ac_prev=program_transform_name ;;
1177   -program-transform-name=* | --program-transform-name=* \
1178   | --program-transform-nam=* | --program-transform-na=* \
1179   | --program-transform-n=* | --program-transform-=* \
1180   | --program-transform=* | --program-transfor=* \
1181   | --program-transfo=* | --program-transf=* \
1182   | --program-trans=* | --program-tran=* \
1183   | --progr-tra=* | --program-tr=* | --program-t=*)
1184     program_transform_name=$ac_optarg ;;
1185
1186   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187     ac_prev=pdfdir ;;
1188   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189     pdfdir=$ac_optarg ;;
1190
1191   -psdir | --psdir | --psdi | --psd | --ps)
1192     ac_prev=psdir ;;
1193   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194     psdir=$ac_optarg ;;
1195
1196   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197   | -silent | --silent | --silen | --sile | --sil)
1198     silent=yes ;;
1199
1200   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201     ac_prev=sbindir ;;
1202   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203   | --sbi=* | --sb=*)
1204     sbindir=$ac_optarg ;;
1205
1206   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208   | --sharedst | --shareds | --shared | --share | --shar \
1209   | --sha | --sh)
1210     ac_prev=sharedstatedir ;;
1211   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214   | --sha=* | --sh=*)
1215     sharedstatedir=$ac_optarg ;;
1216
1217   -site | --site | --sit)
1218     ac_prev=site ;;
1219   -site=* | --site=* | --sit=*)
1220     site=$ac_optarg ;;
1221
1222   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223     ac_prev=srcdir ;;
1224   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225     srcdir=$ac_optarg ;;
1226
1227   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228   | --syscon | --sysco | --sysc | --sys | --sy)
1229     ac_prev=sysconfdir ;;
1230   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232     sysconfdir=$ac_optarg ;;
1233
1234   -target | --target | --targe | --targ | --tar | --ta | --t)
1235     ac_prev=target_alias ;;
1236   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237     target_alias=$ac_optarg ;;
1238
1239   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240     verbose=yes ;;
1241
1242   -version | --version | --versio | --versi | --vers | -V)
1243     ac_init_version=: ;;
1244
1245   -with-* | --with-*)
1246     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247     # Reject names that are not valid shell variable names.
1248     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249       as_fn_error $? "invalid package name: $ac_useropt"
1250     ac_useropt_orig=$ac_useropt
1251     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252     case $ac_user_opts in
1253       *"
1254 "with_$ac_useropt"
1255 "*) ;;
1256       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257          ac_unrecognized_sep=', ';;
1258     esac
1259     eval with_$ac_useropt=\$ac_optarg ;;
1260
1261   -without-* | --without-*)
1262     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263     # Reject names that are not valid shell variable names.
1264     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265       as_fn_error $? "invalid package name: $ac_useropt"
1266     ac_useropt_orig=$ac_useropt
1267     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268     case $ac_user_opts in
1269       *"
1270 "with_$ac_useropt"
1271 "*) ;;
1272       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273          ac_unrecognized_sep=', ';;
1274     esac
1275     eval with_$ac_useropt=no ;;
1276
1277   --x)
1278     # Obsolete; use --with-x.
1279     with_x=yes ;;
1280
1281   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282   | --x-incl | --x-inc | --x-in | --x-i)
1283     ac_prev=x_includes ;;
1284   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286     x_includes=$ac_optarg ;;
1287
1288   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290     ac_prev=x_libraries ;;
1291   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293     x_libraries=$ac_optarg ;;
1294
1295   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1296 Try \`$0 --help' for more information"
1297     ;;
1298
1299   *=*)
1300     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301     # Reject names that are not valid shell variable names.
1302     case $ac_envvar in #(
1303       '' | [0-9]* | *[!_$as_cr_alnum]* )
1304       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1305     esac
1306     eval $ac_envvar=\$ac_optarg
1307     export $ac_envvar ;;
1308
1309   *)
1310     # FIXME: should be removed in autoconf 3.0.
1311     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1315     ;;
1316
1317   esac
1318 done
1319
1320 if test -n "$ac_prev"; then
1321   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322   as_fn_error $? "missing argument to $ac_option"
1323 fi
1324
1325 if test -n "$ac_unrecognized_opts"; then
1326   case $enable_option_checking in
1327     no) ;;
1328     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1329     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330   esac
1331 fi
1332
1333 # Check all directory arguments for consistency.
1334 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335                 datadir sysconfdir sharedstatedir localstatedir includedir \
1336                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337                 libdir localedir mandir
1338 do
1339   eval ac_val=\$$ac_var
1340   # Remove trailing slashes.
1341   case $ac_val in
1342     */ )
1343       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344       eval $ac_var=\$ac_val;;
1345   esac
1346   # Be sure to have absolute directory names.
1347   case $ac_val in
1348     [\\/$]* | ?:[\\/]* )  continue;;
1349     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1350   esac
1351   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1352 done
1353
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1357 build=$build_alias
1358 host=$host_alias
1359 target=$target_alias
1360
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x; then
1363   if test "x$build_alias" = x; then
1364     cross_compiling=maybe
1365   elif test "x$build_alias" != "x$host_alias"; then
1366     cross_compiling=yes
1367   fi
1368 fi
1369
1370 ac_tool_prefix=
1371 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372
1373 test "$silent" = yes && exec 6>/dev/null
1374
1375
1376 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377 ac_ls_di=`ls -di .` &&
1378 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1379   as_fn_error $? "working directory cannot be determined"
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381   as_fn_error $? "pwd does not report name of working directory"
1382
1383
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386   ac_srcdir_defaulted=yes
1387   # Try the directory containing this script, then the parent directory.
1388   ac_confdir=`$as_dirname -- "$as_myself" ||
1389 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390          X"$as_myself" : 'X\(//\)[^/]' \| \
1391          X"$as_myself" : 'X\(//\)$' \| \
1392          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393 $as_echo X"$as_myself" |
1394     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395             s//\1/
1396             q
1397           }
1398           /^X\(\/\/\)[^/].*/{
1399             s//\1/
1400             q
1401           }
1402           /^X\(\/\/\)$/{
1403             s//\1/
1404             q
1405           }
1406           /^X\(\/\).*/{
1407             s//\1/
1408             q
1409           }
1410           s/.*/./; q'`
1411   srcdir=$ac_confdir
1412   if test ! -r "$srcdir/$ac_unique_file"; then
1413     srcdir=..
1414   fi
1415 else
1416   ac_srcdir_defaulted=no
1417 fi
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1421 fi
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 ac_abs_confdir=`(
1424         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1425         pwd)`
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428   srcdir=.
1429 fi
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1433 case $srcdir in
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 esac
1436 for ac_var in $ac_precious_vars; do
1437   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438   eval ac_env_${ac_var}_value=\$${ac_var}
1439   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441 done
1442
1443 #
1444 # Report the --help message.
1445 #
1446 if test "$ac_init_help" = "long"; then
1447   # Omit some internal or obsolete options to make the list less imposing.
1448   # This message is too long to be a string in the A/UX 3.1 sh.
1449   cat <<_ACEOF
1450 \`configure' configures xf86-video-intel 2.20.9 to adapt to many kinds of systems.
1451
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE.  See below for descriptions of some of the useful variables.
1456
1457 Defaults for the options are specified in brackets.
1458
1459 Configuration:
1460   -h, --help              display this help and exit
1461       --help=short        display options specific to this package
1462       --help=recursive    display the short help of all the included packages
1463   -V, --version           display version information and exit
1464   -q, --quiet, --silent   do not print \`checking ...' messages
1465       --cache-file=FILE   cache test results in FILE [disabled]
1466   -C, --config-cache      alias for \`--cache-file=config.cache'
1467   -n, --no-create         do not create output files
1468       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1469
1470 Installation directories:
1471   --prefix=PREFIX         install architecture-independent files in PREFIX
1472                           [$ac_default_prefix]
1473   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1474                           [PREFIX]
1475
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1480
1481 For better control, use the options below.
1482
1483 Fine tuning of the installation directories:
1484   --bindir=DIR            user executables [EPREFIX/bin]
1485   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1486   --libexecdir=DIR        program executables [EPREFIX/libexec]
1487   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1488   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1489   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1490   --libdir=DIR            object code libraries [EPREFIX/lib]
1491   --includedir=DIR        C header files [PREFIX/include]
1492   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1493   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1494   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1495   --infodir=DIR           info documentation [DATAROOTDIR/info]
1496   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1497   --mandir=DIR            man documentation [DATAROOTDIR/man]
1498   --docdir=DIR            documentation root
1499                           [DATAROOTDIR/doc/xf86-video-intel]
1500   --htmldir=DIR           html documentation [DOCDIR]
1501   --dvidir=DIR            dvi documentation [DOCDIR]
1502   --pdfdir=DIR            pdf documentation [DOCDIR]
1503   --psdir=DIR             ps documentation [DOCDIR]
1504 _ACEOF
1505
1506   cat <<\_ACEOF
1507
1508 Program names:
1509   --program-prefix=PREFIX            prepend PREFIX to installed program names
1510   --program-suffix=SUFFIX            append SUFFIX to installed program names
1511   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1512
1513 System types:
1514   --build=BUILD     configure for building on BUILD [guessed]
1515   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1516 _ACEOF
1517 fi
1518
1519 if test -n "$ac_init_help"; then
1520   case $ac_init_help in
1521      short | recursive ) echo "Configuration of xf86-video-intel 2.20.9:";;
1522    esac
1523   cat <<\_ACEOF
1524
1525 Optional Features:
1526   --disable-option-checking  ignore unrecognized --enable/--with options
1527   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1528   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1529   --enable-maintainer-mode  enable make rules and dependencies not useful
1530                           (and sometimes confusing) to the casual installer
1531   --disable-dependency-tracking  speeds up one-time build
1532   --enable-dependency-tracking   do not reject slow dependency extractors
1533   --disable-selective-werror
1534                           Turn off selective compiler errors. (default:
1535                           enabled)
1536   --enable-strict-compilation
1537                           Enable all warnings from compiler and make them
1538                           errors (default: disabled)
1539   --enable-silent-rules          less verbose build output (undo: `make V=1')
1540   --disable-silent-rules         verbose build output (undo: `make V=0')
1541   --enable-static[=PKGS]  build static libraries [default=no]
1542   --enable-shared[=PKGS]  build shared libraries [default=yes]
1543   --enable-fast-install[=PKGS]
1544                           optimize for fast installation [default=yes]
1545   --disable-libtool-lock  avoid locking (might break parallel builds)
1546   --disable-largefile     omit support for large files
1547   --disable-udev          Disable udev-based monitor hotplug detection
1548                           [default=auto]
1549   --disable-dri           Disable DRI support [[default=auto]]
1550   --disable-xvmc          Disable XvMC support [[default=yes]]
1551   --enable-kms-only       Assume KMS support [[default=no]]
1552   --enable-ums-only       Assume only UMS (no KMS) support [[default=no]]
1553   --enable-sna            Enable SandyBridge's New Acceleration (SNA)
1554                           [default=auto]
1555   --enable-uxa            Enable Unified Acceleration Architecture (UXA)
1556                           [default=yes]
1557   --enable-glamor         Enable glamor, a new GL-based acceleration
1558                           [default=no]
1559   --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1560                           [default=auto]
1561   --enable-dga            Enable legacy Direct Graphics Access (DGA)
1562                           [default=auto]
1563   --enable-userptr        Enable use of userptr (experimental) [default=no]
1564   --enable-async-swap     Enable use of asynchronous swaps (experimental)
1565                           [default=no]
1566   --enable-debug          Enables internal debugging [default=no]
1567
1568 Optional Packages:
1569   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1570   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1571   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1572                           both]
1573   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1574   --with-sysroot=DIR Search for dependent libraries within DIR
1575                         (or the compiler's sysroot if not specified).
1576   --with-builderstring=BUILDERSTRING
1577                           Additional builder string (default: use git
1578                           describe)
1579   --with-xorg-module-dir=DIR
1580                           Default xorg module directory
1581                           [[default=$libdir/xorg/modules]]
1582   --with-default-accel    Select the default acceleration method [default=uxa
1583                           if enabled, otherwise sna]
1584
1585 Some influential environment variables:
1586   CC          C compiler command
1587   CFLAGS      C compiler flags
1588   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1589               nonstandard directory <lib dir>
1590   LIBS        libraries to pass to the linker, e.g. -l<library>
1591   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1592               you have headers in a nonstandard directory <include dir>
1593   CPP         C preprocessor
1594   PKG_CONFIG  path to pkg-config utility
1595   PKG_CONFIG_PATH
1596               directories to add to pkg-config's search path
1597   PKG_CONFIG_LIBDIR
1598               path overriding pkg-config's built-in search path
1599   GEN4ASM_CFLAGS
1600               C compiler flags for GEN4ASM, overriding pkg-config
1601   GEN4ASM_LIBS
1602               linker flags for GEN4ASM, overriding pkg-config
1603   UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1604   UDEV_LIBS   linker flags for UDEV, overriding pkg-config
1605   X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1606   X11_LIBS    linker flags for X11, overriding pkg-config
1607   DRMINTEL_CFLAGS
1608               C compiler flags for DRMINTEL, overriding pkg-config
1609   DRMINTEL_LIBS
1610               linker flags for DRMINTEL, overriding pkg-config
1611   LIBGLAMOR_CFLAGS
1612               C compiler flags for LIBGLAMOR, overriding pkg-config
1613   LIBGLAMOR_LIBS
1614               linker flags for LIBGLAMOR, overriding pkg-config
1615   LIBGLAMOR_EGL_CFLAGS
1616               C compiler flags for LIBGLAMOR_EGL, overriding pkg-config
1617   LIBGLAMOR_EGL_LIBS
1618               linker flags for LIBGLAMOR_EGL, overriding pkg-config
1619   XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1620   XORG_LIBS   linker flags for XORG, overriding pkg-config
1621   DRM_CFLAGS  C compiler flags for DRM, overriding pkg-config
1622   DRM_LIBS    linker flags for DRM, overriding pkg-config
1623   DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1624   DRI_LIBS    linker flags for DRI, overriding pkg-config
1625   DRI2_CFLAGS C compiler flags for DRI2, overriding pkg-config
1626   DRI2_LIBS   linker flags for DRI2, overriding pkg-config
1627   PCIACCESS_CFLAGS
1628               C compiler flags for PCIACCESS, overriding pkg-config
1629   PCIACCESS_LIBS
1630               linker flags for PCIACCESS, overriding pkg-config
1631   XVMCLIB_CFLAGS
1632               C compiler flags for XVMCLIB, overriding pkg-config
1633   XVMCLIB_LIBS
1634               linker flags for XVMCLIB, overriding pkg-config
1635   VALGRIND_CFLAGS
1636               C compiler flags for VALGRIND, overriding pkg-config
1637   VALGRIND_LIBS
1638               linker flags for VALGRIND, overriding pkg-config
1639
1640 Use these variables to override the choices made by `configure' or to help
1641 it to find libraries and programs with nonstandard names/locations.
1642
1643 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1644 _ACEOF
1645 ac_status=$?
1646 fi
1647
1648 if test "$ac_init_help" = "recursive"; then
1649   # If there are subdirs, report their specific --help.
1650   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651     test -d "$ac_dir" ||
1652       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653       continue
1654     ac_builddir=.
1655
1656 case "$ac_dir" in
1657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 *)
1659   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660   # A ".." for each directory in $ac_dir_suffix.
1661   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662   case $ac_top_builddir_sub in
1663   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665   esac ;;
1666 esac
1667 ac_abs_top_builddir=$ac_pwd
1668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669 # for backward compatibility:
1670 ac_top_builddir=$ac_top_build_prefix
1671
1672 case $srcdir in
1673   .)  # We are building in place.
1674     ac_srcdir=.
1675     ac_top_srcdir=$ac_top_builddir_sub
1676     ac_abs_top_srcdir=$ac_pwd ;;
1677   [\\/]* | ?:[\\/]* )  # Absolute name.
1678     ac_srcdir=$srcdir$ac_dir_suffix;
1679     ac_top_srcdir=$srcdir
1680     ac_abs_top_srcdir=$srcdir ;;
1681   *) # Relative name.
1682     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683     ac_top_srcdir=$ac_top_build_prefix$srcdir
1684     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1685 esac
1686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688     cd "$ac_dir" || { ac_status=$?; continue; }
1689     # Check for guested configure.
1690     if test -f "$ac_srcdir/configure.gnu"; then
1691       echo &&
1692       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693     elif test -f "$ac_srcdir/configure"; then
1694       echo &&
1695       $SHELL "$ac_srcdir/configure" --help=recursive
1696     else
1697       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698     fi || ac_status=$?
1699     cd "$ac_pwd" || { ac_status=$?; break; }
1700   done
1701 fi
1702
1703 test -n "$ac_init_help" && exit $ac_status
1704 if $ac_init_version; then
1705   cat <<\_ACEOF
1706 xf86-video-intel configure 2.20.9
1707 generated by GNU Autoconf 2.69
1708
1709 Copyright (C) 2012 Free Software Foundation, Inc.
1710 This configure script is free software; the Free Software Foundation
1711 gives unlimited permission to copy, distribute and modify it.
1712 _ACEOF
1713   exit
1714 fi
1715
1716 ## ------------------------ ##
1717 ## Autoconf initialization. ##
1718 ## ------------------------ ##
1719
1720 # ac_fn_c_try_compile LINENO
1721 # --------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_compile ()
1724 {
1725   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726   rm -f conftest.$ac_objext
1727   if { { ac_try="$ac_compile"
1728 case "(($ac_try" in
1729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730   *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734   (eval "$ac_compile") 2>conftest.err
1735   ac_status=$?
1736   if test -s conftest.err; then
1737     grep -v '^ *+' conftest.err >conftest.er1
1738     cat conftest.er1 >&5
1739     mv -f conftest.er1 conftest.err
1740   fi
1741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742   test $ac_status = 0; } && {
1743          test -z "$ac_c_werror_flag" ||
1744          test ! -s conftest.err
1745        } && test -s conftest.$ac_objext; then :
1746   ac_retval=0
1747 else
1748   $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751         ac_retval=1
1752 fi
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754   as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_compile
1757
1758 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1759 # ---------------------------------------------
1760 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1761 # accordingly.
1762 ac_fn_c_check_decl ()
1763 {
1764   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765   as_decl_name=`echo $2|sed 's/ *(.*//'`
1766   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1768 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1769 if eval \${$3+:} false; then :
1770   $as_echo_n "(cached) " >&6
1771 else
1772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h.  */
1774 $4
1775 int
1776 main ()
1777 {
1778 #ifndef $as_decl_name
1779 #ifdef __cplusplus
1780   (void) $as_decl_use;
1781 #else
1782   (void) $as_decl_name;
1783 #endif
1784 #endif
1785
1786   ;
1787   return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791   eval "$3=yes"
1792 else
1793   eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 fi
1797 eval ac_res=\$$3
1798                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802 } # ac_fn_c_check_decl
1803
1804 # ac_fn_c_try_cpp LINENO
1805 # ----------------------
1806 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_cpp ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   if { { ac_try="$ac_cpp conftest.$ac_ext"
1811 case "(($ac_try" in
1812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813   *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1818   ac_status=$?
1819   if test -s conftest.err; then
1820     grep -v '^ *+' conftest.err >conftest.er1
1821     cat conftest.er1 >&5
1822     mv -f conftest.er1 conftest.err
1823   fi
1824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825   test $ac_status = 0; } > conftest.i && {
1826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1827          test ! -s conftest.err
1828        }; then :
1829   ac_retval=0
1830 else
1831   $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834     ac_retval=1
1835 fi
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837   as_fn_set_status $ac_retval
1838
1839 } # ac_fn_c_try_cpp
1840
1841 # ac_fn_c_try_run LINENO
1842 # ----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1844 # that executables *can* be run.
1845 ac_fn_c_try_run ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851   *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855   (eval "$ac_link") 2>&5
1856   ac_status=$?
1857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1859   { { case "(($ac_try" in
1860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861   *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865   (eval "$ac_try") 2>&5
1866   ac_status=$?
1867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868   test $ac_status = 0; }; }; then :
1869   ac_retval=0
1870 else
1871   $as_echo "$as_me: program exited with status $ac_status" >&5
1872        $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875        ac_retval=$ac_status
1876 fi
1877   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879   as_fn_set_status $ac_retval
1880
1881 } # ac_fn_c_try_run
1882
1883 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1884 # -------------------------------------------------------
1885 # Tests whether HEADER exists and can be compiled using the include files in
1886 # INCLUDES, setting the cache variable VAR accordingly.
1887 ac_fn_c_check_header_compile ()
1888 {
1889   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893   $as_echo_n "(cached) " >&6
1894 else
1895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h.  */
1897 $4
1898 #include <$2>
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901   eval "$3=yes"
1902 else
1903   eval "$3=no"
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 fi
1907 eval ac_res=\$$3
1908                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912 } # ac_fn_c_check_header_compile
1913
1914 # ac_fn_c_try_link LINENO
1915 # -----------------------
1916 # Try to link conftest.$ac_ext, and return whether this succeeded.
1917 ac_fn_c_try_link ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   rm -f conftest.$ac_objext conftest$ac_exeext
1921   if { { ac_try="$ac_link"
1922 case "(($ac_try" in
1923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924   *) ac_try_echo=$ac_try;;
1925 esac
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928   (eval "$ac_link") 2>conftest.err
1929   ac_status=$?
1930   if test -s conftest.err; then
1931     grep -v '^ *+' conftest.err >conftest.er1
1932     cat conftest.er1 >&5
1933     mv -f conftest.er1 conftest.err
1934   fi
1935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936   test $ac_status = 0; } && {
1937          test -z "$ac_c_werror_flag" ||
1938          test ! -s conftest.err
1939        } && test -s conftest$ac_exeext && {
1940          test "$cross_compiling" = yes ||
1941          test -x conftest$ac_exeext
1942        }; then :
1943   ac_retval=0
1944 else
1945   $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948         ac_retval=1
1949 fi
1950   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1951   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1952   # interfere with the next link command; also delete a directory that is
1953   # left behind by Apple's compiler.  We do this before executing the actions.
1954   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956   as_fn_set_status $ac_retval
1957
1958 } # ac_fn_c_try_link
1959
1960 # ac_fn_c_check_func LINENO FUNC VAR
1961 # ----------------------------------
1962 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1963 ac_fn_c_check_func ()
1964 {
1965   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969   $as_echo_n "(cached) " >&6
1970 else
1971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h.  */
1973 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1975 #define $2 innocuous_$2
1976
1977 /* System header to define __stub macros and hopefully few prototypes,
1978     which can conflict with char $2 (); below.
1979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1980     <limits.h> exists even on freestanding compilers.  */
1981
1982 #ifdef __STDC__
1983 # include <limits.h>
1984 #else
1985 # include <assert.h>
1986 #endif
1987
1988 #undef $2
1989
1990 /* Override any GCC internal prototype to avoid an error.
1991    Use char because int might match the return type of a GCC
1992    builtin and then its argument prototype would still apply.  */
1993 #ifdef __cplusplus
1994 extern "C"
1995 #endif
1996 char $2 ();
1997 /* The GNU C library defines this for functions which it implements
1998     to always fail with ENOSYS.  Some functions are actually named
1999     something starting with __ and the normal name is an alias.  */
2000 #if defined __stub_$2 || defined __stub___$2
2001 choke me
2002 #endif
2003
2004 int
2005 main ()
2006 {
2007 return $2 ();
2008   ;
2009   return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_link "$LINENO"; then :
2013   eval "$3=yes"
2014 else
2015   eval "$3=no"
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext \
2018     conftest$ac_exeext conftest.$ac_ext
2019 fi
2020 eval ac_res=\$$3
2021                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025 } # ac_fn_c_check_func
2026
2027 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2028 # -------------------------------------------------------
2029 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2030 # the include files in INCLUDES and setting the cache variable VAR
2031 # accordingly.
2032 ac_fn_c_check_header_mongrel ()
2033 {
2034   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035   if eval \${$3+:} false; then :
2036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039   $as_echo_n "(cached) " >&6
2040 fi
2041 eval ac_res=\$$3
2042                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 else
2045   # Is the header compilable?
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2047 $as_echo_n "checking $2 usability... " >&6; }
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h.  */
2050 $4
2051 #include <$2>
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054   ac_header_compiler=yes
2055 else
2056   ac_header_compiler=no
2057 fi
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2060 $as_echo "$ac_header_compiler" >&6; }
2061
2062 # Is the header present?
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2064 $as_echo_n "checking $2 presence... " >&6; }
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h.  */
2067 #include <$2>
2068 _ACEOF
2069 if ac_fn_c_try_cpp "$LINENO"; then :
2070   ac_header_preproc=yes
2071 else
2072   ac_header_preproc=no
2073 fi
2074 rm -f conftest.err conftest.i conftest.$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2076 $as_echo "$ac_header_preproc" >&6; }
2077
2078 # So?  What about this header?
2079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2080   yes:no: )
2081     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2082 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2083     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2084 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2085     ;;
2086   no:yes:* )
2087     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2088 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2089     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2090 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2091     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2092 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2093     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2094 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2095     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2096 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2097 ( $as_echo "## ---------------------------------------------------------------------- ##
2098 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2099 ## ---------------------------------------------------------------------- ##"
2100      ) | sed "s/^/$as_me: WARNING:     /" >&2
2101     ;;
2102 esac
2103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \${$3+:} false; then :
2106   $as_echo_n "(cached) " >&6
2107 else
2108   eval "$3=\$ac_header_compiler"
2109 fi
2110 eval ac_res=\$$3
2111                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 fi
2114   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115
2116 } # ac_fn_c_check_header_mongrel
2117 cat >config.log <<_ACEOF
2118 This file contains any messages produced by compilers while
2119 running configure, to aid debugging if configure makes a mistake.
2120
2121 It was created by xf86-video-intel $as_me 2.20.9, which was
2122 generated by GNU Autoconf 2.69.  Invocation command line was
2123
2124   $ $0 $@
2125
2126 _ACEOF
2127 exec 5>>config.log
2128 {
2129 cat <<_ASUNAME
2130 ## --------- ##
2131 ## Platform. ##
2132 ## --------- ##
2133
2134 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2135 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2136 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2137 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2138 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2139
2140 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2141 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2142
2143 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2144 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2145 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2146 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2147 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2148 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2149 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2150
2151 _ASUNAME
2152
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156   IFS=$as_save_IFS
2157   test -z "$as_dir" && as_dir=.
2158     $as_echo "PATH: $as_dir"
2159   done
2160 IFS=$as_save_IFS
2161
2162 } >&5
2163
2164 cat >&5 <<_ACEOF
2165
2166
2167 ## ----------- ##
2168 ## Core tests. ##
2169 ## ----------- ##
2170
2171 _ACEOF
2172
2173
2174 # Keep a trace of the command line.
2175 # Strip out --no-create and --no-recursion so they do not pile up.
2176 # Strip out --silent because we don't want to record it for future runs.
2177 # Also quote any args containing shell meta-characters.
2178 # Make two passes to allow for proper duplicate-argument suppression.
2179 ac_configure_args=
2180 ac_configure_args0=
2181 ac_configure_args1=
2182 ac_must_keep_next=false
2183 for ac_pass in 1 2
2184 do
2185   for ac_arg
2186   do
2187     case $ac_arg in
2188     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2189     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2190     | -silent | --silent | --silen | --sile | --sil)
2191       continue ;;
2192     *\'*)
2193       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2194     esac
2195     case $ac_pass in
2196     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2197     2)
2198       as_fn_append ac_configure_args1 " '$ac_arg'"
2199       if test $ac_must_keep_next = true; then
2200         ac_must_keep_next=false # Got value, back to normal.
2201       else
2202         case $ac_arg in
2203           *=* | --config-cache | -C | -disable-* | --disable-* \
2204           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2205           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2206           | -with-* | --with-* | -without-* | --without-* | --x)
2207             case "$ac_configure_args0 " in
2208               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2209             esac
2210             ;;
2211           -* ) ac_must_keep_next=true ;;
2212         esac
2213       fi
2214       as_fn_append ac_configure_args " '$ac_arg'"
2215       ;;
2216     esac
2217   done
2218 done
2219 { ac_configure_args0=; unset ac_configure_args0;}
2220 { ac_configure_args1=; unset ac_configure_args1;}
2221
2222 # When interrupted or exit'd, cleanup temporary files, and complete
2223 # config.log.  We remove comments because anyway the quotes in there
2224 # would cause problems or look ugly.
2225 # WARNING: Use '\'' to represent an apostrophe within the trap.
2226 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2227 trap 'exit_status=$?
2228   # Save into config.log some information that might help in debugging.
2229   {
2230     echo
2231
2232     $as_echo "## ---------------- ##
2233 ## Cache variables. ##
2234 ## ---------------- ##"
2235     echo
2236     # The following way of writing the cache mishandles newlines in values,
2237 (
2238   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2239     eval ac_val=\$$ac_var
2240     case $ac_val in #(
2241     *${as_nl}*)
2242       case $ac_var in #(
2243       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2244 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2245       esac
2246       case $ac_var in #(
2247       _ | IFS | as_nl) ;; #(
2248       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2249       *) { eval $ac_var=; unset $ac_var;} ;;
2250       esac ;;
2251     esac
2252   done
2253   (set) 2>&1 |
2254     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2255     *${as_nl}ac_space=\ *)
2256       sed -n \
2257         "s/'\''/'\''\\\\'\'''\''/g;
2258           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2259       ;; #(
2260     *)
2261       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2262       ;;
2263     esac |
2264     sort
2265 )
2266     echo
2267
2268     $as_echo "## ----------------- ##
2269 ## Output variables. ##
2270 ## ----------------- ##"
2271     echo
2272     for ac_var in $ac_subst_vars
2273     do
2274       eval ac_val=\$$ac_var
2275       case $ac_val in
2276       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277       esac
2278       $as_echo "$ac_var='\''$ac_val'\''"
2279     done | sort
2280     echo
2281
2282     if test -n "$ac_subst_files"; then
2283       $as_echo "## ------------------- ##
2284 ## File substitutions. ##
2285 ## ------------------- ##"
2286       echo
2287       for ac_var in $ac_subst_files
2288       do
2289         eval ac_val=\$$ac_var
2290         case $ac_val in
2291         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2292         esac
2293         $as_echo "$ac_var='\''$ac_val'\''"
2294       done | sort
2295       echo
2296     fi
2297
2298     if test -s confdefs.h; then
2299       $as_echo "## ----------- ##
2300 ## confdefs.h. ##
2301 ## ----------- ##"
2302       echo
2303       cat confdefs.h
2304       echo
2305     fi
2306     test "$ac_signal" != 0 &&
2307       $as_echo "$as_me: caught signal $ac_signal"
2308     $as_echo "$as_me: exit $exit_status"
2309   } >&5
2310   rm -f core *.core core.conftest.* &&
2311     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2312     exit $exit_status
2313 ' 0
2314 for ac_signal in 1 2 13 15; do
2315   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2316 done
2317 ac_signal=0
2318
2319 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2320 rm -f -r conftest* confdefs.h
2321
2322 $as_echo "/* confdefs.h */" > confdefs.h
2323
2324 # Predefined preprocessor variables.
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_NAME "$PACKAGE_NAME"
2328 _ACEOF
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2332 _ACEOF
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2336 _ACEOF
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_STRING "$PACKAGE_STRING"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_URL "$PACKAGE_URL"
2348 _ACEOF
2349
2350
2351 # Let the site file select an alternate cache file if it wants to.
2352 # Prefer an explicitly selected file to automatically selected ones.
2353 ac_site_file1=NONE
2354 ac_site_file2=NONE
2355 if test -n "$CONFIG_SITE"; then
2356   # We do not want a PATH search for config.site.
2357   case $CONFIG_SITE in #((
2358     -*)  ac_site_file1=./$CONFIG_SITE;;
2359     */*) ac_site_file1=$CONFIG_SITE;;
2360     *)   ac_site_file1=./$CONFIG_SITE;;
2361   esac
2362 elif test "x$prefix" != xNONE; then
2363   ac_site_file1=$prefix/share/config.site
2364   ac_site_file2=$prefix/etc/config.site
2365 else
2366   ac_site_file1=$ac_default_prefix/share/config.site
2367   ac_site_file2=$ac_default_prefix/etc/config.site
2368 fi
2369 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2370 do
2371   test "x$ac_site_file" = xNONE && continue
2372   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2374 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2375     sed 's/^/| /' "$ac_site_file" >&5
2376     . "$ac_site_file" \
2377       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2379 as_fn_error $? "failed to load site script $ac_site_file
2380 See \`config.log' for more details" "$LINENO" 5; }
2381   fi
2382 done
2383
2384 if test -r "$cache_file"; then
2385   # Some versions of bash will fail to source /dev/null (special files
2386   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2387   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2388     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2389 $as_echo "$as_me: loading cache $cache_file" >&6;}
2390     case $cache_file in
2391       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2392       *)                      . "./$cache_file";;
2393     esac
2394   fi
2395 else
2396   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2397 $as_echo "$as_me: creating cache $cache_file" >&6;}
2398   >$cache_file
2399 fi
2400
2401 # Check that the precious variables saved in the cache have kept the same
2402 # value.
2403 ac_cache_corrupted=false
2404 for ac_var in $ac_precious_vars; do
2405   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2406   eval ac_new_set=\$ac_env_${ac_var}_set
2407   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2408   eval ac_new_val=\$ac_env_${ac_var}_value
2409   case $ac_old_set,$ac_new_set in
2410     set,)
2411       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2412 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2413       ac_cache_corrupted=: ;;
2414     ,set)
2415       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2416 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2417       ac_cache_corrupted=: ;;
2418     ,);;
2419     *)
2420       if test "x$ac_old_val" != "x$ac_new_val"; then
2421         # differences in whitespace do not lead to failure.
2422         ac_old_val_w=`echo x $ac_old_val`
2423         ac_new_val_w=`echo x $ac_new_val`
2424         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2425           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2426 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2427           ac_cache_corrupted=:
2428         else
2429           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2430 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2431           eval $ac_var=\$ac_old_val
2432         fi
2433         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2434 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2435         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2436 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2437       fi;;
2438   esac
2439   # Pass precious variables to config.status.
2440   if test "$ac_new_set" = set; then
2441     case $ac_new_val in
2442     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2443     *) ac_arg=$ac_var=$ac_new_val ;;
2444     esac
2445     case " $ac_configure_args " in
2446       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2447       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2448     esac
2449   fi
2450 done
2451 if $ac_cache_corrupted; then
2452   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2454   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2455 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2456   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2457 fi
2458 ## -------------------- ##
2459 ## Main body of script. ##
2460 ## -------------------- ##
2461
2462 ac_ext=c
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467
2468
2469
2470 ac_config_headers="$ac_config_headers config.h"
2471
2472 ac_aux_dir=
2473 for ac_dir in . "$srcdir"/.; do
2474   if test -f "$ac_dir/install-sh"; then
2475     ac_aux_dir=$ac_dir
2476     ac_install_sh="$ac_aux_dir/install-sh -c"
2477     break
2478   elif test -f "$ac_dir/install.sh"; then
2479     ac_aux_dir=$ac_dir
2480     ac_install_sh="$ac_aux_dir/install.sh -c"
2481     break
2482   elif test -f "$ac_dir/shtool"; then
2483     ac_aux_dir=$ac_dir
2484     ac_install_sh="$ac_aux_dir/shtool install -c"
2485     break
2486   fi
2487 done
2488 if test -z "$ac_aux_dir"; then
2489   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2490 fi
2491
2492 # These three variables are undocumented and unsupported,
2493 # and are intended to be withdrawn in a future Autoconf release.
2494 # They can cause serious problems if a builder's source tree is in a directory
2495 # whose full name contains unusual characters.
2496 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2497 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2498 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2499
2500
2501
2502 # Initialize Automake
2503 am__api_version='1.11'
2504
2505 # Find a good install program.  We prefer a C program (faster),
2506 # so one script is as good as another.  But avoid the broken or
2507 # incompatible versions:
2508 # SysV /etc/install, /usr/sbin/install
2509 # SunOS /usr/etc/install
2510 # IRIX /sbin/install
2511 # AIX /bin/install
2512 # AmigaOS /C/install, which installs bootblocks on floppy discs
2513 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2516 # OS/2's system install, which has a completely different semantic
2517 # ./install, which can be erroneously created by make from ./install.sh.
2518 # Reject install programs that cannot install multiple files.
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2520 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2521 if test -z "$INSTALL"; then
2522 if ${ac_cv_path_install+:} false; then :
2523   $as_echo_n "(cached) " >&6
2524 else
2525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528   IFS=$as_save_IFS
2529   test -z "$as_dir" && as_dir=.
2530     # Account for people who put trailing slashes in PATH elements.
2531 case $as_dir/ in #((
2532   ./ | .// | /[cC]/* | \
2533   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2534   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2535   /usr/ucb/* ) ;;
2536   *)
2537     # OSF1 and SCO ODT 3.0 have their own names for install.
2538     # Don't use installbsd from OSF since it installs stuff as root
2539     # by default.
2540     for ac_prog in ginstall scoinst install; do
2541       for ac_exec_ext in '' $ac_executable_extensions; do
2542         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2543           if test $ac_prog = install &&
2544             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545             # AIX install.  It has an incompatible calling convention.
2546             :
2547           elif test $ac_prog = install &&
2548             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2549             # program-specific install script used by HP pwplus--don't use.
2550             :
2551           else
2552             rm -rf conftest.one conftest.two conftest.dir
2553             echo one > conftest.one
2554             echo two > conftest.two
2555             mkdir conftest.dir
2556             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2557               test -s conftest.one && test -s conftest.two &&
2558               test -s conftest.dir/conftest.one &&
2559               test -s conftest.dir/conftest.two
2560             then
2561               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2562               break 3
2563             fi
2564           fi
2565         fi
2566       done
2567     done
2568     ;;
2569 esac
2570
2571   done
2572 IFS=$as_save_IFS
2573
2574 rm -rf conftest.one conftest.two conftest.dir
2575
2576 fi
2577   if test "${ac_cv_path_install+set}" = set; then
2578     INSTALL=$ac_cv_path_install
2579   else
2580     # As a last resort, use the slow shell script.  Don't cache a
2581     # value for INSTALL within a source directory, because that will
2582     # break other packages using the cache if that directory is
2583     # removed, or if the value is a relative name.
2584     INSTALL=$ac_install_sh
2585   fi
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2588 $as_echo "$INSTALL" >&6; }
2589
2590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2591 # It thinks the first close brace ends the variable substitution.
2592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2593
2594 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2595
2596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2597
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2599 $as_echo_n "checking whether build environment is sane... " >&6; }
2600 # Just in case
2601 sleep 1
2602 echo timestamp > conftest.file
2603 # Reject unsafe characters in $srcdir or the absolute working directory
2604 # name.  Accept space and tab only in the latter.
2605 am_lf='
2606 '
2607 case `pwd` in
2608   *[\\\"\#\$\&\'\`$am_lf]*)
2609     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2610 esac
2611 case $srcdir in
2612   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2613     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2614 esac
2615
2616 # Do `set' in a subshell so we don't clobber the current shell's
2617 # arguments.  Must try -L first in case configure is actually a
2618 # symlink; some systems play weird games with the mod time of symlinks
2619 # (eg FreeBSD returns the mod time of the symlink's containing
2620 # directory).
2621 if (
2622    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2623    if test "$*" = "X"; then
2624       # -L didn't work.
2625       set X `ls -t "$srcdir/configure" conftest.file`
2626    fi
2627    rm -f conftest.file
2628    if test "$*" != "X $srcdir/configure conftest.file" \
2629       && test "$*" != "X conftest.file $srcdir/configure"; then
2630
2631       # If neither matched, then we have a broken ls.  This can happen
2632       # if, for instance, CONFIG_SHELL is bash and it inherits a
2633       # broken ls alias from the environment.  This has actually
2634       # happened.  Such a system could not be considered "sane".
2635       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2636 alias in your environment" "$LINENO" 5
2637    fi
2638
2639    test "$2" = conftest.file
2640    )
2641 then
2642    # Ok.
2643    :
2644 else
2645    as_fn_error $? "newly created file is older than distributed files!
2646 Check your system clock" "$LINENO" 5
2647 fi
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649 $as_echo "yes" >&6; }
2650 test "$program_prefix" != NONE &&
2651   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2652 # Use a double $ so make ignores it.
2653 test "$program_suffix" != NONE &&
2654   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2655 # Double any \ or $.
2656 # By default was `s,x,x', remove it if useless.
2657 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2658 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2659
2660 # expand $ac_aux_dir to an absolute path
2661 am_aux_dir=`cd $ac_aux_dir && pwd`
2662
2663 if test x"${MISSING+set}" != xset; then
2664   case $am_aux_dir in
2665   *\ * | *\     *)
2666     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2667   *)
2668     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2669   esac
2670 fi
2671 # Use eval to expand $SHELL
2672 if eval "$MISSING --run true"; then
2673   am_missing_run="$MISSING --run "
2674 else
2675   am_missing_run=
2676   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2677 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2678 fi
2679
2680 if test x"${install_sh}" != xset; then
2681   case $am_aux_dir in
2682   *\ * | *\     *)
2683     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2684   *)
2685     install_sh="\${SHELL} $am_aux_dir/install-sh"
2686   esac
2687 fi
2688
2689 # Installed binaries are usually stripped using `strip' when the user
2690 # run `make install-strip'.  However `strip' might not be the right
2691 # tool to use in cross-compilation environments, therefore Automake
2692 # will honor the `STRIP' environment variable to overrule this program.
2693 if test "$cross_compiling" != no; then
2694   if test -n "$ac_tool_prefix"; then
2695   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2696 set dummy ${ac_tool_prefix}strip; ac_word=$2
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if ${ac_cv_prog_STRIP+:} false; then :
2700   $as_echo_n "(cached) " >&6
2701 else
2702   if test -n "$STRIP"; then
2703   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708   IFS=$as_save_IFS
2709   test -z "$as_dir" && as_dir=.
2710     for ac_exec_ext in '' $ac_executable_extensions; do
2711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714     break 2
2715   fi
2716 done
2717   done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 STRIP=$ac_cv_prog_STRIP
2723 if test -n "$STRIP"; then
2724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2725 $as_echo "$STRIP" >&6; }
2726 else
2727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2729 fi
2730
2731
2732 fi
2733 if test -z "$ac_cv_prog_STRIP"; then
2734   ac_ct_STRIP=$STRIP
2735   # Extract the first word of "strip", so it can be a program name with args.
2736 set dummy strip; ac_word=$2
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2740   $as_echo_n "(cached) " >&6
2741 else
2742   if test -n "$ac_ct_STRIP"; then
2743   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748   IFS=$as_save_IFS
2749   test -z "$as_dir" && as_dir=.
2750     for ac_exec_ext in '' $ac_executable_extensions; do
2751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752     ac_cv_prog_ac_ct_STRIP="strip"
2753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754     break 2
2755   fi
2756 done
2757   done
2758 IFS=$as_save_IFS
2759
2760 fi
2761 fi
2762 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2763 if test -n "$ac_ct_STRIP"; then
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2765 $as_echo "$ac_ct_STRIP" >&6; }
2766 else
2767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 $as_echo "no" >&6; }
2769 fi
2770
2771   if test "x$ac_ct_STRIP" = x; then
2772     STRIP=":"
2773   else
2774     case $cross_compiling:$ac_tool_warned in
2775 yes:)
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2778 ac_tool_warned=yes ;;
2779 esac
2780     STRIP=$ac_ct_STRIP
2781   fi
2782 else
2783   STRIP="$ac_cv_prog_STRIP"
2784 fi
2785
2786 fi
2787 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2788
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2790 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2791 if test -z "$MKDIR_P"; then
2792   if ${ac_cv_path_mkdir+:} false; then :
2793   $as_echo_n "(cached) " >&6
2794 else
2795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2797 do
2798   IFS=$as_save_IFS
2799   test -z "$as_dir" && as_dir=.
2800     for ac_prog in mkdir gmkdir; do
2801          for ac_exec_ext in '' $ac_executable_extensions; do
2802            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2803            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2804              'mkdir (GNU coreutils) '* | \
2805              'mkdir (coreutils) '* | \
2806              'mkdir (fileutils) '4.1*)
2807                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2808                break 3;;
2809            esac
2810          done
2811        done
2812   done
2813 IFS=$as_save_IFS
2814
2815 fi
2816
2817   test -d ./--version && rmdir ./--version
2818   if test "${ac_cv_path_mkdir+set}" = set; then
2819     MKDIR_P="$ac_cv_path_mkdir -p"
2820   else
2821     # As a last resort, use the slow shell script.  Don't cache a
2822     # value for MKDIR_P within a source directory, because that will
2823     # break other packages using the cache if that directory is
2824     # removed, or if the value is a relative name.
2825     MKDIR_P="$ac_install_sh -d"
2826   fi
2827 fi
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2829 $as_echo "$MKDIR_P" >&6; }
2830
2831 mkdir_p="$MKDIR_P"
2832 case $mkdir_p in
2833   [\\/$]* | ?:[\\/]*) ;;
2834   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2835 esac
2836
2837 for ac_prog in gawk mawk nawk awk
2838 do
2839   # Extract the first word of "$ac_prog", so it can be a program name with args.
2840 set dummy $ac_prog; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_AWK+:} false; then :
2844   $as_echo_n "(cached) " >&6
2845 else
2846   if test -n "$AWK"; then
2847   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854     for ac_exec_ext in '' $ac_executable_extensions; do
2855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856     ac_cv_prog_AWK="$ac_prog"
2857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861   done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 AWK=$ac_cv_prog_AWK
2867 if test -n "$AWK"; then
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2869 $as_echo "$AWK" >&6; }
2870 else
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2873 fi
2874
2875
2876   test -n "$AWK" && break
2877 done
2878
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2880 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2881 set x ${MAKE-make}
2882 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2883 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2884   $as_echo_n "(cached) " >&6
2885 else
2886   cat >conftest.make <<\_ACEOF
2887 SHELL = /bin/sh
2888 all:
2889         @echo '@@@%%%=$(MAKE)=@@@%%%'
2890 _ACEOF
2891 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2892 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2893   *@@@%%%=?*=@@@%%%*)
2894     eval ac_cv_prog_make_${ac_make}_set=yes;;
2895   *)
2896     eval ac_cv_prog_make_${ac_make}_set=no;;
2897 esac
2898 rm -f conftest.make
2899 fi
2900 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2902 $as_echo "yes" >&6; }
2903   SET_MAKE=
2904 else
2905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2907   SET_MAKE="MAKE=${MAKE-make}"
2908 fi
2909
2910 rm -rf .tst 2>/dev/null
2911 mkdir .tst 2>/dev/null
2912 if test -d .tst; then
2913   am__leading_dot=.
2914 else
2915   am__leading_dot=_
2916 fi
2917 rmdir .tst 2>/dev/null
2918
2919 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2920   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2921   # is not polluted with repeated "-I."
2922   am__isrc=' -I$(srcdir)'
2923   # test to see if srcdir already configured
2924   if test -f $srcdir/config.status; then
2925     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2926   fi
2927 fi
2928
2929 # test whether we have cygpath
2930 if test -z "$CYGPATH_W"; then
2931   if (cygpath --version) >/dev/null 2>/dev/null; then
2932     CYGPATH_W='cygpath -w'
2933   else
2934     CYGPATH_W=echo
2935   fi
2936 fi
2937
2938
2939 # Define the identity of the package.
2940  PACKAGE='xf86-video-intel'
2941  VERSION='2.20.9'
2942
2943
2944 cat >>confdefs.h <<_ACEOF
2945 #define PACKAGE "$PACKAGE"
2946 _ACEOF
2947
2948
2949 cat >>confdefs.h <<_ACEOF
2950 #define VERSION "$VERSION"
2951 _ACEOF
2952
2953 # Some tools Automake needs.
2954
2955 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2956
2957
2958 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2959
2960
2961 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2962
2963
2964 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2965
2966
2967 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2968
2969 # We need awk for the "check" target.  The system "awk" is bad on
2970 # some platforms.
2971 # Always define AMTAR for backward compatibility.  Yes, it's still used
2972 # in the wild :-(  We should find a proper way to deprecate it ...
2973 AMTAR='$${TAR-tar}'
2974
2975 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2976
2977
2978
2979
2980
2981
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2983 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2984     # Check whether --enable-maintainer-mode was given.
2985 if test "${enable_maintainer_mode+set}" = set; then :
2986   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2987 else
2988   USE_MAINTAINER_MODE=no
2989 fi
2990
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2992 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2993    if test $USE_MAINTAINER_MODE = yes; then
2994   MAINTAINER_MODE_TRUE=
2995   MAINTAINER_MODE_FALSE='#'
2996 else
2997   MAINTAINER_MODE_TRUE='#'
2998   MAINTAINER_MODE_FALSE=
2999 fi
3000
3001   MAINT=$MAINTAINER_MODE_TRUE
3002
3003
3004
3005 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018 DEPDIR="${am__leading_dot}deps"
3019
3020 ac_config_commands="$ac_config_commands depfiles"
3021
3022
3023 am_make=${MAKE-make}
3024 cat > confinc << 'END'
3025 am__doit:
3026         @echo this is the am__doit target
3027 .PHONY: am__doit
3028 END
3029 # If we don't find an include directive, just comment out the code.
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3031 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3032 am__include="#"
3033 am__quote=
3034 _am_result=none
3035 # First try GNU make style include.
3036 echo "include confinc" > confmf
3037 # Ignore all kinds of additional output from `make'.
3038 case `$am_make -s -f confmf 2> /dev/null` in #(
3039 *the\ am__doit\ target*)
3040   am__include=include
3041   am__quote=
3042   _am_result=GNU
3043   ;;
3044 esac
3045 # Now try BSD make style include.
3046 if test "$am__include" = "#"; then
3047    echo '.include "confinc"' > confmf
3048    case `$am_make -s -f confmf 2> /dev/null` in #(
3049    *the\ am__doit\ target*)
3050      am__include=.include
3051      am__quote="\""
3052      _am_result=BSD
3053      ;;
3054    esac
3055 fi
3056
3057
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3059 $as_echo "$_am_result" >&6; }
3060 rm -f confinc confmf
3061
3062 # Check whether --enable-dependency-tracking was given.
3063 if test "${enable_dependency_tracking+set}" = set; then :
3064   enableval=$enable_dependency_tracking;
3065 fi
3066
3067 if test "x$enable_dependency_tracking" != xno; then
3068   am_depcomp="$ac_aux_dir/depcomp"
3069   AMDEPBACKSLASH='\'
3070   am__nodep='_no'
3071 fi
3072  if test "x$enable_dependency_tracking" != xno; then
3073   AMDEP_TRUE=
3074   AMDEP_FALSE='#'
3075 else
3076   AMDEP_TRUE='#'
3077   AMDEP_FALSE=
3078 fi
3079
3080
3081 ac_ext=c
3082 ac_cpp='$CPP $CPPFLAGS'
3083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086 if test -n "$ac_tool_prefix"; then
3087   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3088 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if ${ac_cv_prog_CC+:} false; then :
3092   $as_echo_n "(cached) " >&6
3093 else
3094   if test -n "$CC"; then
3095   ac_cv_prog_CC="$CC" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100   IFS=$as_save_IFS
3101   test -z "$as_dir" && as_dir=.
3102     for ac_exec_ext in '' $ac_executable_extensions; do
3103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106     break 2
3107   fi
3108 done
3109   done
3110 IFS=$as_save_IFS
3111
3112 fi
3113 fi
3114 CC=$ac_cv_prog_CC
3115 if test -n "$CC"; then
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3118 else
3119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3121 fi
3122
3123
3124 fi
3125 if test -z "$ac_cv_prog_CC"; then
3126   ac_ct_CC=$CC
3127   # Extract the first word of "gcc", so it can be a program name with args.
3128 set dummy gcc; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3132   $as_echo_n "(cached) " >&6
3133 else
3134   if test -n "$ac_ct_CC"; then
3135   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140   IFS=$as_save_IFS
3141   test -z "$as_dir" && as_dir=.
3142     for ac_exec_ext in '' $ac_executable_extensions; do
3143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144     ac_cv_prog_ac_ct_CC="gcc"
3145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146     break 2
3147   fi
3148 done
3149   done
3150 IFS=$as_save_IFS
3151
3152 fi
3153 fi
3154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155 if test -n "$ac_ct_CC"; then
3156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157 $as_echo "$ac_ct_CC" >&6; }
3158 else
3159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 fi
3162
3163   if test "x$ac_ct_CC" = x; then
3164     CC=""
3165   else
3166     case $cross_compiling:$ac_tool_warned in
3167 yes:)
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170 ac_tool_warned=yes ;;
3171 esac
3172     CC=$ac_ct_CC
3173   fi
3174 else
3175   CC="$ac_cv_prog_CC"
3176 fi
3177
3178 if test -z "$CC"; then
3179           if test -n "$ac_tool_prefix"; then
3180     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}cc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_CC+:} false; then :
3185   $as_echo_n "(cached) " >&6
3186 else
3187   if test -n "$CC"; then
3188   ac_cv_prog_CC="$CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193   IFS=$as_save_IFS
3194   test -z "$as_dir" && as_dir=.
3195     for ac_exec_ext in '' $ac_executable_extensions; do
3196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197     ac_cv_prog_CC="${ac_tool_prefix}cc"
3198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199     break 2
3200   fi
3201 done
3202   done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 CC=$ac_cv_prog_CC
3208 if test -n "$CC"; then
3209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 $as_echo "$CC" >&6; }
3211 else
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216
3217   fi
3218 fi
3219 if test -z "$CC"; then
3220   # Extract the first word of "cc", so it can be a program name with args.
3221 set dummy cc; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if ${ac_cv_prog_CC+:} false; then :
3225   $as_echo_n "(cached) " >&6
3226 else
3227   if test -n "$CC"; then
3228   ac_cv_prog_CC="$CC" # Let the user override the test.
3229 else
3230   ac_prog_rejected=no
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234   IFS=$as_save_IFS
3235   test -z "$as_dir" && as_dir=.
3236     for ac_exec_ext in '' $ac_executable_extensions; do
3237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3239        ac_prog_rejected=yes
3240        continue
3241      fi
3242     ac_cv_prog_CC="cc"
3243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244     break 2
3245   fi
3246 done
3247   done
3248 IFS=$as_save_IFS
3249
3250 if test $ac_prog_rejected = yes; then
3251   # We found a bogon in the path, so make sure we never use it.
3252   set dummy $ac_cv_prog_CC
3253   shift
3254   if test $# != 0; then
3255     # We chose a different compiler from the bogus one.
3256     # However, it has the same basename, so the bogon will be chosen
3257     # first if we set CC to just the basename; use the full file name.
3258     shift
3259     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3260   fi
3261 fi
3262 fi
3263 fi
3264 CC=$ac_cv_prog_CC
3265 if test -n "$CC"; then
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3268 else
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274 fi
3275 if test -z "$CC"; then
3276   if test -n "$ac_tool_prefix"; then
3277   for ac_prog in cl.exe
3278   do
3279     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282 $as_echo_n "checking for $ac_word... " >&6; }
3283 if ${ac_cv_prog_CC+:} false; then :
3284   $as_echo_n "(cached) " >&6
3285 else
3286   if test -n "$CC"; then
3287   ac_cv_prog_CC="$CC" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294     for ac_exec_ext in '' $ac_executable_extensions; do
3295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298     break 2
3299   fi
3300 done
3301   done
3302 IFS=$as_save_IFS
3303
3304 fi
3305 fi
3306 CC=$ac_cv_prog_CC
3307 if test -n "$CC"; then
3308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3309 $as_echo "$CC" >&6; }
3310 else
3311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 fi
3314
3315
3316     test -n "$CC" && break
3317   done
3318 fi
3319 if test -z "$CC"; then
3320   ac_ct_CC=$CC
3321   for ac_prog in cl.exe
3322 do
3323   # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy $ac_prog; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3328   $as_echo_n "(cached) " >&6
3329 else
3330   if test -n "$ac_ct_CC"; then
3331   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336   IFS=$as_save_IFS
3337   test -z "$as_dir" && as_dir=.
3338     for ac_exec_ext in '' $ac_executable_extensions; do
3339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340     ac_cv_prog_ac_ct_CC="$ac_prog"
3341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342     break 2
3343   fi
3344 done
3345   done
3346 IFS=$as_save_IFS
3347
3348 fi
3349 fi
3350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3351 if test -n "$ac_ct_CC"; then
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3353 $as_echo "$ac_ct_CC" >&6; }
3354 else
3355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 fi
3358
3359
3360   test -n "$ac_ct_CC" && break
3361 done
3362
3363   if test "x$ac_ct_CC" = x; then
3364     CC=""
3365   else
3366     case $cross_compiling:$ac_tool_warned in
3367 yes:)
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3370 ac_tool_warned=yes ;;
3371 esac
3372     CC=$ac_ct_CC
3373   fi
3374 fi
3375
3376 fi
3377
3378
3379 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error $? "no acceptable C compiler found in \$PATH
3382 See \`config.log' for more details" "$LINENO" 5; }
3383
3384 # Provide some information about the compiler.
3385 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3386 set X $ac_compile
3387 ac_compiler=$2
3388 for ac_option in --version -v -V -qversion; do
3389   { { ac_try="$ac_compiler $ac_option >&5"
3390 case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3397   ac_status=$?
3398   if test -s conftest.err; then
3399     sed '10a\
3400 ... rest of stderr output deleted ...
3401          10q' conftest.err >conftest.er1
3402     cat conftest.er1 >&5
3403   fi
3404   rm -f conftest.er1 conftest.err
3405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406   test $ac_status = 0; }
3407 done
3408
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h.  */
3411
3412 int
3413 main ()
3414 {
3415
3416   ;
3417   return 0;
3418 }
3419 _ACEOF
3420 ac_clean_files_save=$ac_clean_files
3421 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3422 # Try to create an executable without -o first, disregard a.out.
3423 # It will help us diagnose broken compilers, and finding out an intuition
3424 # of exeext.
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3426 $as_echo_n "checking whether the C compiler works... " >&6; }
3427 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3428
3429 # The possible output files:
3430 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3431
3432 ac_rmfiles=
3433 for ac_file in $ac_files
3434 do
3435   case $ac_file in
3436     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3437     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3438   esac
3439 done
3440 rm -f $ac_rmfiles
3441
3442 if { { ac_try="$ac_link_default"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449   (eval "$ac_link_default") 2>&5
3450   ac_status=$?
3451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452   test $ac_status = 0; }; then :
3453   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3454 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3455 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3456 # so that the user can short-circuit this test for compilers unknown to
3457 # Autoconf.
3458 for ac_file in $ac_files ''
3459 do
3460   test -f "$ac_file" || continue
3461   case $ac_file in
3462     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3463         ;;
3464     [ab].out )
3465         # We found the default executable, but exeext='' is most
3466         # certainly right.
3467         break;;
3468     *.* )
3469         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3470         then :; else
3471            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3472         fi
3473         # We set ac_cv_exeext here because the later test for it is not
3474         # safe: cross compilers may not add the suffix if given an `-o'
3475         # argument, so we may need to know it at that point already.
3476         # Even if this section looks crufty: it has the advantage of
3477         # actually working.
3478         break;;
3479     * )
3480         break;;
3481   esac
3482 done
3483 test "$ac_cv_exeext" = no && ac_cv_exeext=
3484
3485 else
3486   ac_file=''
3487 fi
3488 if test -z "$ac_file"; then :
3489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 $as_echo "no" >&6; }
3491 $as_echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error 77 "C compiler cannot create executables
3497 See \`config.log' for more details" "$LINENO" 5; }
3498 else
3499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3500 $as_echo "yes" >&6; }
3501 fi
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3503 $as_echo_n "checking for C compiler default output file name... " >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3505 $as_echo "$ac_file" >&6; }
3506 ac_exeext=$ac_cv_exeext
3507
3508 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3509 ac_clean_files=$ac_clean_files_save
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3511 $as_echo_n "checking for suffix of executables... " >&6; }
3512 if { { ac_try="$ac_link"
3513 case "(($ac_try" in
3514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515   *) ac_try_echo=$ac_try;;
3516 esac
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519   (eval "$ac_link") 2>&5
3520   ac_status=$?
3521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522   test $ac_status = 0; }; then :
3523   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3524 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3525 # work properly (i.e., refer to `conftest.exe'), while it won't with
3526 # `rm'.
3527 for ac_file in conftest.exe conftest conftest.*; do
3528   test -f "$ac_file" || continue
3529   case $ac_file in
3530     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3532           break;;
3533     * ) break;;
3534   esac
3535 done
3536 else
3537   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3540 See \`config.log' for more details" "$LINENO" 5; }
3541 fi
3542 rm -f conftest conftest$ac_cv_exeext
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3544 $as_echo "$ac_cv_exeext" >&6; }
3545
3546 rm -f conftest.$ac_ext
3547 EXEEXT=$ac_cv_exeext
3548 ac_exeext=$EXEEXT
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h.  */
3551 #include <stdio.h>
3552 int
3553 main ()
3554 {
3555 FILE *f = fopen ("conftest.out", "w");
3556  return ferror (f) || fclose (f) != 0;
3557
3558   ;
3559   return 0;
3560 }
3561 _ACEOF
3562 ac_clean_files="$ac_clean_files conftest.out"
3563 # Check that the compiler produces executables we can run.  If not, either
3564 # the compiler is broken, or we cross compile.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3566 $as_echo_n "checking whether we are cross compiling... " >&6; }
3567 if test "$cross_compiling" != yes; then
3568   { { ac_try="$ac_link"
3569 case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575   (eval "$ac_link") 2>&5
3576   ac_status=$?
3577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578   test $ac_status = 0; }
3579   if { ac_try='./conftest$ac_cv_exeext'
3580   { { case "(($ac_try" in
3581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582   *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586   (eval "$ac_try") 2>&5
3587   ac_status=$?
3588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589   test $ac_status = 0; }; }; then
3590     cross_compiling=no
3591   else
3592     if test "$cross_compiling" = maybe; then
3593         cross_compiling=yes
3594     else
3595         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "cannot run C compiled programs.
3598 If you meant to cross compile, use \`--host'.
3599 See \`config.log' for more details" "$LINENO" 5; }
3600     fi
3601   fi
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3604 $as_echo "$cross_compiling" >&6; }
3605
3606 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3607 ac_clean_files=$ac_clean_files_save
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3609 $as_echo_n "checking for suffix of object files... " >&6; }
3610 if ${ac_cv_objext+:} false; then :
3611   $as_echo_n "(cached) " >&6
3612 else
3613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h.  */
3615
3616 int
3617 main ()
3618 {
3619
3620   ;
3621   return 0;
3622 }
3623 _ACEOF
3624 rm -f conftest.o conftest.obj
3625 if { { ac_try="$ac_compile"
3626 case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632   (eval "$ac_compile") 2>&5
3633   ac_status=$?
3634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635   test $ac_status = 0; }; then :
3636   for ac_file in conftest.o conftest.obj conftest.*; do
3637   test -f "$ac_file" || continue;
3638   case $ac_file in
3639     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3640     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3641        break;;
3642   esac
3643 done
3644 else
3645   $as_echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3647
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error $? "cannot compute suffix of object files: cannot compile
3651 See \`config.log' for more details" "$LINENO" 5; }
3652 fi
3653 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3656 $as_echo "$ac_cv_objext" >&6; }
3657 OBJEXT=$ac_cv_objext
3658 ac_objext=$OBJEXT
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3660 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3661 if ${ac_cv_c_compiler_gnu+:} false; then :
3662   $as_echo_n "(cached) " >&6
3663 else
3664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h.  */
3666
3667 int
3668 main ()
3669 {
3670 #ifndef __GNUC__
3671        choke me
3672 #endif
3673
3674   ;
3675   return 0;
3676 }
3677 _ACEOF
3678 if ac_fn_c_try_compile "$LINENO"; then :
3679   ac_compiler_gnu=yes
3680 else
3681   ac_compiler_gnu=no
3682 fi
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3685
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3688 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3689 if test $ac_compiler_gnu = yes; then
3690   GCC=yes
3691 else
3692   GCC=
3693 fi
3694 ac_test_CFLAGS=${CFLAGS+set}
3695 ac_save_CFLAGS=$CFLAGS
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3697 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3698 if ${ac_cv_prog_cc_g+:} false; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   ac_save_c_werror_flag=$ac_c_werror_flag
3702    ac_c_werror_flag=yes
3703    ac_cv_prog_cc_g=no
3704    CFLAGS="-g"
3705    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h.  */
3707
3708 int
3709 main ()
3710 {
3711
3712   ;
3713   return 0;
3714 }
3715 _ACEOF
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717   ac_cv_prog_cc_g=yes
3718 else
3719   CFLAGS=""
3720       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h.  */
3722
3723 int
3724 main ()
3725 {
3726
3727   ;
3728   return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732
3733 else
3734   ac_c_werror_flag=$ac_save_c_werror_flag
3735          CFLAGS="-g"
3736          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h.  */
3738
3739 int
3740 main ()
3741 {
3742
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748   ac_cv_prog_cc_g=yes
3749 fi
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 fi
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755    ac_c_werror_flag=$ac_save_c_werror_flag
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3758 $as_echo "$ac_cv_prog_cc_g" >&6; }
3759 if test "$ac_test_CFLAGS" = set; then
3760   CFLAGS=$ac_save_CFLAGS
3761 elif test $ac_cv_prog_cc_g = yes; then
3762   if test "$GCC" = yes; then
3763     CFLAGS="-g -O2"
3764   else
3765     CFLAGS="-g"
3766   fi
3767 else
3768   if test "$GCC" = yes; then
3769     CFLAGS="-O2"
3770   else
3771     CFLAGS=
3772   fi
3773 fi
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3775 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3776 if ${ac_cv_prog_cc_c89+:} false; then :
3777   $as_echo_n "(cached) " >&6
3778 else
3779   ac_cv_prog_cc_c89=no
3780 ac_save_CC=$CC
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h.  */
3783 #include <stdarg.h>
3784 #include <stdio.h>
3785 struct stat;
3786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3787 struct buf { int x; };
3788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789 static char *e (p, i)
3790      char **p;
3791      int i;
3792 {
3793   return p[i];
3794 }
3795 static char *f (char * (*g) (char **, int), char **p, ...)
3796 {
3797   char *s;
3798   va_list v;
3799   va_start (v,p);
3800   s = g (p, va_arg (v,int));
3801   va_end (v);
3802   return s;
3803 }
3804
3805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3806    function prototypes and stuff, but not '\xHH' hex character constants.
3807    These don't provoke an error unfortunately, instead are silently treated
3808    as 'x'.  The following induces an error, until -std is added to get
3809    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3810    array size at least.  It's necessary to write '\x00'==0 to get something
3811    that's true only with -std.  */
3812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3813
3814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815    inside strings and character constants.  */
3816 #define FOO(x) 'x'
3817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3818
3819 int test (int i, double x);
3820 struct s1 {int (*f) (int a);};
3821 struct s2 {int (*f) (double a);};
3822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3823 int argc;
3824 char **argv;
3825 int
3826 main ()
3827 {
3828 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3829   ;
3830   return 0;
3831 }
3832 _ACEOF
3833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3835 do
3836   CC="$ac_save_CC $ac_arg"
3837   if ac_fn_c_try_compile "$LINENO"; then :
3838   ac_cv_prog_cc_c89=$ac_arg
3839 fi
3840 rm -f core conftest.err conftest.$ac_objext
3841   test "x$ac_cv_prog_cc_c89" != "xno" && break
3842 done
3843 rm -f conftest.$ac_ext
3844 CC=$ac_save_CC
3845
3846 fi
3847 # AC_CACHE_VAL
3848 case "x$ac_cv_prog_cc_c89" in
3849   x)
3850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3851 $as_echo "none needed" >&6; } ;;
3852   xno)
3853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3854 $as_echo "unsupported" >&6; } ;;
3855   *)
3856     CC="$CC $ac_cv_prog_cc_c89"
3857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3858 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3859 esac
3860 if test "x$ac_cv_prog_cc_c89" != xno; then :
3861
3862 fi
3863
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869
3870 depcc="$CC"   am_compiler_list=
3871
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3873 $as_echo_n "checking dependency style of $depcc... " >&6; }
3874 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3875   $as_echo_n "(cached) " >&6
3876 else
3877   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3878   # We make a subdir and do the tests there.  Otherwise we can end up
3879   # making bogus files that we don't know about and never remove.  For
3880   # instance it was reported that on HP-UX the gcc test will end up
3881   # making a dummy file named `D' -- because `-MD' means `put the output
3882   # in D'.
3883   rm -rf conftest.dir
3884   mkdir conftest.dir
3885   # Copy depcomp to subdir because otherwise we won't find it if we're
3886   # using a relative directory.
3887   cp "$am_depcomp" conftest.dir
3888   cd conftest.dir
3889   # We will build objects and dependencies in a subdirectory because
3890   # it helps to detect inapplicable dependency modes.  For instance
3891   # both Tru64's cc and ICC support -MD to output dependencies as a
3892   # side effect of compilation, but ICC will put the dependencies in
3893   # the current directory while Tru64 will put them in the object
3894   # directory.
3895   mkdir sub
3896
3897   am_cv_CC_dependencies_compiler_type=none
3898   if test "$am_compiler_list" = ""; then
3899      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3900   fi
3901   am__universal=false
3902   case " $depcc " in #(
3903      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3904      esac
3905
3906   for depmode in $am_compiler_list; do
3907     # Setup a source with many dependencies, because some compilers
3908     # like to wrap large dependency lists on column 80 (with \), and
3909     # we should not choose a depcomp mode which is confused by this.
3910     #
3911     # We need to recreate these files for each test, as the compiler may
3912     # overwrite some of them when testing with obscure command lines.
3913     # This happens at least with the AIX C compiler.
3914     : > sub/conftest.c
3915     for i in 1 2 3 4 5 6; do
3916       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3917       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3918       # Solaris 8's {/usr,}/bin/sh.
3919       touch sub/conftst$i.h
3920     done
3921     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3922
3923     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3924     # mode.  It turns out that the SunPro C++ compiler does not properly
3925     # handle `-M -o', and we need to detect this.  Also, some Intel
3926     # versions had trouble with output in subdirs
3927     am__obj=sub/conftest.${OBJEXT-o}
3928     am__minus_obj="-o $am__obj"
3929     case $depmode in
3930     gcc)
3931       # This depmode causes a compiler race in universal mode.
3932       test "$am__universal" = false || continue
3933       ;;
3934     nosideeffect)
3935       # after this tag, mechanisms are not by side-effect, so they'll
3936       # only be used when explicitly requested
3937       if test "x$enable_dependency_tracking" = xyes; then
3938         continue
3939       else
3940         break
3941       fi
3942       ;;
3943     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3944       # This compiler won't grok `-c -o', but also, the minuso test has
3945       # not run yet.  These depmodes are late enough in the game, and
3946       # so weak that their functioning should not be impacted.
3947       am__obj=conftest.${OBJEXT-o}
3948       am__minus_obj=
3949       ;;
3950     none) break ;;
3951     esac
3952     if depmode=$depmode \
3953        source=sub/conftest.c object=$am__obj \
3954        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3955        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3956          >/dev/null 2>conftest.err &&
3957        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3958        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3959        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3960        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3961       # icc doesn't choke on unknown options, it will just issue warnings
3962       # or remarks (even with -Werror).  So we grep stderr for any message
3963       # that says an option was ignored or not supported.
3964       # When given -MP, icc 7.0 and 7.1 complain thusly:
3965       #   icc: Command line warning: ignoring option '-M'; no argument required
3966       # The diagnosis changed in icc 8.0:
3967       #   icc: Command line remark: option '-MP' not supported
3968       if (grep 'ignoring option' conftest.err ||
3969           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3970         am_cv_CC_dependencies_compiler_type=$depmode
3971         break
3972       fi
3973     fi
3974   done
3975
3976   cd ..
3977   rm -rf conftest.dir
3978 else
3979   am_cv_CC_dependencies_compiler_type=none
3980 fi
3981
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3984 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3985 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3986
3987  if
3988   test "x$enable_dependency_tracking" != xno \
3989   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3990   am__fastdepCC_TRUE=
3991   am__fastdepCC_FALSE='#'
3992 else
3993   am__fastdepCC_TRUE='#'
3994   am__fastdepCC_FALSE=
3995 fi
3996
3997
3998    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3999 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4000 if ${ac_cv_prog_cc_c99+:} false; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   ac_cv_prog_cc_c99=no
4004 ac_save_CC=$CC
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h.  */
4007 #include <stdarg.h>
4008 #include <stdbool.h>
4009 #include <stdlib.h>
4010 #include <wchar.h>
4011 #include <stdio.h>
4012
4013 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4014 #define debug(...) fprintf (stderr, __VA_ARGS__)
4015 #define showlist(...) puts (#__VA_ARGS__)
4016 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4017 static void
4018 test_varargs_macros (void)
4019 {
4020   int x = 1234;
4021   int y = 5678;
4022   debug ("Flag");
4023   debug ("X = %d\n", x);
4024   showlist (The first, second, and third items.);
4025   report (x>y, "x is %d but y is %d", x, y);
4026 }
4027
4028 // Check long long types.
4029 #define BIG64 18446744073709551615ull
4030 #define BIG32 4294967295ul
4031 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4032 #if !BIG_OK
4033   your preprocessor is broken;
4034 #endif
4035 #if BIG_OK
4036 #else
4037   your preprocessor is broken;
4038 #endif
4039 static long long int bignum = -9223372036854775807LL;
4040 static unsigned long long int ubignum = BIG64;
4041
4042 struct incomplete_array
4043 {
4044   int datasize;
4045   double data[];
4046 };
4047
4048 struct named_init {
4049   int number;
4050   const wchar_t *name;
4051   double average;
4052 };
4053
4054 typedef const char *ccp;
4055
4056 static inline int
4057 test_restrict (ccp restrict text)
4058 {
4059   // See if C++-style comments work.
4060   // Iterate through items via the restricted pointer.
4061   // Also check for declarations in for loops.
4062   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4063     continue;
4064   return 0;
4065 }
4066
4067 // Check varargs and va_copy.
4068 static void
4069 test_varargs (const char *format, ...)
4070 {
4071   va_list args;
4072   va_start (args, format);
4073   va_list args_copy;
4074   va_copy (args_copy, args);
4075
4076   const char *str;
4077   int number;
4078   float fnumber;
4079
4080   while (*format)
4081     {
4082       switch (*format++)
4083         {
4084         case 's': // string
4085           str = va_arg (args_copy, const char *);
4086           break;
4087         case 'd': // int
4088           number = va_arg (args_copy, int);
4089           break;
4090         case 'f': // float
4091           fnumber = va_arg (args_copy, double);
4092           break;
4093         default:
4094           break;
4095         }
4096     }
4097   va_end (args_copy);
4098   va_end (args);
4099 }
4100
4101 int
4102 main ()
4103 {
4104
4105   // Check bool.
4106   _Bool success = false;
4107
4108   // Check restrict.
4109   if (test_restrict ("String literal") == 0)
4110     success = true;
4111   char *restrict newvar = "Another string";
4112
4113   // Check varargs.
4114   test_varargs ("s, d' f .", "string", 65, 34.234);
4115   test_varargs_macros ();
4116
4117   // Check flexible array members.
4118   struct incomplete_array *ia =
4119     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4120   ia->datasize = 10;
4121   for (int i = 0; i < ia->datasize; ++i)
4122     ia->data[i] = i * 1.234;
4123
4124   // Check named initializers.
4125   struct named_init ni = {
4126     .number = 34,
4127     .name = L"Test wide string",
4128     .average = 543.34343,
4129   };
4130
4131   ni.number = 58;
4132
4133   int dynamic_array[ni.number];
4134   dynamic_array[ni.number - 1] = 543;
4135
4136   // work around unused variable warnings
4137   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4138           || dynamic_array[ni.number - 1] != 543);
4139
4140   ;
4141   return 0;
4142 }
4143 _ACEOF
4144 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4145 do
4146   CC="$ac_save_CC $ac_arg"
4147   if ac_fn_c_try_compile "$LINENO"; then :
4148   ac_cv_prog_cc_c99=$ac_arg
4149 fi
4150 rm -f core conftest.err conftest.$ac_objext
4151   test "x$ac_cv_prog_cc_c99" != "xno" && break
4152 done
4153 rm -f conftest.$ac_ext
4154 CC=$ac_save_CC
4155
4156 fi
4157 # AC_CACHE_VAL
4158 case "x$ac_cv_prog_cc_c99" in
4159   x)
4160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4161 $as_echo "none needed" >&6; } ;;
4162   xno)
4163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4164 $as_echo "unsupported" >&6; } ;;
4165   *)
4166     CC="$CC $ac_cv_prog_cc_c99"
4167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4168 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4169 esac
4170 if test "x$ac_cv_prog_cc_c99" != xno; then :
4171
4172 fi
4173
4174
4175
4176 ac_ext=c
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4182 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4183 # On Suns, sometimes $CPP names a directory.
4184 if test -n "$CPP" && test -d "$CPP"; then
4185   CPP=
4186 fi
4187 if test -z "$CPP"; then
4188   if ${ac_cv_prog_CPP+:} false; then :
4189   $as_echo_n "(cached) " >&6
4190 else
4191       # Double quotes because CPP needs to be expanded
4192     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4193     do
4194       ac_preproc_ok=false
4195 for ac_c_preproc_warn_flag in '' yes
4196 do
4197   # Use a header file that comes with gcc, so configuring glibc
4198   # with a fresh cross-compiler works.
4199   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200   # <limits.h> exists even on freestanding compilers.
4201   # On the NeXT, cc -E runs the code through the compiler's parser,
4202   # not just through cpp. "Syntax error" is here to catch this case.
4203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h.  */
4205 #ifdef __STDC__
4206 # include <limits.h>
4207 #else
4208 # include <assert.h>
4209 #endif
4210                      Syntax error
4211 _ACEOF
4212 if ac_fn_c_try_cpp "$LINENO"; then :
4213
4214 else
4215   # Broken: fails on valid input.
4216 continue
4217 fi
4218 rm -f conftest.err conftest.i conftest.$ac_ext
4219
4220   # OK, works on sane cases.  Now check whether nonexistent headers
4221   # can be detected and how.
4222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h.  */
4224 #include <ac_nonexistent.h>
4225 _ACEOF
4226 if ac_fn_c_try_cpp "$LINENO"; then :
4227   # Broken: success on invalid input.
4228 continue
4229 else
4230   # Passes both tests.
4231 ac_preproc_ok=:
4232 break
4233 fi
4234 rm -f conftest.err conftest.i conftest.$ac_ext
4235
4236 done
4237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4238 rm -f conftest.i conftest.err conftest.$ac_ext
4239 if $ac_preproc_ok; then :
4240   break
4241 fi
4242
4243     done
4244     ac_cv_prog_CPP=$CPP
4245
4246 fi
4247   CPP=$ac_cv_prog_CPP
4248 else
4249   ac_cv_prog_CPP=$CPP
4250 fi
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4252 $as_echo "$CPP" >&6; }
4253 ac_preproc_ok=false
4254 for ac_c_preproc_warn_flag in '' yes
4255 do
4256   # Use a header file that comes with gcc, so configuring glibc
4257   # with a fresh cross-compiler works.
4258   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4259   # <limits.h> exists even on freestanding compilers.
4260   # On the NeXT, cc -E runs the code through the compiler's parser,
4261   # not just through cpp. "Syntax error" is here to catch this case.
4262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h.  */
4264 #ifdef __STDC__
4265 # include <limits.h>
4266 #else
4267 # include <assert.h>
4268 #endif
4269                      Syntax error
4270 _ACEOF
4271 if ac_fn_c_try_cpp "$LINENO"; then :
4272
4273 else
4274   # Broken: fails on valid input.
4275 continue
4276 fi
4277 rm -f conftest.err conftest.i conftest.$ac_ext
4278
4279   # OK, works on sane cases.  Now check whether nonexistent headers
4280   # can be detected and how.
4281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h.  */
4283 #include <ac_nonexistent.h>
4284 _ACEOF
4285 if ac_fn_c_try_cpp "$LINENO"; then :
4286   # Broken: success on invalid input.
4287 continue
4288 else
4289   # Passes both tests.
4290 ac_preproc_ok=:
4291 break
4292 fi
4293 rm -f conftest.err conftest.i conftest.$ac_ext
4294
4295 done
4296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4297 rm -f conftest.i conftest.err conftest.$ac_ext
4298 if $ac_preproc_ok; then :
4299
4300 else
4301   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4303 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4304 See \`config.log' for more details" "$LINENO" 5; }
4305 fi
4306
4307 ac_ext=c
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312
4313
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4315 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4316 if ${ac_cv_path_GREP+:} false; then :
4317   $as_echo_n "(cached) " >&6
4318 else
4319   if test -z "$GREP"; then
4320   ac_path_GREP_found=false
4321   # Loop through the user's path and test for each of PROGNAME-LIST
4322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4324 do
4325   IFS=$as_save_IFS
4326   test -z "$as_dir" && as_dir=.
4327     for ac_prog in grep ggrep; do
4328     for ac_exec_ext in '' $ac_executable_extensions; do
4329       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4330       as_fn_executable_p "$ac_path_GREP" || continue
4331 # Check for GNU ac_path_GREP and select it if it is found.
4332   # Check for GNU $ac_path_GREP
4333 case `"$ac_path_GREP" --version 2>&1` in
4334 *GNU*)
4335   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4336 *)
4337   ac_count=0
4338   $as_echo_n 0123456789 >"conftest.in"
4339   while :
4340   do
4341     cat "conftest.in" "conftest.in" >"conftest.tmp"
4342     mv "conftest.tmp" "conftest.in"
4343     cp "conftest.in" "conftest.nl"
4344     $as_echo 'GREP' >> "conftest.nl"
4345     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4346     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4347     as_fn_arith $ac_count + 1 && ac_count=$as_val
4348     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4349       # Best one so far, save it but keep looking for a better one
4350       ac_cv_path_GREP="$ac_path_GREP"
4351       ac_path_GREP_max=$ac_count
4352     fi
4353     # 10*(2^10) chars as input seems more than enough
4354     test $ac_count -gt 10 && break
4355   done
4356   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4357 esac
4358
4359       $ac_path_GREP_found && break 3
4360     done
4361   done
4362   done
4363 IFS=$as_save_IFS
4364   if test -z "$ac_cv_path_GREP"; then
4365     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4366   fi
4367 else
4368   ac_cv_path_GREP=$GREP
4369 fi
4370
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4373 $as_echo "$ac_cv_path_GREP" >&6; }
4374  GREP="$ac_cv_path_GREP"
4375
4376
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4378 $as_echo_n "checking for egrep... " >&6; }
4379 if ${ac_cv_path_EGREP+:} false; then :
4380   $as_echo_n "(cached) " >&6
4381 else
4382   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4383    then ac_cv_path_EGREP="$GREP -E"
4384    else
4385      if test -z "$EGREP"; then
4386   ac_path_EGREP_found=false
4387   # Loop through the user's path and test for each of PROGNAME-LIST
4388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4390 do
4391   IFS=$as_save_IFS
4392   test -z "$as_dir" && as_dir=.
4393     for ac_prog in egrep; do
4394     for ac_exec_ext in '' $ac_executable_extensions; do
4395       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4396       as_fn_executable_p "$ac_path_EGREP" || continue
4397 # Check for GNU ac_path_EGREP and select it if it is found.
4398   # Check for GNU $ac_path_EGREP
4399 case `"$ac_path_EGREP" --version 2>&1` in
4400 *GNU*)
4401   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4402 *)
4403   ac_count=0
4404   $as_echo_n 0123456789 >"conftest.in"
4405   while :
4406   do
4407     cat "conftest.in" "conftest.in" >"conftest.tmp"
4408     mv "conftest.tmp" "conftest.in"
4409     cp "conftest.in" "conftest.nl"
4410     $as_echo 'EGREP' >> "conftest.nl"
4411     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4412     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4413     as_fn_arith $ac_count + 1 && ac_count=$as_val
4414     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4415       # Best one so far, save it but keep looking for a better one
4416       ac_cv_path_EGREP="$ac_path_EGREP"
4417       ac_path_EGREP_max=$ac_count
4418     fi
4419     # 10*(2^10) chars as input seems more than enough
4420     test $ac_count -gt 10 && break
4421   done
4422   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4423 esac
4424
4425       $ac_path_EGREP_found && break 3
4426     done
4427   done
4428   done
4429 IFS=$as_save_IFS
4430   if test -z "$ac_cv_path_EGREP"; then
4431     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4432   fi
4433 else
4434   ac_cv_path_EGREP=$EGREP
4435 fi
4436
4437    fi
4438 fi
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4440 $as_echo "$ac_cv_path_EGREP" >&6; }
4441  EGREP="$ac_cv_path_EGREP"
4442
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4445 $as_echo_n "checking for ANSI C header files... " >&6; }
4446 if ${ac_cv_header_stdc+:} false; then :
4447   $as_echo_n "(cached) " >&6
4448 else
4449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h.  */
4451 #include <stdlib.h>
4452 #include <stdarg.h>
4453 #include <string.h>
4454 #include <float.h>
4455
4456 int
4457 main ()
4458 {
4459
4460   ;
4461   return 0;
4462 }
4463 _ACEOF
4464 if ac_fn_c_try_compile "$LINENO"; then :
4465   ac_cv_header_stdc=yes
4466 else
4467   ac_cv_header_stdc=no
4468 fi
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470
4471 if test $ac_cv_header_stdc = yes; then
4472   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h.  */
4475 #include <string.h>
4476
4477 _ACEOF
4478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4479   $EGREP "memchr" >/dev/null 2>&1; then :
4480
4481 else
4482   ac_cv_header_stdc=no
4483 fi
4484 rm -f conftest*
4485
4486 fi
4487
4488 if test $ac_cv_header_stdc = yes; then
4489   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h.  */
4492 #include <stdlib.h>
4493
4494 _ACEOF
4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496   $EGREP "free" >/dev/null 2>&1; then :
4497
4498 else
4499   ac_cv_header_stdc=no
4500 fi
4501 rm -f conftest*
4502
4503 fi
4504
4505 if test $ac_cv_header_stdc = yes; then
4506   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4507   if test "$cross_compiling" = yes; then :
4508   :
4509 else
4510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h.  */
4512 #include <ctype.h>
4513 #include <stdlib.h>
4514 #if ((' ' & 0x0FF) == 0x020)
4515 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4516 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4517 #else
4518 # define ISLOWER(c) \
4519                    (('a' <= (c) && (c) <= 'i') \
4520                      || ('j' <= (c) && (c) <= 'r') \
4521                      || ('s' <= (c) && (c) <= 'z'))
4522 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4523 #endif
4524
4525 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4526 int
4527 main ()
4528 {
4529   int i;
4530   for (i = 0; i < 256; i++)
4531     if (XOR (islower (i), ISLOWER (i))
4532         || toupper (i) != TOUPPER (i))
4533       return 2;
4534   return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_c_try_run "$LINENO"; then :
4538
4539 else
4540   ac_cv_header_stdc=no
4541 fi
4542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4543   conftest.$ac_objext conftest.beam conftest.$ac_ext
4544 fi
4545
4546 fi
4547 fi
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4549 $as_echo "$ac_cv_header_stdc" >&6; }
4550 if test $ac_cv_header_stdc = yes; then
4551
4552 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4553
4554 fi
4555
4556 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4557 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4558                   inttypes.h stdint.h unistd.h
4559 do :
4560   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4561 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4562 "
4563 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4564   cat >>confdefs.h <<_ACEOF
4565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4566 _ACEOF
4567
4568 fi
4569
4570 done
4571
4572
4573
4574
4575
4576
4577 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4578 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4579   CLANGCC="yes"
4580 else
4581   CLANGCC="no"
4582 fi
4583
4584 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4585 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4586   INTELCC="yes"
4587 else
4588   INTELCC="no"
4589 fi
4590
4591 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4592 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4593   SUNCC="yes"
4594 else
4595   SUNCC="no"
4596 fi
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4607         if test -n "$ac_tool_prefix"; then
4608   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4609 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4613   $as_echo_n "(cached) " >&6
4614 else
4615   case $PKG_CONFIG in
4616   [\\/]* | ?:[\\/]*)
4617   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4618   ;;
4619   *)
4620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623   IFS=$as_save_IFS
4624   test -z "$as_dir" && as_dir=.
4625     for ac_exec_ext in '' $ac_executable_extensions; do
4626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629     break 2
4630   fi
4631 done
4632   done
4633 IFS=$as_save_IFS
4634
4635   ;;
4636 esac
4637 fi
4638 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4639 if test -n "$PKG_CONFIG"; then
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4641 $as_echo "$PKG_CONFIG" >&6; }
4642 else
4643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4645 fi
4646
4647
4648 fi
4649 if test -z "$ac_cv_path_PKG_CONFIG"; then
4650   ac_pt_PKG_CONFIG=$PKG_CONFIG
4651   # Extract the first word of "pkg-config", so it can be a program name with args.
4652 set dummy pkg-config; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4656   $as_echo_n "(cached) " >&6
4657 else
4658   case $ac_pt_PKG_CONFIG in
4659   [\\/]* | ?:[\\/]*)
4660   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4661   ;;
4662   *)
4663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668     for ac_exec_ext in '' $ac_executable_extensions; do
4669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672     break 2
4673   fi
4674 done
4675   done
4676 IFS=$as_save_IFS
4677
4678   ;;
4679 esac
4680 fi
4681 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4682 if test -n "$ac_pt_PKG_CONFIG"; then
4683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4684 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4685 else
4686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4688 fi
4689
4690   if test "x$ac_pt_PKG_CONFIG" = x; then
4691     PKG_CONFIG=""
4692   else
4693     case $cross_compiling:$ac_tool_warned in
4694 yes:)
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4697 ac_tool_warned=yes ;;
4698 esac
4699     PKG_CONFIG=$ac_pt_PKG_CONFIG
4700   fi
4701 else
4702   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4703 fi
4704
4705 fi
4706 if test -n "$PKG_CONFIG"; then
4707         _pkg_min_version=0.9.0
4708         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4709 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4710         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4711                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4712 $as_echo "yes" >&6; }
4713         else
4714                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4716                 PKG_CONFIG=""
4717         fi
4718 fi
4719 # Make sure we can run config.sub.
4720 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4721   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4722
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4724 $as_echo_n "checking build system type... " >&6; }
4725 if ${ac_cv_build+:} false; then :
4726   $as_echo_n "(cached) " >&6
4727 else
4728   ac_build_alias=$build_alias
4729 test "x$ac_build_alias" = x &&
4730   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4731 test "x$ac_build_alias" = x &&
4732   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4733 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4734   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4735
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4738 $as_echo "$ac_cv_build" >&6; }
4739 case $ac_cv_build in
4740 *-*-*) ;;
4741 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4742 esac
4743 build=$ac_cv_build
4744 ac_save_IFS=$IFS; IFS='-'
4745 set x $ac_cv_build
4746 shift
4747 build_cpu=$1
4748 build_vendor=$2
4749 shift; shift
4750 # Remember, the first character of IFS is used to create $*,
4751 # except with old shells:
4752 build_os=$*
4753 IFS=$ac_save_IFS
4754 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4755
4756
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4758 $as_echo_n "checking host system type... " >&6; }
4759 if ${ac_cv_host+:} false; then :
4760   $as_echo_n "(cached) " >&6
4761 else
4762   if test "x$host_alias" = x; then
4763   ac_cv_host=$ac_cv_build
4764 else
4765   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4766     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4767 fi
4768
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4771 $as_echo "$ac_cv_host" >&6; }
4772 case $ac_cv_host in
4773 *-*-*) ;;
4774 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4775 esac
4776 host=$ac_cv_host
4777 ac_save_IFS=$IFS; IFS='-'
4778 set x $ac_cv_host
4779 shift
4780 host_cpu=$1
4781 host_vendor=$2
4782 shift; shift
4783 # Remember, the first character of IFS is used to create $*,
4784 # except with old shells:
4785 host_os=$*
4786 IFS=$ac_save_IFS
4787 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4788
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4791 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4792 if ${ac_cv_path_SED+:} false; then :
4793   $as_echo_n "(cached) " >&6
4794 else
4795             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4796      for ac_i in 1 2 3 4 5 6 7; do
4797        ac_script="$ac_script$as_nl$ac_script"
4798      done
4799      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4800      { ac_script=; unset ac_script;}
4801      if test -z "$SED"; then
4802   ac_path_SED_found=false
4803   # Loop through the user's path and test for each of PROGNAME-LIST
4804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807   IFS=$as_save_IFS
4808   test -z "$as_dir" && as_dir=.
4809     for ac_prog in sed gsed; do
4810     for ac_exec_ext in '' $ac_executable_extensions; do
4811       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4812       as_fn_executable_p "$ac_path_SED" || continue
4813 # Check for GNU ac_path_SED and select it if it is found.
4814   # Check for GNU $ac_path_SED
4815 case `"$ac_path_SED" --version 2>&1` in
4816 *GNU*)
4817   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4818 *)
4819   ac_count=0
4820   $as_echo_n 0123456789 >"conftest.in"
4821   while :
4822   do
4823     cat "conftest.in" "conftest.in" >"conftest.tmp"
4824     mv "conftest.tmp" "conftest.in"
4825     cp "conftest.in" "conftest.nl"
4826     $as_echo '' >> "conftest.nl"
4827     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4828     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4829     as_fn_arith $ac_count + 1 && ac_count=$as_val
4830     if test $ac_count -gt ${ac_path_SED_max-0}; then
4831       # Best one so far, save it but keep looking for a better one
4832       ac_cv_path_SED="$ac_path_SED"
4833       ac_path_SED_max=$ac_count
4834     fi
4835     # 10*(2^10) chars as input seems more than enough
4836     test $ac_count -gt 10 && break
4837   done
4838   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4839 esac
4840
4841       $ac_path_SED_found && break 3
4842     done
4843   done
4844   done
4845 IFS=$as_save_IFS
4846   if test -z "$ac_cv_path_SED"; then
4847     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4848   fi
4849 else
4850   ac_cv_path_SED=$SED
4851 fi
4852
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4855 $as_echo "$ac_cv_path_SED" >&6; }
4856  SED="$ac_cv_path_SED"
4857   rm -f conftest.sed
4858
4859
4860
4861
4862
4863
4864 # Check whether --enable-selective-werror was given.
4865 if test "${enable_selective_werror+set}" = set; then :
4866   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4867 else
4868   SELECTIVE_WERROR=yes
4869 fi
4870
4871
4872
4873
4874
4875 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4876 if test "x$SUNCC" = "xyes"; then
4877     BASE_CFLAGS="-v"
4878 else
4879     BASE_CFLAGS=""
4880 fi
4881
4882 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896 xorg_testset_save_CFLAGS="$CFLAGS"
4897
4898 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4899         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4901 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4902 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4903   $as_echo_n "(cached) " >&6
4904 else
4905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h.  */
4907 int i;
4908 _ACEOF
4909 if ac_fn_c_try_compile "$LINENO"; then :
4910   xorg_cv_cc_flag_unknown_warning_option=yes
4911 else
4912   xorg_cv_cc_flag_unknown_warning_option=no
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 fi
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4917 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4918         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4919         CFLAGS="$xorg_testset_save_CFLAGS"
4920 fi
4921
4922 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4923         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4924                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4925         fi
4926         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4927         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4928 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4929 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4930   $as_echo_n "(cached) " >&6
4931 else
4932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h.  */
4934 int i;
4935 _ACEOF
4936 if ac_fn_c_try_compile "$LINENO"; then :
4937   xorg_cv_cc_flag_unused_command_line_argument=yes
4938 else
4939   xorg_cv_cc_flag_unused_command_line_argument=no
4940 fi
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 fi
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4944 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4945         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4946         CFLAGS="$xorg_testset_save_CFLAGS"
4947 fi
4948
4949 found="no"
4950
4951         if test $found = "no" ; then
4952                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4953                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4954                 fi
4955
4956                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4957                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4958                 fi
4959
4960                 CFLAGS="$CFLAGS -Wall"
4961
4962                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4963 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4964                 cacheid=xorg_cv_cc_flag__Wall
4965                 if eval \${$cacheid+:} false; then :
4966   $as_echo_n "(cached) " >&6
4967 else
4968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h.  */
4970 int i;
4971 int
4972 main ()
4973 {
4974
4975   ;
4976   return 0;
4977 }
4978 _ACEOF
4979 if ac_fn_c_try_link "$LINENO"; then :
4980   eval $cacheid=yes
4981 else
4982   eval $cacheid=no
4983 fi
4984 rm -f core conftest.err conftest.$ac_objext \
4985     conftest$ac_exeext conftest.$ac_ext
4986 fi
4987
4988
4989                 CFLAGS="$xorg_testset_save_CFLAGS"
4990
4991                 eval supported=\$$cacheid
4992                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4993 $as_echo "$supported" >&6; }
4994                 if test "$supported" = "yes" ; then
4995                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
4996                         found="yes"
4997                 fi
4998         fi
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014 xorg_testset_save_CFLAGS="$CFLAGS"
5015
5016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5017         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5018         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5019 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5020 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5021   $as_echo_n "(cached) " >&6
5022 else
5023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h.  */
5025 int i;
5026 _ACEOF
5027 if ac_fn_c_try_compile "$LINENO"; then :
5028   xorg_cv_cc_flag_unknown_warning_option=yes
5029 else
5030   xorg_cv_cc_flag_unknown_warning_option=no
5031 fi
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5035 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5036         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5037         CFLAGS="$xorg_testset_save_CFLAGS"
5038 fi
5039
5040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5041         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5042                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5043         fi
5044         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5045         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5046 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5047 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5048   $as_echo_n "(cached) " >&6
5049 else
5050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h.  */
5052 int i;
5053 _ACEOF
5054 if ac_fn_c_try_compile "$LINENO"; then :
5055   xorg_cv_cc_flag_unused_command_line_argument=yes
5056 else
5057   xorg_cv_cc_flag_unused_command_line_argument=no
5058 fi
5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060 fi
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5062 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5063         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5064         CFLAGS="$xorg_testset_save_CFLAGS"
5065 fi
5066
5067 found="no"
5068
5069         if test $found = "no" ; then
5070                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5071                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5072                 fi
5073
5074                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5075                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5076                 fi
5077
5078                 CFLAGS="$CFLAGS -Wpointer-arith"
5079
5080                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
5081 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
5082                 cacheid=xorg_cv_cc_flag__Wpointer_arith
5083                 if eval \${$cacheid+:} false; then :
5084   $as_echo_n "(cached) " >&6
5085 else
5086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h.  */
5088 int i;
5089 int
5090 main ()
5091 {
5092
5093   ;
5094   return 0;
5095 }
5096 _ACEOF
5097 if ac_fn_c_try_link "$LINENO"; then :
5098   eval $cacheid=yes
5099 else
5100   eval $cacheid=no
5101 fi
5102 rm -f core conftest.err conftest.$ac_objext \
5103     conftest$ac_exeext conftest.$ac_ext
5104 fi
5105
5106
5107                 CFLAGS="$xorg_testset_save_CFLAGS"
5108
5109                 eval supported=\$$cacheid
5110                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5111 $as_echo "$supported" >&6; }
5112                 if test "$supported" = "yes" ; then
5113                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5114                         found="yes"
5115                 fi
5116         fi
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132 xorg_testset_save_CFLAGS="$CFLAGS"
5133
5134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5135         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5137 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5138 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5139   $as_echo_n "(cached) " >&6
5140 else
5141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h.  */
5143 int i;
5144 _ACEOF
5145 if ac_fn_c_try_compile "$LINENO"; then :
5146   xorg_cv_cc_flag_unknown_warning_option=yes
5147 else
5148   xorg_cv_cc_flag_unknown_warning_option=no
5149 fi
5150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151 fi
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5153 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5154         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5155         CFLAGS="$xorg_testset_save_CFLAGS"
5156 fi
5157
5158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5159         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5160                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5161         fi
5162         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5163         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5164 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5165 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5166   $as_echo_n "(cached) " >&6
5167 else
5168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h.  */
5170 int i;
5171 _ACEOF
5172 if ac_fn_c_try_compile "$LINENO"; then :
5173   xorg_cv_cc_flag_unused_command_line_argument=yes
5174 else
5175   xorg_cv_cc_flag_unused_command_line_argument=no
5176 fi
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 fi
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5180 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5181         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5182         CFLAGS="$xorg_testset_save_CFLAGS"
5183 fi
5184
5185 found="no"
5186
5187         if test $found = "no" ; then
5188                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5189                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5190                 fi
5191
5192                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5193                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5194                 fi
5195
5196                 CFLAGS="$CFLAGS -Wmissing-declarations"
5197
5198                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
5199 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
5200                 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5201                 if eval \${$cacheid+:} false; then :
5202   $as_echo_n "(cached) " >&6
5203 else
5204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h.  */
5206 int i;
5207 int
5208 main ()
5209 {
5210
5211   ;
5212   return 0;
5213 }
5214 _ACEOF
5215 if ac_fn_c_try_link "$LINENO"; then :
5216   eval $cacheid=yes
5217 else
5218   eval $cacheid=no
5219 fi
5220 rm -f core conftest.err conftest.$ac_objext \
5221     conftest$ac_exeext conftest.$ac_ext
5222 fi
5223
5224
5225                 CFLAGS="$xorg_testset_save_CFLAGS"
5226
5227                 eval supported=\$$cacheid
5228                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5229 $as_echo "$supported" >&6; }
5230                 if test "$supported" = "yes" ; then
5231                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5232                         found="yes"
5233                 fi
5234         fi
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250 xorg_testset_save_CFLAGS="$CFLAGS"
5251
5252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5253         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5254         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5255 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5256 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5257   $as_echo_n "(cached) " >&6
5258 else
5259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h.  */
5261 int i;
5262 _ACEOF
5263 if ac_fn_c_try_compile "$LINENO"; then :
5264   xorg_cv_cc_flag_unknown_warning_option=yes
5265 else
5266   xorg_cv_cc_flag_unknown_warning_option=no
5267 fi
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269 fi
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5271 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5272         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5273         CFLAGS="$xorg_testset_save_CFLAGS"
5274 fi
5275
5276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5277         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5278                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5279         fi
5280         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5282 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5283 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5284   $as_echo_n "(cached) " >&6
5285 else
5286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h.  */
5288 int i;
5289 _ACEOF
5290 if ac_fn_c_try_compile "$LINENO"; then :
5291   xorg_cv_cc_flag_unused_command_line_argument=yes
5292 else
5293   xorg_cv_cc_flag_unused_command_line_argument=no
5294 fi
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 fi
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5298 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5299         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5300         CFLAGS="$xorg_testset_save_CFLAGS"
5301 fi
5302
5303 found="no"
5304
5305         if test $found = "no" ; then
5306                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5307                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5308                 fi
5309
5310                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5311                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5312                 fi
5313
5314                 CFLAGS="$CFLAGS -Wformat=2"
5315
5316                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5317 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5318                 cacheid=xorg_cv_cc_flag__Wformat_2
5319                 if eval \${$cacheid+:} false; then :
5320   $as_echo_n "(cached) " >&6
5321 else
5322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h.  */
5324 int i;
5325 int
5326 main ()
5327 {
5328
5329   ;
5330   return 0;
5331 }
5332 _ACEOF
5333 if ac_fn_c_try_link "$LINENO"; then :
5334   eval $cacheid=yes
5335 else
5336   eval $cacheid=no
5337 fi
5338 rm -f core conftest.err conftest.$ac_objext \
5339     conftest$ac_exeext conftest.$ac_ext
5340 fi
5341
5342
5343                 CFLAGS="$xorg_testset_save_CFLAGS"
5344
5345                 eval supported=\$$cacheid
5346                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5347 $as_echo "$supported" >&6; }
5348                 if test "$supported" = "yes" ; then
5349                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5350                         found="yes"
5351                 fi
5352         fi
5353
5354         if test $found = "no" ; then
5355                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5356                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5357                 fi
5358
5359                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5360                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5361                 fi
5362
5363                 CFLAGS="$CFLAGS -Wformat"
5364
5365                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5366 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5367                 cacheid=xorg_cv_cc_flag__Wformat
5368                 if eval \${$cacheid+:} false; then :
5369   $as_echo_n "(cached) " >&6
5370 else
5371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h.  */
5373 int i;
5374 int
5375 main ()
5376 {
5377
5378   ;
5379   return 0;
5380 }
5381 _ACEOF
5382 if ac_fn_c_try_link "$LINENO"; then :
5383   eval $cacheid=yes
5384 else
5385   eval $cacheid=no
5386 fi
5387 rm -f core conftest.err conftest.$ac_objext \
5388     conftest$ac_exeext conftest.$ac_ext
5389 fi
5390
5391
5392                 CFLAGS="$xorg_testset_save_CFLAGS"
5393
5394                 eval supported=\$$cacheid
5395                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5396 $as_echo "$supported" >&6; }
5397                 if test "$supported" = "yes" ; then
5398                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5399                         found="yes"
5400                 fi
5401         fi
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419 xorg_testset_save_CFLAGS="$CFLAGS"
5420
5421 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5422         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5423         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5424 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5425 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5426   $as_echo_n "(cached) " >&6
5427 else
5428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h.  */
5430 int i;
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433   xorg_cv_cc_flag_unknown_warning_option=yes
5434 else
5435   xorg_cv_cc_flag_unknown_warning_option=no
5436 fi
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5440 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5441         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5442         CFLAGS="$xorg_testset_save_CFLAGS"
5443 fi
5444
5445 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5446         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5447                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5448         fi
5449         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5450         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5451 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5452 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5453   $as_echo_n "(cached) " >&6
5454 else
5455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h.  */
5457 int i;
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460   xorg_cv_cc_flag_unused_command_line_argument=yes
5461 else
5462   xorg_cv_cc_flag_unused_command_line_argument=no
5463 fi
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 fi
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5467 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5468         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5469         CFLAGS="$xorg_testset_save_CFLAGS"
5470 fi
5471
5472 found="no"
5473
5474         if test $found = "no" ; then
5475                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5476                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5477                 fi
5478
5479                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5480                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5481                 fi
5482
5483                 CFLAGS="$CFLAGS -Wstrict-prototypes"
5484
5485                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5486 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5487                 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5488                 if eval \${$cacheid+:} false; then :
5489   $as_echo_n "(cached) " >&6
5490 else
5491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h.  */
5493 int i;
5494 int
5495 main ()
5496 {
5497
5498   ;
5499   return 0;
5500 }
5501 _ACEOF
5502 if ac_fn_c_try_link "$LINENO"; then :
5503   eval $cacheid=yes
5504 else
5505   eval $cacheid=no
5506 fi
5507 rm -f core conftest.err conftest.$ac_objext \
5508     conftest$ac_exeext conftest.$ac_ext
5509 fi
5510
5511
5512                 CFLAGS="$xorg_testset_save_CFLAGS"
5513
5514                 eval supported=\$$cacheid
5515                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5516 $as_echo "$supported" >&6; }
5517                 if test "$supported" = "yes" ; then
5518                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5519                         found="yes"
5520                 fi
5521         fi
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537 xorg_testset_save_CFLAGS="$CFLAGS"
5538
5539 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5540         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5541         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5542 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5543 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5544   $as_echo_n "(cached) " >&6
5545 else
5546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h.  */
5548 int i;
5549 _ACEOF
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551   xorg_cv_cc_flag_unknown_warning_option=yes
5552 else
5553   xorg_cv_cc_flag_unknown_warning_option=no
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 fi
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5558 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5559         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5560         CFLAGS="$xorg_testset_save_CFLAGS"
5561 fi
5562
5563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5564         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5565                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5566         fi
5567         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5569 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5570 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5571   $as_echo_n "(cached) " >&6
5572 else
5573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h.  */
5575 int i;
5576 _ACEOF
5577 if ac_fn_c_try_compile "$LINENO"; then :
5578   xorg_cv_cc_flag_unused_command_line_argument=yes
5579 else
5580   xorg_cv_cc_flag_unused_command_line_argument=no
5581 fi
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5585 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5586         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5587         CFLAGS="$xorg_testset_save_CFLAGS"
5588 fi
5589
5590 found="no"
5591
5592         if test $found = "no" ; then
5593                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5594                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5595                 fi
5596
5597                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5598                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5599                 fi
5600
5601                 CFLAGS="$CFLAGS -Wmissing-prototypes"
5602
5603                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5604 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5605                 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5606                 if eval \${$cacheid+:} false; then :
5607   $as_echo_n "(cached) " >&6
5608 else
5609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h.  */
5611 int i;
5612 int
5613 main ()
5614 {
5615
5616   ;
5617   return 0;
5618 }
5619 _ACEOF
5620 if ac_fn_c_try_link "$LINENO"; then :
5621   eval $cacheid=yes
5622 else
5623   eval $cacheid=no
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext \
5626     conftest$ac_exeext conftest.$ac_ext
5627 fi
5628
5629
5630                 CFLAGS="$xorg_testset_save_CFLAGS"
5631
5632                 eval supported=\$$cacheid
5633                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5634 $as_echo "$supported" >&6; }
5635                 if test "$supported" = "yes" ; then
5636                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5637                         found="yes"
5638                 fi
5639         fi
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655 xorg_testset_save_CFLAGS="$CFLAGS"
5656
5657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5658         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5659         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5660 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5661 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5662   $as_echo_n "(cached) " >&6
5663 else
5664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h.  */
5666 int i;
5667 _ACEOF
5668 if ac_fn_c_try_compile "$LINENO"; then :
5669   xorg_cv_cc_flag_unknown_warning_option=yes
5670 else
5671   xorg_cv_cc_flag_unknown_warning_option=no
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 fi
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5676 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5677         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5678         CFLAGS="$xorg_testset_save_CFLAGS"
5679 fi
5680
5681 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5682         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5683                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5684         fi
5685         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5687 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5688 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5689   $as_echo_n "(cached) " >&6
5690 else
5691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h.  */
5693 int i;
5694 _ACEOF
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696   xorg_cv_cc_flag_unused_command_line_argument=yes
5697 else
5698   xorg_cv_cc_flag_unused_command_line_argument=no
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 fi
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5703 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5704         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5705         CFLAGS="$xorg_testset_save_CFLAGS"
5706 fi
5707
5708 found="no"
5709
5710         if test $found = "no" ; then
5711                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5712                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5713                 fi
5714
5715                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5716                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5717                 fi
5718
5719                 CFLAGS="$CFLAGS -Wnested-externs"
5720
5721                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5722 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5723                 cacheid=xorg_cv_cc_flag__Wnested_externs
5724                 if eval \${$cacheid+:} false; then :
5725   $as_echo_n "(cached) " >&6
5726 else
5727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h.  */
5729 int i;
5730 int
5731 main ()
5732 {
5733
5734   ;
5735   return 0;
5736 }
5737 _ACEOF
5738 if ac_fn_c_try_link "$LINENO"; then :
5739   eval $cacheid=yes
5740 else
5741   eval $cacheid=no
5742 fi
5743 rm -f core conftest.err conftest.$ac_objext \
5744     conftest$ac_exeext conftest.$ac_ext
5745 fi
5746
5747
5748                 CFLAGS="$xorg_testset_save_CFLAGS"
5749
5750                 eval supported=\$$cacheid
5751                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5752 $as_echo "$supported" >&6; }
5753                 if test "$supported" = "yes" ; then
5754                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5755                         found="yes"
5756                 fi
5757         fi
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773 xorg_testset_save_CFLAGS="$CFLAGS"
5774
5775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5776         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5777         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5778 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5779 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5780   $as_echo_n "(cached) " >&6
5781 else
5782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h.  */
5784 int i;
5785 _ACEOF
5786 if ac_fn_c_try_compile "$LINENO"; then :
5787   xorg_cv_cc_flag_unknown_warning_option=yes
5788 else
5789   xorg_cv_cc_flag_unknown_warning_option=no
5790 fi
5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 fi
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5794 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5795         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5796         CFLAGS="$xorg_testset_save_CFLAGS"
5797 fi
5798
5799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5800         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5801                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5802         fi
5803         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5804         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5805 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5806 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5807   $as_echo_n "(cached) " >&6
5808 else
5809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h.  */
5811 int i;
5812 _ACEOF
5813 if ac_fn_c_try_compile "$LINENO"; then :
5814   xorg_cv_cc_flag_unused_command_line_argument=yes
5815 else
5816   xorg_cv_cc_flag_unused_command_line_argument=no
5817 fi
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 fi
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5821 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5822         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5823         CFLAGS="$xorg_testset_save_CFLAGS"
5824 fi
5825
5826 found="no"
5827
5828         if test $found = "no" ; then
5829                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5830                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5831                 fi
5832
5833                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5834                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5835                 fi
5836
5837                 CFLAGS="$CFLAGS -Wbad-function-cast"
5838
5839                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5840 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5841                 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5842                 if eval \${$cacheid+:} false; then :
5843   $as_echo_n "(cached) " >&6
5844 else
5845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h.  */
5847 int i;
5848 int
5849 main ()
5850 {
5851
5852   ;
5853   return 0;
5854 }
5855 _ACEOF
5856 if ac_fn_c_try_link "$LINENO"; then :
5857   eval $cacheid=yes
5858 else
5859   eval $cacheid=no
5860 fi
5861 rm -f core conftest.err conftest.$ac_objext \
5862     conftest$ac_exeext conftest.$ac_ext
5863 fi
5864
5865
5866                 CFLAGS="$xorg_testset_save_CFLAGS"
5867
5868                 eval supported=\$$cacheid
5869                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5870 $as_echo "$supported" >&6; }
5871                 if test "$supported" = "yes" ; then
5872                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5873                         found="yes"
5874                 fi
5875         fi
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891 xorg_testset_save_CFLAGS="$CFLAGS"
5892
5893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5894         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5895         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5896 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5897 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5898   $as_echo_n "(cached) " >&6
5899 else
5900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h.  */
5902 int i;
5903 _ACEOF
5904 if ac_fn_c_try_compile "$LINENO"; then :
5905   xorg_cv_cc_flag_unknown_warning_option=yes
5906 else
5907   xorg_cv_cc_flag_unknown_warning_option=no
5908 fi
5909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 fi
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5912 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5913         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5914         CFLAGS="$xorg_testset_save_CFLAGS"
5915 fi
5916
5917 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5918         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5919                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5920         fi
5921         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5922         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5923 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5924 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5925   $as_echo_n "(cached) " >&6
5926 else
5927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h.  */
5929 int i;
5930 _ACEOF
5931 if ac_fn_c_try_compile "$LINENO"; then :
5932   xorg_cv_cc_flag_unused_command_line_argument=yes
5933 else
5934   xorg_cv_cc_flag_unused_command_line_argument=no
5935 fi
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937 fi
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5939 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5940         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5941         CFLAGS="$xorg_testset_save_CFLAGS"
5942 fi
5943
5944 found="no"
5945
5946         if test $found = "no" ; then
5947                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5948                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5949                 fi
5950
5951                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5952                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5953                 fi
5954
5955                 CFLAGS="$CFLAGS -Wold-style-definition"
5956
5957                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5958 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5959                 cacheid=xorg_cv_cc_flag__Wold_style_definition
5960                 if eval \${$cacheid+:} false; then :
5961   $as_echo_n "(cached) " >&6
5962 else
5963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h.  */
5965 int i;
5966 int
5967 main ()
5968 {
5969
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 if ac_fn_c_try_link "$LINENO"; then :
5975   eval $cacheid=yes
5976 else
5977   eval $cacheid=no
5978 fi
5979 rm -f core conftest.err conftest.$ac_objext \
5980     conftest$ac_exeext conftest.$ac_ext
5981 fi
5982
5983
5984                 CFLAGS="$xorg_testset_save_CFLAGS"
5985
5986                 eval supported=\$$cacheid
5987                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5988 $as_echo "$supported" >&6; }
5989                 if test "$supported" = "yes" ; then
5990                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5991                         found="yes"
5992                 fi
5993         fi
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009 xorg_testset_save_CFLAGS="$CFLAGS"
6010
6011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6012         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6013         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6014 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6015 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6016   $as_echo_n "(cached) " >&6
6017 else
6018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h.  */
6020 int i;
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023   xorg_cv_cc_flag_unknown_warning_option=yes
6024 else
6025   xorg_cv_cc_flag_unknown_warning_option=no
6026 fi
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 fi
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6030 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6031         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6032         CFLAGS="$xorg_testset_save_CFLAGS"
6033 fi
6034
6035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6036         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6037                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6038         fi
6039         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6040         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6041 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6042 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h.  */
6047 int i;
6048 _ACEOF
6049 if ac_fn_c_try_compile "$LINENO"; then :
6050   xorg_cv_cc_flag_unused_command_line_argument=yes
6051 else
6052   xorg_cv_cc_flag_unused_command_line_argument=no
6053 fi
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 fi
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6057 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6058         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6059         CFLAGS="$xorg_testset_save_CFLAGS"
6060 fi
6061
6062 found="no"
6063
6064         if test $found = "no" ; then
6065                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6066                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6067                 fi
6068
6069                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6070                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6071                 fi
6072
6073                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6074
6075                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
6076 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
6077                 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6078                 if eval \${$cacheid+:} false; then :
6079   $as_echo_n "(cached) " >&6
6080 else
6081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h.  */
6083 int i;
6084 int
6085 main ()
6086 {
6087
6088   ;
6089   return 0;
6090 }
6091 _ACEOF
6092 if ac_fn_c_try_link "$LINENO"; then :
6093   eval $cacheid=yes
6094 else
6095   eval $cacheid=no
6096 fi
6097 rm -f core conftest.err conftest.$ac_objext \
6098     conftest$ac_exeext conftest.$ac_ext
6099 fi
6100
6101
6102                 CFLAGS="$xorg_testset_save_CFLAGS"
6103
6104                 eval supported=\$$cacheid
6105                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6106 $as_echo "$supported" >&6; }
6107                 if test "$supported" = "yes" ; then
6108                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6109                         found="yes"
6110                 fi
6111         fi
6112
6113
6114
6115
6116
6117 # This chunk adds additional warnings that could catch undesired effects.
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131 xorg_testset_save_CFLAGS="$CFLAGS"
6132
6133 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6134         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6135         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6136 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6137 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6138   $as_echo_n "(cached) " >&6
6139 else
6140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h.  */
6142 int i;
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145   xorg_cv_cc_flag_unknown_warning_option=yes
6146 else
6147   xorg_cv_cc_flag_unknown_warning_option=no
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 fi
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6152 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6153         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6154         CFLAGS="$xorg_testset_save_CFLAGS"
6155 fi
6156
6157 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6158         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6159                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6160         fi
6161         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6162         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6163 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6164 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6165   $as_echo_n "(cached) " >&6
6166 else
6167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h.  */
6169 int i;
6170 _ACEOF
6171 if ac_fn_c_try_compile "$LINENO"; then :
6172   xorg_cv_cc_flag_unused_command_line_argument=yes
6173 else
6174   xorg_cv_cc_flag_unused_command_line_argument=no
6175 fi
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 fi
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6179 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6180         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6181         CFLAGS="$xorg_testset_save_CFLAGS"
6182 fi
6183
6184 found="no"
6185
6186         if test $found = "no" ; then
6187                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6188                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6189                 fi
6190
6191                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6192                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6193                 fi
6194
6195                 CFLAGS="$CFLAGS -Wunused"
6196
6197                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
6198 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
6199                 cacheid=xorg_cv_cc_flag__Wunused
6200                 if eval \${$cacheid+:} false; then :
6201   $as_echo_n "(cached) " >&6
6202 else
6203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h.  */
6205 int i;
6206 int
6207 main ()
6208 {
6209
6210   ;
6211   return 0;
6212 }
6213 _ACEOF
6214 if ac_fn_c_try_link "$LINENO"; then :
6215   eval $cacheid=yes
6216 else
6217   eval $cacheid=no
6218 fi
6219 rm -f core conftest.err conftest.$ac_objext \
6220     conftest$ac_exeext conftest.$ac_ext
6221 fi
6222
6223
6224                 CFLAGS="$xorg_testset_save_CFLAGS"
6225
6226                 eval supported=\$$cacheid
6227                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6228 $as_echo "$supported" >&6; }
6229                 if test "$supported" = "yes" ; then
6230                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6231                         found="yes"
6232                 fi
6233         fi
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249 xorg_testset_save_CFLAGS="$CFLAGS"
6250
6251 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6252         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6253         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6254 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6255 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6256   $as_echo_n "(cached) " >&6
6257 else
6258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h.  */
6260 int i;
6261 _ACEOF
6262 if ac_fn_c_try_compile "$LINENO"; then :
6263   xorg_cv_cc_flag_unknown_warning_option=yes
6264 else
6265   xorg_cv_cc_flag_unknown_warning_option=no
6266 fi
6267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6268 fi
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6270 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6271         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6272         CFLAGS="$xorg_testset_save_CFLAGS"
6273 fi
6274
6275 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6276         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6277                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6278         fi
6279         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6281 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6282 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6283   $as_echo_n "(cached) " >&6
6284 else
6285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h.  */
6287 int i;
6288 _ACEOF
6289 if ac_fn_c_try_compile "$LINENO"; then :
6290   xorg_cv_cc_flag_unused_command_line_argument=yes
6291 else
6292   xorg_cv_cc_flag_unused_command_line_argument=no
6293 fi
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 fi
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6297 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6298         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6299         CFLAGS="$xorg_testset_save_CFLAGS"
6300 fi
6301
6302 found="no"
6303
6304         if test $found = "no" ; then
6305                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6306                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6307                 fi
6308
6309                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6310                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6311                 fi
6312
6313                 CFLAGS="$CFLAGS -Wuninitialized"
6314
6315                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6316 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6317                 cacheid=xorg_cv_cc_flag__Wuninitialized
6318                 if eval \${$cacheid+:} false; then :
6319   $as_echo_n "(cached) " >&6
6320 else
6321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h.  */
6323 int i;
6324 int
6325 main ()
6326 {
6327
6328   ;
6329   return 0;
6330 }
6331 _ACEOF
6332 if ac_fn_c_try_link "$LINENO"; then :
6333   eval $cacheid=yes
6334 else
6335   eval $cacheid=no
6336 fi
6337 rm -f core conftest.err conftest.$ac_objext \
6338     conftest$ac_exeext conftest.$ac_ext
6339 fi
6340
6341
6342                 CFLAGS="$xorg_testset_save_CFLAGS"
6343
6344                 eval supported=\$$cacheid
6345                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6346 $as_echo "$supported" >&6; }
6347                 if test "$supported" = "yes" ; then
6348                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6349                         found="yes"
6350                 fi
6351         fi
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367 xorg_testset_save_CFLAGS="$CFLAGS"
6368
6369 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6370         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6371         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6372 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6373 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6374   $as_echo_n "(cached) " >&6
6375 else
6376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h.  */
6378 int i;
6379 _ACEOF
6380 if ac_fn_c_try_compile "$LINENO"; then :
6381   xorg_cv_cc_flag_unknown_warning_option=yes
6382 else
6383   xorg_cv_cc_flag_unknown_warning_option=no
6384 fi
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386 fi
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6388 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6389         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6390         CFLAGS="$xorg_testset_save_CFLAGS"
6391 fi
6392
6393 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6394         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6395                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6396         fi
6397         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6398         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6399 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6400 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6401   $as_echo_n "(cached) " >&6
6402 else
6403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h.  */
6405 int i;
6406 _ACEOF
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408   xorg_cv_cc_flag_unused_command_line_argument=yes
6409 else
6410   xorg_cv_cc_flag_unused_command_line_argument=no
6411 fi
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 fi
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6415 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6416         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6417         CFLAGS="$xorg_testset_save_CFLAGS"
6418 fi
6419
6420 found="no"
6421
6422         if test $found = "no" ; then
6423                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6424                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6425                 fi
6426
6427                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6428                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6429                 fi
6430
6431                 CFLAGS="$CFLAGS -Wshadow"
6432
6433                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6434 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6435                 cacheid=xorg_cv_cc_flag__Wshadow
6436                 if eval \${$cacheid+:} false; then :
6437   $as_echo_n "(cached) " >&6
6438 else
6439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h.  */
6441 int i;
6442 int
6443 main ()
6444 {
6445
6446   ;
6447   return 0;
6448 }
6449 _ACEOF
6450 if ac_fn_c_try_link "$LINENO"; then :
6451   eval $cacheid=yes
6452 else
6453   eval $cacheid=no
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext \
6456     conftest$ac_exeext conftest.$ac_ext
6457 fi
6458
6459
6460                 CFLAGS="$xorg_testset_save_CFLAGS"
6461
6462                 eval supported=\$$cacheid
6463                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6464 $as_echo "$supported" >&6; }
6465                 if test "$supported" = "yes" ; then
6466                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6467                         found="yes"
6468                 fi
6469         fi
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485 xorg_testset_save_CFLAGS="$CFLAGS"
6486
6487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6488         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6489         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6490 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6491 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6492   $as_echo_n "(cached) " >&6
6493 else
6494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h.  */
6496 int i;
6497 _ACEOF
6498 if ac_fn_c_try_compile "$LINENO"; then :
6499   xorg_cv_cc_flag_unknown_warning_option=yes
6500 else
6501   xorg_cv_cc_flag_unknown_warning_option=no
6502 fi
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 fi
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6506 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6507         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6508         CFLAGS="$xorg_testset_save_CFLAGS"
6509 fi
6510
6511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6512         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6513                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6514         fi
6515         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6516         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6517 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6518 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6519   $as_echo_n "(cached) " >&6
6520 else
6521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h.  */
6523 int i;
6524 _ACEOF
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526   xorg_cv_cc_flag_unused_command_line_argument=yes
6527 else
6528   xorg_cv_cc_flag_unused_command_line_argument=no
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 fi
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6533 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6534         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6535         CFLAGS="$xorg_testset_save_CFLAGS"
6536 fi
6537
6538 found="no"
6539
6540         if test $found = "no" ; then
6541                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6542                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6543                 fi
6544
6545                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6546                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6547                 fi
6548
6549                 CFLAGS="$CFLAGS -Wcast-qual"
6550
6551                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6552 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6553                 cacheid=xorg_cv_cc_flag__Wcast_qual
6554                 if eval \${$cacheid+:} false; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h.  */
6559 int i;
6560 int
6561 main ()
6562 {
6563
6564   ;
6565   return 0;
6566 }
6567 _ACEOF
6568 if ac_fn_c_try_link "$LINENO"; then :
6569   eval $cacheid=yes
6570 else
6571   eval $cacheid=no
6572 fi
6573 rm -f core conftest.err conftest.$ac_objext \
6574     conftest$ac_exeext conftest.$ac_ext
6575 fi
6576
6577
6578                 CFLAGS="$xorg_testset_save_CFLAGS"
6579
6580                 eval supported=\$$cacheid
6581                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6582 $as_echo "$supported" >&6; }
6583                 if test "$supported" = "yes" ; then
6584                         BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6585                         found="yes"
6586                 fi
6587         fi
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603 xorg_testset_save_CFLAGS="$CFLAGS"
6604
6605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6606         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6607         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6608 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6609 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6610   $as_echo_n "(cached) " >&6
6611 else
6612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h.  */
6614 int i;
6615 _ACEOF
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617   xorg_cv_cc_flag_unknown_warning_option=yes
6618 else
6619   xorg_cv_cc_flag_unknown_warning_option=no
6620 fi
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 fi
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6624 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6625         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6626         CFLAGS="$xorg_testset_save_CFLAGS"
6627 fi
6628
6629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6630         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6631                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6632         fi
6633         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6634         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6635 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6636 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6637   $as_echo_n "(cached) " >&6
6638 else
6639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h.  */
6641 int i;
6642 _ACEOF
6643 if ac_fn_c_try_compile "$LINENO"; then :
6644   xorg_cv_cc_flag_unused_command_line_argument=yes
6645 else
6646   xorg_cv_cc_flag_unused_command_line_argument=no
6647 fi
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649 fi
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6651 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6652         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6653         CFLAGS="$xorg_testset_save_CFLAGS"
6654 fi
6655
6656 found="no"
6657
6658         if test $found = "no" ; then
6659                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6660                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6661                 fi
6662
6663                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6664                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6665                 fi
6666
6667                 CFLAGS="$CFLAGS -Wmissing-noreturn"
6668
6669                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6670 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6671                 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6672                 if eval \${$cacheid+:} false; then :
6673   $as_echo_n "(cached) " >&6
6674 else
6675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h.  */
6677 int i;
6678 int
6679 main ()
6680 {
6681
6682   ;
6683   return 0;
6684 }
6685 _ACEOF
6686 if ac_fn_c_try_link "$LINENO"; then :
6687   eval $cacheid=yes
6688 else
6689   eval $cacheid=no
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext \
6692     conftest$ac_exeext conftest.$ac_ext
6693 fi
6694
6695
6696                 CFLAGS="$xorg_testset_save_CFLAGS"
6697
6698                 eval supported=\$$cacheid
6699                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6700 $as_echo "$supported" >&6; }
6701                 if test "$supported" = "yes" ; then
6702                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6703                         found="yes"
6704                 fi
6705         fi
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721 xorg_testset_save_CFLAGS="$CFLAGS"
6722
6723 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6724         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6725         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6726 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6727 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6728   $as_echo_n "(cached) " >&6
6729 else
6730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h.  */
6732 int i;
6733 _ACEOF
6734 if ac_fn_c_try_compile "$LINENO"; then :
6735   xorg_cv_cc_flag_unknown_warning_option=yes
6736 else
6737   xorg_cv_cc_flag_unknown_warning_option=no
6738 fi
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740 fi
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6742 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6743         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6744         CFLAGS="$xorg_testset_save_CFLAGS"
6745 fi
6746
6747 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6748         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6749                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6750         fi
6751         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6752         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6753 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6754 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6755   $as_echo_n "(cached) " >&6
6756 else
6757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h.  */
6759 int i;
6760 _ACEOF
6761 if ac_fn_c_try_compile "$LINENO"; then :
6762   xorg_cv_cc_flag_unused_command_line_argument=yes
6763 else
6764   xorg_cv_cc_flag_unused_command_line_argument=no
6765 fi
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6769 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6770         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6771         CFLAGS="$xorg_testset_save_CFLAGS"
6772 fi
6773
6774 found="no"
6775
6776         if test $found = "no" ; then
6777                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6778                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6779                 fi
6780
6781                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6782                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6783                 fi
6784
6785                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6786
6787                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6788 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6789                 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6790                 if eval \${$cacheid+:} false; then :
6791   $as_echo_n "(cached) " >&6
6792 else
6793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h.  */
6795 int i;
6796 int
6797 main ()
6798 {
6799
6800   ;
6801   return 0;
6802 }
6803 _ACEOF
6804 if ac_fn_c_try_link "$LINENO"; then :
6805   eval $cacheid=yes
6806 else
6807   eval $cacheid=no
6808 fi
6809 rm -f core conftest.err conftest.$ac_objext \
6810     conftest$ac_exeext conftest.$ac_ext
6811 fi
6812
6813
6814                 CFLAGS="$xorg_testset_save_CFLAGS"
6815
6816                 eval supported=\$$cacheid
6817                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6818 $as_echo "$supported" >&6; }
6819                 if test "$supported" = "yes" ; then
6820                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6821                         found="yes"
6822                 fi
6823         fi
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839 xorg_testset_save_CFLAGS="$CFLAGS"
6840
6841 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6842         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6843         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6844 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6845 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6846   $as_echo_n "(cached) " >&6
6847 else
6848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h.  */
6850 int i;
6851 _ACEOF
6852 if ac_fn_c_try_compile "$LINENO"; then :
6853   xorg_cv_cc_flag_unknown_warning_option=yes
6854 else
6855   xorg_cv_cc_flag_unknown_warning_option=no
6856 fi
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 fi
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6860 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6861         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6862         CFLAGS="$xorg_testset_save_CFLAGS"
6863 fi
6864
6865 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6866         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6867                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6868         fi
6869         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6870         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6871 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6872 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6873   $as_echo_n "(cached) " >&6
6874 else
6875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h.  */
6877 int i;
6878 _ACEOF
6879 if ac_fn_c_try_compile "$LINENO"; then :
6880   xorg_cv_cc_flag_unused_command_line_argument=yes
6881 else
6882   xorg_cv_cc_flag_unused_command_line_argument=no
6883 fi
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 fi
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6887 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6888         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6889         CFLAGS="$xorg_testset_save_CFLAGS"
6890 fi
6891
6892 found="no"
6893
6894         if test $found = "no" ; then
6895                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6896                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6897                 fi
6898
6899                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6900                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6901                 fi
6902
6903                 CFLAGS="$CFLAGS -Wredundant-decls"
6904
6905                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6906 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6907                 cacheid=xorg_cv_cc_flag__Wredundant_decls
6908                 if eval \${$cacheid+:} false; then :
6909   $as_echo_n "(cached) " >&6
6910 else
6911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h.  */
6913 int i;
6914 int
6915 main ()
6916 {
6917
6918   ;
6919   return 0;
6920 }
6921 _ACEOF
6922 if ac_fn_c_try_link "$LINENO"; then :
6923   eval $cacheid=yes
6924 else
6925   eval $cacheid=no
6926 fi
6927 rm -f core conftest.err conftest.$ac_objext \
6928     conftest$ac_exeext conftest.$ac_ext
6929 fi
6930
6931
6932                 CFLAGS="$xorg_testset_save_CFLAGS"
6933
6934                 eval supported=\$$cacheid
6935                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6936 $as_echo "$supported" >&6; }
6937                 if test "$supported" = "yes" ; then
6938                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6939                         found="yes"
6940                 fi
6941         fi
6942
6943
6944
6945 # These are currently disabled because they are noisy.  They will be enabled
6946 # in the future once the codebase is sufficiently modernized to silence
6947 # them.  For now, I don't want them to drown out the other warnings.
6948 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6949 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6950 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6951
6952 # Turn some warnings into errors, so we don't accidently get successful builds
6953 # when there are problems that should be fixed.
6954
6955 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969 xorg_testset_save_CFLAGS="$CFLAGS"
6970
6971 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6972         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6974 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6975 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6976   $as_echo_n "(cached) " >&6
6977 else
6978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h.  */
6980 int i;
6981 _ACEOF
6982 if ac_fn_c_try_compile "$LINENO"; then :
6983   xorg_cv_cc_flag_unknown_warning_option=yes
6984 else
6985   xorg_cv_cc_flag_unknown_warning_option=no
6986 fi
6987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 fi
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6990 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6991         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6992         CFLAGS="$xorg_testset_save_CFLAGS"
6993 fi
6994
6995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6996         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6997                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6998         fi
6999         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7000         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7001 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7002 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7003   $as_echo_n "(cached) " >&6
7004 else
7005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h.  */
7007 int i;
7008 _ACEOF
7009 if ac_fn_c_try_compile "$LINENO"; then :
7010   xorg_cv_cc_flag_unused_command_line_argument=yes
7011 else
7012   xorg_cv_cc_flag_unused_command_line_argument=no
7013 fi
7014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 fi
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7017 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7018         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7019         CFLAGS="$xorg_testset_save_CFLAGS"
7020 fi
7021
7022 found="no"
7023
7024         if test $found = "no" ; then
7025                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7026                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7027                 fi
7028
7029                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7030                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7031                 fi
7032
7033                 CFLAGS="$CFLAGS -Werror=implicit"
7034
7035                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
7036 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
7037                 cacheid=xorg_cv_cc_flag__Werror_implicit
7038                 if eval \${$cacheid+:} false; then :
7039   $as_echo_n "(cached) " >&6
7040 else
7041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h.  */
7043 int i;
7044 int
7045 main ()
7046 {
7047
7048   ;
7049   return 0;
7050 }
7051 _ACEOF
7052 if ac_fn_c_try_link "$LINENO"; then :
7053   eval $cacheid=yes
7054 else
7055   eval $cacheid=no
7056 fi
7057 rm -f core conftest.err conftest.$ac_objext \
7058     conftest$ac_exeext conftest.$ac_ext
7059 fi
7060
7061
7062                 CFLAGS="$xorg_testset_save_CFLAGS"
7063
7064                 eval supported=\$$cacheid
7065                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7066 $as_echo "$supported" >&6; }
7067                 if test "$supported" = "yes" ; then
7068                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7069                         found="yes"
7070                 fi
7071         fi
7072
7073         if test $found = "no" ; then
7074                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7075                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7076                 fi
7077
7078                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7079                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7080                 fi
7081
7082                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7083
7084                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7085 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7086                 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7087                 if eval \${$cacheid+:} false; then :
7088   $as_echo_n "(cached) " >&6
7089 else
7090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h.  */
7092 int i;
7093 int
7094 main ()
7095 {
7096
7097   ;
7098   return 0;
7099 }
7100 _ACEOF
7101 if ac_fn_c_try_link "$LINENO"; then :
7102   eval $cacheid=yes
7103 else
7104   eval $cacheid=no
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext \
7107     conftest$ac_exeext conftest.$ac_ext
7108 fi
7109
7110
7111                 CFLAGS="$xorg_testset_save_CFLAGS"
7112
7113                 eval supported=\$$cacheid
7114                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7115 $as_echo "$supported" >&6; }
7116                 if test "$supported" = "yes" ; then
7117                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7118                         found="yes"
7119                 fi
7120         fi
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136 xorg_testset_save_CFLAGS="$CFLAGS"
7137
7138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7139         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7140         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7141 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7142 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7143   $as_echo_n "(cached) " >&6
7144 else
7145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h.  */
7147 int i;
7148 _ACEOF
7149 if ac_fn_c_try_compile "$LINENO"; then :
7150   xorg_cv_cc_flag_unknown_warning_option=yes
7151 else
7152   xorg_cv_cc_flag_unknown_warning_option=no
7153 fi
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155 fi
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7157 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7158         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7159         CFLAGS="$xorg_testset_save_CFLAGS"
7160 fi
7161
7162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7163         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7164                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7165         fi
7166         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7168 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7169 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7170   $as_echo_n "(cached) " >&6
7171 else
7172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h.  */
7174 int i;
7175 _ACEOF
7176 if ac_fn_c_try_compile "$LINENO"; then :
7177   xorg_cv_cc_flag_unused_command_line_argument=yes
7178 else
7179   xorg_cv_cc_flag_unused_command_line_argument=no
7180 fi
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182 fi
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7184 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7185         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7186         CFLAGS="$xorg_testset_save_CFLAGS"
7187 fi
7188
7189 found="no"
7190
7191         if test $found = "no" ; then
7192                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7193                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7194                 fi
7195
7196                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7197                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7198                 fi
7199
7200                 CFLAGS="$CFLAGS -Werror=nonnull"
7201
7202                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
7203 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
7204                 cacheid=xorg_cv_cc_flag__Werror_nonnull
7205                 if eval \${$cacheid+:} false; then :
7206   $as_echo_n "(cached) " >&6
7207 else
7208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h.  */
7210 int i;
7211 int
7212 main ()
7213 {
7214
7215   ;
7216   return 0;
7217 }
7218 _ACEOF
7219 if ac_fn_c_try_link "$LINENO"; then :
7220   eval $cacheid=yes
7221 else
7222   eval $cacheid=no
7223 fi
7224 rm -f core conftest.err conftest.$ac_objext \
7225     conftest$ac_exeext conftest.$ac_ext
7226 fi
7227
7228
7229                 CFLAGS="$xorg_testset_save_CFLAGS"
7230
7231                 eval supported=\$$cacheid
7232                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7233 $as_echo "$supported" >&6; }
7234                 if test "$supported" = "yes" ; then
7235                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7236                         found="yes"
7237                 fi
7238         fi
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254 xorg_testset_save_CFLAGS="$CFLAGS"
7255
7256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7257         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7258         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7259 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7260 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7261   $as_echo_n "(cached) " >&6
7262 else
7263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h.  */
7265 int i;
7266 _ACEOF
7267 if ac_fn_c_try_compile "$LINENO"; then :
7268   xorg_cv_cc_flag_unknown_warning_option=yes
7269 else
7270   xorg_cv_cc_flag_unknown_warning_option=no
7271 fi
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 fi
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7275 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7276         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7277         CFLAGS="$xorg_testset_save_CFLAGS"
7278 fi
7279
7280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7281         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7282                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7283         fi
7284         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7285         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7286 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7287 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7288   $as_echo_n "(cached) " >&6
7289 else
7290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h.  */
7292 int i;
7293 _ACEOF
7294 if ac_fn_c_try_compile "$LINENO"; then :
7295   xorg_cv_cc_flag_unused_command_line_argument=yes
7296 else
7297   xorg_cv_cc_flag_unused_command_line_argument=no
7298 fi
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 fi
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7302 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7303         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7304         CFLAGS="$xorg_testset_save_CFLAGS"
7305 fi
7306
7307 found="no"
7308
7309         if test $found = "no" ; then
7310                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7311                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7312                 fi
7313
7314                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7315                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7316                 fi
7317
7318                 CFLAGS="$CFLAGS -Werror=init-self"
7319
7320                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7321 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7322                 cacheid=xorg_cv_cc_flag__Werror_init_self
7323                 if eval \${$cacheid+:} false; then :
7324   $as_echo_n "(cached) " >&6
7325 else
7326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h.  */
7328 int i;
7329 int
7330 main ()
7331 {
7332
7333   ;
7334   return 0;
7335 }
7336 _ACEOF
7337 if ac_fn_c_try_link "$LINENO"; then :
7338   eval $cacheid=yes
7339 else
7340   eval $cacheid=no
7341 fi
7342 rm -f core conftest.err conftest.$ac_objext \
7343     conftest$ac_exeext conftest.$ac_ext
7344 fi
7345
7346
7347                 CFLAGS="$xorg_testset_save_CFLAGS"
7348
7349                 eval supported=\$$cacheid
7350                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7351 $as_echo "$supported" >&6; }
7352                 if test "$supported" = "yes" ; then
7353                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7354                         found="yes"
7355                 fi
7356         fi
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372 xorg_testset_save_CFLAGS="$CFLAGS"
7373
7374 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7375         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7376         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7377 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7378 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7379   $as_echo_n "(cached) " >&6
7380 else
7381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h.  */
7383 int i;
7384 _ACEOF
7385 if ac_fn_c_try_compile "$LINENO"; then :
7386   xorg_cv_cc_flag_unknown_warning_option=yes
7387 else
7388   xorg_cv_cc_flag_unknown_warning_option=no
7389 fi
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 fi
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7393 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7394         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7395         CFLAGS="$xorg_testset_save_CFLAGS"
7396 fi
7397
7398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7399         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7400                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7401         fi
7402         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7403         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7404 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7405 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7406   $as_echo_n "(cached) " >&6
7407 else
7408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h.  */
7410 int i;
7411 _ACEOF
7412 if ac_fn_c_try_compile "$LINENO"; then :
7413   xorg_cv_cc_flag_unused_command_line_argument=yes
7414 else
7415   xorg_cv_cc_flag_unused_command_line_argument=no
7416 fi
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 fi
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7420 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7421         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7422         CFLAGS="$xorg_testset_save_CFLAGS"
7423 fi
7424
7425 found="no"
7426
7427         if test $found = "no" ; then
7428                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7429                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7430                 fi
7431
7432                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7433                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7434                 fi
7435
7436                 CFLAGS="$CFLAGS -Werror=main"
7437
7438                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7439 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7440                 cacheid=xorg_cv_cc_flag__Werror_main
7441                 if eval \${$cacheid+:} false; then :
7442   $as_echo_n "(cached) " >&6
7443 else
7444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h.  */
7446 int i;
7447 int
7448 main ()
7449 {
7450
7451   ;
7452   return 0;
7453 }
7454 _ACEOF
7455 if ac_fn_c_try_link "$LINENO"; then :
7456   eval $cacheid=yes
7457 else
7458   eval $cacheid=no
7459 fi
7460 rm -f core conftest.err conftest.$ac_objext \
7461     conftest$ac_exeext conftest.$ac_ext
7462 fi
7463
7464
7465                 CFLAGS="$xorg_testset_save_CFLAGS"
7466
7467                 eval supported=\$$cacheid
7468                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7469 $as_echo "$supported" >&6; }
7470                 if test "$supported" = "yes" ; then
7471                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7472                         found="yes"
7473                 fi
7474         fi
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490 xorg_testset_save_CFLAGS="$CFLAGS"
7491
7492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7493         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7494         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7495 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7496 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7497   $as_echo_n "(cached) " >&6
7498 else
7499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h.  */
7501 int i;
7502 _ACEOF
7503 if ac_fn_c_try_compile "$LINENO"; then :
7504   xorg_cv_cc_flag_unknown_warning_option=yes
7505 else
7506   xorg_cv_cc_flag_unknown_warning_option=no
7507 fi
7508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509 fi
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7511 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7512         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7513         CFLAGS="$xorg_testset_save_CFLAGS"
7514 fi
7515
7516 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7517         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7518                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7519         fi
7520         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7521         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7522 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7523 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7524   $as_echo_n "(cached) " >&6
7525 else
7526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h.  */
7528 int i;
7529 _ACEOF
7530 if ac_fn_c_try_compile "$LINENO"; then :
7531   xorg_cv_cc_flag_unused_command_line_argument=yes
7532 else
7533   xorg_cv_cc_flag_unused_command_line_argument=no
7534 fi
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 fi
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7538 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7539         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7540         CFLAGS="$xorg_testset_save_CFLAGS"
7541 fi
7542
7543 found="no"
7544
7545         if test $found = "no" ; then
7546                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7547                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7548                 fi
7549
7550                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7551                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7552                 fi
7553
7554                 CFLAGS="$CFLAGS -Werror=missing-braces"
7555
7556                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7557 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7558                 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7559                 if eval \${$cacheid+:} false; then :
7560   $as_echo_n "(cached) " >&6
7561 else
7562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h.  */
7564 int i;
7565 int
7566 main ()
7567 {
7568
7569   ;
7570   return 0;
7571 }
7572 _ACEOF
7573 if ac_fn_c_try_link "$LINENO"; then :
7574   eval $cacheid=yes
7575 else
7576   eval $cacheid=no
7577 fi
7578 rm -f core conftest.err conftest.$ac_objext \
7579     conftest$ac_exeext conftest.$ac_ext
7580 fi
7581
7582
7583                 CFLAGS="$xorg_testset_save_CFLAGS"
7584
7585                 eval supported=\$$cacheid
7586                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7587 $as_echo "$supported" >&6; }
7588                 if test "$supported" = "yes" ; then
7589                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7590                         found="yes"
7591                 fi
7592         fi
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608 xorg_testset_save_CFLAGS="$CFLAGS"
7609
7610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7611         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7612         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7613 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7614 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7615   $as_echo_n "(cached) " >&6
7616 else
7617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h.  */
7619 int i;
7620 _ACEOF
7621 if ac_fn_c_try_compile "$LINENO"; then :
7622   xorg_cv_cc_flag_unknown_warning_option=yes
7623 else
7624   xorg_cv_cc_flag_unknown_warning_option=no
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 fi
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7629 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7630         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7631         CFLAGS="$xorg_testset_save_CFLAGS"
7632 fi
7633
7634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7635         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7636                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7637         fi
7638         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7639         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7640 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7641 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7642   $as_echo_n "(cached) " >&6
7643 else
7644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h.  */
7646 int i;
7647 _ACEOF
7648 if ac_fn_c_try_compile "$LINENO"; then :
7649   xorg_cv_cc_flag_unused_command_line_argument=yes
7650 else
7651   xorg_cv_cc_flag_unused_command_line_argument=no
7652 fi
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 fi
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7656 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7657         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7658         CFLAGS="$xorg_testset_save_CFLAGS"
7659 fi
7660
7661 found="no"
7662
7663         if test $found = "no" ; then
7664                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7665                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7666                 fi
7667
7668                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7669                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7670                 fi
7671
7672                 CFLAGS="$CFLAGS -Werror=sequence-point"
7673
7674                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7675 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7676                 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7677                 if eval \${$cacheid+:} false; then :
7678   $as_echo_n "(cached) " >&6
7679 else
7680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h.  */
7682 int i;
7683 int
7684 main ()
7685 {
7686
7687   ;
7688   return 0;
7689 }
7690 _ACEOF
7691 if ac_fn_c_try_link "$LINENO"; then :
7692   eval $cacheid=yes
7693 else
7694   eval $cacheid=no
7695 fi
7696 rm -f core conftest.err conftest.$ac_objext \
7697     conftest$ac_exeext conftest.$ac_ext
7698 fi
7699
7700
7701                 CFLAGS="$xorg_testset_save_CFLAGS"
7702
7703                 eval supported=\$$cacheid
7704                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7705 $as_echo "$supported" >&6; }
7706                 if test "$supported" = "yes" ; then
7707                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7708                         found="yes"
7709                 fi
7710         fi
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726 xorg_testset_save_CFLAGS="$CFLAGS"
7727
7728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7729         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7731 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7732 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7733   $as_echo_n "(cached) " >&6
7734 else
7735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h.  */
7737 int i;
7738 _ACEOF
7739 if ac_fn_c_try_compile "$LINENO"; then :
7740   xorg_cv_cc_flag_unknown_warning_option=yes
7741 else
7742   xorg_cv_cc_flag_unknown_warning_option=no
7743 fi
7744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745 fi
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7747 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7748         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7749         CFLAGS="$xorg_testset_save_CFLAGS"
7750 fi
7751
7752 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7753         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7754                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7755         fi
7756         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7757         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7758 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7759 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7760   $as_echo_n "(cached) " >&6
7761 else
7762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h.  */
7764 int i;
7765 _ACEOF
7766 if ac_fn_c_try_compile "$LINENO"; then :
7767   xorg_cv_cc_flag_unused_command_line_argument=yes
7768 else
7769   xorg_cv_cc_flag_unused_command_line_argument=no
7770 fi
7771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 fi
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7774 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7775         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7776         CFLAGS="$xorg_testset_save_CFLAGS"
7777 fi
7778
7779 found="no"
7780
7781         if test $found = "no" ; then
7782                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7783                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784                 fi
7785
7786                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7787                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7788                 fi
7789
7790                 CFLAGS="$CFLAGS -Werror=return-type"
7791
7792                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7793 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7794                 cacheid=xorg_cv_cc_flag__Werror_return_type
7795                 if eval \${$cacheid+:} false; then :
7796   $as_echo_n "(cached) " >&6
7797 else
7798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h.  */
7800 int i;
7801 int
7802 main ()
7803 {
7804
7805   ;
7806   return 0;
7807 }
7808 _ACEOF
7809 if ac_fn_c_try_link "$LINENO"; then :
7810   eval $cacheid=yes
7811 else
7812   eval $cacheid=no
7813 fi
7814 rm -f core conftest.err conftest.$ac_objext \
7815     conftest$ac_exeext conftest.$ac_ext
7816 fi
7817
7818
7819                 CFLAGS="$xorg_testset_save_CFLAGS"
7820
7821                 eval supported=\$$cacheid
7822                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7823 $as_echo "$supported" >&6; }
7824                 if test "$supported" = "yes" ; then
7825                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7826                         found="yes"
7827                 fi
7828         fi
7829
7830         if test $found = "no" ; then
7831                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7832                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7833                 fi
7834
7835                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7836                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7837                 fi
7838
7839                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7840
7841                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7842 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7843                 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7844                 if eval \${$cacheid+:} false; then :
7845   $as_echo_n "(cached) " >&6
7846 else
7847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h.  */
7849 int i;
7850 int
7851 main ()
7852 {
7853
7854   ;
7855   return 0;
7856 }
7857 _ACEOF
7858 if ac_fn_c_try_link "$LINENO"; then :
7859   eval $cacheid=yes
7860 else
7861   eval $cacheid=no
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext \
7864     conftest$ac_exeext conftest.$ac_ext
7865 fi
7866
7867
7868                 CFLAGS="$xorg_testset_save_CFLAGS"
7869
7870                 eval supported=\$$cacheid
7871                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7872 $as_echo "$supported" >&6; }
7873                 if test "$supported" = "yes" ; then
7874                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7875                         found="yes"
7876                 fi
7877         fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893 xorg_testset_save_CFLAGS="$CFLAGS"
7894
7895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7896         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7898 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7899 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7900   $as_echo_n "(cached) " >&6
7901 else
7902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h.  */
7904 int i;
7905 _ACEOF
7906 if ac_fn_c_try_compile "$LINENO"; then :
7907   xorg_cv_cc_flag_unknown_warning_option=yes
7908 else
7909   xorg_cv_cc_flag_unknown_warning_option=no
7910 fi
7911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 fi
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7914 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7915         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7916         CFLAGS="$xorg_testset_save_CFLAGS"
7917 fi
7918
7919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7920         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7921                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7922         fi
7923         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7924         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7925 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7926 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7927   $as_echo_n "(cached) " >&6
7928 else
7929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h.  */
7931 int i;
7932 _ACEOF
7933 if ac_fn_c_try_compile "$LINENO"; then :
7934   xorg_cv_cc_flag_unused_command_line_argument=yes
7935 else
7936   xorg_cv_cc_flag_unused_command_line_argument=no
7937 fi
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939 fi
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7941 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7942         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7943         CFLAGS="$xorg_testset_save_CFLAGS"
7944 fi
7945
7946 found="no"
7947
7948         if test $found = "no" ; then
7949                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7950                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7951                 fi
7952
7953                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7954                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7955                 fi
7956
7957                 CFLAGS="$CFLAGS -Werror=trigraphs"
7958
7959                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7960 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7961                 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7962                 if eval \${$cacheid+:} false; then :
7963   $as_echo_n "(cached) " >&6
7964 else
7965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h.  */
7967 int i;
7968 int
7969 main ()
7970 {
7971
7972   ;
7973   return 0;
7974 }
7975 _ACEOF
7976 if ac_fn_c_try_link "$LINENO"; then :
7977   eval $cacheid=yes
7978 else
7979   eval $cacheid=no
7980 fi
7981 rm -f core conftest.err conftest.$ac_objext \
7982     conftest$ac_exeext conftest.$ac_ext
7983 fi
7984
7985
7986                 CFLAGS="$xorg_testset_save_CFLAGS"
7987
7988                 eval supported=\$$cacheid
7989                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7990 $as_echo "$supported" >&6; }
7991                 if test "$supported" = "yes" ; then
7992                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7993                         found="yes"
7994                 fi
7995         fi
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011 xorg_testset_save_CFLAGS="$CFLAGS"
8012
8013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8014         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8015         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8016 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8017 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h.  */
8022 int i;
8023 _ACEOF
8024 if ac_fn_c_try_compile "$LINENO"; then :
8025   xorg_cv_cc_flag_unknown_warning_option=yes
8026 else
8027   xorg_cv_cc_flag_unknown_warning_option=no
8028 fi
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8032 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8033         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8034         CFLAGS="$xorg_testset_save_CFLAGS"
8035 fi
8036
8037 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8038         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8039                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8040         fi
8041         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8042         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8043 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8044 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8045   $as_echo_n "(cached) " >&6
8046 else
8047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h.  */
8049 int i;
8050 _ACEOF
8051 if ac_fn_c_try_compile "$LINENO"; then :
8052   xorg_cv_cc_flag_unused_command_line_argument=yes
8053 else
8054   xorg_cv_cc_flag_unused_command_line_argument=no
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8059 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8060         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8061         CFLAGS="$xorg_testset_save_CFLAGS"
8062 fi
8063
8064 found="no"
8065
8066         if test $found = "no" ; then
8067                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8068                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8069                 fi
8070
8071                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8072                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8073                 fi
8074
8075                 CFLAGS="$CFLAGS -Werror=array-bounds"
8076
8077                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
8078 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
8079                 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8080                 if eval \${$cacheid+:} false; then :
8081   $as_echo_n "(cached) " >&6
8082 else
8083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h.  */
8085 int i;
8086 int
8087 main ()
8088 {
8089
8090   ;
8091   return 0;
8092 }
8093 _ACEOF
8094 if ac_fn_c_try_link "$LINENO"; then :
8095   eval $cacheid=yes
8096 else
8097   eval $cacheid=no
8098 fi
8099 rm -f core conftest.err conftest.$ac_objext \
8100     conftest$ac_exeext conftest.$ac_ext
8101 fi
8102
8103
8104                 CFLAGS="$xorg_testset_save_CFLAGS"
8105
8106                 eval supported=\$$cacheid
8107                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8108 $as_echo "$supported" >&6; }
8109                 if test "$supported" = "yes" ; then
8110                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8111                         found="yes"
8112                 fi
8113         fi
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129 xorg_testset_save_CFLAGS="$CFLAGS"
8130
8131 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8132         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8134 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8135 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8136   $as_echo_n "(cached) " >&6
8137 else
8138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h.  */
8140 int i;
8141 _ACEOF
8142 if ac_fn_c_try_compile "$LINENO"; then :
8143   xorg_cv_cc_flag_unknown_warning_option=yes
8144 else
8145   xorg_cv_cc_flag_unknown_warning_option=no
8146 fi
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 fi
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8150 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8151         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8152         CFLAGS="$xorg_testset_save_CFLAGS"
8153 fi
8154
8155 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8156         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8157                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8158         fi
8159         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8160         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8161 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8162 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8163   $as_echo_n "(cached) " >&6
8164 else
8165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h.  */
8167 int i;
8168 _ACEOF
8169 if ac_fn_c_try_compile "$LINENO"; then :
8170   xorg_cv_cc_flag_unused_command_line_argument=yes
8171 else
8172   xorg_cv_cc_flag_unused_command_line_argument=no
8173 fi
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 fi
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8177 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8178         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8179         CFLAGS="$xorg_testset_save_CFLAGS"
8180 fi
8181
8182 found="no"
8183
8184         if test $found = "no" ; then
8185                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8186                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8187                 fi
8188
8189                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8190                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8191                 fi
8192
8193                 CFLAGS="$CFLAGS -Werror=write-strings"
8194
8195                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
8196 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
8197                 cacheid=xorg_cv_cc_flag__Werror_write_strings
8198                 if eval \${$cacheid+:} false; then :
8199   $as_echo_n "(cached) " >&6
8200 else
8201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h.  */
8203 int i;
8204 int
8205 main ()
8206 {
8207
8208   ;
8209   return 0;
8210 }
8211 _ACEOF
8212 if ac_fn_c_try_link "$LINENO"; then :
8213   eval $cacheid=yes
8214 else
8215   eval $cacheid=no
8216 fi
8217 rm -f core conftest.err conftest.$ac_objext \
8218     conftest$ac_exeext conftest.$ac_ext
8219 fi
8220
8221
8222                 CFLAGS="$xorg_testset_save_CFLAGS"
8223
8224                 eval supported=\$$cacheid
8225                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8226 $as_echo "$supported" >&6; }
8227                 if test "$supported" = "yes" ; then
8228                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8229                         found="yes"
8230                 fi
8231         fi
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247 xorg_testset_save_CFLAGS="$CFLAGS"
8248
8249 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8250         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8251         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8252 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8253 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8254   $as_echo_n "(cached) " >&6
8255 else
8256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h.  */
8258 int i;
8259 _ACEOF
8260 if ac_fn_c_try_compile "$LINENO"; then :
8261   xorg_cv_cc_flag_unknown_warning_option=yes
8262 else
8263   xorg_cv_cc_flag_unknown_warning_option=no
8264 fi
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8266 fi
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8268 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8269         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8270         CFLAGS="$xorg_testset_save_CFLAGS"
8271 fi
8272
8273 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8274         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8275                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8276         fi
8277         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8278         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8279 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8280 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8281   $as_echo_n "(cached) " >&6
8282 else
8283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h.  */
8285 int i;
8286 _ACEOF
8287 if ac_fn_c_try_compile "$LINENO"; then :
8288   xorg_cv_cc_flag_unused_command_line_argument=yes
8289 else
8290   xorg_cv_cc_flag_unused_command_line_argument=no
8291 fi
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 fi
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8295 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8296         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8297         CFLAGS="$xorg_testset_save_CFLAGS"
8298 fi
8299
8300 found="no"
8301
8302         if test $found = "no" ; then
8303                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8304                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8305                 fi
8306
8307                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8308                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8309                 fi
8310
8311                 CFLAGS="$CFLAGS -Werror=address"
8312
8313                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8314 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8315                 cacheid=xorg_cv_cc_flag__Werror_address
8316                 if eval \${$cacheid+:} false; then :
8317   $as_echo_n "(cached) " >&6
8318 else
8319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h.  */
8321 int i;
8322 int
8323 main ()
8324 {
8325
8326   ;
8327   return 0;
8328 }
8329 _ACEOF
8330 if ac_fn_c_try_link "$LINENO"; then :
8331   eval $cacheid=yes
8332 else
8333   eval $cacheid=no
8334 fi
8335 rm -f core conftest.err conftest.$ac_objext \
8336     conftest$ac_exeext conftest.$ac_ext
8337 fi
8338
8339
8340                 CFLAGS="$xorg_testset_save_CFLAGS"
8341
8342                 eval supported=\$$cacheid
8343                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8344 $as_echo "$supported" >&6; }
8345                 if test "$supported" = "yes" ; then
8346                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8347                         found="yes"
8348                 fi
8349         fi
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365 xorg_testset_save_CFLAGS="$CFLAGS"
8366
8367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8368         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8369         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8370 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8371 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8372   $as_echo_n "(cached) " >&6
8373 else
8374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h.  */
8376 int i;
8377 _ACEOF
8378 if ac_fn_c_try_compile "$LINENO"; then :
8379   xorg_cv_cc_flag_unknown_warning_option=yes
8380 else
8381   xorg_cv_cc_flag_unknown_warning_option=no
8382 fi
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 fi
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8386 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8387         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8388         CFLAGS="$xorg_testset_save_CFLAGS"
8389 fi
8390
8391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8392         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8393                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8394         fi
8395         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8396         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8397 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8398 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8399   $as_echo_n "(cached) " >&6
8400 else
8401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h.  */
8403 int i;
8404 _ACEOF
8405 if ac_fn_c_try_compile "$LINENO"; then :
8406   xorg_cv_cc_flag_unused_command_line_argument=yes
8407 else
8408   xorg_cv_cc_flag_unused_command_line_argument=no
8409 fi
8410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 fi
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8413 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8414         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8415         CFLAGS="$xorg_testset_save_CFLAGS"
8416 fi
8417
8418 found="no"
8419
8420         if test $found = "no" ; then
8421                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8422                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423                 fi
8424
8425                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8426                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8427                 fi
8428
8429                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8430
8431                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8432 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8433                 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8434                 if eval \${$cacheid+:} false; then :
8435   $as_echo_n "(cached) " >&6
8436 else
8437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h.  */
8439 int i;
8440 int
8441 main ()
8442 {
8443
8444   ;
8445   return 0;
8446 }
8447 _ACEOF
8448 if ac_fn_c_try_link "$LINENO"; then :
8449   eval $cacheid=yes
8450 else
8451   eval $cacheid=no
8452 fi
8453 rm -f core conftest.err conftest.$ac_objext \
8454     conftest$ac_exeext conftest.$ac_ext
8455 fi
8456
8457
8458                 CFLAGS="$xorg_testset_save_CFLAGS"
8459
8460                 eval supported=\$$cacheid
8461                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8462 $as_echo "$supported" >&6; }
8463                 if test "$supported" = "yes" ; then
8464                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8465                         found="yes"
8466                 fi
8467         fi
8468
8469         if test $found = "no" ; then
8470                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8471                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8472                 fi
8473
8474                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8475                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8476                 fi
8477
8478                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8479
8480                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8481 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8482                 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8483                 if eval \${$cacheid+:} false; then :
8484   $as_echo_n "(cached) " >&6
8485 else
8486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h.  */
8488 int i;
8489 int
8490 main ()
8491 {
8492
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 if ac_fn_c_try_link "$LINENO"; then :
8498   eval $cacheid=yes
8499 else
8500   eval $cacheid=no
8501 fi
8502 rm -f core conftest.err conftest.$ac_objext \
8503     conftest$ac_exeext conftest.$ac_ext
8504 fi
8505
8506
8507                 CFLAGS="$xorg_testset_save_CFLAGS"
8508
8509                 eval supported=\$$cacheid
8510                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8511 $as_echo "$supported" >&6; }
8512                 if test "$supported" = "yes" ; then
8513                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8514                         found="yes"
8515                 fi
8516         fi
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532 xorg_testset_save_CFLAGS="$CFLAGS"
8533
8534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8535         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8536         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8537 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8538 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8539   $as_echo_n "(cached) " >&6
8540 else
8541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h.  */
8543 int i;
8544 _ACEOF
8545 if ac_fn_c_try_compile "$LINENO"; then :
8546   xorg_cv_cc_flag_unknown_warning_option=yes
8547 else
8548   xorg_cv_cc_flag_unknown_warning_option=no
8549 fi
8550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551 fi
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8553 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8554         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8555         CFLAGS="$xorg_testset_save_CFLAGS"
8556 fi
8557
8558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8559         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8560                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8561         fi
8562         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8563         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8564 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8565 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8566   $as_echo_n "(cached) " >&6
8567 else
8568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h.  */
8570 int i;
8571 _ACEOF
8572 if ac_fn_c_try_compile "$LINENO"; then :
8573   xorg_cv_cc_flag_unused_command_line_argument=yes
8574 else
8575   xorg_cv_cc_flag_unused_command_line_argument=no
8576 fi
8577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8578 fi
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8580 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8581         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8582         CFLAGS="$xorg_testset_save_CFLAGS"
8583 fi
8584
8585 found="no"
8586
8587         if test $found = "no" ; then
8588                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8589                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8590                 fi
8591
8592                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8593                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8594                 fi
8595
8596                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8597
8598                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8599 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8600                 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8601                 if eval \${$cacheid+:} false; then :
8602   $as_echo_n "(cached) " >&6
8603 else
8604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h.  */
8606 int i;
8607 int
8608 main ()
8609 {
8610
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 if ac_fn_c_try_link "$LINENO"; then :
8616   eval $cacheid=yes
8617 else
8618   eval $cacheid=no
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext \
8621     conftest$ac_exeext conftest.$ac_ext
8622 fi
8623
8624
8625                 CFLAGS="$xorg_testset_save_CFLAGS"
8626
8627                 eval supported=\$$cacheid
8628                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8629 $as_echo "$supported" >&6; }
8630                 if test "$supported" = "yes" ; then
8631                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8632                         found="yes"
8633                 fi
8634         fi
8635
8636  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8637 else
8638 { $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
8639 $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;}
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653 xorg_testset_save_CFLAGS="$CFLAGS"
8654
8655 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8656         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8657         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8658 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8659 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8660   $as_echo_n "(cached) " >&6
8661 else
8662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h.  */
8664 int i;
8665 _ACEOF
8666 if ac_fn_c_try_compile "$LINENO"; then :
8667   xorg_cv_cc_flag_unknown_warning_option=yes
8668 else
8669   xorg_cv_cc_flag_unknown_warning_option=no
8670 fi
8671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672 fi
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8674 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8675         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8676         CFLAGS="$xorg_testset_save_CFLAGS"
8677 fi
8678
8679 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8680         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8681                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8682         fi
8683         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8684         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8685 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8686 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8687   $as_echo_n "(cached) " >&6
8688 else
8689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h.  */
8691 int i;
8692 _ACEOF
8693 if ac_fn_c_try_compile "$LINENO"; then :
8694   xorg_cv_cc_flag_unused_command_line_argument=yes
8695 else
8696   xorg_cv_cc_flag_unused_command_line_argument=no
8697 fi
8698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 fi
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8701 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8702         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8703         CFLAGS="$xorg_testset_save_CFLAGS"
8704 fi
8705
8706 found="no"
8707
8708         if test $found = "no" ; then
8709                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8710                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8711                 fi
8712
8713                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8714                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8715                 fi
8716
8717                 CFLAGS="$CFLAGS -Wimplicit"
8718
8719                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8720 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8721                 cacheid=xorg_cv_cc_flag__Wimplicit
8722                 if eval \${$cacheid+:} false; then :
8723   $as_echo_n "(cached) " >&6
8724 else
8725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h.  */
8727 int i;
8728 int
8729 main ()
8730 {
8731
8732   ;
8733   return 0;
8734 }
8735 _ACEOF
8736 if ac_fn_c_try_link "$LINENO"; then :
8737   eval $cacheid=yes
8738 else
8739   eval $cacheid=no
8740 fi
8741 rm -f core conftest.err conftest.$ac_objext \
8742     conftest$ac_exeext conftest.$ac_ext
8743 fi
8744
8745
8746                 CFLAGS="$xorg_testset_save_CFLAGS"
8747
8748                 eval supported=\$$cacheid
8749                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8750 $as_echo "$supported" >&6; }
8751                 if test "$supported" = "yes" ; then
8752                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8753                         found="yes"
8754                 fi
8755         fi
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771 xorg_testset_save_CFLAGS="$CFLAGS"
8772
8773 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8774         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8775         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8776 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8777 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8778   $as_echo_n "(cached) " >&6
8779 else
8780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h.  */
8782 int i;
8783 _ACEOF
8784 if ac_fn_c_try_compile "$LINENO"; then :
8785   xorg_cv_cc_flag_unknown_warning_option=yes
8786 else
8787   xorg_cv_cc_flag_unknown_warning_option=no
8788 fi
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 fi
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8792 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8793         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8794         CFLAGS="$xorg_testset_save_CFLAGS"
8795 fi
8796
8797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8798         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8799                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8800         fi
8801         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8802         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8803 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8804 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8805   $as_echo_n "(cached) " >&6
8806 else
8807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h.  */
8809 int i;
8810 _ACEOF
8811 if ac_fn_c_try_compile "$LINENO"; then :
8812   xorg_cv_cc_flag_unused_command_line_argument=yes
8813 else
8814   xorg_cv_cc_flag_unused_command_line_argument=no
8815 fi
8816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817 fi
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8819 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8820         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8821         CFLAGS="$xorg_testset_save_CFLAGS"
8822 fi
8823
8824 found="no"
8825
8826         if test $found = "no" ; then
8827                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8828                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8829                 fi
8830
8831                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8832                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8833                 fi
8834
8835                 CFLAGS="$CFLAGS -Wnonnull"
8836
8837                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8838 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8839                 cacheid=xorg_cv_cc_flag__Wnonnull
8840                 if eval \${$cacheid+:} false; then :
8841   $as_echo_n "(cached) " >&6
8842 else
8843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h.  */
8845 int i;
8846 int
8847 main ()
8848 {
8849
8850   ;
8851   return 0;
8852 }
8853 _ACEOF
8854 if ac_fn_c_try_link "$LINENO"; then :
8855   eval $cacheid=yes
8856 else
8857   eval $cacheid=no
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext \
8860     conftest$ac_exeext conftest.$ac_ext
8861 fi
8862
8863
8864                 CFLAGS="$xorg_testset_save_CFLAGS"
8865
8866                 eval supported=\$$cacheid
8867                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8868 $as_echo "$supported" >&6; }
8869                 if test "$supported" = "yes" ; then
8870                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8871                         found="yes"
8872                 fi
8873         fi
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889 xorg_testset_save_CFLAGS="$CFLAGS"
8890
8891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8892         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8894 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8895 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8896   $as_echo_n "(cached) " >&6
8897 else
8898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h.  */
8900 int i;
8901 _ACEOF
8902 if ac_fn_c_try_compile "$LINENO"; then :
8903   xorg_cv_cc_flag_unknown_warning_option=yes
8904 else
8905   xorg_cv_cc_flag_unknown_warning_option=no
8906 fi
8907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8910 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8911         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8912         CFLAGS="$xorg_testset_save_CFLAGS"
8913 fi
8914
8915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8916         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8917                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8918         fi
8919         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8920         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8921 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8922 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8923   $as_echo_n "(cached) " >&6
8924 else
8925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h.  */
8927 int i;
8928 _ACEOF
8929 if ac_fn_c_try_compile "$LINENO"; then :
8930   xorg_cv_cc_flag_unused_command_line_argument=yes
8931 else
8932   xorg_cv_cc_flag_unused_command_line_argument=no
8933 fi
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8937 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8938         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8939         CFLAGS="$xorg_testset_save_CFLAGS"
8940 fi
8941
8942 found="no"
8943
8944         if test $found = "no" ; then
8945                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8946                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8947                 fi
8948
8949                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8950                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8951                 fi
8952
8953                 CFLAGS="$CFLAGS -Winit-self"
8954
8955                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8956 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8957                 cacheid=xorg_cv_cc_flag__Winit_self
8958                 if eval \${$cacheid+:} false; then :
8959   $as_echo_n "(cached) " >&6
8960 else
8961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h.  */
8963 int i;
8964 int
8965 main ()
8966 {
8967
8968   ;
8969   return 0;
8970 }
8971 _ACEOF
8972 if ac_fn_c_try_link "$LINENO"; then :
8973   eval $cacheid=yes
8974 else
8975   eval $cacheid=no
8976 fi
8977 rm -f core conftest.err conftest.$ac_objext \
8978     conftest$ac_exeext conftest.$ac_ext
8979 fi
8980
8981
8982                 CFLAGS="$xorg_testset_save_CFLAGS"
8983
8984                 eval supported=\$$cacheid
8985                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8986 $as_echo "$supported" >&6; }
8987                 if test "$supported" = "yes" ; then
8988                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8989                         found="yes"
8990                 fi
8991         fi
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007 xorg_testset_save_CFLAGS="$CFLAGS"
9008
9009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9010         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9011         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9012 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9013 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9014   $as_echo_n "(cached) " >&6
9015 else
9016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h.  */
9018 int i;
9019 _ACEOF
9020 if ac_fn_c_try_compile "$LINENO"; then :
9021   xorg_cv_cc_flag_unknown_warning_option=yes
9022 else
9023   xorg_cv_cc_flag_unknown_warning_option=no
9024 fi
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 fi
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9028 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9029         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9030         CFLAGS="$xorg_testset_save_CFLAGS"
9031 fi
9032
9033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9034         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9035                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9036         fi
9037         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9038         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9039 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9040 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9041   $as_echo_n "(cached) " >&6
9042 else
9043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h.  */
9045 int i;
9046 _ACEOF
9047 if ac_fn_c_try_compile "$LINENO"; then :
9048   xorg_cv_cc_flag_unused_command_line_argument=yes
9049 else
9050   xorg_cv_cc_flag_unused_command_line_argument=no
9051 fi
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 fi
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9055 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9056         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9057         CFLAGS="$xorg_testset_save_CFLAGS"
9058 fi
9059
9060 found="no"
9061
9062         if test $found = "no" ; then
9063                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9064                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9065                 fi
9066
9067                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9068                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9069                 fi
9070
9071                 CFLAGS="$CFLAGS -Wmain"
9072
9073                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
9074 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
9075                 cacheid=xorg_cv_cc_flag__Wmain
9076                 if eval \${$cacheid+:} false; then :
9077   $as_echo_n "(cached) " >&6
9078 else
9079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h.  */
9081 int i;
9082 int
9083 main ()
9084 {
9085
9086   ;
9087   return 0;
9088 }
9089 _ACEOF
9090 if ac_fn_c_try_link "$LINENO"; then :
9091   eval $cacheid=yes
9092 else
9093   eval $cacheid=no
9094 fi
9095 rm -f core conftest.err conftest.$ac_objext \
9096     conftest$ac_exeext conftest.$ac_ext
9097 fi
9098
9099
9100                 CFLAGS="$xorg_testset_save_CFLAGS"
9101
9102                 eval supported=\$$cacheid
9103                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9104 $as_echo "$supported" >&6; }
9105                 if test "$supported" = "yes" ; then
9106                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9107                         found="yes"
9108                 fi
9109         fi
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125 xorg_testset_save_CFLAGS="$CFLAGS"
9126
9127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9128         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9130 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9131 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9132   $as_echo_n "(cached) " >&6
9133 else
9134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h.  */
9136 int i;
9137 _ACEOF
9138 if ac_fn_c_try_compile "$LINENO"; then :
9139   xorg_cv_cc_flag_unknown_warning_option=yes
9140 else
9141   xorg_cv_cc_flag_unknown_warning_option=no
9142 fi
9143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9144 fi
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9146 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9147         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9148         CFLAGS="$xorg_testset_save_CFLAGS"
9149 fi
9150
9151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9152         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9153                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9154         fi
9155         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9157 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9158 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9159   $as_echo_n "(cached) " >&6
9160 else
9161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h.  */
9163 int i;
9164 _ACEOF
9165 if ac_fn_c_try_compile "$LINENO"; then :
9166   xorg_cv_cc_flag_unused_command_line_argument=yes
9167 else
9168   xorg_cv_cc_flag_unused_command_line_argument=no
9169 fi
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171 fi
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9173 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9174         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9175         CFLAGS="$xorg_testset_save_CFLAGS"
9176 fi
9177
9178 found="no"
9179
9180         if test $found = "no" ; then
9181                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9182                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9183                 fi
9184
9185                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9186                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9187                 fi
9188
9189                 CFLAGS="$CFLAGS -Wmissing-braces"
9190
9191                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
9192 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9193                 cacheid=xorg_cv_cc_flag__Wmissing_braces
9194                 if eval \${$cacheid+:} false; then :
9195   $as_echo_n "(cached) " >&6
9196 else
9197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h.  */
9199 int i;
9200 int
9201 main ()
9202 {
9203
9204   ;
9205   return 0;
9206 }
9207 _ACEOF
9208 if ac_fn_c_try_link "$LINENO"; then :
9209   eval $cacheid=yes
9210 else
9211   eval $cacheid=no
9212 fi
9213 rm -f core conftest.err conftest.$ac_objext \
9214     conftest$ac_exeext conftest.$ac_ext
9215 fi
9216
9217
9218                 CFLAGS="$xorg_testset_save_CFLAGS"
9219
9220                 eval supported=\$$cacheid
9221                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9222 $as_echo "$supported" >&6; }
9223                 if test "$supported" = "yes" ; then
9224                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9225                         found="yes"
9226                 fi
9227         fi
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243 xorg_testset_save_CFLAGS="$CFLAGS"
9244
9245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9246         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9248 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9249 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9250   $as_echo_n "(cached) " >&6
9251 else
9252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h.  */
9254 int i;
9255 _ACEOF
9256 if ac_fn_c_try_compile "$LINENO"; then :
9257   xorg_cv_cc_flag_unknown_warning_option=yes
9258 else
9259   xorg_cv_cc_flag_unknown_warning_option=no
9260 fi
9261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9262 fi
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9264 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9265         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9266         CFLAGS="$xorg_testset_save_CFLAGS"
9267 fi
9268
9269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9270         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9271                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9272         fi
9273         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9274         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9275 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9276 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9277   $as_echo_n "(cached) " >&6
9278 else
9279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h.  */
9281 int i;
9282 _ACEOF
9283 if ac_fn_c_try_compile "$LINENO"; then :
9284   xorg_cv_cc_flag_unused_command_line_argument=yes
9285 else
9286   xorg_cv_cc_flag_unused_command_line_argument=no
9287 fi
9288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9289 fi
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9291 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9292         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9293         CFLAGS="$xorg_testset_save_CFLAGS"
9294 fi
9295
9296 found="no"
9297
9298         if test $found = "no" ; then
9299                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9300                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9301                 fi
9302
9303                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9304                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9305                 fi
9306
9307                 CFLAGS="$CFLAGS -Wsequence-point"
9308
9309                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9310 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9311                 cacheid=xorg_cv_cc_flag__Wsequence_point
9312                 if eval \${$cacheid+:} false; then :
9313   $as_echo_n "(cached) " >&6
9314 else
9315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h.  */
9317 int i;
9318 int
9319 main ()
9320 {
9321
9322   ;
9323   return 0;
9324 }
9325 _ACEOF
9326 if ac_fn_c_try_link "$LINENO"; then :
9327   eval $cacheid=yes
9328 else
9329   eval $cacheid=no
9330 fi
9331 rm -f core conftest.err conftest.$ac_objext \
9332     conftest$ac_exeext conftest.$ac_ext
9333 fi
9334
9335
9336                 CFLAGS="$xorg_testset_save_CFLAGS"
9337
9338                 eval supported=\$$cacheid
9339                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9340 $as_echo "$supported" >&6; }
9341                 if test "$supported" = "yes" ; then
9342                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9343                         found="yes"
9344                 fi
9345         fi
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361 xorg_testset_save_CFLAGS="$CFLAGS"
9362
9363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9364         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9365         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9366 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9367 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9368   $as_echo_n "(cached) " >&6
9369 else
9370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h.  */
9372 int i;
9373 _ACEOF
9374 if ac_fn_c_try_compile "$LINENO"; then :
9375   xorg_cv_cc_flag_unknown_warning_option=yes
9376 else
9377   xorg_cv_cc_flag_unknown_warning_option=no
9378 fi
9379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9380 fi
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9382 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9383         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9384         CFLAGS="$xorg_testset_save_CFLAGS"
9385 fi
9386
9387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9388         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9389                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9390         fi
9391         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9392         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9393 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9394 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9395   $as_echo_n "(cached) " >&6
9396 else
9397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h.  */
9399 int i;
9400 _ACEOF
9401 if ac_fn_c_try_compile "$LINENO"; then :
9402   xorg_cv_cc_flag_unused_command_line_argument=yes
9403 else
9404   xorg_cv_cc_flag_unused_command_line_argument=no
9405 fi
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9407 fi
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9409 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9410         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9411         CFLAGS="$xorg_testset_save_CFLAGS"
9412 fi
9413
9414 found="no"
9415
9416         if test $found = "no" ; then
9417                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9418                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9419                 fi
9420
9421                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9422                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9423                 fi
9424
9425                 CFLAGS="$CFLAGS -Wreturn-type"
9426
9427                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9428 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9429                 cacheid=xorg_cv_cc_flag__Wreturn_type
9430                 if eval \${$cacheid+:} false; then :
9431   $as_echo_n "(cached) " >&6
9432 else
9433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h.  */
9435 int i;
9436 int
9437 main ()
9438 {
9439
9440   ;
9441   return 0;
9442 }
9443 _ACEOF
9444 if ac_fn_c_try_link "$LINENO"; then :
9445   eval $cacheid=yes
9446 else
9447   eval $cacheid=no
9448 fi
9449 rm -f core conftest.err conftest.$ac_objext \
9450     conftest$ac_exeext conftest.$ac_ext
9451 fi
9452
9453
9454                 CFLAGS="$xorg_testset_save_CFLAGS"
9455
9456                 eval supported=\$$cacheid
9457                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9458 $as_echo "$supported" >&6; }
9459                 if test "$supported" = "yes" ; then
9460                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9461                         found="yes"
9462                 fi
9463         fi
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479 xorg_testset_save_CFLAGS="$CFLAGS"
9480
9481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9482         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9483         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9484 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9485 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9486   $as_echo_n "(cached) " >&6
9487 else
9488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h.  */
9490 int i;
9491 _ACEOF
9492 if ac_fn_c_try_compile "$LINENO"; then :
9493   xorg_cv_cc_flag_unknown_warning_option=yes
9494 else
9495   xorg_cv_cc_flag_unknown_warning_option=no
9496 fi
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498 fi
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9500 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9501         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9502         CFLAGS="$xorg_testset_save_CFLAGS"
9503 fi
9504
9505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9506         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9507                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9508         fi
9509         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9510         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9511 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9512 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9513   $as_echo_n "(cached) " >&6
9514 else
9515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h.  */
9517 int i;
9518 _ACEOF
9519 if ac_fn_c_try_compile "$LINENO"; then :
9520   xorg_cv_cc_flag_unused_command_line_argument=yes
9521 else
9522   xorg_cv_cc_flag_unused_command_line_argument=no
9523 fi
9524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9525 fi
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9527 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9528         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9529         CFLAGS="$xorg_testset_save_CFLAGS"
9530 fi
9531
9532 found="no"
9533
9534         if test $found = "no" ; then
9535                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9536                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9537                 fi
9538
9539                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9540                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9541                 fi
9542
9543                 CFLAGS="$CFLAGS -Wtrigraphs"
9544
9545                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9546 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9547                 cacheid=xorg_cv_cc_flag__Wtrigraphs
9548                 if eval \${$cacheid+:} false; then :
9549   $as_echo_n "(cached) " >&6
9550 else
9551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h.  */
9553 int i;
9554 int
9555 main ()
9556 {
9557
9558   ;
9559   return 0;
9560 }
9561 _ACEOF
9562 if ac_fn_c_try_link "$LINENO"; then :
9563   eval $cacheid=yes
9564 else
9565   eval $cacheid=no
9566 fi
9567 rm -f core conftest.err conftest.$ac_objext \
9568     conftest$ac_exeext conftest.$ac_ext
9569 fi
9570
9571
9572                 CFLAGS="$xorg_testset_save_CFLAGS"
9573
9574                 eval supported=\$$cacheid
9575                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9576 $as_echo "$supported" >&6; }
9577                 if test "$supported" = "yes" ; then
9578                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9579                         found="yes"
9580                 fi
9581         fi
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597 xorg_testset_save_CFLAGS="$CFLAGS"
9598
9599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9600         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9601         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9602 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9603 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9604   $as_echo_n "(cached) " >&6
9605 else
9606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h.  */
9608 int i;
9609 _ACEOF
9610 if ac_fn_c_try_compile "$LINENO"; then :
9611   xorg_cv_cc_flag_unknown_warning_option=yes
9612 else
9613   xorg_cv_cc_flag_unknown_warning_option=no
9614 fi
9615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9616 fi
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9618 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9619         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9620         CFLAGS="$xorg_testset_save_CFLAGS"
9621 fi
9622
9623 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9624         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9625                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9626         fi
9627         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9628         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9629 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9630 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9631   $as_echo_n "(cached) " >&6
9632 else
9633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h.  */
9635 int i;
9636 _ACEOF
9637 if ac_fn_c_try_compile "$LINENO"; then :
9638   xorg_cv_cc_flag_unused_command_line_argument=yes
9639 else
9640   xorg_cv_cc_flag_unused_command_line_argument=no
9641 fi
9642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9643 fi
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9645 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9646         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9647         CFLAGS="$xorg_testset_save_CFLAGS"
9648 fi
9649
9650 found="no"
9651
9652         if test $found = "no" ; then
9653                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9654                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9655                 fi
9656
9657                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9658                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9659                 fi
9660
9661                 CFLAGS="$CFLAGS -Warray-bounds"
9662
9663                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9664 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9665                 cacheid=xorg_cv_cc_flag__Warray_bounds
9666                 if eval \${$cacheid+:} false; then :
9667   $as_echo_n "(cached) " >&6
9668 else
9669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h.  */
9671 int i;
9672 int
9673 main ()
9674 {
9675
9676   ;
9677   return 0;
9678 }
9679 _ACEOF
9680 if ac_fn_c_try_link "$LINENO"; then :
9681   eval $cacheid=yes
9682 else
9683   eval $cacheid=no
9684 fi
9685 rm -f core conftest.err conftest.$ac_objext \
9686     conftest$ac_exeext conftest.$ac_ext
9687 fi
9688
9689
9690                 CFLAGS="$xorg_testset_save_CFLAGS"
9691
9692                 eval supported=\$$cacheid
9693                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9694 $as_echo "$supported" >&6; }
9695                 if test "$supported" = "yes" ; then
9696                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9697                         found="yes"
9698                 fi
9699         fi
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715 xorg_testset_save_CFLAGS="$CFLAGS"
9716
9717 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9718         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9719         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9720 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9721 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9722   $as_echo_n "(cached) " >&6
9723 else
9724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h.  */
9726 int i;
9727 _ACEOF
9728 if ac_fn_c_try_compile "$LINENO"; then :
9729   xorg_cv_cc_flag_unknown_warning_option=yes
9730 else
9731   xorg_cv_cc_flag_unknown_warning_option=no
9732 fi
9733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9734 fi
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9736 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9737         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9738         CFLAGS="$xorg_testset_save_CFLAGS"
9739 fi
9740
9741 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9742         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9743                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9744         fi
9745         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9746         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9747 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9748 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9749   $as_echo_n "(cached) " >&6
9750 else
9751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h.  */
9753 int i;
9754 _ACEOF
9755 if ac_fn_c_try_compile "$LINENO"; then :
9756   xorg_cv_cc_flag_unused_command_line_argument=yes
9757 else
9758   xorg_cv_cc_flag_unused_command_line_argument=no
9759 fi
9760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9761 fi
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9763 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9764         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9765         CFLAGS="$xorg_testset_save_CFLAGS"
9766 fi
9767
9768 found="no"
9769
9770         if test $found = "no" ; then
9771                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9772                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9773                 fi
9774
9775                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9776                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9777                 fi
9778
9779                 CFLAGS="$CFLAGS -Wwrite-strings"
9780
9781                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9782 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9783                 cacheid=xorg_cv_cc_flag__Wwrite_strings
9784                 if eval \${$cacheid+:} false; then :
9785   $as_echo_n "(cached) " >&6
9786 else
9787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788 /* end confdefs.h.  */
9789 int i;
9790 int
9791 main ()
9792 {
9793
9794   ;
9795   return 0;
9796 }
9797 _ACEOF
9798 if ac_fn_c_try_link "$LINENO"; then :
9799   eval $cacheid=yes
9800 else
9801   eval $cacheid=no
9802 fi
9803 rm -f core conftest.err conftest.$ac_objext \
9804     conftest$ac_exeext conftest.$ac_ext
9805 fi
9806
9807
9808                 CFLAGS="$xorg_testset_save_CFLAGS"
9809
9810                 eval supported=\$$cacheid
9811                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9812 $as_echo "$supported" >&6; }
9813                 if test "$supported" = "yes" ; then
9814                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9815                         found="yes"
9816                 fi
9817         fi
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833 xorg_testset_save_CFLAGS="$CFLAGS"
9834
9835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9836         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9837         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9838 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9839 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9840   $as_echo_n "(cached) " >&6
9841 else
9842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h.  */
9844 int i;
9845 _ACEOF
9846 if ac_fn_c_try_compile "$LINENO"; then :
9847   xorg_cv_cc_flag_unknown_warning_option=yes
9848 else
9849   xorg_cv_cc_flag_unknown_warning_option=no
9850 fi
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 fi
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9854 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9855         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9856         CFLAGS="$xorg_testset_save_CFLAGS"
9857 fi
9858
9859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9860         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9861                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9862         fi
9863         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9864         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9865 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9866 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9867   $as_echo_n "(cached) " >&6
9868 else
9869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h.  */
9871 int i;
9872 _ACEOF
9873 if ac_fn_c_try_compile "$LINENO"; then :
9874   xorg_cv_cc_flag_unused_command_line_argument=yes
9875 else
9876   xorg_cv_cc_flag_unused_command_line_argument=no
9877 fi
9878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879 fi
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9881 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9882         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9883         CFLAGS="$xorg_testset_save_CFLAGS"
9884 fi
9885
9886 found="no"
9887
9888         if test $found = "no" ; then
9889                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9890                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9891                 fi
9892
9893                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9894                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9895                 fi
9896
9897                 CFLAGS="$CFLAGS -Waddress"
9898
9899                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9900 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9901                 cacheid=xorg_cv_cc_flag__Waddress
9902                 if eval \${$cacheid+:} false; then :
9903   $as_echo_n "(cached) " >&6
9904 else
9905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h.  */
9907 int i;
9908 int
9909 main ()
9910 {
9911
9912   ;
9913   return 0;
9914 }
9915 _ACEOF
9916 if ac_fn_c_try_link "$LINENO"; then :
9917   eval $cacheid=yes
9918 else
9919   eval $cacheid=no
9920 fi
9921 rm -f core conftest.err conftest.$ac_objext \
9922     conftest$ac_exeext conftest.$ac_ext
9923 fi
9924
9925
9926                 CFLAGS="$xorg_testset_save_CFLAGS"
9927
9928                 eval supported=\$$cacheid
9929                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9930 $as_echo "$supported" >&6; }
9931                 if test "$supported" = "yes" ; then
9932                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9933                         found="yes"
9934                 fi
9935         fi
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951 xorg_testset_save_CFLAGS="$CFLAGS"
9952
9953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9954         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9955         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9956 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9957 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9958   $as_echo_n "(cached) " >&6
9959 else
9960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961 /* end confdefs.h.  */
9962 int i;
9963 _ACEOF
9964 if ac_fn_c_try_compile "$LINENO"; then :
9965   xorg_cv_cc_flag_unknown_warning_option=yes
9966 else
9967   xorg_cv_cc_flag_unknown_warning_option=no
9968 fi
9969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9970 fi
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9972 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9973         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9974         CFLAGS="$xorg_testset_save_CFLAGS"
9975 fi
9976
9977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9978         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9979                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9980         fi
9981         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9982         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9983 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9984 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9985   $as_echo_n "(cached) " >&6
9986 else
9987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h.  */
9989 int i;
9990 _ACEOF
9991 if ac_fn_c_try_compile "$LINENO"; then :
9992   xorg_cv_cc_flag_unused_command_line_argument=yes
9993 else
9994   xorg_cv_cc_flag_unused_command_line_argument=no
9995 fi
9996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9997 fi
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9999 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10000         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10001         CFLAGS="$xorg_testset_save_CFLAGS"
10002 fi
10003
10004 found="no"
10005
10006         if test $found = "no" ; then
10007                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10008                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10009                 fi
10010
10011                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10012                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10013                 fi
10014
10015                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10016
10017                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
10018 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
10019                 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10020                 if eval \${$cacheid+:} false; then :
10021   $as_echo_n "(cached) " >&6
10022 else
10023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h.  */
10025 int i;
10026 int
10027 main ()
10028 {
10029
10030   ;
10031   return 0;
10032 }
10033 _ACEOF
10034 if ac_fn_c_try_link "$LINENO"; then :
10035   eval $cacheid=yes
10036 else
10037   eval $cacheid=no
10038 fi
10039 rm -f core conftest.err conftest.$ac_objext \
10040     conftest$ac_exeext conftest.$ac_ext
10041 fi
10042
10043
10044                 CFLAGS="$xorg_testset_save_CFLAGS"
10045
10046                 eval supported=\$$cacheid
10047                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10048 $as_echo "$supported" >&6; }
10049                 if test "$supported" = "yes" ; then
10050                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10051                         found="yes"
10052                 fi
10053         fi
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069 xorg_testset_save_CFLAGS="$CFLAGS"
10070
10071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10072         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10073         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10074 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10075 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10076   $as_echo_n "(cached) " >&6
10077 else
10078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h.  */
10080 int i;
10081 _ACEOF
10082 if ac_fn_c_try_compile "$LINENO"; then :
10083   xorg_cv_cc_flag_unknown_warning_option=yes
10084 else
10085   xorg_cv_cc_flag_unknown_warning_option=no
10086 fi
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088 fi
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10090 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10091         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10092         CFLAGS="$xorg_testset_save_CFLAGS"
10093 fi
10094
10095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10096         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10097                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10098         fi
10099         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10100         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10101 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10102 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10103   $as_echo_n "(cached) " >&6
10104 else
10105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h.  */
10107 int i;
10108 _ACEOF
10109 if ac_fn_c_try_compile "$LINENO"; then :
10110   xorg_cv_cc_flag_unused_command_line_argument=yes
10111 else
10112   xorg_cv_cc_flag_unused_command_line_argument=no
10113 fi
10114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10115 fi
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10117 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10118         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10119         CFLAGS="$xorg_testset_save_CFLAGS"
10120 fi
10121
10122 found="no"
10123
10124         if test $found = "no" ; then
10125                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10126                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10127                 fi
10128
10129                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10130                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10131                 fi
10132
10133                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10134
10135                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
10136 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
10137                 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10138                 if eval \${$cacheid+:} false; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h.  */
10143 int i;
10144 int
10145 main ()
10146 {
10147
10148   ;
10149   return 0;
10150 }
10151 _ACEOF
10152 if ac_fn_c_try_link "$LINENO"; then :
10153   eval $cacheid=yes
10154 else
10155   eval $cacheid=no
10156 fi
10157 rm -f core conftest.err conftest.$ac_objext \
10158     conftest$ac_exeext conftest.$ac_ext
10159 fi
10160
10161
10162                 CFLAGS="$xorg_testset_save_CFLAGS"
10163
10164                 eval supported=\$$cacheid
10165                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10166 $as_echo "$supported" >&6; }
10167                 if test "$supported" = "yes" ; then
10168                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10169                         found="yes"
10170                 fi
10171         fi
10172
10173
10174 fi
10175
10176
10177
10178
10179
10180
10181
10182                 CWARNFLAGS="$BASE_CFLAGS"
10183                 if  test "x$GCC" = xyes ; then
10184                     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10185                 fi
10186
10187
10188
10189
10190
10191
10192
10193
10194 # Check whether --enable-strict-compilation was given.
10195 if test "${enable_strict_compilation+set}" = set; then :
10196   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10197 else
10198   STRICT_COMPILE=no
10199 fi
10200
10201
10202
10203
10204
10205
10206 STRICT_CFLAGS=""
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220 xorg_testset_save_CFLAGS="$CFLAGS"
10221
10222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10223         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10224         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10225 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10226 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10227   $as_echo_n "(cached) " >&6
10228 else
10229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h.  */
10231 int i;
10232 _ACEOF
10233 if ac_fn_c_try_compile "$LINENO"; then :
10234   xorg_cv_cc_flag_unknown_warning_option=yes
10235 else
10236   xorg_cv_cc_flag_unknown_warning_option=no
10237 fi
10238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10239 fi
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10241 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10242         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10243         CFLAGS="$xorg_testset_save_CFLAGS"
10244 fi
10245
10246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10247         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10248                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10249         fi
10250         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10251         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10252 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10253 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10254   $as_echo_n "(cached) " >&6
10255 else
10256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h.  */
10258 int i;
10259 _ACEOF
10260 if ac_fn_c_try_compile "$LINENO"; then :
10261   xorg_cv_cc_flag_unused_command_line_argument=yes
10262 else
10263   xorg_cv_cc_flag_unused_command_line_argument=no
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10266 fi
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10268 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10269         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10270         CFLAGS="$xorg_testset_save_CFLAGS"
10271 fi
10272
10273 found="no"
10274
10275         if test $found = "no" ; then
10276                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10277                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10278                 fi
10279
10280                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10281                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10282                 fi
10283
10284                 CFLAGS="$CFLAGS -pedantic"
10285
10286                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10287 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
10288                 cacheid=xorg_cv_cc_flag__pedantic
10289                 if eval \${$cacheid+:} false; then :
10290   $as_echo_n "(cached) " >&6
10291 else
10292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h.  */
10294 int i;
10295 int
10296 main ()
10297 {
10298
10299   ;
10300   return 0;
10301 }
10302 _ACEOF
10303 if ac_fn_c_try_link "$LINENO"; then :
10304   eval $cacheid=yes
10305 else
10306   eval $cacheid=no
10307 fi
10308 rm -f core conftest.err conftest.$ac_objext \
10309     conftest$ac_exeext conftest.$ac_ext
10310 fi
10311
10312
10313                 CFLAGS="$xorg_testset_save_CFLAGS"
10314
10315                 eval supported=\$$cacheid
10316                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10317 $as_echo "$supported" >&6; }
10318                 if test "$supported" = "yes" ; then
10319                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10320                         found="yes"
10321                 fi
10322         fi
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338 xorg_testset_save_CFLAGS="$CFLAGS"
10339
10340 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10341         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10342         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10343 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10344 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10345   $as_echo_n "(cached) " >&6
10346 else
10347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h.  */
10349 int i;
10350 _ACEOF
10351 if ac_fn_c_try_compile "$LINENO"; then :
10352   xorg_cv_cc_flag_unknown_warning_option=yes
10353 else
10354   xorg_cv_cc_flag_unknown_warning_option=no
10355 fi
10356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357 fi
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10359 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10360         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10361         CFLAGS="$xorg_testset_save_CFLAGS"
10362 fi
10363
10364 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10365         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10366                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10367         fi
10368         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10369         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10370 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10371 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10372   $as_echo_n "(cached) " >&6
10373 else
10374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h.  */
10376 int i;
10377 _ACEOF
10378 if ac_fn_c_try_compile "$LINENO"; then :
10379   xorg_cv_cc_flag_unused_command_line_argument=yes
10380 else
10381   xorg_cv_cc_flag_unused_command_line_argument=no
10382 fi
10383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10384 fi
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10386 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10387         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10388         CFLAGS="$xorg_testset_save_CFLAGS"
10389 fi
10390
10391 found="no"
10392
10393         if test $found = "no" ; then
10394                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10395                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10396                 fi
10397
10398                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10399                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10400                 fi
10401
10402                 CFLAGS="$CFLAGS -Werror"
10403
10404                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10405 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10406                 cacheid=xorg_cv_cc_flag__Werror
10407                 if eval \${$cacheid+:} false; then :
10408   $as_echo_n "(cached) " >&6
10409 else
10410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h.  */
10412 int i;
10413 int
10414 main ()
10415 {
10416
10417   ;
10418   return 0;
10419 }
10420 _ACEOF
10421 if ac_fn_c_try_link "$LINENO"; then :
10422   eval $cacheid=yes
10423 else
10424   eval $cacheid=no
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext \
10427     conftest$ac_exeext conftest.$ac_ext
10428 fi
10429
10430
10431                 CFLAGS="$xorg_testset_save_CFLAGS"
10432
10433                 eval supported=\$$cacheid
10434                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10435 $as_echo "$supported" >&6; }
10436                 if test "$supported" = "yes" ; then
10437                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10438                         found="yes"
10439                 fi
10440         fi
10441
10442         if test $found = "no" ; then
10443                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10444                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10445                 fi
10446
10447                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10448                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10449                 fi
10450
10451                 CFLAGS="$CFLAGS -errwarn"
10452
10453                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10454 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10455                 cacheid=xorg_cv_cc_flag__errwarn
10456                 if eval \${$cacheid+:} false; then :
10457   $as_echo_n "(cached) " >&6
10458 else
10459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h.  */
10461 int i;
10462 int
10463 main ()
10464 {
10465
10466   ;
10467   return 0;
10468 }
10469 _ACEOF
10470 if ac_fn_c_try_link "$LINENO"; then :
10471   eval $cacheid=yes
10472 else
10473   eval $cacheid=no
10474 fi
10475 rm -f core conftest.err conftest.$ac_objext \
10476     conftest$ac_exeext conftest.$ac_ext
10477 fi
10478
10479
10480                 CFLAGS="$xorg_testset_save_CFLAGS"
10481
10482                 eval supported=\$$cacheid
10483                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10484 $as_echo "$supported" >&6; }
10485                 if test "$supported" = "yes" ; then
10486                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10487                         found="yes"
10488                 fi
10489         fi
10490
10491
10492
10493 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10494 # activate it with -Werror, so we add it here explicitly.
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508 xorg_testset_save_CFLAGS="$CFLAGS"
10509
10510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10511         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10512         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10513 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10514 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10515   $as_echo_n "(cached) " >&6
10516 else
10517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h.  */
10519 int i;
10520 _ACEOF
10521 if ac_fn_c_try_compile "$LINENO"; then :
10522   xorg_cv_cc_flag_unknown_warning_option=yes
10523 else
10524   xorg_cv_cc_flag_unknown_warning_option=no
10525 fi
10526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10527 fi
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10529 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10530         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10531         CFLAGS="$xorg_testset_save_CFLAGS"
10532 fi
10533
10534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10535         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10536                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10537         fi
10538         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10539         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10540 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10541 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10542   $as_echo_n "(cached) " >&6
10543 else
10544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h.  */
10546 int i;
10547 _ACEOF
10548 if ac_fn_c_try_compile "$LINENO"; then :
10549   xorg_cv_cc_flag_unused_command_line_argument=yes
10550 else
10551   xorg_cv_cc_flag_unused_command_line_argument=no
10552 fi
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554 fi
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10556 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10557         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10558         CFLAGS="$xorg_testset_save_CFLAGS"
10559 fi
10560
10561 found="no"
10562
10563         if test $found = "no" ; then
10564                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10565                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10566                 fi
10567
10568                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10569                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10570                 fi
10571
10572                 CFLAGS="$CFLAGS -Werror=attributes"
10573
10574                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10575 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10576                 cacheid=xorg_cv_cc_flag__Werror_attributes
10577                 if eval \${$cacheid+:} false; then :
10578   $as_echo_n "(cached) " >&6
10579 else
10580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h.  */
10582 int i;
10583 int
10584 main ()
10585 {
10586
10587   ;
10588   return 0;
10589 }
10590 _ACEOF
10591 if ac_fn_c_try_link "$LINENO"; then :
10592   eval $cacheid=yes
10593 else
10594   eval $cacheid=no
10595 fi
10596 rm -f core conftest.err conftest.$ac_objext \
10597     conftest$ac_exeext conftest.$ac_ext
10598 fi
10599
10600
10601                 CFLAGS="$xorg_testset_save_CFLAGS"
10602
10603                 eval supported=\$$cacheid
10604                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10605 $as_echo "$supported" >&6; }
10606                 if test "$supported" = "yes" ; then
10607                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10608                         found="yes"
10609                 fi
10610         fi
10611
10612
10613
10614 if test "x$STRICT_COMPILE" = "xyes"; then
10615     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10616     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10617 fi
10618
10619
10620
10621
10622
10623
10624 cat >>confdefs.h <<_ACEOF
10625 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10626 _ACEOF
10627
10628         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10629         if test "x$PVM" = "x"; then
10630                 PVM="0"
10631         fi
10632
10633 cat >>confdefs.h <<_ACEOF
10634 #define PACKAGE_VERSION_MINOR $PVM
10635 _ACEOF
10636
10637         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10638         if test "x$PVP" = "x"; then
10639                 PVP="0"
10640         fi
10641
10642 cat >>confdefs.h <<_ACEOF
10643 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10644 _ACEOF
10645
10646
10647
10648 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10649 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10650 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10651 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10652
10653
10654
10655
10656 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10657 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10658 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10659 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10660 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10661
10662
10663
10664
10665
10666
10667 if test x$APP_MAN_SUFFIX = x    ; then
10668     APP_MAN_SUFFIX=1
10669 fi
10670 if test x$APP_MAN_DIR = x    ; then
10671     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10672 fi
10673
10674 if test x$LIB_MAN_SUFFIX = x    ; then
10675     LIB_MAN_SUFFIX=3
10676 fi
10677 if test x$LIB_MAN_DIR = x    ; then
10678     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10679 fi
10680
10681 if test x$FILE_MAN_SUFFIX = x    ; then
10682     case $host_os in
10683         solaris*)       FILE_MAN_SUFFIX=4  ;;
10684         *)              FILE_MAN_SUFFIX=5  ;;
10685     esac
10686 fi
10687 if test x$FILE_MAN_DIR = x    ; then
10688     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10689 fi
10690
10691 if test x$MISC_MAN_SUFFIX = x    ; then
10692     case $host_os in
10693         solaris*)       MISC_MAN_SUFFIX=5  ;;
10694         *)              MISC_MAN_SUFFIX=7  ;;
10695     esac
10696 fi
10697 if test x$MISC_MAN_DIR = x    ; then
10698     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10699 fi
10700
10701 if test x$DRIVER_MAN_SUFFIX = x    ; then
10702     case $host_os in
10703         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
10704         *)              DRIVER_MAN_SUFFIX=4  ;;
10705     esac
10706 fi
10707 if test x$DRIVER_MAN_DIR = x    ; then
10708     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10709 fi
10710
10711 if test x$ADMIN_MAN_SUFFIX = x    ; then
10712     case $host_os in
10713         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
10714         *)              ADMIN_MAN_SUFFIX=8  ;;
10715     esac
10716 fi
10717 if test x$ADMIN_MAN_DIR = x    ; then
10718     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10719 fi
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735 XORG_MAN_PAGE="X Version 11"
10736
10737 MAN_SUBSTS="\
10738         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10739         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10740         -e 's|__xservername__|Xorg|g' \
10741         -e 's|__xconfigfile__|xorg.conf|g' \
10742         -e 's|__projectroot__|\$(prefix)|g' \
10743         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10744         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10745         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10746         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10747         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10748         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10749         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10750
10751
10752
10753 # Check whether --enable-silent-rules was given.
10754 if test "${enable_silent_rules+set}" = set; then :
10755   enableval=$enable_silent_rules;
10756 fi
10757
10758 case $enable_silent_rules in
10759 yes) AM_DEFAULT_VERBOSITY=0;;
10760 no)  AM_DEFAULT_VERBOSITY=1;;
10761 *)   AM_DEFAULT_VERBOSITY=0;;
10762 esac
10763 am_make=${MAKE-make}
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10765 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10766 if ${am_cv_make_support_nested_variables+:} false; then :
10767   $as_echo_n "(cached) " >&6
10768 else
10769   if $as_echo 'TRUE=$(BAR$(V))
10770 BAR0=false
10771 BAR1=true
10772 V=1
10773 am__doit:
10774         @$(TRUE)
10775 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10776   am_cv_make_support_nested_variables=yes
10777 else
10778   am_cv_make_support_nested_variables=no
10779 fi
10780 fi
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10782 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10783 if test $am_cv_make_support_nested_variables = yes; then
10784     AM_V='$(V)'
10785   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10786 else
10787   AM_V=$AM_DEFAULT_VERBOSITY
10788   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10789 fi
10790 AM_BACKSLASH='\'
10791
10792
10793
10794 # Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
10795
10796
10797 # Initialize libtool
10798 # Check whether --enable-static was given.
10799 if test "${enable_static+set}" = set; then :
10800   enableval=$enable_static; p=${PACKAGE-default}
10801     case $enableval in
10802     yes) enable_static=yes ;;
10803     no) enable_static=no ;;
10804     *)
10805      enable_static=no
10806       # Look at the argument we got.  We use all the common list separators.
10807       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10808       for pkg in $enableval; do
10809         IFS="$lt_save_ifs"
10810         if test "X$pkg" = "X$p"; then
10811           enable_static=yes
10812         fi
10813       done
10814       IFS="$lt_save_ifs"
10815       ;;
10816     esac
10817 else
10818   enable_static=no
10819 fi
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829 case `pwd` in
10830   *\ * | *\     *)
10831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10832 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10833 esac
10834
10835
10836
10837 macro_version='2.4.2'
10838 macro_revision='1.3337'
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852 ltmain="$ac_aux_dir/ltmain.sh"
10853
10854 # Backslashify metacharacters that are still active within
10855 # double-quoted strings.
10856 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10857
10858 # Same as above, but do not quote variable references.
10859 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10860
10861 # Sed substitution to delay expansion of an escaped shell variable in a
10862 # double_quote_subst'ed string.
10863 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10864
10865 # Sed substitution to delay expansion of an escaped single quote.
10866 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10867
10868 # Sed substitution to avoid accidental globbing in evaled expressions
10869 no_glob_subst='s/\*/\\\*/g'
10870
10871 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10872 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10873 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10874
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10876 $as_echo_n "checking how to print strings... " >&6; }
10877 # Test print first, because it will be a builtin if present.
10878 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10879    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10880   ECHO='print -r --'
10881 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10882   ECHO='printf %s\n'
10883 else
10884   # Use this function as a fallback that always works.
10885   func_fallback_echo ()
10886   {
10887     eval 'cat <<_LTECHO_EOF
10888 $1
10889 _LTECHO_EOF'
10890   }
10891   ECHO='func_fallback_echo'
10892 fi
10893
10894 # func_echo_all arg...
10895 # Invoke $ECHO with all args, space-separated.
10896 func_echo_all ()
10897 {
10898     $ECHO ""
10899 }
10900
10901 case "$ECHO" in
10902   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10903 $as_echo "printf" >&6; } ;;
10904   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10905 $as_echo "print -r" >&6; } ;;
10906   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10907 $as_echo "cat" >&6; } ;;
10908 esac
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10924 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10925 if ${ac_cv_path_SED+:} false; then :
10926   $as_echo_n "(cached) " >&6
10927 else
10928             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10929      for ac_i in 1 2 3 4 5 6 7; do
10930        ac_script="$ac_script$as_nl$ac_script"
10931      done
10932      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10933      { ac_script=; unset ac_script;}
10934      if test -z "$SED"; then
10935   ac_path_SED_found=false
10936   # Loop through the user's path and test for each of PROGNAME-LIST
10937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10938 for as_dir in $PATH
10939 do
10940   IFS=$as_save_IFS
10941   test -z "$as_dir" && as_dir=.
10942     for ac_prog in sed gsed; do
10943     for ac_exec_ext in '' $ac_executable_extensions; do
10944       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10945       as_fn_executable_p "$ac_path_SED" || continue
10946 # Check for GNU ac_path_SED and select it if it is found.
10947   # Check for GNU $ac_path_SED
10948 case `"$ac_path_SED" --version 2>&1` in
10949 *GNU*)
10950   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10951 *)
10952   ac_count=0
10953   $as_echo_n 0123456789 >"conftest.in"
10954   while :
10955   do
10956     cat "conftest.in" "conftest.in" >"conftest.tmp"
10957     mv "conftest.tmp" "conftest.in"
10958     cp "conftest.in" "conftest.nl"
10959     $as_echo '' >> "conftest.nl"
10960     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10961     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10962     as_fn_arith $ac_count + 1 && ac_count=$as_val
10963     if test $ac_count -gt ${ac_path_SED_max-0}; then
10964       # Best one so far, save it but keep looking for a better one
10965       ac_cv_path_SED="$ac_path_SED"
10966       ac_path_SED_max=$ac_count
10967     fi
10968     # 10*(2^10) chars as input seems more than enough
10969     test $ac_count -gt 10 && break
10970   done
10971   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10972 esac
10973
10974       $ac_path_SED_found && break 3
10975     done
10976   done
10977   done
10978 IFS=$as_save_IFS
10979   if test -z "$ac_cv_path_SED"; then
10980     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10981   fi
10982 else
10983   ac_cv_path_SED=$SED
10984 fi
10985
10986 fi
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10988 $as_echo "$ac_cv_path_SED" >&6; }
10989  SED="$ac_cv_path_SED"
10990   rm -f conftest.sed
10991
10992 test -z "$SED" && SED=sed
10993 Xsed="$SED -e 1s/^X//"
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11006 $as_echo_n "checking for fgrep... " >&6; }
11007 if ${ac_cv_path_FGREP+:} false; then :
11008   $as_echo_n "(cached) " >&6
11009 else
11010   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11011    then ac_cv_path_FGREP="$GREP -F"
11012    else
11013      if test -z "$FGREP"; then
11014   ac_path_FGREP_found=false
11015   # Loop through the user's path and test for each of PROGNAME-LIST
11016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11018 do
11019   IFS=$as_save_IFS
11020   test -z "$as_dir" && as_dir=.
11021     for ac_prog in fgrep; do
11022     for ac_exec_ext in '' $ac_executable_extensions; do
11023       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11024       as_fn_executable_p "$ac_path_FGREP" || continue
11025 # Check for GNU ac_path_FGREP and select it if it is found.
11026   # Check for GNU $ac_path_FGREP
11027 case `"$ac_path_FGREP" --version 2>&1` in
11028 *GNU*)
11029   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11030 *)
11031   ac_count=0
11032   $as_echo_n 0123456789 >"conftest.in"
11033   while :
11034   do
11035     cat "conftest.in" "conftest.in" >"conftest.tmp"
11036     mv "conftest.tmp" "conftest.in"
11037     cp "conftest.in" "conftest.nl"
11038     $as_echo 'FGREP' >> "conftest.nl"
11039     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11040     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11041     as_fn_arith $ac_count + 1 && ac_count=$as_val
11042     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11043       # Best one so far, save it but keep looking for a better one
11044       ac_cv_path_FGREP="$ac_path_FGREP"
11045       ac_path_FGREP_max=$ac_count
11046     fi
11047     # 10*(2^10) chars as input seems more than enough
11048     test $ac_count -gt 10 && break
11049   done
11050   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11051 esac
11052
11053       $ac_path_FGREP_found && break 3
11054     done
11055   done
11056   done
11057 IFS=$as_save_IFS
11058   if test -z "$ac_cv_path_FGREP"; then
11059     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11060   fi
11061 else
11062   ac_cv_path_FGREP=$FGREP
11063 fi
11064
11065    fi
11066 fi
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11068 $as_echo "$ac_cv_path_FGREP" >&6; }
11069  FGREP="$ac_cv_path_FGREP"
11070
11071
11072 test -z "$GREP" && GREP=grep
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092 # Check whether --with-gnu-ld was given.
11093 if test "${with_gnu_ld+set}" = set; then :
11094   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11095 else
11096   with_gnu_ld=no
11097 fi
11098
11099 ac_prog=ld
11100 if test "$GCC" = yes; then
11101   # Check if gcc -print-prog-name=ld gives a path.
11102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11103 $as_echo_n "checking for ld used by $CC... " >&6; }
11104   case $host in
11105   *-*-mingw*)
11106     # gcc leaves a trailing carriage return which upsets mingw
11107     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11108   *)
11109     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11110   esac
11111   case $ac_prog in
11112     # Accept absolute paths.
11113     [\\/]* | ?:[\\/]*)
11114       re_direlt='/[^/][^/]*/\.\./'
11115       # Canonicalize the pathname of ld
11116       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11117       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11118         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11119       done
11120       test -z "$LD" && LD="$ac_prog"
11121       ;;
11122   "")
11123     # If it fails, then pretend we aren't using GCC.
11124     ac_prog=ld
11125     ;;
11126   *)
11127     # If it is relative, then search for the first ld in PATH.
11128     with_gnu_ld=unknown
11129     ;;
11130   esac
11131 elif test "$with_gnu_ld" = yes; then
11132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11133 $as_echo_n "checking for GNU ld... " >&6; }
11134 else
11135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11136 $as_echo_n "checking for non-GNU ld... " >&6; }
11137 fi
11138 if ${lt_cv_path_LD+:} false; then :
11139   $as_echo_n "(cached) " >&6
11140 else
11141   if test -z "$LD"; then
11142   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11143   for ac_dir in $PATH; do
11144     IFS="$lt_save_ifs"
11145     test -z "$ac_dir" && ac_dir=.
11146     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11147       lt_cv_path_LD="$ac_dir/$ac_prog"
11148       # Check to see if the program is GNU ld.  I'd rather use --version,
11149       # but apparently some variants of GNU ld only accept -v.
11150       # Break only if it was the GNU/non-GNU ld that we prefer.
11151       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11152       *GNU* | *'with BFD'*)
11153         test "$with_gnu_ld" != no && break
11154         ;;
11155       *)
11156         test "$with_gnu_ld" != yes && break
11157         ;;
11158       esac
11159     fi
11160   done
11161   IFS="$lt_save_ifs"
11162 else
11163   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11164 fi
11165 fi
11166
11167 LD="$lt_cv_path_LD"
11168 if test -n "$LD"; then
11169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11170 $as_echo "$LD" >&6; }
11171 else
11172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 $as_echo "no" >&6; }
11174 fi
11175 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11177 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11178 if ${lt_cv_prog_gnu_ld+:} false; then :
11179   $as_echo_n "(cached) " >&6
11180 else
11181   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11182 case `$LD -v 2>&1 </dev/null` in
11183 *GNU* | *'with BFD'*)
11184   lt_cv_prog_gnu_ld=yes
11185   ;;
11186 *)
11187   lt_cv_prog_gnu_ld=no
11188   ;;
11189 esac
11190 fi
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11192 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11193 with_gnu_ld=$lt_cv_prog_gnu_ld
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11204 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11205 if ${lt_cv_path_NM+:} false; then :
11206   $as_echo_n "(cached) " >&6
11207 else
11208   if test -n "$NM"; then
11209   # Let the user override the test.
11210   lt_cv_path_NM="$NM"
11211 else
11212   lt_nm_to_check="${ac_tool_prefix}nm"
11213   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11214     lt_nm_to_check="$lt_nm_to_check nm"
11215   fi
11216   for lt_tmp_nm in $lt_nm_to_check; do
11217     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11218     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11219       IFS="$lt_save_ifs"
11220       test -z "$ac_dir" && ac_dir=.
11221       tmp_nm="$ac_dir/$lt_tmp_nm"
11222       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11223         # Check to see if the nm accepts a BSD-compat flag.
11224         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11225         #   nm: unknown option "B" ignored
11226         # Tru64's nm complains that /dev/null is an invalid object file
11227         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11228         */dev/null* | *'Invalid file or object type'*)
11229           lt_cv_path_NM="$tmp_nm -B"
11230           break
11231           ;;
11232         *)
11233           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11234           */dev/null*)
11235             lt_cv_path_NM="$tmp_nm -p"
11236             break
11237             ;;
11238           *)
11239             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11240             continue # so that we can try to find one that supports BSD flags
11241             ;;
11242           esac
11243           ;;
11244         esac
11245       fi
11246     done
11247     IFS="$lt_save_ifs"
11248   done
11249   : ${lt_cv_path_NM=no}
11250 fi
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11253 $as_echo "$lt_cv_path_NM" >&6; }
11254 if test "$lt_cv_path_NM" != "no"; then
11255   NM="$lt_cv_path_NM"
11256 else
11257   # Didn't find any BSD compatible name lister, look for dumpbin.
11258   if test -n "$DUMPBIN"; then :
11259     # Let the user override the test.
11260   else
11261     if test -n "$ac_tool_prefix"; then
11262   for ac_prog in dumpbin "link -dump"
11263   do
11264     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if ${ac_cv_prog_DUMPBIN+:} false; then :
11269   $as_echo_n "(cached) " >&6
11270 else
11271   if test -n "$DUMPBIN"; then
11272   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11273 else
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11276 do
11277   IFS=$as_save_IFS
11278   test -z "$as_dir" && as_dir=.
11279     for ac_exec_ext in '' $ac_executable_extensions; do
11280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283     break 2
11284   fi
11285 done
11286   done
11287 IFS=$as_save_IFS
11288
11289 fi
11290 fi
11291 DUMPBIN=$ac_cv_prog_DUMPBIN
11292 if test -n "$DUMPBIN"; then
11293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11294 $as_echo "$DUMPBIN" >&6; }
11295 else
11296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297 $as_echo "no" >&6; }
11298 fi
11299
11300
11301     test -n "$DUMPBIN" && break
11302   done
11303 fi
11304 if test -z "$DUMPBIN"; then
11305   ac_ct_DUMPBIN=$DUMPBIN
11306   for ac_prog in dumpbin "link -dump"
11307 do
11308   # Extract the first word of "$ac_prog", so it can be a program name with args.
11309 set dummy $ac_prog; ac_word=$2
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11311 $as_echo_n "checking for $ac_word... " >&6; }
11312 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11313   $as_echo_n "(cached) " >&6
11314 else
11315   if test -n "$ac_ct_DUMPBIN"; then
11316   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11317 else
11318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319 for as_dir in $PATH
11320 do
11321   IFS=$as_save_IFS
11322   test -z "$as_dir" && as_dir=.
11323     for ac_exec_ext in '' $ac_executable_extensions; do
11324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11325     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11327     break 2
11328   fi
11329 done
11330   done
11331 IFS=$as_save_IFS
11332
11333 fi
11334 fi
11335 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11336 if test -n "$ac_ct_DUMPBIN"; then
11337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11338 $as_echo "$ac_ct_DUMPBIN" >&6; }
11339 else
11340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11342 fi
11343
11344
11345   test -n "$ac_ct_DUMPBIN" && break
11346 done
11347
11348   if test "x$ac_ct_DUMPBIN" = x; then
11349     DUMPBIN=":"
11350   else
11351     case $cross_compiling:$ac_tool_warned in
11352 yes:)
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11355 ac_tool_warned=yes ;;
11356 esac
11357     DUMPBIN=$ac_ct_DUMPBIN
11358   fi
11359 fi
11360
11361     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11362     *COFF*)
11363       DUMPBIN="$DUMPBIN -symbols"
11364       ;;
11365     *)
11366       DUMPBIN=:
11367       ;;
11368     esac
11369   fi
11370
11371   if test "$DUMPBIN" != ":"; then
11372     NM="$DUMPBIN"
11373   fi
11374 fi
11375 test -z "$NM" && NM=nm
11376
11377
11378
11379
11380
11381
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11383 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11384 if ${lt_cv_nm_interface+:} false; then :
11385   $as_echo_n "(cached) " >&6
11386 else
11387   lt_cv_nm_interface="BSD nm"
11388   echo "int some_variable = 0;" > conftest.$ac_ext
11389   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11390   (eval "$ac_compile" 2>conftest.err)
11391   cat conftest.err >&5
11392   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11393   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11394   cat conftest.err >&5
11395   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11396   cat conftest.out >&5
11397   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11398     lt_cv_nm_interface="MS dumpbin"
11399   fi
11400   rm -f conftest*
11401 fi
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11403 $as_echo "$lt_cv_nm_interface" >&6; }
11404
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11406 $as_echo_n "checking whether ln -s works... " >&6; }
11407 LN_S=$as_ln_s
11408 if test "$LN_S" = "ln -s"; then
11409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11410 $as_echo "yes" >&6; }
11411 else
11412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11413 $as_echo "no, using $LN_S" >&6; }
11414 fi
11415
11416 # find the maximum length of command line arguments
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11418 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11419 if ${lt_cv_sys_max_cmd_len+:} false; then :
11420   $as_echo_n "(cached) " >&6
11421 else
11422     i=0
11423   teststring="ABCD"
11424
11425   case $build_os in
11426   msdosdjgpp*)
11427     # On DJGPP, this test can blow up pretty badly due to problems in libc
11428     # (any single argument exceeding 2000 bytes causes a buffer overrun
11429     # during glob expansion).  Even if it were fixed, the result of this
11430     # check would be larger than it should be.
11431     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11432     ;;
11433
11434   gnu*)
11435     # Under GNU Hurd, this test is not required because there is
11436     # no limit to the length of command line arguments.
11437     # Libtool will interpret -1 as no limit whatsoever
11438     lt_cv_sys_max_cmd_len=-1;
11439     ;;
11440
11441   cygwin* | mingw* | cegcc*)
11442     # On Win9x/ME, this test blows up -- it succeeds, but takes
11443     # about 5 minutes as the teststring grows exponentially.
11444     # Worse, since 9x/ME are not pre-emptively multitasking,
11445     # you end up with a "frozen" computer, even though with patience
11446     # the test eventually succeeds (with a max line length of 256k).
11447     # Instead, let's just punt: use the minimum linelength reported by
11448     # all of the supported platforms: 8192 (on NT/2K/XP).
11449     lt_cv_sys_max_cmd_len=8192;
11450     ;;
11451
11452   mint*)
11453     # On MiNT this can take a long time and run out of memory.
11454     lt_cv_sys_max_cmd_len=8192;
11455     ;;
11456
11457   amigaos*)
11458     # On AmigaOS with pdksh, this test takes hours, literally.
11459     # So we just punt and use a minimum line length of 8192.
11460     lt_cv_sys_max_cmd_len=8192;
11461     ;;
11462
11463   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11464     # This has been around since 386BSD, at least.  Likely further.
11465     if test -x /sbin/sysctl; then
11466       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11467     elif test -x /usr/sbin/sysctl; then
11468       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11469     else
11470       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
11471     fi
11472     # And add a safety zone
11473     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11474     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11475     ;;
11476
11477   interix*)
11478     # We know the value 262144 and hardcode it with a safety zone (like BSD)
11479     lt_cv_sys_max_cmd_len=196608
11480     ;;
11481
11482   os2*)
11483     # The test takes a long time on OS/2.
11484     lt_cv_sys_max_cmd_len=8192
11485     ;;
11486
11487   osf*)
11488     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11489     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11490     # nice to cause kernel panics so lets avoid the loop below.
11491     # First set a reasonable default.
11492     lt_cv_sys_max_cmd_len=16384
11493     #
11494     if test -x /sbin/sysconfig; then
11495       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11496         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11497       esac
11498     fi
11499     ;;
11500   sco3.2v5*)
11501     lt_cv_sys_max_cmd_len=102400
11502     ;;
11503   sysv5* | sco5v6* | sysv4.2uw2*)
11504     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11505     if test -n "$kargmax"; then
11506       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
11507     else
11508       lt_cv_sys_max_cmd_len=32768
11509     fi
11510     ;;
11511   *)
11512     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11513     if test -n "$lt_cv_sys_max_cmd_len"; then
11514       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11515       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11516     else
11517       # Make teststring a little bigger before we do anything with it.
11518       # a 1K string should be a reasonable start.
11519       for i in 1 2 3 4 5 6 7 8 ; do
11520         teststring=$teststring$teststring
11521       done
11522       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11523       # If test is not a shell built-in, we'll probably end up computing a
11524       # maximum length that is only half of the actual maximum length, but
11525       # we can't tell.
11526       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11527                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11528               test $i != 17 # 1/2 MB should be enough
11529       do
11530         i=`expr $i + 1`
11531         teststring=$teststring$teststring
11532       done
11533       # Only check the string length outside the loop.
11534       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11535       teststring=
11536       # Add a significant safety factor because C++ compilers can tack on
11537       # massive amounts of additional arguments before passing them to the
11538       # linker.  It appears as though 1/2 is a usable value.
11539       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11540     fi
11541     ;;
11542   esac
11543
11544 fi
11545
11546 if test -n $lt_cv_sys_max_cmd_len ; then
11547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11548 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11549 else
11550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11551 $as_echo "none" >&6; }
11552 fi
11553 max_cmd_len=$lt_cv_sys_max_cmd_len
11554
11555
11556
11557
11558
11559
11560 : ${CP="cp -f"}
11561 : ${MV="mv -f"}
11562 : ${RM="rm -f"}
11563
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11565 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11566 # Try some XSI features
11567 xsi_shell=no
11568 ( _lt_dummy="a/b/c"
11569   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11570       = c,a/b,b/c, \
11571     && eval 'test $(( 1 + 1 )) -eq 2 \
11572     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11573   && xsi_shell=yes
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11575 $as_echo "$xsi_shell" >&6; }
11576
11577
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11579 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11580 lt_shell_append=no
11581 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11582     >/dev/null 2>&1 \
11583   && lt_shell_append=yes
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11585 $as_echo "$lt_shell_append" >&6; }
11586
11587
11588 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11589   lt_unset=unset
11590 else
11591   lt_unset=false
11592 fi
11593
11594
11595
11596
11597
11598 # test EBCDIC or ASCII
11599 case `echo X|tr X '\101'` in
11600  A) # ASCII based system
11601     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11602   lt_SP2NL='tr \040 \012'
11603   lt_NL2SP='tr \015\012 \040\040'
11604   ;;
11605  *) # EBCDIC based system
11606   lt_SP2NL='tr \100 \n'
11607   lt_NL2SP='tr \r\n \100\100'
11608   ;;
11609 esac
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11620 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11621 if ${lt_cv_to_host_file_cmd+:} false; then :
11622   $as_echo_n "(cached) " >&6
11623 else
11624   case $host in
11625   *-*-mingw* )
11626     case $build in
11627       *-*-mingw* ) # actually msys
11628         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11629         ;;
11630       *-*-cygwin* )
11631         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11632         ;;
11633       * ) # otherwise, assume *nix
11634         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11635         ;;
11636     esac
11637     ;;
11638   *-*-cygwin* )
11639     case $build in
11640       *-*-mingw* ) # actually msys
11641         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11642         ;;
11643       *-*-cygwin* )
11644         lt_cv_to_host_file_cmd=func_convert_file_noop
11645         ;;
11646       * ) # otherwise, assume *nix
11647         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11648         ;;
11649     esac
11650     ;;
11651   * ) # unhandled hosts (and "normal" native builds)
11652     lt_cv_to_host_file_cmd=func_convert_file_noop
11653     ;;
11654 esac
11655
11656 fi
11657
11658 to_host_file_cmd=$lt_cv_to_host_file_cmd
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11660 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11661
11662
11663
11664
11665
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11667 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11668 if ${lt_cv_to_tool_file_cmd+:} false; then :
11669   $as_echo_n "(cached) " >&6
11670 else
11671   #assume ordinary cross tools, or native build.
11672 lt_cv_to_tool_file_cmd=func_convert_file_noop
11673 case $host in
11674   *-*-mingw* )
11675     case $build in
11676       *-*-mingw* ) # actually msys
11677         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11678         ;;
11679     esac
11680     ;;
11681 esac
11682
11683 fi
11684
11685 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11687 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11688
11689
11690
11691
11692
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11694 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11695 if ${lt_cv_ld_reload_flag+:} false; then :
11696   $as_echo_n "(cached) " >&6
11697 else
11698   lt_cv_ld_reload_flag='-r'
11699 fi
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11701 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11702 reload_flag=$lt_cv_ld_reload_flag
11703 case $reload_flag in
11704 "" | " "*) ;;
11705 *) reload_flag=" $reload_flag" ;;
11706 esac
11707 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11708 case $host_os in
11709   cygwin* | mingw* | pw32* | cegcc*)
11710     if test "$GCC" != yes; then
11711       reload_cmds=false
11712     fi
11713     ;;
11714   darwin*)
11715     if test "$GCC" = yes; then
11716       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11717     else
11718       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11719     fi
11720     ;;
11721 esac
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731 if test -n "$ac_tool_prefix"; then
11732   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11733 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735 $as_echo_n "checking for $ac_word... " >&6; }
11736 if ${ac_cv_prog_OBJDUMP+:} false; then :
11737   $as_echo_n "(cached) " >&6
11738 else
11739   if test -n "$OBJDUMP"; then
11740   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11741 else
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $PATH
11744 do
11745   IFS=$as_save_IFS
11746   test -z "$as_dir" && as_dir=.
11747     for ac_exec_ext in '' $ac_executable_extensions; do
11748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11749     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11751     break 2
11752   fi
11753 done
11754   done
11755 IFS=$as_save_IFS
11756
11757 fi
11758 fi
11759 OBJDUMP=$ac_cv_prog_OBJDUMP
11760 if test -n "$OBJDUMP"; then
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11762 $as_echo "$OBJDUMP" >&6; }
11763 else
11764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11766 fi
11767
11768
11769 fi
11770 if test -z "$ac_cv_prog_OBJDUMP"; then
11771   ac_ct_OBJDUMP=$OBJDUMP
11772   # Extract the first word of "objdump", so it can be a program name with args.
11773 set dummy objdump; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11777   $as_echo_n "(cached) " >&6
11778 else
11779   if test -n "$ac_ct_OBJDUMP"; then
11780   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11781 else
11782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783 for as_dir in $PATH
11784 do
11785   IFS=$as_save_IFS
11786   test -z "$as_dir" && as_dir=.
11787     for ac_exec_ext in '' $ac_executable_extensions; do
11788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11789     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11791     break 2
11792   fi
11793 done
11794   done
11795 IFS=$as_save_IFS
11796
11797 fi
11798 fi
11799 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11800 if test -n "$ac_ct_OBJDUMP"; then
11801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11802 $as_echo "$ac_ct_OBJDUMP" >&6; }
11803 else
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11806 fi
11807
11808   if test "x$ac_ct_OBJDUMP" = x; then
11809     OBJDUMP="false"
11810   else
11811     case $cross_compiling:$ac_tool_warned in
11812 yes:)
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11815 ac_tool_warned=yes ;;
11816 esac
11817     OBJDUMP=$ac_ct_OBJDUMP
11818   fi
11819 else
11820   OBJDUMP="$ac_cv_prog_OBJDUMP"
11821 fi
11822
11823 test -z "$OBJDUMP" && OBJDUMP=objdump
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11834 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11835 if ${lt_cv_deplibs_check_method+:} false; then :
11836   $as_echo_n "(cached) " >&6
11837 else
11838   lt_cv_file_magic_cmd='$MAGIC_CMD'
11839 lt_cv_file_magic_test_file=
11840 lt_cv_deplibs_check_method='unknown'
11841 # Need to set the preceding variable on all platforms that support
11842 # interlibrary dependencies.
11843 # 'none' -- dependencies not supported.
11844 # `unknown' -- same as none, but documents that we really don't know.
11845 # 'pass_all' -- all dependencies passed with no checks.
11846 # 'test_compile' -- check by making test program.
11847 # 'file_magic [[regex]]' -- check by looking for files in library path
11848 # which responds to the $file_magic_cmd with a given extended regex.
11849 # If you have `file' or equivalent on your system and you're not sure
11850 # whether `pass_all' will *always* work, you probably want this one.
11851
11852 case $host_os in
11853 aix[4-9]*)
11854   lt_cv_deplibs_check_method=pass_all
11855   ;;
11856
11857 beos*)
11858   lt_cv_deplibs_check_method=pass_all
11859   ;;
11860
11861 bsdi[45]*)
11862   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11863   lt_cv_file_magic_cmd='/usr/bin/file -L'
11864   lt_cv_file_magic_test_file=/shlib/libc.so
11865   ;;
11866
11867 cygwin*)
11868   # func_win32_libid is a shell function defined in ltmain.sh
11869   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11870   lt_cv_file_magic_cmd='func_win32_libid'
11871   ;;
11872
11873 mingw* | pw32*)
11874   # Base MSYS/MinGW do not provide the 'file' command needed by
11875   # func_win32_libid shell function, so use a weaker test based on 'objdump',
11876   # unless we find 'file', for example because we are cross-compiling.
11877   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11878   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11879     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11880     lt_cv_file_magic_cmd='func_win32_libid'
11881   else
11882     # Keep this pattern in sync with the one in func_win32_libid.
11883     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11884     lt_cv_file_magic_cmd='$OBJDUMP -f'
11885   fi
11886   ;;
11887
11888 cegcc*)
11889   # use the weaker test based on 'objdump'. See mingw*.
11890   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11891   lt_cv_file_magic_cmd='$OBJDUMP -f'
11892   ;;
11893
11894 darwin* | rhapsody*)
11895   lt_cv_deplibs_check_method=pass_all
11896   ;;
11897
11898 freebsd* | dragonfly*)
11899   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11900     case $host_cpu in
11901     i*86 )
11902       # Not sure whether the presence of OpenBSD here was a mistake.
11903       # Let's accept both of them until this is cleared up.
11904       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11905       lt_cv_file_magic_cmd=/usr/bin/file
11906       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11907       ;;
11908     esac
11909   else
11910     lt_cv_deplibs_check_method=pass_all
11911   fi
11912   ;;
11913
11914 haiku*)
11915   lt_cv_deplibs_check_method=pass_all
11916   ;;
11917
11918 hpux10.20* | hpux11*)
11919   lt_cv_file_magic_cmd=/usr/bin/file
11920   case $host_cpu in
11921   ia64*)
11922     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11923     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11924     ;;
11925   hppa*64*)
11926     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]'
11927     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11928     ;;
11929   *)
11930     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11931     lt_cv_file_magic_test_file=/usr/lib/libc.sl
11932     ;;
11933   esac
11934   ;;
11935
11936 interix[3-9]*)
11937   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11938   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11939   ;;
11940
11941 irix5* | irix6* | nonstopux*)
11942   case $LD in
11943   *-32|*"-32 ") libmagic=32-bit;;
11944   *-n32|*"-n32 ") libmagic=N32;;
11945   *-64|*"-64 ") libmagic=64-bit;;
11946   *) libmagic=never-match;;
11947   esac
11948   lt_cv_deplibs_check_method=pass_all
11949   ;;
11950
11951 # This must be glibc/ELF.
11952 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11953   lt_cv_deplibs_check_method=pass_all
11954   ;;
11955
11956 netbsd* | netbsdelf*-gnu)
11957   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11958     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11959   else
11960     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11961   fi
11962   ;;
11963
11964 newos6*)
11965   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11966   lt_cv_file_magic_cmd=/usr/bin/file
11967   lt_cv_file_magic_test_file=/usr/lib/libnls.so
11968   ;;
11969
11970 *nto* | *qnx*)
11971   lt_cv_deplibs_check_method=pass_all
11972   ;;
11973
11974 openbsd*)
11975   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11976     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11977   else
11978     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11979   fi
11980   ;;
11981
11982 osf3* | osf4* | osf5*)
11983   lt_cv_deplibs_check_method=pass_all
11984   ;;
11985
11986 rdos*)
11987   lt_cv_deplibs_check_method=pass_all
11988   ;;
11989
11990 solaris*)
11991   lt_cv_deplibs_check_method=pass_all
11992   ;;
11993
11994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11995   lt_cv_deplibs_check_method=pass_all
11996   ;;
11997
11998 sysv4 | sysv4.3*)
11999   case $host_vendor in
12000   motorola)
12001     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]'
12002     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12003     ;;
12004   ncr)
12005     lt_cv_deplibs_check_method=pass_all
12006     ;;
12007   sequent)
12008     lt_cv_file_magic_cmd='/bin/file'
12009     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12010     ;;
12011   sni)
12012     lt_cv_file_magic_cmd='/bin/file'
12013     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12014     lt_cv_file_magic_test_file=/lib/libc.so
12015     ;;
12016   siemens)
12017     lt_cv_deplibs_check_method=pass_all
12018     ;;
12019   pc)
12020     lt_cv_deplibs_check_method=pass_all
12021     ;;
12022   esac
12023   ;;
12024
12025 tpf*)
12026   lt_cv_deplibs_check_method=pass_all
12027   ;;
12028 esac
12029
12030 fi
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12032 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12033
12034 file_magic_glob=
12035 want_nocaseglob=no
12036 if test "$build" = "$host"; then
12037   case $host_os in
12038   mingw* | pw32*)
12039     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12040       want_nocaseglob=yes
12041     else
12042       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12043     fi
12044     ;;
12045   esac
12046 fi
12047
12048 file_magic_cmd=$lt_cv_file_magic_cmd
12049 deplibs_check_method=$lt_cv_deplibs_check_method
12050 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073 if test -n "$ac_tool_prefix"; then
12074   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12075 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077 $as_echo_n "checking for $ac_word... " >&6; }
12078 if ${ac_cv_prog_DLLTOOL+:} false; then :
12079   $as_echo_n "(cached) " >&6
12080 else
12081   if test -n "$DLLTOOL"; then
12082   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12083 else
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $PATH
12086 do
12087   IFS=$as_save_IFS
12088   test -z "$as_dir" && as_dir=.
12089     for ac_exec_ext in '' $ac_executable_extensions; do
12090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12091     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12093     break 2
12094   fi
12095 done
12096   done
12097 IFS=$as_save_IFS
12098
12099 fi
12100 fi
12101 DLLTOOL=$ac_cv_prog_DLLTOOL
12102 if test -n "$DLLTOOL"; then
12103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12104 $as_echo "$DLLTOOL" >&6; }
12105 else
12106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12108 fi
12109
12110
12111 fi
12112 if test -z "$ac_cv_prog_DLLTOOL"; then
12113   ac_ct_DLLTOOL=$DLLTOOL
12114   # Extract the first word of "dlltool", so it can be a program name with args.
12115 set dummy dlltool; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12119   $as_echo_n "(cached) " >&6
12120 else
12121   if test -n "$ac_ct_DLLTOOL"; then
12122   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12123 else
12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125 for as_dir in $PATH
12126 do
12127   IFS=$as_save_IFS
12128   test -z "$as_dir" && as_dir=.
12129     for ac_exec_ext in '' $ac_executable_extensions; do
12130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12131     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133     break 2
12134   fi
12135 done
12136   done
12137 IFS=$as_save_IFS
12138
12139 fi
12140 fi
12141 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12142 if test -n "$ac_ct_DLLTOOL"; then
12143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12144 $as_echo "$ac_ct_DLLTOOL" >&6; }
12145 else
12146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147 $as_echo "no" >&6; }
12148 fi
12149
12150   if test "x$ac_ct_DLLTOOL" = x; then
12151     DLLTOOL="false"
12152   else
12153     case $cross_compiling:$ac_tool_warned in
12154 yes:)
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12157 ac_tool_warned=yes ;;
12158 esac
12159     DLLTOOL=$ac_ct_DLLTOOL
12160   fi
12161 else
12162   DLLTOOL="$ac_cv_prog_DLLTOOL"
12163 fi
12164
12165 test -z "$DLLTOOL" && DLLTOOL=dlltool
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12177 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12178 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12179   $as_echo_n "(cached) " >&6
12180 else
12181   lt_cv_sharedlib_from_linklib_cmd='unknown'
12182
12183 case $host_os in
12184 cygwin* | mingw* | pw32* | cegcc*)
12185   # two different shell functions defined in ltmain.sh
12186   # decide which to use based on capabilities of $DLLTOOL
12187   case `$DLLTOOL --help 2>&1` in
12188   *--identify-strict*)
12189     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12190     ;;
12191   *)
12192     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12193     ;;
12194   esac
12195   ;;
12196 *)
12197   # fallback: assume linklib IS sharedlib
12198   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12199   ;;
12200 esac
12201
12202 fi
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12204 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12205 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12206 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12207
12208
12209
12210
12211
12212
12213
12214 if test -n "$ac_tool_prefix"; then
12215   for ac_prog in ar
12216   do
12217     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12220 $as_echo_n "checking for $ac_word... " >&6; }
12221 if ${ac_cv_prog_AR+:} false; then :
12222   $as_echo_n "(cached) " >&6
12223 else
12224   if test -n "$AR"; then
12225   ac_cv_prog_AR="$AR" # Let the user override the test.
12226 else
12227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12228 for as_dir in $PATH
12229 do
12230   IFS=$as_save_IFS
12231   test -z "$as_dir" && as_dir=.
12232     for ac_exec_ext in '' $ac_executable_extensions; do
12233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12234     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12236     break 2
12237   fi
12238 done
12239   done
12240 IFS=$as_save_IFS
12241
12242 fi
12243 fi
12244 AR=$ac_cv_prog_AR
12245 if test -n "$AR"; then
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12247 $as_echo "$AR" >&6; }
12248 else
12249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250 $as_echo "no" >&6; }
12251 fi
12252
12253
12254     test -n "$AR" && break
12255   done
12256 fi
12257 if test -z "$AR"; then
12258   ac_ct_AR=$AR
12259   for ac_prog in ar
12260 do
12261   # Extract the first word of "$ac_prog", so it can be a program name with args.
12262 set dummy $ac_prog; ac_word=$2
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12264 $as_echo_n "checking for $ac_word... " >&6; }
12265 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12266   $as_echo_n "(cached) " >&6
12267 else
12268   if test -n "$ac_ct_AR"; then
12269   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12270 else
12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272 for as_dir in $PATH
12273 do
12274   IFS=$as_save_IFS
12275   test -z "$as_dir" && as_dir=.
12276     for ac_exec_ext in '' $ac_executable_extensions; do
12277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12278     ac_cv_prog_ac_ct_AR="$ac_prog"
12279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12280     break 2
12281   fi
12282 done
12283   done
12284 IFS=$as_save_IFS
12285
12286 fi
12287 fi
12288 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12289 if test -n "$ac_ct_AR"; then
12290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12291 $as_echo "$ac_ct_AR" >&6; }
12292 else
12293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294 $as_echo "no" >&6; }
12295 fi
12296
12297
12298   test -n "$ac_ct_AR" && break
12299 done
12300
12301   if test "x$ac_ct_AR" = x; then
12302     AR="false"
12303   else
12304     case $cross_compiling:$ac_tool_warned in
12305 yes:)
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12308 ac_tool_warned=yes ;;
12309 esac
12310     AR=$ac_ct_AR
12311   fi
12312 fi
12313
12314 : ${AR=ar}
12315 : ${AR_FLAGS=cru}
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12328 $as_echo_n "checking for archiver @FILE support... " >&6; }
12329 if ${lt_cv_ar_at_file+:} false; then :
12330   $as_echo_n "(cached) " >&6
12331 else
12332   lt_cv_ar_at_file=no
12333    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h.  */
12335
12336 int
12337 main ()
12338 {
12339
12340   ;
12341   return 0;
12342 }
12343 _ACEOF
12344 if ac_fn_c_try_compile "$LINENO"; then :
12345   echo conftest.$ac_objext > conftest.lst
12346       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12347       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12348   (eval $lt_ar_try) 2>&5
12349   ac_status=$?
12350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12351   test $ac_status = 0; }
12352       if test "$ac_status" -eq 0; then
12353         # Ensure the archiver fails upon bogus file names.
12354         rm -f conftest.$ac_objext libconftest.a
12355         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12356   (eval $lt_ar_try) 2>&5
12357   ac_status=$?
12358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12359   test $ac_status = 0; }
12360         if test "$ac_status" -ne 0; then
12361           lt_cv_ar_at_file=@
12362         fi
12363       fi
12364       rm -f conftest.* libconftest.a
12365
12366 fi
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368
12369 fi
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12371 $as_echo "$lt_cv_ar_at_file" >&6; }
12372
12373 if test "x$lt_cv_ar_at_file" = xno; then
12374   archiver_list_spec=
12375 else
12376   archiver_list_spec=$lt_cv_ar_at_file
12377 fi
12378
12379
12380
12381
12382
12383
12384
12385 if test -n "$ac_tool_prefix"; then
12386   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12387 set dummy ${ac_tool_prefix}strip; ac_word=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389 $as_echo_n "checking for $ac_word... " >&6; }
12390 if ${ac_cv_prog_STRIP+:} false; then :
12391   $as_echo_n "(cached) " >&6
12392 else
12393   if test -n "$STRIP"; then
12394   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12395 else
12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12398 do
12399   IFS=$as_save_IFS
12400   test -z "$as_dir" && as_dir=.
12401     for ac_exec_ext in '' $ac_executable_extensions; do
12402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405     break 2
12406   fi
12407 done
12408   done
12409 IFS=$as_save_IFS
12410
12411 fi
12412 fi
12413 STRIP=$ac_cv_prog_STRIP
12414 if test -n "$STRIP"; then
12415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12416 $as_echo "$STRIP" >&6; }
12417 else
12418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12420 fi
12421
12422
12423 fi
12424 if test -z "$ac_cv_prog_STRIP"; then
12425   ac_ct_STRIP=$STRIP
12426   # Extract the first word of "strip", so it can be a program name with args.
12427 set dummy strip; ac_word=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429 $as_echo_n "checking for $ac_word... " >&6; }
12430 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12431   $as_echo_n "(cached) " >&6
12432 else
12433   if test -n "$ac_ct_STRIP"; then
12434   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12435 else
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12438 do
12439   IFS=$as_save_IFS
12440   test -z "$as_dir" && as_dir=.
12441     for ac_exec_ext in '' $ac_executable_extensions; do
12442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12443     ac_cv_prog_ac_ct_STRIP="strip"
12444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12445     break 2
12446   fi
12447 done
12448   done
12449 IFS=$as_save_IFS
12450
12451 fi
12452 fi
12453 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12454 if test -n "$ac_ct_STRIP"; then
12455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12456 $as_echo "$ac_ct_STRIP" >&6; }
12457 else
12458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; }
12460 fi
12461
12462   if test "x$ac_ct_STRIP" = x; then
12463     STRIP=":"
12464   else
12465     case $cross_compiling:$ac_tool_warned in
12466 yes:)
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12469 ac_tool_warned=yes ;;
12470 esac
12471     STRIP=$ac_ct_STRIP
12472   fi
12473 else
12474   STRIP="$ac_cv_prog_STRIP"
12475 fi
12476
12477 test -z "$STRIP" && STRIP=:
12478
12479
12480
12481
12482
12483
12484 if test -n "$ac_tool_prefix"; then
12485   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12486 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if ${ac_cv_prog_RANLIB+:} false; then :
12490   $as_echo_n "(cached) " >&6
12491 else
12492   if test -n "$RANLIB"; then
12493   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12494 else
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12497 do
12498   IFS=$as_save_IFS
12499   test -z "$as_dir" && as_dir=.
12500     for ac_exec_ext in '' $ac_executable_extensions; do
12501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504     break 2
12505   fi
12506 done
12507   done
12508 IFS=$as_save_IFS
12509
12510 fi
12511 fi
12512 RANLIB=$ac_cv_prog_RANLIB
12513 if test -n "$RANLIB"; then
12514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12515 $as_echo "$RANLIB" >&6; }
12516 else
12517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12519 fi
12520
12521
12522 fi
12523 if test -z "$ac_cv_prog_RANLIB"; then
12524   ac_ct_RANLIB=$RANLIB
12525   # Extract the first word of "ranlib", so it can be a program name with args.
12526 set dummy ranlib; ac_word=$2
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12528 $as_echo_n "checking for $ac_word... " >&6; }
12529 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12530   $as_echo_n "(cached) " >&6
12531 else
12532   if test -n "$ac_ct_RANLIB"; then
12533   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12534 else
12535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536 for as_dir in $PATH
12537 do
12538   IFS=$as_save_IFS
12539   test -z "$as_dir" && as_dir=.
12540     for ac_exec_ext in '' $ac_executable_extensions; do
12541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12542     ac_cv_prog_ac_ct_RANLIB="ranlib"
12543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12544     break 2
12545   fi
12546 done
12547   done
12548 IFS=$as_save_IFS
12549
12550 fi
12551 fi
12552 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12553 if test -n "$ac_ct_RANLIB"; then
12554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12555 $as_echo "$ac_ct_RANLIB" >&6; }
12556 else
12557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12559 fi
12560
12561   if test "x$ac_ct_RANLIB" = x; then
12562     RANLIB=":"
12563   else
12564     case $cross_compiling:$ac_tool_warned in
12565 yes:)
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12568 ac_tool_warned=yes ;;
12569 esac
12570     RANLIB=$ac_ct_RANLIB
12571   fi
12572 else
12573   RANLIB="$ac_cv_prog_RANLIB"
12574 fi
12575
12576 test -z "$RANLIB" && RANLIB=:
12577
12578
12579
12580
12581
12582
12583 # Determine commands to create old-style static archives.
12584 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12585 old_postinstall_cmds='chmod 644 $oldlib'
12586 old_postuninstall_cmds=
12587
12588 if test -n "$RANLIB"; then
12589   case $host_os in
12590   openbsd*)
12591     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12592     ;;
12593   *)
12594     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12595     ;;
12596   esac
12597   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12598 fi
12599
12600 case $host_os in
12601   darwin*)
12602     lock_old_archive_extraction=yes ;;
12603   *)
12604     lock_old_archive_extraction=no ;;
12605 esac
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645 # If no C compiler was specified, use CC.
12646 LTCC=${LTCC-"$CC"}
12647
12648 # If no C compiler flags were specified, use CFLAGS.
12649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12650
12651 # Allow CC to be a program name with arguments.
12652 compiler=$CC
12653
12654
12655 # Check for command to grab the raw symbol name followed by C symbol from nm.
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12657 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12658 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12659   $as_echo_n "(cached) " >&6
12660 else
12661
12662 # These are sane defaults that work on at least a few old systems.
12663 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12664
12665 # Character class describing NM global symbol codes.
12666 symcode='[BCDEGRST]'
12667
12668 # Regexp to match symbols that can be accessed directly from C.
12669 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12670
12671 # Define system-specific variables.
12672 case $host_os in
12673 aix*)
12674   symcode='[BCDT]'
12675   ;;
12676 cygwin* | mingw* | pw32* | cegcc*)
12677   symcode='[ABCDGISTW]'
12678   ;;
12679 hpux*)
12680   if test "$host_cpu" = ia64; then
12681     symcode='[ABCDEGRST]'
12682   fi
12683   ;;
12684 irix* | nonstopux*)
12685   symcode='[BCDEGRST]'
12686   ;;
12687 osf*)
12688   symcode='[BCDEGQRST]'
12689   ;;
12690 solaris*)
12691   symcode='[BDRT]'
12692   ;;
12693 sco3.2v5*)
12694   symcode='[DT]'
12695   ;;
12696 sysv4.2uw2*)
12697   symcode='[DT]'
12698   ;;
12699 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12700   symcode='[ABDT]'
12701   ;;
12702 sysv4)
12703   symcode='[DFNSTU]'
12704   ;;
12705 esac
12706
12707 # If we're using GNU nm, then use its standard symbol codes.
12708 case `$NM -V 2>&1` in
12709 *GNU* | *'with BFD'*)
12710   symcode='[ABCDGIRSTW]' ;;
12711 esac
12712
12713 # Transform an extracted symbol line into a proper C declaration.
12714 # Some systems (esp. on ia64) link data and code symbols differently,
12715 # so use this general approach.
12716 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12717
12718 # Transform an extracted symbol line into symbol name and symbol address
12719 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12720 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'"
12721
12722 # Handle CRLF in mingw tool chain
12723 opt_cr=
12724 case $build_os in
12725 mingw*)
12726   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12727   ;;
12728 esac
12729
12730 # Try without a prefix underscore, then with it.
12731 for ac_symprfx in "" "_"; do
12732
12733   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12734   symxfrm="\\1 $ac_symprfx\\2 \\2"
12735
12736   # Write the raw and C identifiers.
12737   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12738     # Fake it for dumpbin and say T for any non-static function
12739     # and D for any global variable.
12740     # Also find C++ and __fastcall symbols from MSVC++,
12741     # which start with @ or ?.
12742     lt_cv_sys_global_symbol_pipe="$AWK '"\
12743 "     {last_section=section; section=\$ 3};"\
12744 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12745 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12746 "     \$ 0!~/External *\|/{next};"\
12747 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12748 "     {if(hide[section]) next};"\
12749 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12750 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12751 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12752 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12753 "     ' prfx=^$ac_symprfx"
12754   else
12755     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12756   fi
12757   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12758
12759   # Check to see that the pipe works correctly.
12760   pipe_works=no
12761
12762   rm -f conftest*
12763   cat > conftest.$ac_ext <<_LT_EOF
12764 #ifdef __cplusplus
12765 extern "C" {
12766 #endif
12767 char nm_test_var;
12768 void nm_test_func(void);
12769 void nm_test_func(void){}
12770 #ifdef __cplusplus
12771 }
12772 #endif
12773 int main(){nm_test_var='a';nm_test_func();return(0);}
12774 _LT_EOF
12775
12776   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12777   (eval $ac_compile) 2>&5
12778   ac_status=$?
12779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12780   test $ac_status = 0; }; then
12781     # Now try to grab the symbols.
12782     nlist=conftest.nm
12783     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12784   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12785   ac_status=$?
12786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12787   test $ac_status = 0; } && test -s "$nlist"; then
12788       # Try sorting and uniquifying the output.
12789       if sort "$nlist" | uniq > "$nlist"T; then
12790         mv -f "$nlist"T "$nlist"
12791       else
12792         rm -f "$nlist"T
12793       fi
12794
12795       # Make sure that we snagged all the symbols we need.
12796       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12797         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12798           cat <<_LT_EOF > conftest.$ac_ext
12799 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12800 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12801 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12802    relocations are performed -- see ld's documentation on pseudo-relocs.  */
12803 # define LT_DLSYM_CONST
12804 #elif defined(__osf__)
12805 /* This system does not cope well with relocations in const data.  */
12806 # define LT_DLSYM_CONST
12807 #else
12808 # define LT_DLSYM_CONST const
12809 #endif
12810
12811 #ifdef __cplusplus
12812 extern "C" {
12813 #endif
12814
12815 _LT_EOF
12816           # Now generate the symbol file.
12817           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12818
12819           cat <<_LT_EOF >> conftest.$ac_ext
12820
12821 /* The mapping between symbol names and symbols.  */
12822 LT_DLSYM_CONST struct {
12823   const char *name;
12824   void       *address;
12825 }
12826 lt__PROGRAM__LTX_preloaded_symbols[] =
12827 {
12828   { "@PROGRAM@", (void *) 0 },
12829 _LT_EOF
12830           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12831           cat <<\_LT_EOF >> conftest.$ac_ext
12832   {0, (void *) 0}
12833 };
12834
12835 /* This works around a problem in FreeBSD linker */
12836 #ifdef FREEBSD_WORKAROUND
12837 static const void *lt_preloaded_setup() {
12838   return lt__PROGRAM__LTX_preloaded_symbols;
12839 }
12840 #endif
12841
12842 #ifdef __cplusplus
12843 }
12844 #endif
12845 _LT_EOF
12846           # Now try linking the two files.
12847           mv conftest.$ac_objext conftstm.$ac_objext
12848           lt_globsym_save_LIBS=$LIBS
12849           lt_globsym_save_CFLAGS=$CFLAGS
12850           LIBS="conftstm.$ac_objext"
12851           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12852           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12853   (eval $ac_link) 2>&5
12854   ac_status=$?
12855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12856   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12857             pipe_works=yes
12858           fi
12859           LIBS=$lt_globsym_save_LIBS
12860           CFLAGS=$lt_globsym_save_CFLAGS
12861         else
12862           echo "cannot find nm_test_func in $nlist" >&5
12863         fi
12864       else
12865         echo "cannot find nm_test_var in $nlist" >&5
12866       fi
12867     else
12868       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12869     fi
12870   else
12871     echo "$progname: failed program was:" >&5
12872     cat conftest.$ac_ext >&5
12873   fi
12874   rm -rf conftest* conftst*
12875
12876   # Do not use the global_symbol_pipe unless it works.
12877   if test "$pipe_works" = yes; then
12878     break
12879   else
12880     lt_cv_sys_global_symbol_pipe=
12881   fi
12882 done
12883
12884 fi
12885
12886 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12887   lt_cv_sys_global_symbol_to_cdecl=
12888 fi
12889 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12891 $as_echo "failed" >&6; }
12892 else
12893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12894 $as_echo "ok" >&6; }
12895 fi
12896
12897 # Response file support.
12898 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12899   nm_file_list_spec='@'
12900 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12901   nm_file_list_spec='@'
12902 fi
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12931 $as_echo_n "checking for sysroot... " >&6; }
12932
12933 # Check whether --with-sysroot was given.
12934 if test "${with_sysroot+set}" = set; then :
12935   withval=$with_sysroot;
12936 else
12937   with_sysroot=no
12938 fi
12939
12940
12941 lt_sysroot=
12942 case ${with_sysroot} in #(
12943  yes)
12944    if test "$GCC" = yes; then
12945      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12946    fi
12947    ;; #(
12948  /*)
12949    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12950    ;; #(
12951  no|'')
12952    ;; #(
12953  *)
12954    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12955 $as_echo "${with_sysroot}" >&6; }
12956    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12957    ;;
12958 esac
12959
12960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12961 $as_echo "${lt_sysroot:-no}" >&6; }
12962
12963
12964
12965
12966
12967 # Check whether --enable-libtool-lock was given.
12968 if test "${enable_libtool_lock+set}" = set; then :
12969   enableval=$enable_libtool_lock;
12970 fi
12971
12972 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12973
12974 # Some flags need to be propagated to the compiler or linker for good
12975 # libtool support.
12976 case $host in
12977 ia64-*-hpux*)
12978   # Find out which ABI we are using.
12979   echo 'int i;' > conftest.$ac_ext
12980   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12981   (eval $ac_compile) 2>&5
12982   ac_status=$?
12983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12984   test $ac_status = 0; }; then
12985     case `/usr/bin/file conftest.$ac_objext` in
12986       *ELF-32*)
12987         HPUX_IA64_MODE="32"
12988         ;;
12989       *ELF-64*)
12990         HPUX_IA64_MODE="64"
12991         ;;
12992     esac
12993   fi
12994   rm -rf conftest*
12995   ;;
12996 *-*-irix6*)
12997   # Find out which ABI we are using.
12998   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12999   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13000   (eval $ac_compile) 2>&5
13001   ac_status=$?
13002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13003   test $ac_status = 0; }; then
13004     if test "$lt_cv_prog_gnu_ld" = yes; then
13005       case `/usr/bin/file conftest.$ac_objext` in
13006         *32-bit*)
13007           LD="${LD-ld} -melf32bsmip"
13008           ;;
13009         *N32*)
13010           LD="${LD-ld} -melf32bmipn32"
13011           ;;
13012         *64-bit*)
13013           LD="${LD-ld} -melf64bmip"
13014         ;;
13015       esac
13016     else
13017       case `/usr/bin/file conftest.$ac_objext` in
13018         *32-bit*)
13019           LD="${LD-ld} -32"
13020           ;;
13021         *N32*)
13022           LD="${LD-ld} -n32"
13023           ;;
13024         *64-bit*)
13025           LD="${LD-ld} -64"
13026           ;;
13027       esac
13028     fi
13029   fi
13030   rm -rf conftest*
13031   ;;
13032
13033 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13034 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13035   # Find out which ABI we are using.
13036   echo 'int i;' > conftest.$ac_ext
13037   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13038   (eval $ac_compile) 2>&5
13039   ac_status=$?
13040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13041   test $ac_status = 0; }; then
13042     case `/usr/bin/file conftest.o` in
13043       *32-bit*)
13044         case $host in
13045           x86_64-*kfreebsd*-gnu)
13046             LD="${LD-ld} -m elf_i386_fbsd"
13047             ;;
13048           x86_64-*linux*)
13049             LD="${LD-ld} -m elf_i386"
13050             ;;
13051           ppc64-*linux*|powerpc64-*linux*)
13052             LD="${LD-ld} -m elf32ppclinux"
13053             ;;
13054           s390x-*linux*)
13055             LD="${LD-ld} -m elf_s390"
13056             ;;
13057           sparc64-*linux*)
13058             LD="${LD-ld} -m elf32_sparc"
13059             ;;
13060         esac
13061         ;;
13062       *64-bit*)
13063         case $host in
13064           x86_64-*kfreebsd*-gnu)
13065             LD="${LD-ld} -m elf_x86_64_fbsd"
13066             ;;
13067           x86_64-*linux*)
13068             LD="${LD-ld} -m elf_x86_64"
13069             ;;
13070           ppc*-*linux*|powerpc*-*linux*)
13071             LD="${LD-ld} -m elf64ppc"
13072             ;;
13073           s390*-*linux*|s390*-*tpf*)
13074             LD="${LD-ld} -m elf64_s390"
13075             ;;
13076           sparc*-*linux*)
13077             LD="${LD-ld} -m elf64_sparc"
13078             ;;
13079         esac
13080         ;;
13081     esac
13082   fi
13083   rm -rf conftest*
13084   ;;
13085
13086 *-*-sco3.2v5*)
13087   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13088   SAVE_CFLAGS="$CFLAGS"
13089   CFLAGS="$CFLAGS -belf"
13090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13091 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13092 if ${lt_cv_cc_needs_belf+:} false; then :
13093   $as_echo_n "(cached) " >&6
13094 else
13095   ac_ext=c
13096 ac_cpp='$CPP $CPPFLAGS'
13097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13100
13101      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h.  */
13103
13104 int
13105 main ()
13106 {
13107
13108   ;
13109   return 0;
13110 }
13111 _ACEOF
13112 if ac_fn_c_try_link "$LINENO"; then :
13113   lt_cv_cc_needs_belf=yes
13114 else
13115   lt_cv_cc_needs_belf=no
13116 fi
13117 rm -f core conftest.err conftest.$ac_objext \
13118     conftest$ac_exeext conftest.$ac_ext
13119      ac_ext=c
13120 ac_cpp='$CPP $CPPFLAGS'
13121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13124
13125 fi
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13127 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13128   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13129     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13130     CFLAGS="$SAVE_CFLAGS"
13131   fi
13132   ;;
13133 *-*solaris*)
13134   # Find out which ABI we are using.
13135   echo 'int i;' > conftest.$ac_ext
13136   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13137   (eval $ac_compile) 2>&5
13138   ac_status=$?
13139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13140   test $ac_status = 0; }; then
13141     case `/usr/bin/file conftest.o` in
13142     *64-bit*)
13143       case $lt_cv_prog_gnu_ld in
13144       yes*)
13145         case $host in
13146         i?86-*-solaris*)
13147           LD="${LD-ld} -m elf_x86_64"
13148           ;;
13149         sparc*-*-solaris*)
13150           LD="${LD-ld} -m elf64_sparc"
13151           ;;
13152         esac
13153         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13154         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13155           LD="${LD-ld}_sol2"
13156         fi
13157         ;;
13158       *)
13159         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13160           LD="${LD-ld} -64"
13161         fi
13162         ;;
13163       esac
13164       ;;
13165     esac
13166   fi
13167   rm -rf conftest*
13168   ;;
13169 esac
13170
13171 need_locks="$enable_libtool_lock"
13172
13173 if test -n "$ac_tool_prefix"; then
13174   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13175 set dummy ${ac_tool_prefix}mt; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 $as_echo_n "checking for $ac_word... " >&6; }
13178 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13179   $as_echo_n "(cached) " >&6
13180 else
13181   if test -n "$MANIFEST_TOOL"; then
13182   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13183 else
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13186 do
13187   IFS=$as_save_IFS
13188   test -z "$as_dir" && as_dir=.
13189     for ac_exec_ext in '' $ac_executable_extensions; do
13190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13191     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13193     break 2
13194   fi
13195 done
13196   done
13197 IFS=$as_save_IFS
13198
13199 fi
13200 fi
13201 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13202 if test -n "$MANIFEST_TOOL"; then
13203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13204 $as_echo "$MANIFEST_TOOL" >&6; }
13205 else
13206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13208 fi
13209
13210
13211 fi
13212 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13213   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13214   # Extract the first word of "mt", so it can be a program name with args.
13215 set dummy mt; ac_word=$2
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13217 $as_echo_n "checking for $ac_word... " >&6; }
13218 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13219   $as_echo_n "(cached) " >&6
13220 else
13221   if test -n "$ac_ct_MANIFEST_TOOL"; then
13222   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13223 else
13224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13225 for as_dir in $PATH
13226 do
13227   IFS=$as_save_IFS
13228   test -z "$as_dir" && as_dir=.
13229     for ac_exec_ext in '' $ac_executable_extensions; do
13230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13231     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13233     break 2
13234   fi
13235 done
13236   done
13237 IFS=$as_save_IFS
13238
13239 fi
13240 fi
13241 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13242 if test -n "$ac_ct_MANIFEST_TOOL"; then
13243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13244 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13245 else
13246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13247 $as_echo "no" >&6; }
13248 fi
13249
13250   if test "x$ac_ct_MANIFEST_TOOL" = x; then
13251     MANIFEST_TOOL=":"
13252   else
13253     case $cross_compiling:$ac_tool_warned in
13254 yes:)
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13257 ac_tool_warned=yes ;;
13258 esac
13259     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13260   fi
13261 else
13262   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13263 fi
13264
13265 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13267 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13268 if ${lt_cv_path_mainfest_tool+:} false; then :
13269   $as_echo_n "(cached) " >&6
13270 else
13271   lt_cv_path_mainfest_tool=no
13272   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13273   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13274   cat conftest.err >&5
13275   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13276     lt_cv_path_mainfest_tool=yes
13277   fi
13278   rm -f conftest*
13279 fi
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13281 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13282 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13283   MANIFEST_TOOL=:
13284 fi
13285
13286
13287
13288
13289
13290
13291   case $host_os in
13292     rhapsody* | darwin*)
13293     if test -n "$ac_tool_prefix"; then
13294   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13295 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297 $as_echo_n "checking for $ac_word... " >&6; }
13298 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13299   $as_echo_n "(cached) " >&6
13300 else
13301   if test -n "$DSYMUTIL"; then
13302   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13303 else
13304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305 for as_dir in $PATH
13306 do
13307   IFS=$as_save_IFS
13308   test -z "$as_dir" && as_dir=.
13309     for ac_exec_ext in '' $ac_executable_extensions; do
13310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13311     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13313     break 2
13314   fi
13315 done
13316   done
13317 IFS=$as_save_IFS
13318
13319 fi
13320 fi
13321 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13322 if test -n "$DSYMUTIL"; then
13323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13324 $as_echo "$DSYMUTIL" >&6; }
13325 else
13326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13328 fi
13329
13330
13331 fi
13332 if test -z "$ac_cv_prog_DSYMUTIL"; then
13333   ac_ct_DSYMUTIL=$DSYMUTIL
13334   # Extract the first word of "dsymutil", so it can be a program name with args.
13335 set dummy dsymutil; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13339   $as_echo_n "(cached) " >&6
13340 else
13341   if test -n "$ac_ct_DSYMUTIL"; then
13342   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13343 else
13344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13346 do
13347   IFS=$as_save_IFS
13348   test -z "$as_dir" && as_dir=.
13349     for ac_exec_ext in '' $ac_executable_extensions; do
13350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13353     break 2
13354   fi
13355 done
13356   done
13357 IFS=$as_save_IFS
13358
13359 fi
13360 fi
13361 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13362 if test -n "$ac_ct_DSYMUTIL"; then
13363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13364 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13365 else
13366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367 $as_echo "no" >&6; }
13368 fi
13369
13370   if test "x$ac_ct_DSYMUTIL" = x; then
13371     DSYMUTIL=":"
13372   else
13373     case $cross_compiling:$ac_tool_warned in
13374 yes:)
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13377 ac_tool_warned=yes ;;
13378 esac
13379     DSYMUTIL=$ac_ct_DSYMUTIL
13380   fi
13381 else
13382   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13383 fi
13384
13385     if test -n "$ac_tool_prefix"; then
13386   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13387 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13389 $as_echo_n "checking for $ac_word... " >&6; }
13390 if ${ac_cv_prog_NMEDIT+:} false; then :
13391   $as_echo_n "(cached) " >&6
13392 else
13393   if test -n "$NMEDIT"; then
13394   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13395 else
13396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13397 for as_dir in $PATH
13398 do
13399   IFS=$as_save_IFS
13400   test -z "$as_dir" && as_dir=.
13401     for ac_exec_ext in '' $ac_executable_extensions; do
13402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13403     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13405     break 2
13406   fi
13407 done
13408   done
13409 IFS=$as_save_IFS
13410
13411 fi
13412 fi
13413 NMEDIT=$ac_cv_prog_NMEDIT
13414 if test -n "$NMEDIT"; then
13415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13416 $as_echo "$NMEDIT" >&6; }
13417 else
13418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13420 fi
13421
13422
13423 fi
13424 if test -z "$ac_cv_prog_NMEDIT"; then
13425   ac_ct_NMEDIT=$NMEDIT
13426   # Extract the first word of "nmedit", so it can be a program name with args.
13427 set dummy nmedit; ac_word=$2
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13429 $as_echo_n "checking for $ac_word... " >&6; }
13430 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13431   $as_echo_n "(cached) " >&6
13432 else
13433   if test -n "$ac_ct_NMEDIT"; then
13434   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13435 else
13436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437 for as_dir in $PATH
13438 do
13439   IFS=$as_save_IFS
13440   test -z "$as_dir" && as_dir=.
13441     for ac_exec_ext in '' $ac_executable_extensions; do
13442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13443     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13445     break 2
13446   fi
13447 done
13448   done
13449 IFS=$as_save_IFS
13450
13451 fi
13452 fi
13453 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13454 if test -n "$ac_ct_NMEDIT"; then
13455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13456 $as_echo "$ac_ct_NMEDIT" >&6; }
13457 else
13458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459 $as_echo "no" >&6; }
13460 fi
13461
13462   if test "x$ac_ct_NMEDIT" = x; then
13463     NMEDIT=":"
13464   else
13465     case $cross_compiling:$ac_tool_warned in
13466 yes:)
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13469 ac_tool_warned=yes ;;
13470 esac
13471     NMEDIT=$ac_ct_NMEDIT
13472   fi
13473 else
13474   NMEDIT="$ac_cv_prog_NMEDIT"
13475 fi
13476
13477     if test -n "$ac_tool_prefix"; then
13478   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13479 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481 $as_echo_n "checking for $ac_word... " >&6; }
13482 if ${ac_cv_prog_LIPO+:} false; then :
13483   $as_echo_n "(cached) " >&6
13484 else
13485   if test -n "$LIPO"; then
13486   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13487 else
13488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13489 for as_dir in $PATH
13490 do
13491   IFS=$as_save_IFS
13492   test -z "$as_dir" && as_dir=.
13493     for ac_exec_ext in '' $ac_executable_extensions; do
13494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13495     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13497     break 2
13498   fi
13499 done
13500   done
13501 IFS=$as_save_IFS
13502
13503 fi
13504 fi
13505 LIPO=$ac_cv_prog_LIPO
13506 if test -n "$LIPO"; then
13507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13508 $as_echo "$LIPO" >&6; }
13509 else
13510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 $as_echo "no" >&6; }
13512 fi
13513
13514
13515 fi
13516 if test -z "$ac_cv_prog_LIPO"; then
13517   ac_ct_LIPO=$LIPO
13518   # Extract the first word of "lipo", so it can be a program name with args.
13519 set dummy lipo; ac_word=$2
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521 $as_echo_n "checking for $ac_word... " >&6; }
13522 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13523   $as_echo_n "(cached) " >&6
13524 else
13525   if test -n "$ac_ct_LIPO"; then
13526   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13527 else
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $PATH
13530 do
13531   IFS=$as_save_IFS
13532   test -z "$as_dir" && as_dir=.
13533     for ac_exec_ext in '' $ac_executable_extensions; do
13534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13535     ac_cv_prog_ac_ct_LIPO="lipo"
13536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13537     break 2
13538   fi
13539 done
13540   done
13541 IFS=$as_save_IFS
13542
13543 fi
13544 fi
13545 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13546 if test -n "$ac_ct_LIPO"; then
13547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13548 $as_echo "$ac_ct_LIPO" >&6; }
13549 else
13550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551 $as_echo "no" >&6; }
13552 fi
13553
13554   if test "x$ac_ct_LIPO" = x; then
13555     LIPO=":"
13556   else
13557     case $cross_compiling:$ac_tool_warned in
13558 yes:)
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13561 ac_tool_warned=yes ;;
13562 esac
13563     LIPO=$ac_ct_LIPO
13564   fi
13565 else
13566   LIPO="$ac_cv_prog_LIPO"
13567 fi
13568
13569     if test -n "$ac_tool_prefix"; then
13570   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13571 set dummy ${ac_tool_prefix}otool; ac_word=$2
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573 $as_echo_n "checking for $ac_word... " >&6; }
13574 if ${ac_cv_prog_OTOOL+:} false; then :
13575   $as_echo_n "(cached) " >&6
13576 else
13577   if test -n "$OTOOL"; then
13578   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13579 else
13580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581 for as_dir in $PATH
13582 do
13583   IFS=$as_save_IFS
13584   test -z "$as_dir" && as_dir=.
13585     for ac_exec_ext in '' $ac_executable_extensions; do
13586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13587     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13589     break 2
13590   fi
13591 done
13592   done
13593 IFS=$as_save_IFS
13594
13595 fi
13596 fi
13597 OTOOL=$ac_cv_prog_OTOOL
13598 if test -n "$OTOOL"; then
13599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13600 $as_echo "$OTOOL" >&6; }
13601 else
13602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603 $as_echo "no" >&6; }
13604 fi
13605
13606
13607 fi
13608 if test -z "$ac_cv_prog_OTOOL"; then
13609   ac_ct_OTOOL=$OTOOL
13610   # Extract the first word of "otool", so it can be a program name with args.
13611 set dummy otool; ac_word=$2
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13613 $as_echo_n "checking for $ac_word... " >&6; }
13614 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13615   $as_echo_n "(cached) " >&6
13616 else
13617   if test -n "$ac_ct_OTOOL"; then
13618   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13619 else
13620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13621 for as_dir in $PATH
13622 do
13623   IFS=$as_save_IFS
13624   test -z "$as_dir" && as_dir=.
13625     for ac_exec_ext in '' $ac_executable_extensions; do
13626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13627     ac_cv_prog_ac_ct_OTOOL="otool"
13628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13629     break 2
13630   fi
13631 done
13632   done
13633 IFS=$as_save_IFS
13634
13635 fi
13636 fi
13637 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13638 if test -n "$ac_ct_OTOOL"; then
13639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13640 $as_echo "$ac_ct_OTOOL" >&6; }
13641 else
13642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13643 $as_echo "no" >&6; }
13644 fi
13645
13646   if test "x$ac_ct_OTOOL" = x; then
13647     OTOOL=":"
13648   else
13649     case $cross_compiling:$ac_tool_warned in
13650 yes:)
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13653 ac_tool_warned=yes ;;
13654 esac
13655     OTOOL=$ac_ct_OTOOL
13656   fi
13657 else
13658   OTOOL="$ac_cv_prog_OTOOL"
13659 fi
13660
13661     if test -n "$ac_tool_prefix"; then
13662   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13663 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13665 $as_echo_n "checking for $ac_word... " >&6; }
13666 if ${ac_cv_prog_OTOOL64+:} false; then :
13667   $as_echo_n "(cached) " >&6
13668 else
13669   if test -n "$OTOOL64"; then
13670   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13671 else
13672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13673 for as_dir in $PATH
13674 do
13675   IFS=$as_save_IFS
13676   test -z "$as_dir" && as_dir=.
13677     for ac_exec_ext in '' $ac_executable_extensions; do
13678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13679     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13681     break 2
13682   fi
13683 done
13684   done
13685 IFS=$as_save_IFS
13686
13687 fi
13688 fi
13689 OTOOL64=$ac_cv_prog_OTOOL64
13690 if test -n "$OTOOL64"; then
13691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13692 $as_echo "$OTOOL64" >&6; }
13693 else
13694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 $as_echo "no" >&6; }
13696 fi
13697
13698
13699 fi
13700 if test -z "$ac_cv_prog_OTOOL64"; then
13701   ac_ct_OTOOL64=$OTOOL64
13702   # Extract the first word of "otool64", so it can be a program name with args.
13703 set dummy otool64; ac_word=$2
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13705 $as_echo_n "checking for $ac_word... " >&6; }
13706 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13707   $as_echo_n "(cached) " >&6
13708 else
13709   if test -n "$ac_ct_OTOOL64"; then
13710   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13711 else
13712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13713 for as_dir in $PATH
13714 do
13715   IFS=$as_save_IFS
13716   test -z "$as_dir" && as_dir=.
13717     for ac_exec_ext in '' $ac_executable_extensions; do
13718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13719     ac_cv_prog_ac_ct_OTOOL64="otool64"
13720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13721     break 2
13722   fi
13723 done
13724   done
13725 IFS=$as_save_IFS
13726
13727 fi
13728 fi
13729 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13730 if test -n "$ac_ct_OTOOL64"; then
13731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13732 $as_echo "$ac_ct_OTOOL64" >&6; }
13733 else
13734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735 $as_echo "no" >&6; }
13736 fi
13737
13738   if test "x$ac_ct_OTOOL64" = x; then
13739     OTOOL64=":"
13740   else
13741     case $cross_compiling:$ac_tool_warned in
13742 yes:)
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13745 ac_tool_warned=yes ;;
13746 esac
13747     OTOOL64=$ac_ct_OTOOL64
13748   fi
13749 else
13750   OTOOL64="$ac_cv_prog_OTOOL64"
13751 fi
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13780 $as_echo_n "checking for -single_module linker flag... " >&6; }
13781 if ${lt_cv_apple_cc_single_mod+:} false; then :
13782   $as_echo_n "(cached) " >&6
13783 else
13784   lt_cv_apple_cc_single_mod=no
13785       if test -z "${LT_MULTI_MODULE}"; then
13786         # By default we will add the -single_module flag. You can override
13787         # by either setting the environment variable LT_MULTI_MODULE
13788         # non-empty at configure time, or by adding -multi_module to the
13789         # link flags.
13790         rm -rf libconftest.dylib*
13791         echo "int foo(void){return 1;}" > conftest.c
13792         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13793 -dynamiclib -Wl,-single_module conftest.c" >&5
13794         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13795           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13796         _lt_result=$?
13797         # If there is a non-empty error log, and "single_module"
13798         # appears in it, assume the flag caused a linker warning
13799         if test -s conftest.err && $GREP single_module conftest.err; then
13800           cat conftest.err >&5
13801         # Otherwise, if the output was created with a 0 exit code from
13802         # the compiler, it worked.
13803         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13804           lt_cv_apple_cc_single_mod=yes
13805         else
13806           cat conftest.err >&5
13807         fi
13808         rm -rf libconftest.dylib*
13809         rm -f conftest.*
13810       fi
13811 fi
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13813 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13814
13815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13816 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13817 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13818   $as_echo_n "(cached) " >&6
13819 else
13820   lt_cv_ld_exported_symbols_list=no
13821       save_LDFLAGS=$LDFLAGS
13822       echo "_main" > conftest.sym
13823       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13824       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h.  */
13826
13827 int
13828 main ()
13829 {
13830
13831   ;
13832   return 0;
13833 }
13834 _ACEOF
13835 if ac_fn_c_try_link "$LINENO"; then :
13836   lt_cv_ld_exported_symbols_list=yes
13837 else
13838   lt_cv_ld_exported_symbols_list=no
13839 fi
13840 rm -f core conftest.err conftest.$ac_objext \
13841     conftest$ac_exeext conftest.$ac_ext
13842         LDFLAGS="$save_LDFLAGS"
13843
13844 fi
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13846 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13847
13848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13849 $as_echo_n "checking for -force_load linker flag... " >&6; }
13850 if ${lt_cv_ld_force_load+:} false; then :
13851   $as_echo_n "(cached) " >&6
13852 else
13853   lt_cv_ld_force_load=no
13854       cat > conftest.c << _LT_EOF
13855 int forced_loaded() { return 2;}
13856 _LT_EOF
13857       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13858       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13859       echo "$AR cru libconftest.a conftest.o" >&5
13860       $AR cru libconftest.a conftest.o 2>&5
13861       echo "$RANLIB libconftest.a" >&5
13862       $RANLIB libconftest.a 2>&5
13863       cat > conftest.c << _LT_EOF
13864 int main() { return 0;}
13865 _LT_EOF
13866       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13867       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13868       _lt_result=$?
13869       if test -s conftest.err && $GREP force_load conftest.err; then
13870         cat conftest.err >&5
13871       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13872         lt_cv_ld_force_load=yes
13873       else
13874         cat conftest.err >&5
13875       fi
13876         rm -f conftest.err libconftest.a conftest conftest.c
13877         rm -rf conftest.dSYM
13878
13879 fi
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13881 $as_echo "$lt_cv_ld_force_load" >&6; }
13882     case $host_os in
13883     rhapsody* | darwin1.[012])
13884       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13885     darwin1.*)
13886       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13887     darwin*) # darwin 5.x on
13888       # if running on 10.5 or later, the deployment target defaults
13889       # to the OS version, if on x86, and 10.4, the deployment
13890       # target defaults to 10.4. Don't you love it?
13891       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13892         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13893           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13894         10.[012]*)
13895           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13896         10.*)
13897           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13898       esac
13899     ;;
13900   esac
13901     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13902       _lt_dar_single_mod='$single_module'
13903     fi
13904     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13905       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13906     else
13907       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13908     fi
13909     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13910       _lt_dsymutil='~$DSYMUTIL $lib || :'
13911     else
13912       _lt_dsymutil=
13913     fi
13914     ;;
13915   esac
13916
13917 for ac_header in dlfcn.h
13918 do :
13919   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13920 "
13921 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13922   cat >>confdefs.h <<_ACEOF
13923 #define HAVE_DLFCN_H 1
13924 _ACEOF
13925
13926 fi
13927
13928 done
13929
13930
13931
13932
13933
13934 # Set options
13935
13936
13937
13938         enable_dlopen=no
13939
13940
13941   enable_win32_dll=no
13942
13943
13944             # Check whether --enable-shared was given.
13945 if test "${enable_shared+set}" = set; then :
13946   enableval=$enable_shared; p=${PACKAGE-default}
13947     case $enableval in
13948     yes) enable_shared=yes ;;
13949     no) enable_shared=no ;;
13950     *)
13951       enable_shared=no
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 pkg in $enableval; do
13955         IFS="$lt_save_ifs"
13956         if test "X$pkg" = "X$p"; then
13957           enable_shared=yes
13958         fi
13959       done
13960       IFS="$lt_save_ifs"
13961       ;;
13962     esac
13963 else
13964   enable_shared=yes
13965 fi
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977 # Check whether --with-pic was given.
13978 if test "${with_pic+set}" = set; then :
13979   withval=$with_pic; lt_p=${PACKAGE-default}
13980     case $withval in
13981     yes|no) pic_mode=$withval ;;
13982     *)
13983       pic_mode=default
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 lt_pkg in $withval; do
13987         IFS="$lt_save_ifs"
13988         if test "X$lt_pkg" = "X$lt_p"; then
13989           pic_mode=yes
13990         fi
13991       done
13992       IFS="$lt_save_ifs"
13993       ;;
13994     esac
13995 else
13996   pic_mode=default
13997 fi
13998
13999
14000 test -z "$pic_mode" && pic_mode=default
14001
14002
14003
14004
14005
14006
14007
14008   # Check whether --enable-fast-install was given.
14009 if test "${enable_fast_install+set}" = set; then :
14010   enableval=$enable_fast_install; p=${PACKAGE-default}
14011     case $enableval in
14012     yes) enable_fast_install=yes ;;
14013     no) enable_fast_install=no ;;
14014     *)
14015       enable_fast_install=no
14016       # Look at the argument we got.  We use all the common list separators.
14017       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14018       for pkg in $enableval; do
14019         IFS="$lt_save_ifs"
14020         if test "X$pkg" = "X$p"; then
14021           enable_fast_install=yes
14022         fi
14023       done
14024       IFS="$lt_save_ifs"
14025       ;;
14026     esac
14027 else
14028   enable_fast_install=yes
14029 fi
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041 # This can be used to rebuild libtool when needed
14042 LIBTOOL_DEPS="$ltmain"
14043
14044 # Always use our own libtool.
14045 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076 test -z "$LN_S" && LN_S="ln -s"
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091 if test -n "${ZSH_VERSION+set}" ; then
14092    setopt NO_GLOB_SUBST
14093 fi
14094
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14096 $as_echo_n "checking for objdir... " >&6; }
14097 if ${lt_cv_objdir+:} false; then :
14098   $as_echo_n "(cached) " >&6
14099 else
14100   rm -f .libs 2>/dev/null
14101 mkdir .libs 2>/dev/null
14102 if test -d .libs; then
14103   lt_cv_objdir=.libs
14104 else
14105   # MS-DOS does not allow filenames that begin with a dot.
14106   lt_cv_objdir=_libs
14107 fi
14108 rmdir .libs 2>/dev/null
14109 fi
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14111 $as_echo "$lt_cv_objdir" >&6; }
14112 objdir=$lt_cv_objdir
14113
14114
14115
14116
14117
14118 cat >>confdefs.h <<_ACEOF
14119 #define LT_OBJDIR "$lt_cv_objdir/"
14120 _ACEOF
14121
14122
14123
14124
14125 case $host_os in
14126 aix3*)
14127   # AIX sometimes has problems with the GCC collect2 program.  For some
14128   # reason, if we set the COLLECT_NAMES environment variable, the problems
14129   # vanish in a puff of smoke.
14130   if test "X${COLLECT_NAMES+set}" != Xset; then
14131     COLLECT_NAMES=
14132     export COLLECT_NAMES
14133   fi
14134   ;;
14135 esac
14136
14137 # Global variables:
14138 ofile=libtool
14139 can_build_shared=yes
14140
14141 # All known linkers require a `.a' archive for static linking (except MSVC,
14142 # which needs '.lib').
14143 libext=a
14144
14145 with_gnu_ld="$lt_cv_prog_gnu_ld"
14146
14147 old_CC="$CC"
14148 old_CFLAGS="$CFLAGS"
14149
14150 # Set sane defaults for various variables
14151 test -z "$CC" && CC=cc
14152 test -z "$LTCC" && LTCC=$CC
14153 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14154 test -z "$LD" && LD=ld
14155 test -z "$ac_objext" && ac_objext=o
14156
14157 for cc_temp in $compiler""; do
14158   case $cc_temp in
14159     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14160     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14161     \-*) ;;
14162     *) break;;
14163   esac
14164 done
14165 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14166
14167
14168 # Only perform the check for file, if the check method requires it
14169 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14170 case $deplibs_check_method in
14171 file_magic*)
14172   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14174 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14175 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14176   $as_echo_n "(cached) " >&6
14177 else
14178   case $MAGIC_CMD in
14179 [\\/*] |  ?:[\\/]*)
14180   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14181   ;;
14182 *)
14183   lt_save_MAGIC_CMD="$MAGIC_CMD"
14184   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14185   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14186   for ac_dir in $ac_dummy; do
14187     IFS="$lt_save_ifs"
14188     test -z "$ac_dir" && ac_dir=.
14189     if test -f $ac_dir/${ac_tool_prefix}file; then
14190       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14191       if test -n "$file_magic_test_file"; then
14192         case $deplibs_check_method in
14193         "file_magic "*)
14194           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14195           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14196           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14197             $EGREP "$file_magic_regex" > /dev/null; then
14198             :
14199           else
14200             cat <<_LT_EOF 1>&2
14201
14202 *** Warning: the command libtool uses to detect shared libraries,
14203 *** $file_magic_cmd, produces output that libtool cannot recognize.
14204 *** The result is that libtool may fail to recognize shared libraries
14205 *** as such.  This will affect the creation of libtool libraries that
14206 *** depend on shared libraries, but programs linked with such libtool
14207 *** libraries will work regardless of this problem.  Nevertheless, you
14208 *** may want to report the problem to your system manager and/or to
14209 *** bug-libtool@gnu.org
14210
14211 _LT_EOF
14212           fi ;;
14213         esac
14214       fi
14215       break
14216     fi
14217   done
14218   IFS="$lt_save_ifs"
14219   MAGIC_CMD="$lt_save_MAGIC_CMD"
14220   ;;
14221 esac
14222 fi
14223
14224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14225 if test -n "$MAGIC_CMD"; then
14226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14227 $as_echo "$MAGIC_CMD" >&6; }
14228 else
14229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14230 $as_echo "no" >&6; }
14231 fi
14232
14233
14234
14235
14236
14237 if test -z "$lt_cv_path_MAGIC_CMD"; then
14238   if test -n "$ac_tool_prefix"; then
14239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14240 $as_echo_n "checking for file... " >&6; }
14241 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14242   $as_echo_n "(cached) " >&6
14243 else
14244   case $MAGIC_CMD in
14245 [\\/*] |  ?:[\\/]*)
14246   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14247   ;;
14248 *)
14249   lt_save_MAGIC_CMD="$MAGIC_CMD"
14250   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14251   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14252   for ac_dir in $ac_dummy; do
14253     IFS="$lt_save_ifs"
14254     test -z "$ac_dir" && ac_dir=.
14255     if test -f $ac_dir/file; then
14256       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14257       if test -n "$file_magic_test_file"; then
14258         case $deplibs_check_method in
14259         "file_magic "*)
14260           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14261           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14262           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14263             $EGREP "$file_magic_regex" > /dev/null; then
14264             :
14265           else
14266             cat <<_LT_EOF 1>&2
14267
14268 *** Warning: the command libtool uses to detect shared libraries,
14269 *** $file_magic_cmd, produces output that libtool cannot recognize.
14270 *** The result is that libtool may fail to recognize shared libraries
14271 *** as such.  This will affect the creation of libtool libraries that
14272 *** depend on shared libraries, but programs linked with such libtool
14273 *** libraries will work regardless of this problem.  Nevertheless, you
14274 *** may want to report the problem to your system manager and/or to
14275 *** bug-libtool@gnu.org
14276
14277 _LT_EOF
14278           fi ;;
14279         esac
14280       fi
14281       break
14282     fi
14283   done
14284   IFS="$lt_save_ifs"
14285   MAGIC_CMD="$lt_save_MAGIC_CMD"
14286   ;;
14287 esac
14288 fi
14289
14290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14291 if test -n "$MAGIC_CMD"; then
14292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14293 $as_echo "$MAGIC_CMD" >&6; }
14294 else
14295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296 $as_echo "no" >&6; }
14297 fi
14298
14299
14300   else
14301     MAGIC_CMD=:
14302   fi
14303 fi
14304
14305   fi
14306   ;;
14307 esac
14308
14309 # Use C for the default configuration in the libtool script
14310
14311 lt_save_CC="$CC"
14312 ac_ext=c
14313 ac_cpp='$CPP $CPPFLAGS'
14314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14317
14318
14319 # Source file extension for C test sources.
14320 ac_ext=c
14321
14322 # Object file extension for compiled C test sources.
14323 objext=o
14324 objext=$objext
14325
14326 # Code to be used in simple compile tests
14327 lt_simple_compile_test_code="int some_variable = 0;"
14328
14329 # Code to be used in simple link tests
14330 lt_simple_link_test_code='int main(){return(0);}'
14331
14332
14333
14334
14335
14336
14337
14338 # If no C compiler was specified, use CC.
14339 LTCC=${LTCC-"$CC"}
14340
14341 # If no C compiler flags were specified, use CFLAGS.
14342 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14343
14344 # Allow CC to be a program name with arguments.
14345 compiler=$CC
14346
14347 # Save the default compiler, since it gets overwritten when the other
14348 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14349 compiler_DEFAULT=$CC
14350
14351 # save warnings/boilerplate of simple test code
14352 ac_outfile=conftest.$ac_objext
14353 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14355 _lt_compiler_boilerplate=`cat conftest.err`
14356 $RM conftest*
14357
14358 ac_outfile=conftest.$ac_objext
14359 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14361 _lt_linker_boilerplate=`cat conftest.err`
14362 $RM -r conftest*
14363
14364
14365 if test -n "$compiler"; then
14366
14367 lt_prog_compiler_no_builtin_flag=
14368
14369 if test "$GCC" = yes; then
14370   case $cc_basename in
14371   nvcc*)
14372     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14373   *)
14374     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14375   esac
14376
14377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14378 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14379 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14380   $as_echo_n "(cached) " >&6
14381 else
14382   lt_cv_prog_compiler_rtti_exceptions=no
14383    ac_outfile=conftest.$ac_objext
14384    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14385    lt_compiler_flag="-fno-rtti -fno-exceptions"
14386    # Insert the option either (1) after the last *FLAGS variable, or
14387    # (2) before a word containing "conftest.", or (3) at the end.
14388    # Note that $ac_compile itself does not contain backslashes and begins
14389    # with a dollar sign (not a hyphen), so the echo should work correctly.
14390    # The option is referenced via a variable to avoid confusing sed.
14391    lt_compile=`echo "$ac_compile" | $SED \
14392    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14393    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14394    -e 's:$: $lt_compiler_flag:'`
14395    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14396    (eval "$lt_compile" 2>conftest.err)
14397    ac_status=$?
14398    cat conftest.err >&5
14399    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400    if (exit $ac_status) && test -s "$ac_outfile"; then
14401      # The compiler can only warn and ignore the option if not recognized
14402      # So say no if there are warnings other than the usual output.
14403      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14404      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14405      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14406        lt_cv_prog_compiler_rtti_exceptions=yes
14407      fi
14408    fi
14409    $RM conftest*
14410
14411 fi
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14413 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14414
14415 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14416     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14417 else
14418     :
14419 fi
14420
14421 fi
14422
14423
14424
14425
14426
14427
14428   lt_prog_compiler_wl=
14429 lt_prog_compiler_pic=
14430 lt_prog_compiler_static=
14431
14432
14433   if test "$GCC" = yes; then
14434     lt_prog_compiler_wl='-Wl,'
14435     lt_prog_compiler_static='-static'
14436
14437     case $host_os in
14438       aix*)
14439       # All AIX code is PIC.
14440       if test "$host_cpu" = ia64; then
14441         # AIX 5 now supports IA64 processor
14442         lt_prog_compiler_static='-Bstatic'
14443       fi
14444       ;;
14445
14446     amigaos*)
14447       case $host_cpu in
14448       powerpc)
14449             # see comment about AmigaOS4 .so support
14450             lt_prog_compiler_pic='-fPIC'
14451         ;;
14452       m68k)
14453             # FIXME: we need at least 68020 code to build shared libraries, but
14454             # adding the `-m68020' flag to GCC prevents building anything better,
14455             # like `-m68040'.
14456             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14457         ;;
14458       esac
14459       ;;
14460
14461     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14462       # PIC is the default for these OSes.
14463       ;;
14464
14465     mingw* | cygwin* | pw32* | os2* | cegcc*)
14466       # This hack is so that the source file can tell whether it is being
14467       # built for inclusion in a dll (and should export symbols for example).
14468       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14469       # (--disable-auto-import) libraries
14470       lt_prog_compiler_pic='-DDLL_EXPORT'
14471       ;;
14472
14473     darwin* | rhapsody*)
14474       # PIC is the default on this platform
14475       # Common symbols not allowed in MH_DYLIB files
14476       lt_prog_compiler_pic='-fno-common'
14477       ;;
14478
14479     haiku*)
14480       # PIC is the default for Haiku.
14481       # The "-static" flag exists, but is broken.
14482       lt_prog_compiler_static=
14483       ;;
14484
14485     hpux*)
14486       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14487       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14488       # sets the default TLS model and affects inlining.
14489       case $host_cpu in
14490       hppa*64*)
14491         # +Z the default
14492         ;;
14493       *)
14494         lt_prog_compiler_pic='-fPIC'
14495         ;;
14496       esac
14497       ;;
14498
14499     interix[3-9]*)
14500       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14501       # Instead, we relocate shared libraries at runtime.
14502       ;;
14503
14504     msdosdjgpp*)
14505       # Just because we use GCC doesn't mean we suddenly get shared libraries
14506       # on systems that don't support them.
14507       lt_prog_compiler_can_build_shared=no
14508       enable_shared=no
14509       ;;
14510
14511     *nto* | *qnx*)
14512       # QNX uses GNU C++, but need to define -shared option too, otherwise
14513       # it will coredump.
14514       lt_prog_compiler_pic='-fPIC -shared'
14515       ;;
14516
14517     sysv4*MP*)
14518       if test -d /usr/nec; then
14519         lt_prog_compiler_pic=-Kconform_pic
14520       fi
14521       ;;
14522
14523     *)
14524       lt_prog_compiler_pic='-fPIC'
14525       ;;
14526     esac
14527
14528     case $cc_basename in
14529     nvcc*) # Cuda Compiler Driver 2.2
14530       lt_prog_compiler_wl='-Xlinker '
14531       if test -n "$lt_prog_compiler_pic"; then
14532         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14533       fi
14534       ;;
14535     esac
14536   else
14537     # PORTME Check for flag to pass linker flags through the system compiler.
14538     case $host_os in
14539     aix*)
14540       lt_prog_compiler_wl='-Wl,'
14541       if test "$host_cpu" = ia64; then
14542         # AIX 5 now supports IA64 processor
14543         lt_prog_compiler_static='-Bstatic'
14544       else
14545         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14546       fi
14547       ;;
14548
14549     mingw* | cygwin* | pw32* | os2* | cegcc*)
14550       # This hack is so that the source file can tell whether it is being
14551       # built for inclusion in a dll (and should export symbols for example).
14552       lt_prog_compiler_pic='-DDLL_EXPORT'
14553       ;;
14554
14555     hpux9* | hpux10* | hpux11*)
14556       lt_prog_compiler_wl='-Wl,'
14557       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14558       # not for PA HP-UX.
14559       case $host_cpu in
14560       hppa*64*|ia64*)
14561         # +Z the default
14562         ;;
14563       *)
14564         lt_prog_compiler_pic='+Z'
14565         ;;
14566       esac
14567       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14568       lt_prog_compiler_static='${wl}-a ${wl}archive'
14569       ;;
14570
14571     irix5* | irix6* | nonstopux*)
14572       lt_prog_compiler_wl='-Wl,'
14573       # PIC (with -KPIC) is the default.
14574       lt_prog_compiler_static='-non_shared'
14575       ;;
14576
14577     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14578       case $cc_basename in
14579       # old Intel for x86_64 which still supported -KPIC.
14580       ecc*)
14581         lt_prog_compiler_wl='-Wl,'
14582         lt_prog_compiler_pic='-KPIC'
14583         lt_prog_compiler_static='-static'
14584         ;;
14585       # icc used to be incompatible with GCC.
14586       # ICC 10 doesn't accept -KPIC any more.
14587       icc* | ifort*)
14588         lt_prog_compiler_wl='-Wl,'
14589         lt_prog_compiler_pic='-fPIC'
14590         lt_prog_compiler_static='-static'
14591         ;;
14592       # Lahey Fortran 8.1.
14593       lf95*)
14594         lt_prog_compiler_wl='-Wl,'
14595         lt_prog_compiler_pic='--shared'
14596         lt_prog_compiler_static='--static'
14597         ;;
14598       nagfor*)
14599         # NAG Fortran compiler
14600         lt_prog_compiler_wl='-Wl,-Wl,,'
14601         lt_prog_compiler_pic='-PIC'
14602         lt_prog_compiler_static='-Bstatic'
14603         ;;
14604       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14605         # Portland Group compilers (*not* the Pentium gcc compiler,
14606         # which looks to be a dead project)
14607         lt_prog_compiler_wl='-Wl,'
14608         lt_prog_compiler_pic='-fpic'
14609         lt_prog_compiler_static='-Bstatic'
14610         ;;
14611       ccc*)
14612         lt_prog_compiler_wl='-Wl,'
14613         # All Alpha code is PIC.
14614         lt_prog_compiler_static='-non_shared'
14615         ;;
14616       xl* | bgxl* | bgf* | mpixl*)
14617         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14618         lt_prog_compiler_wl='-Wl,'
14619         lt_prog_compiler_pic='-qpic'
14620         lt_prog_compiler_static='-qstaticlink'
14621         ;;
14622       *)
14623         case `$CC -V 2>&1 | sed 5q` in
14624         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14625           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14626           lt_prog_compiler_pic='-KPIC'
14627           lt_prog_compiler_static='-Bstatic'
14628           lt_prog_compiler_wl=''
14629           ;;
14630         *Sun\ F* | *Sun*Fortran*)
14631           lt_prog_compiler_pic='-KPIC'
14632           lt_prog_compiler_static='-Bstatic'
14633           lt_prog_compiler_wl='-Qoption ld '
14634           ;;
14635         *Sun\ C*)
14636           # Sun C 5.9
14637           lt_prog_compiler_pic='-KPIC'
14638           lt_prog_compiler_static='-Bstatic'
14639           lt_prog_compiler_wl='-Wl,'
14640           ;;
14641         *Intel*\ [CF]*Compiler*)
14642           lt_prog_compiler_wl='-Wl,'
14643           lt_prog_compiler_pic='-fPIC'
14644           lt_prog_compiler_static='-static'
14645           ;;
14646         *Portland\ Group*)
14647           lt_prog_compiler_wl='-Wl,'
14648           lt_prog_compiler_pic='-fpic'
14649           lt_prog_compiler_static='-Bstatic'
14650           ;;
14651         esac
14652         ;;
14653       esac
14654       ;;
14655
14656     newsos6)
14657       lt_prog_compiler_pic='-KPIC'
14658       lt_prog_compiler_static='-Bstatic'
14659       ;;
14660
14661     *nto* | *qnx*)
14662       # QNX uses GNU C++, but need to define -shared option too, otherwise
14663       # it will coredump.
14664       lt_prog_compiler_pic='-fPIC -shared'
14665       ;;
14666
14667     osf3* | osf4* | osf5*)
14668       lt_prog_compiler_wl='-Wl,'
14669       # All OSF/1 code is PIC.
14670       lt_prog_compiler_static='-non_shared'
14671       ;;
14672
14673     rdos*)
14674       lt_prog_compiler_static='-non_shared'
14675       ;;
14676
14677     solaris*)
14678       lt_prog_compiler_pic='-KPIC'
14679       lt_prog_compiler_static='-Bstatic'
14680       case $cc_basename in
14681       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14682         lt_prog_compiler_wl='-Qoption ld ';;
14683       *)
14684         lt_prog_compiler_wl='-Wl,';;
14685       esac
14686       ;;
14687
14688     sunos4*)
14689       lt_prog_compiler_wl='-Qoption ld '
14690       lt_prog_compiler_pic='-PIC'
14691       lt_prog_compiler_static='-Bstatic'
14692       ;;
14693
14694     sysv4 | sysv4.2uw2* | sysv4.3*)
14695       lt_prog_compiler_wl='-Wl,'
14696       lt_prog_compiler_pic='-KPIC'
14697       lt_prog_compiler_static='-Bstatic'
14698       ;;
14699
14700     sysv4*MP*)
14701       if test -d /usr/nec ;then
14702         lt_prog_compiler_pic='-Kconform_pic'
14703         lt_prog_compiler_static='-Bstatic'
14704       fi
14705       ;;
14706
14707     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14708       lt_prog_compiler_wl='-Wl,'
14709       lt_prog_compiler_pic='-KPIC'
14710       lt_prog_compiler_static='-Bstatic'
14711       ;;
14712
14713     unicos*)
14714       lt_prog_compiler_wl='-Wl,'
14715       lt_prog_compiler_can_build_shared=no
14716       ;;
14717
14718     uts4*)
14719       lt_prog_compiler_pic='-pic'
14720       lt_prog_compiler_static='-Bstatic'
14721       ;;
14722
14723     *)
14724       lt_prog_compiler_can_build_shared=no
14725       ;;
14726     esac
14727   fi
14728
14729 case $host_os in
14730   # For platforms which do not support PIC, -DPIC is meaningless:
14731   *djgpp*)
14732     lt_prog_compiler_pic=
14733     ;;
14734   *)
14735     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14736     ;;
14737 esac
14738
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14740 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14741 if ${lt_cv_prog_compiler_pic+:} false; then :
14742   $as_echo_n "(cached) " >&6
14743 else
14744   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14745 fi
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14747 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14748 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14749
14750 #
14751 # Check to make sure the PIC flag actually works.
14752 #
14753 if test -n "$lt_prog_compiler_pic"; then
14754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14755 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14756 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14757   $as_echo_n "(cached) " >&6
14758 else
14759   lt_cv_prog_compiler_pic_works=no
14760    ac_outfile=conftest.$ac_objext
14761    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14762    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14763    # Insert the option either (1) after the last *FLAGS variable, or
14764    # (2) before a word containing "conftest.", or (3) at the end.
14765    # Note that $ac_compile itself does not contain backslashes and begins
14766    # with a dollar sign (not a hyphen), so the echo should work correctly.
14767    # The option is referenced via a variable to avoid confusing sed.
14768    lt_compile=`echo "$ac_compile" | $SED \
14769    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14770    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14771    -e 's:$: $lt_compiler_flag:'`
14772    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14773    (eval "$lt_compile" 2>conftest.err)
14774    ac_status=$?
14775    cat conftest.err >&5
14776    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777    if (exit $ac_status) && test -s "$ac_outfile"; then
14778      # The compiler can only warn and ignore the option if not recognized
14779      # So say no if there are warnings other than the usual output.
14780      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14781      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14782      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14783        lt_cv_prog_compiler_pic_works=yes
14784      fi
14785    fi
14786    $RM conftest*
14787
14788 fi
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14790 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14791
14792 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14793     case $lt_prog_compiler_pic in
14794      "" | " "*) ;;
14795      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14796      esac
14797 else
14798     lt_prog_compiler_pic=
14799      lt_prog_compiler_can_build_shared=no
14800 fi
14801
14802 fi
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814 #
14815 # Check to make sure the static flag actually works.
14816 #
14817 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14819 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14820 if ${lt_cv_prog_compiler_static_works+:} false; then :
14821   $as_echo_n "(cached) " >&6
14822 else
14823   lt_cv_prog_compiler_static_works=no
14824    save_LDFLAGS="$LDFLAGS"
14825    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14826    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14827    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14828      # The linker can only warn and ignore the option if not recognized
14829      # So say no if there are warnings
14830      if test -s conftest.err; then
14831        # Append any errors to the config.log.
14832        cat conftest.err 1>&5
14833        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14834        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14835        if diff conftest.exp conftest.er2 >/dev/null; then
14836          lt_cv_prog_compiler_static_works=yes
14837        fi
14838      else
14839        lt_cv_prog_compiler_static_works=yes
14840      fi
14841    fi
14842    $RM -r conftest*
14843    LDFLAGS="$save_LDFLAGS"
14844
14845 fi
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14847 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14848
14849 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14850     :
14851 else
14852     lt_prog_compiler_static=
14853 fi
14854
14855
14856
14857
14858
14859
14860
14861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14862 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14863 if ${lt_cv_prog_compiler_c_o+:} false; then :
14864   $as_echo_n "(cached) " >&6
14865 else
14866   lt_cv_prog_compiler_c_o=no
14867    $RM -r conftest 2>/dev/null
14868    mkdir conftest
14869    cd conftest
14870    mkdir out
14871    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14872
14873    lt_compiler_flag="-o out/conftest2.$ac_objext"
14874    # Insert the option either (1) after the last *FLAGS variable, or
14875    # (2) before a word containing "conftest.", or (3) at the end.
14876    # Note that $ac_compile itself does not contain backslashes and begins
14877    # with a dollar sign (not a hyphen), so the echo should work correctly.
14878    lt_compile=`echo "$ac_compile" | $SED \
14879    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14880    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14881    -e 's:$: $lt_compiler_flag:'`
14882    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14883    (eval "$lt_compile" 2>out/conftest.err)
14884    ac_status=$?
14885    cat out/conftest.err >&5
14886    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14888    then
14889      # The compiler can only warn and ignore the option if not recognized
14890      # So say no if there are warnings
14891      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14892      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14893      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14894        lt_cv_prog_compiler_c_o=yes
14895      fi
14896    fi
14897    chmod u+w . 2>&5
14898    $RM conftest*
14899    # SGI C++ compiler will create directory out/ii_files/ for
14900    # template instantiation
14901    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14902    $RM out/* && rmdir out
14903    cd ..
14904    $RM -r conftest
14905    $RM conftest*
14906
14907 fi
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14909 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14910
14911
14912
14913
14914
14915
14916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14917 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14918 if ${lt_cv_prog_compiler_c_o+:} false; then :
14919   $as_echo_n "(cached) " >&6
14920 else
14921   lt_cv_prog_compiler_c_o=no
14922    $RM -r conftest 2>/dev/null
14923    mkdir conftest
14924    cd conftest
14925    mkdir out
14926    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14927
14928    lt_compiler_flag="-o out/conftest2.$ac_objext"
14929    # Insert the option either (1) after the last *FLAGS variable, or
14930    # (2) before a word containing "conftest.", or (3) at the end.
14931    # Note that $ac_compile itself does not contain backslashes and begins
14932    # with a dollar sign (not a hyphen), so the echo should work correctly.
14933    lt_compile=`echo "$ac_compile" | $SED \
14934    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14935    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14936    -e 's:$: $lt_compiler_flag:'`
14937    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14938    (eval "$lt_compile" 2>out/conftest.err)
14939    ac_status=$?
14940    cat out/conftest.err >&5
14941    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14943    then
14944      # The compiler can only warn and ignore the option if not recognized
14945      # So say no if there are warnings
14946      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14947      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14948      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14949        lt_cv_prog_compiler_c_o=yes
14950      fi
14951    fi
14952    chmod u+w . 2>&5
14953    $RM conftest*
14954    # SGI C++ compiler will create directory out/ii_files/ for
14955    # template instantiation
14956    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14957    $RM out/* && rmdir out
14958    cd ..
14959    $RM -r conftest
14960    $RM conftest*
14961
14962 fi
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14964 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14965
14966
14967
14968
14969 hard_links="nottested"
14970 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14971   # do not overwrite the value of need_locks provided by the user
14972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14973 $as_echo_n "checking if we can lock with hard links... " >&6; }
14974   hard_links=yes
14975   $RM conftest*
14976   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14977   touch conftest.a
14978   ln conftest.a conftest.b 2>&5 || hard_links=no
14979   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14981 $as_echo "$hard_links" >&6; }
14982   if test "$hard_links" = no; then
14983     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14984 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14985     need_locks=warn
14986   fi
14987 else
14988   need_locks=no
14989 fi
14990
14991
14992
14993
14994
14995
14996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14997 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14998
14999   runpath_var=
15000   allow_undefined_flag=
15001   always_export_symbols=no
15002   archive_cmds=
15003   archive_expsym_cmds=
15004   compiler_needs_object=no
15005   enable_shared_with_static_runtimes=no
15006   export_dynamic_flag_spec=
15007   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15008   hardcode_automatic=no
15009   hardcode_direct=no
15010   hardcode_direct_absolute=no
15011   hardcode_libdir_flag_spec=
15012   hardcode_libdir_separator=
15013   hardcode_minus_L=no
15014   hardcode_shlibpath_var=unsupported
15015   inherit_rpath=no
15016   link_all_deplibs=unknown
15017   module_cmds=
15018   module_expsym_cmds=
15019   old_archive_from_new_cmds=
15020   old_archive_from_expsyms_cmds=
15021   thread_safe_flag_spec=
15022   whole_archive_flag_spec=
15023   # include_expsyms should be a list of space-separated symbols to be *always*
15024   # included in the symbol list
15025   include_expsyms=
15026   # exclude_expsyms can be an extended regexp of symbols to exclude
15027   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15028   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15029   # as well as any symbol that contains `d'.
15030   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15031   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15032   # platforms (ab)use it in PIC code, but their linkers get confused if
15033   # the symbol is explicitly referenced.  Since portable code cannot
15034   # rely on this symbol name, it's probably fine to never include it in
15035   # preloaded symbol tables.
15036   # Exclude shared library initialization/finalization symbols.
15037   extract_expsyms_cmds=
15038
15039   case $host_os in
15040   cygwin* | mingw* | pw32* | cegcc*)
15041     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15042     # When not using gcc, we currently assume that we are using
15043     # Microsoft Visual C++.
15044     if test "$GCC" != yes; then
15045       with_gnu_ld=no
15046     fi
15047     ;;
15048   interix*)
15049     # we just hope/assume this is gcc and not c89 (= MSVC++)
15050     with_gnu_ld=yes
15051     ;;
15052   openbsd*)
15053     with_gnu_ld=no
15054     ;;
15055   linux* | k*bsd*-gnu | gnu*)
15056     link_all_deplibs=no
15057     ;;
15058   esac
15059
15060   ld_shlibs=yes
15061
15062   # On some targets, GNU ld is compatible enough with the native linker
15063   # that we're better off using the native interface for both.
15064   lt_use_gnu_ld_interface=no
15065   if test "$with_gnu_ld" = yes; then
15066     case $host_os in
15067       aix*)
15068         # The AIX port of GNU ld has always aspired to compatibility
15069         # with the native linker.  However, as the warning in the GNU ld
15070         # block says, versions before 2.19.5* couldn't really create working
15071         # shared libraries, regardless of the interface used.
15072         case `$LD -v 2>&1` in
15073           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15074           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15075           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15076           *)
15077             lt_use_gnu_ld_interface=yes
15078             ;;
15079         esac
15080         ;;
15081       *)
15082         lt_use_gnu_ld_interface=yes
15083         ;;
15084     esac
15085   fi
15086
15087   if test "$lt_use_gnu_ld_interface" = yes; then
15088     # If archive_cmds runs LD, not CC, wlarc should be empty
15089     wlarc='${wl}'
15090
15091     # Set some defaults for GNU ld with shared library support. These
15092     # are reset later if shared libraries are not supported. Putting them
15093     # here allows them to be overridden if necessary.
15094     runpath_var=LD_RUN_PATH
15095     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15096     export_dynamic_flag_spec='${wl}--export-dynamic'
15097     # ancient GNU ld didn't support --whole-archive et. al.
15098     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15099       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15100     else
15101       whole_archive_flag_spec=
15102     fi
15103     supports_anon_versioning=no
15104     case `$LD -v 2>&1` in
15105       *GNU\ gold*) supports_anon_versioning=yes ;;
15106       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15107       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15108       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15109       *\ 2.11.*) ;; # other 2.11 versions
15110       *) supports_anon_versioning=yes ;;
15111     esac
15112
15113     # See if GNU ld supports shared libraries.
15114     case $host_os in
15115     aix[3-9]*)
15116       # On AIX/PPC, the GNU linker is very broken
15117       if test "$host_cpu" != ia64; then
15118         ld_shlibs=no
15119         cat <<_LT_EOF 1>&2
15120
15121 *** Warning: the GNU linker, at least up to release 2.19, is reported
15122 *** to be unable to reliably create shared libraries on AIX.
15123 *** Therefore, libtool is disabling shared libraries support.  If you
15124 *** really care for shared libraries, you may want to install binutils
15125 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15126 *** You will then need to restart the configuration process.
15127
15128 _LT_EOF
15129       fi
15130       ;;
15131
15132     amigaos*)
15133       case $host_cpu in
15134       powerpc)
15135             # see comment about AmigaOS4 .so support
15136             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15137             archive_expsym_cmds=''
15138         ;;
15139       m68k)
15140             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)'
15141             hardcode_libdir_flag_spec='-L$libdir'
15142             hardcode_minus_L=yes
15143         ;;
15144       esac
15145       ;;
15146
15147     beos*)
15148       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15149         allow_undefined_flag=unsupported
15150         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15151         # support --undefined.  This deserves some investigation.  FIXME
15152         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15153       else
15154         ld_shlibs=no
15155       fi
15156       ;;
15157
15158     cygwin* | mingw* | pw32* | cegcc*)
15159       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15160       # as there is no search path for DLLs.
15161       hardcode_libdir_flag_spec='-L$libdir'
15162       export_dynamic_flag_spec='${wl}--export-all-symbols'
15163       allow_undefined_flag=unsupported
15164       always_export_symbols=no
15165       enable_shared_with_static_runtimes=yes
15166       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'
15167       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15168
15169       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15170         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15171         # If the export-symbols file already is a .def file (1st line
15172         # is EXPORTS), use it as is; otherwise, prepend...
15173         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15174           cp $export_symbols $output_objdir/$soname.def;
15175         else
15176           echo EXPORTS > $output_objdir/$soname.def;
15177           cat $export_symbols >> $output_objdir/$soname.def;
15178         fi~
15179         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15180       else
15181         ld_shlibs=no
15182       fi
15183       ;;
15184
15185     haiku*)
15186       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15187       link_all_deplibs=yes
15188       ;;
15189
15190     interix[3-9]*)
15191       hardcode_direct=no
15192       hardcode_shlibpath_var=no
15193       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15194       export_dynamic_flag_spec='${wl}-E'
15195       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15196       # Instead, shared libraries are loaded at an image base (0x10000000 by
15197       # default) and relocated if they conflict, which is a slow very memory
15198       # consuming and fragmenting process.  To avoid this, we pick a random,
15199       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15200       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15201       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15202       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'
15203       ;;
15204
15205     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15206       tmp_diet=no
15207       if test "$host_os" = linux-dietlibc; then
15208         case $cc_basename in
15209           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15210         esac
15211       fi
15212       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15213          && test "$tmp_diet" = no
15214       then
15215         tmp_addflag=' $pic_flag'
15216         tmp_sharedflag='-shared'
15217         case $cc_basename,$host_cpu in
15218         pgcc*)                          # Portland Group C compiler
15219           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'
15220           tmp_addflag=' $pic_flag'
15221           ;;
15222         pgf77* | pgf90* | pgf95* | pgfortran*)
15223                                         # Portland Group f77 and f90 compilers
15224           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'
15225           tmp_addflag=' $pic_flag -Mnomain' ;;
15226         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15227           tmp_addflag=' -i_dynamic' ;;
15228         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15229           tmp_addflag=' -i_dynamic -nofor_main' ;;
15230         ifc* | ifort*)                  # Intel Fortran compiler
15231           tmp_addflag=' -nofor_main' ;;
15232         lf95*)                          # Lahey Fortran 8.1
15233           whole_archive_flag_spec=
15234           tmp_sharedflag='--shared' ;;
15235         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15236           tmp_sharedflag='-qmkshrobj'
15237           tmp_addflag= ;;
15238         nvcc*)  # Cuda Compiler Driver 2.2
15239           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'
15240           compiler_needs_object=yes
15241           ;;
15242         esac
15243         case `$CC -V 2>&1 | sed 5q` in
15244         *Sun\ C*)                       # Sun C 5.9
15245           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'
15246           compiler_needs_object=yes
15247           tmp_sharedflag='-G' ;;
15248         *Sun\ F*)                       # Sun Fortran 8.3
15249           tmp_sharedflag='-G' ;;
15250         esac
15251         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15252
15253         if test "x$supports_anon_versioning" = xyes; then
15254           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15255             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15256             echo "local: *; };" >> $output_objdir/$libname.ver~
15257             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15258         fi
15259
15260         case $cc_basename in
15261         xlf* | bgf* | bgxlf* | mpixlf*)
15262           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15263           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15264           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15265           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15266           if test "x$supports_anon_versioning" = xyes; then
15267             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15268               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15269               echo "local: *; };" >> $output_objdir/$libname.ver~
15270               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15271           fi
15272           ;;
15273         esac
15274       else
15275         ld_shlibs=no
15276       fi
15277       ;;
15278
15279     netbsd* | netbsdelf*-gnu)
15280       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15281         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15282         wlarc=
15283       else
15284         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15285         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15286       fi
15287       ;;
15288
15289     solaris*)
15290       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15291         ld_shlibs=no
15292         cat <<_LT_EOF 1>&2
15293
15294 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15295 *** create shared libraries on Solaris systems.  Therefore, libtool
15296 *** is disabling shared libraries support.  We urge you to upgrade GNU
15297 *** binutils to release 2.9.1 or newer.  Another option is to modify
15298 *** your PATH or compiler configuration so that the native linker is
15299 *** used, and then restart.
15300
15301 _LT_EOF
15302       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15303         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15304         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15305       else
15306         ld_shlibs=no
15307       fi
15308       ;;
15309
15310     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15311       case `$LD -v 2>&1` in
15312         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15313         ld_shlibs=no
15314         cat <<_LT_EOF 1>&2
15315
15316 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15317 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15318 *** is disabling shared libraries support.  We urge you to upgrade GNU
15319 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15320 *** your PATH or compiler configuration so that the native linker is
15321 *** used, and then restart.
15322
15323 _LT_EOF
15324         ;;
15325         *)
15326           # For security reasons, it is highly recommended that you always
15327           # use absolute paths for naming shared libraries, and exclude the
15328           # DT_RUNPATH tag from executables and libraries.  But doing so
15329           # requires that you compile everything twice, which is a pain.
15330           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15331             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15332             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15333             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15334           else
15335             ld_shlibs=no
15336           fi
15337         ;;
15338       esac
15339       ;;
15340
15341     sunos4*)
15342       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15343       wlarc=
15344       hardcode_direct=yes
15345       hardcode_shlibpath_var=no
15346       ;;
15347
15348     *)
15349       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15350         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15351         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15352       else
15353         ld_shlibs=no
15354       fi
15355       ;;
15356     esac
15357
15358     if test "$ld_shlibs" = no; then
15359       runpath_var=
15360       hardcode_libdir_flag_spec=
15361       export_dynamic_flag_spec=
15362       whole_archive_flag_spec=
15363     fi
15364   else
15365     # PORTME fill in a description of your system's linker (not GNU ld)
15366     case $host_os in
15367     aix3*)
15368       allow_undefined_flag=unsupported
15369       always_export_symbols=yes
15370       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'
15371       # Note: this linker hardcodes the directories in LIBPATH if there
15372       # are no directories specified by -L.
15373       hardcode_minus_L=yes
15374       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15375         # Neither direct hardcoding nor static linking is supported with a
15376         # broken collect2.
15377         hardcode_direct=unsupported
15378       fi
15379       ;;
15380
15381     aix[4-9]*)
15382       if test "$host_cpu" = ia64; then
15383         # On IA64, the linker does run time linking by default, so we don't
15384         # have to do anything special.
15385         aix_use_runtimelinking=no
15386         exp_sym_flag='-Bexport'
15387         no_entry_flag=""
15388       else
15389         # If we're using GNU nm, then we don't want the "-C" option.
15390         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15391         # Also, AIX nm treats weak defined symbols like other global
15392         # defined symbols, whereas GNU nm marks them as "W".
15393         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15394           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'
15395         else
15396           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'
15397         fi
15398         aix_use_runtimelinking=no
15399
15400         # Test if we are trying to use run time linking or normal
15401         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15402         # need to do runtime linking.
15403         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15404           for ld_flag in $LDFLAGS; do
15405           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15406             aix_use_runtimelinking=yes
15407             break
15408           fi
15409           done
15410           ;;
15411         esac
15412
15413         exp_sym_flag='-bexport'
15414         no_entry_flag='-bnoentry'
15415       fi
15416
15417       # When large executables or shared objects are built, AIX ld can
15418       # have problems creating the table of contents.  If linking a library
15419       # or program results in "error TOC overflow" add -mminimal-toc to
15420       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15421       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15422
15423       archive_cmds=''
15424       hardcode_direct=yes
15425       hardcode_direct_absolute=yes
15426       hardcode_libdir_separator=':'
15427       link_all_deplibs=yes
15428       file_list_spec='${wl}-f,'
15429
15430       if test "$GCC" = yes; then
15431         case $host_os in aix4.[012]|aix4.[012].*)
15432         # We only want to do this on AIX 4.2 and lower, the check
15433         # below for broken collect2 doesn't work under 4.3+
15434           collect2name=`${CC} -print-prog-name=collect2`
15435           if test -f "$collect2name" &&
15436            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15437           then
15438           # We have reworked collect2
15439           :
15440           else
15441           # We have old collect2
15442           hardcode_direct=unsupported
15443           # It fails to find uninstalled libraries when the uninstalled
15444           # path is not listed in the libpath.  Setting hardcode_minus_L
15445           # to unsupported forces relinking
15446           hardcode_minus_L=yes
15447           hardcode_libdir_flag_spec='-L$libdir'
15448           hardcode_libdir_separator=
15449           fi
15450           ;;
15451         esac
15452         shared_flag='-shared'
15453         if test "$aix_use_runtimelinking" = yes; then
15454           shared_flag="$shared_flag "'${wl}-G'
15455         fi
15456         link_all_deplibs=no
15457       else
15458         # not using gcc
15459         if test "$host_cpu" = ia64; then
15460         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15461         # chokes on -Wl,-G. The following line is correct:
15462           shared_flag='-G'
15463         else
15464           if test "$aix_use_runtimelinking" = yes; then
15465             shared_flag='${wl}-G'
15466           else
15467             shared_flag='${wl}-bM:SRE'
15468           fi
15469         fi
15470       fi
15471
15472       export_dynamic_flag_spec='${wl}-bexpall'
15473       # It seems that -bexpall does not export symbols beginning with
15474       # underscore (_), so it is better to generate a list of symbols to export.
15475       always_export_symbols=yes
15476       if test "$aix_use_runtimelinking" = yes; then
15477         # Warning - without using the other runtime loading flags (-brtl),
15478         # -berok will link without error, but may produce a broken library.
15479         allow_undefined_flag='-berok'
15480         # Determine the default libpath from the value encoded in an
15481         # empty executable.
15482         if test "${lt_cv_aix_libpath+set}" = set; then
15483   aix_libpath=$lt_cv_aix_libpath
15484 else
15485   if ${lt_cv_aix_libpath_+:} false; then :
15486   $as_echo_n "(cached) " >&6
15487 else
15488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h.  */
15490
15491 int
15492 main ()
15493 {
15494
15495   ;
15496   return 0;
15497 }
15498 _ACEOF
15499 if ac_fn_c_try_link "$LINENO"; then :
15500
15501   lt_aix_libpath_sed='
15502       /Import File Strings/,/^$/ {
15503           /^0/ {
15504               s/^0  *\([^ ]*\) *$/\1/
15505               p
15506           }
15507       }'
15508   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15509   # Check for a 64-bit object if we didn't find anything.
15510   if test -z "$lt_cv_aix_libpath_"; then
15511     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15512   fi
15513 fi
15514 rm -f core conftest.err conftest.$ac_objext \
15515     conftest$ac_exeext conftest.$ac_ext
15516   if test -z "$lt_cv_aix_libpath_"; then
15517     lt_cv_aix_libpath_="/usr/lib:/lib"
15518   fi
15519
15520 fi
15521
15522   aix_libpath=$lt_cv_aix_libpath_
15523 fi
15524
15525         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15526         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"
15527       else
15528         if test "$host_cpu" = ia64; then
15529           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15530           allow_undefined_flag="-z nodefs"
15531           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"
15532         else
15533          # Determine the default libpath from the value encoded in an
15534          # empty executable.
15535          if test "${lt_cv_aix_libpath+set}" = set; then
15536   aix_libpath=$lt_cv_aix_libpath
15537 else
15538   if ${lt_cv_aix_libpath_+:} false; then :
15539   $as_echo_n "(cached) " >&6
15540 else
15541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h.  */
15543
15544 int
15545 main ()
15546 {
15547
15548   ;
15549   return 0;
15550 }
15551 _ACEOF
15552 if ac_fn_c_try_link "$LINENO"; then :
15553
15554   lt_aix_libpath_sed='
15555       /Import File Strings/,/^$/ {
15556           /^0/ {
15557               s/^0  *\([^ ]*\) *$/\1/
15558               p
15559           }
15560       }'
15561   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15562   # Check for a 64-bit object if we didn't find anything.
15563   if test -z "$lt_cv_aix_libpath_"; then
15564     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15565   fi
15566 fi
15567 rm -f core conftest.err conftest.$ac_objext \
15568     conftest$ac_exeext conftest.$ac_ext
15569   if test -z "$lt_cv_aix_libpath_"; then
15570     lt_cv_aix_libpath_="/usr/lib:/lib"
15571   fi
15572
15573 fi
15574
15575   aix_libpath=$lt_cv_aix_libpath_
15576 fi
15577
15578          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15579           # Warning - without using the other run time loading flags,
15580           # -berok will link without error, but may produce a broken library.
15581           no_undefined_flag=' ${wl}-bernotok'
15582           allow_undefined_flag=' ${wl}-berok'
15583           if test "$with_gnu_ld" = yes; then
15584             # We only use this code for GNU lds that support --whole-archive.
15585             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15586           else
15587             # Exported symbols can be pulled into shared objects from archives
15588             whole_archive_flag_spec='$convenience'
15589           fi
15590           archive_cmds_need_lc=yes
15591           # This is similar to how AIX traditionally builds its shared libraries.
15592           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'
15593         fi
15594       fi
15595       ;;
15596
15597     amigaos*)
15598       case $host_cpu in
15599       powerpc)
15600             # see comment about AmigaOS4 .so support
15601             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15602             archive_expsym_cmds=''
15603         ;;
15604       m68k)
15605             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)'
15606             hardcode_libdir_flag_spec='-L$libdir'
15607             hardcode_minus_L=yes
15608         ;;
15609       esac
15610       ;;
15611
15612     bsdi[45]*)
15613       export_dynamic_flag_spec=-rdynamic
15614       ;;
15615
15616     cygwin* | mingw* | pw32* | cegcc*)
15617       # When not using gcc, we currently assume that we are using
15618       # Microsoft Visual C++.
15619       # hardcode_libdir_flag_spec is actually meaningless, as there is
15620       # no search path for DLLs.
15621       case $cc_basename in
15622       cl*)
15623         # Native MSVC
15624         hardcode_libdir_flag_spec=' '
15625         allow_undefined_flag=unsupported
15626         always_export_symbols=yes
15627         file_list_spec='@'
15628         # Tell ltmain to make .lib files, not .a files.
15629         libext=lib
15630         # Tell ltmain to make .dll files, not .so files.
15631         shrext_cmds=".dll"
15632         # FIXME: Setting linknames here is a bad hack.
15633         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15634         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15635             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15636           else
15637             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15638           fi~
15639           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15640           linknames='
15641         # The linker will not automatically build a static lib if we build a DLL.
15642         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15643         enable_shared_with_static_runtimes=yes
15644         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15645         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15646         # Don't use ranlib
15647         old_postinstall_cmds='chmod 644 $oldlib'
15648         postlink_cmds='lt_outputfile="@OUTPUT@"~
15649           lt_tool_outputfile="@TOOL_OUTPUT@"~
15650           case $lt_outputfile in
15651             *.exe|*.EXE) ;;
15652             *)
15653               lt_outputfile="$lt_outputfile.exe"
15654               lt_tool_outputfile="$lt_tool_outputfile.exe"
15655               ;;
15656           esac~
15657           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15658             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15659             $RM "$lt_outputfile.manifest";
15660           fi'
15661         ;;
15662       *)
15663         # Assume MSVC wrapper
15664         hardcode_libdir_flag_spec=' '
15665         allow_undefined_flag=unsupported
15666         # Tell ltmain to make .lib files, not .a files.
15667         libext=lib
15668         # Tell ltmain to make .dll files, not .so files.
15669         shrext_cmds=".dll"
15670         # FIXME: Setting linknames here is a bad hack.
15671         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15672         # The linker will automatically build a .lib file if we build a DLL.
15673         old_archive_from_new_cmds='true'
15674         # FIXME: Should let the user specify the lib program.
15675         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15676         enable_shared_with_static_runtimes=yes
15677         ;;
15678       esac
15679       ;;
15680
15681     darwin* | rhapsody*)
15682
15683
15684   archive_cmds_need_lc=no
15685   hardcode_direct=no
15686   hardcode_automatic=yes
15687   hardcode_shlibpath_var=unsupported
15688   if test "$lt_cv_ld_force_load" = "yes"; then
15689     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\"`'
15690
15691   else
15692     whole_archive_flag_spec=''
15693   fi
15694   link_all_deplibs=yes
15695   allow_undefined_flag="$_lt_dar_allow_undefined"
15696   case $cc_basename in
15697      ifort*) _lt_dar_can_shared=yes ;;
15698      *) _lt_dar_can_shared=$GCC ;;
15699   esac
15700   if test "$_lt_dar_can_shared" = "yes"; then
15701     output_verbose_link_cmd=func_echo_all
15702     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15703     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15704     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}"
15705     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}"
15706
15707   else
15708   ld_shlibs=no
15709   fi
15710
15711       ;;
15712
15713     dgux*)
15714       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715       hardcode_libdir_flag_spec='-L$libdir'
15716       hardcode_shlibpath_var=no
15717       ;;
15718
15719     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15720     # support.  Future versions do this automatically, but an explicit c++rt0.o
15721     # does not break anything, and helps significantly (at the cost of a little
15722     # extra space).
15723     freebsd2.2*)
15724       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15725       hardcode_libdir_flag_spec='-R$libdir'
15726       hardcode_direct=yes
15727       hardcode_shlibpath_var=no
15728       ;;
15729
15730     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15731     freebsd2.*)
15732       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15733       hardcode_direct=yes
15734       hardcode_minus_L=yes
15735       hardcode_shlibpath_var=no
15736       ;;
15737
15738     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15739     freebsd* | dragonfly*)
15740       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15741       hardcode_libdir_flag_spec='-R$libdir'
15742       hardcode_direct=yes
15743       hardcode_shlibpath_var=no
15744       ;;
15745
15746     hpux9*)
15747       if test "$GCC" = yes; then
15748         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'
15749       else
15750         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'
15751       fi
15752       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15753       hardcode_libdir_separator=:
15754       hardcode_direct=yes
15755
15756       # hardcode_minus_L: Not really in the search PATH,
15757       # but as the default location of the library.
15758       hardcode_minus_L=yes
15759       export_dynamic_flag_spec='${wl}-E'
15760       ;;
15761
15762     hpux10*)
15763       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15764         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15765       else
15766         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15767       fi
15768       if test "$with_gnu_ld" = no; then
15769         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15770         hardcode_libdir_separator=:
15771         hardcode_direct=yes
15772         hardcode_direct_absolute=yes
15773         export_dynamic_flag_spec='${wl}-E'
15774         # hardcode_minus_L: Not really in the search PATH,
15775         # but as the default location of the library.
15776         hardcode_minus_L=yes
15777       fi
15778       ;;
15779
15780     hpux11*)
15781       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15782         case $host_cpu in
15783         hppa*64*)
15784           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15785           ;;
15786         ia64*)
15787           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15788           ;;
15789         *)
15790           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15791           ;;
15792         esac
15793       else
15794         case $host_cpu in
15795         hppa*64*)
15796           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15797           ;;
15798         ia64*)
15799           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15800           ;;
15801         *)
15802
15803           # Older versions of the 11.00 compiler do not understand -b yet
15804           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15805           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15806 $as_echo_n "checking if $CC understands -b... " >&6; }
15807 if ${lt_cv_prog_compiler__b+:} false; then :
15808   $as_echo_n "(cached) " >&6
15809 else
15810   lt_cv_prog_compiler__b=no
15811    save_LDFLAGS="$LDFLAGS"
15812    LDFLAGS="$LDFLAGS -b"
15813    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15814    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15815      # The linker can only warn and ignore the option if not recognized
15816      # So say no if there are warnings
15817      if test -s conftest.err; then
15818        # Append any errors to the config.log.
15819        cat conftest.err 1>&5
15820        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15821        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15822        if diff conftest.exp conftest.er2 >/dev/null; then
15823          lt_cv_prog_compiler__b=yes
15824        fi
15825      else
15826        lt_cv_prog_compiler__b=yes
15827      fi
15828    fi
15829    $RM -r conftest*
15830    LDFLAGS="$save_LDFLAGS"
15831
15832 fi
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15834 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15835
15836 if test x"$lt_cv_prog_compiler__b" = xyes; then
15837     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15838 else
15839     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15840 fi
15841
15842           ;;
15843         esac
15844       fi
15845       if test "$with_gnu_ld" = no; then
15846         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15847         hardcode_libdir_separator=:
15848
15849         case $host_cpu in
15850         hppa*64*|ia64*)
15851           hardcode_direct=no
15852           hardcode_shlibpath_var=no
15853           ;;
15854         *)
15855           hardcode_direct=yes
15856           hardcode_direct_absolute=yes
15857           export_dynamic_flag_spec='${wl}-E'
15858
15859           # hardcode_minus_L: Not really in the search PATH,
15860           # but as the default location of the library.
15861           hardcode_minus_L=yes
15862           ;;
15863         esac
15864       fi
15865       ;;
15866
15867     irix5* | irix6* | nonstopux*)
15868       if test "$GCC" = yes; then
15869         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'
15870         # Try to use the -exported_symbol ld option, if it does not
15871         # work, assume that -exports_file does not work either and
15872         # implicitly export all symbols.
15873         # This should be the same for all languages, so no per-tag cache variable.
15874         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15875 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15876 if ${lt_cv_irix_exported_symbol+:} false; then :
15877   $as_echo_n "(cached) " >&6
15878 else
15879   save_LDFLAGS="$LDFLAGS"
15880            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15881            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h.  */
15883 int foo (void) { return 0; }
15884 _ACEOF
15885 if ac_fn_c_try_link "$LINENO"; then :
15886   lt_cv_irix_exported_symbol=yes
15887 else
15888   lt_cv_irix_exported_symbol=no
15889 fi
15890 rm -f core conftest.err conftest.$ac_objext \
15891     conftest$ac_exeext conftest.$ac_ext
15892            LDFLAGS="$save_LDFLAGS"
15893 fi
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15895 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15896         if test "$lt_cv_irix_exported_symbol" = yes; then
15897           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'
15898         fi
15899       else
15900         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'
15901         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'
15902       fi
15903       archive_cmds_need_lc='no'
15904       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15905       hardcode_libdir_separator=:
15906       inherit_rpath=yes
15907       link_all_deplibs=yes
15908       ;;
15909
15910     netbsd* | netbsdelf*-gnu)
15911       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15912         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15913       else
15914         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15915       fi
15916       hardcode_libdir_flag_spec='-R$libdir'
15917       hardcode_direct=yes
15918       hardcode_shlibpath_var=no
15919       ;;
15920
15921     newsos6)
15922       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923       hardcode_direct=yes
15924       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15925       hardcode_libdir_separator=:
15926       hardcode_shlibpath_var=no
15927       ;;
15928
15929     *nto* | *qnx*)
15930       ;;
15931
15932     openbsd*)
15933       if test -f /usr/libexec/ld.so; then
15934         hardcode_direct=yes
15935         hardcode_shlibpath_var=no
15936         hardcode_direct_absolute=yes
15937         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15938           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15939           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15940           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15941           export_dynamic_flag_spec='${wl}-E'
15942         else
15943           case $host_os in
15944            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15945              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15946              hardcode_libdir_flag_spec='-R$libdir'
15947              ;;
15948            *)
15949              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15950              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15951              ;;
15952           esac
15953         fi
15954       else
15955         ld_shlibs=no
15956       fi
15957       ;;
15958
15959     os2*)
15960       hardcode_libdir_flag_spec='-L$libdir'
15961       hardcode_minus_L=yes
15962       allow_undefined_flag=unsupported
15963       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'
15964       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15965       ;;
15966
15967     osf3*)
15968       if test "$GCC" = yes; then
15969         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15970         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'
15971       else
15972         allow_undefined_flag=' -expect_unresolved \*'
15973         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'
15974       fi
15975       archive_cmds_need_lc='no'
15976       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15977       hardcode_libdir_separator=:
15978       ;;
15979
15980     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15981       if test "$GCC" = yes; then
15982         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15983         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'
15984         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15985       else
15986         allow_undefined_flag=' -expect_unresolved \*'
15987         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'
15988         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~
15989         $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'
15990
15991         # Both c and cxx compiler support -rpath directly
15992         hardcode_libdir_flag_spec='-rpath $libdir'
15993       fi
15994       archive_cmds_need_lc='no'
15995       hardcode_libdir_separator=:
15996       ;;
15997
15998     solaris*)
15999       no_undefined_flag=' -z defs'
16000       if test "$GCC" = yes; then
16001         wlarc='${wl}'
16002         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16003         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16004           $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'
16005       else
16006         case `$CC -V 2>&1` in
16007         *"Compilers 5.0"*)
16008           wlarc=''
16009           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16010           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16011           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16012           ;;
16013         *)
16014           wlarc='${wl}'
16015           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16016           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16017           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16018           ;;
16019         esac
16020       fi
16021       hardcode_libdir_flag_spec='-R$libdir'
16022       hardcode_shlibpath_var=no
16023       case $host_os in
16024       solaris2.[0-5] | solaris2.[0-5].*) ;;
16025       *)
16026         # The compiler driver will combine and reorder linker options,
16027         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16028         # but is careful enough not to reorder.
16029         # Supported since Solaris 2.6 (maybe 2.5.1?)
16030         if test "$GCC" = yes; then
16031           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16032         else
16033           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16034         fi
16035         ;;
16036       esac
16037       link_all_deplibs=yes
16038       ;;
16039
16040     sunos4*)
16041       if test "x$host_vendor" = xsequent; then
16042         # Use $CC to link under sequent, because it throws in some extra .o
16043         # files that make .init and .fini sections work.
16044         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16045       else
16046         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16047       fi
16048       hardcode_libdir_flag_spec='-L$libdir'
16049       hardcode_direct=yes
16050       hardcode_minus_L=yes
16051       hardcode_shlibpath_var=no
16052       ;;
16053
16054     sysv4)
16055       case $host_vendor in
16056         sni)
16057           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16058           hardcode_direct=yes # is this really true???
16059         ;;
16060         siemens)
16061           ## LD is ld it makes a PLAMLIB
16062           ## CC just makes a GrossModule.
16063           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16064           reload_cmds='$CC -r -o $output$reload_objs'
16065           hardcode_direct=no
16066         ;;
16067         motorola)
16068           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16069           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16070         ;;
16071       esac
16072       runpath_var='LD_RUN_PATH'
16073       hardcode_shlibpath_var=no
16074       ;;
16075
16076     sysv4.3*)
16077       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16078       hardcode_shlibpath_var=no
16079       export_dynamic_flag_spec='-Bexport'
16080       ;;
16081
16082     sysv4*MP*)
16083       if test -d /usr/nec; then
16084         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16085         hardcode_shlibpath_var=no
16086         runpath_var=LD_RUN_PATH
16087         hardcode_runpath_var=yes
16088         ld_shlibs=yes
16089       fi
16090       ;;
16091
16092     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16093       no_undefined_flag='${wl}-z,text'
16094       archive_cmds_need_lc=no
16095       hardcode_shlibpath_var=no
16096       runpath_var='LD_RUN_PATH'
16097
16098       if test "$GCC" = yes; then
16099         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16100         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16101       else
16102         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16103         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16104       fi
16105       ;;
16106
16107     sysv5* | sco3.2v5* | sco5v6*)
16108       # Note: We can NOT use -z defs as we might desire, because we do not
16109       # link with -lc, and that would cause any symbols used from libc to
16110       # always be unresolved, which means just about no library would
16111       # ever link correctly.  If we're not using GNU ld we use -z text
16112       # though, which does catch some bad symbols but isn't as heavy-handed
16113       # as -z defs.
16114       no_undefined_flag='${wl}-z,text'
16115       allow_undefined_flag='${wl}-z,nodefs'
16116       archive_cmds_need_lc=no
16117       hardcode_shlibpath_var=no
16118       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16119       hardcode_libdir_separator=':'
16120       link_all_deplibs=yes
16121       export_dynamic_flag_spec='${wl}-Bexport'
16122       runpath_var='LD_RUN_PATH'
16123
16124       if test "$GCC" = yes; then
16125         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16126         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16127       else
16128         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16129         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16130       fi
16131       ;;
16132
16133     uts4*)
16134       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135       hardcode_libdir_flag_spec='-L$libdir'
16136       hardcode_shlibpath_var=no
16137       ;;
16138
16139     *)
16140       ld_shlibs=no
16141       ;;
16142     esac
16143
16144     if test x$host_vendor = xsni; then
16145       case $host in
16146       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16147         export_dynamic_flag_spec='${wl}-Blargedynsym'
16148         ;;
16149       esac
16150     fi
16151   fi
16152
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16154 $as_echo "$ld_shlibs" >&6; }
16155 test "$ld_shlibs" = no && can_build_shared=no
16156
16157 with_gnu_ld=$with_gnu_ld
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173 #
16174 # Do we need to explicitly link libc?
16175 #
16176 case "x$archive_cmds_need_lc" in
16177 x|xyes)
16178   # Assume -lc should be added
16179   archive_cmds_need_lc=yes
16180
16181   if test "$enable_shared" = yes && test "$GCC" = yes; then
16182     case $archive_cmds in
16183     *'~'*)
16184       # FIXME: we may have to deal with multi-command sequences.
16185       ;;
16186     '$CC '*)
16187       # Test whether the compiler implicitly links with -lc since on some
16188       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16189       # to ld, don't add -lc before -lgcc.
16190       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16191 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16192 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16193   $as_echo_n "(cached) " >&6
16194 else
16195   $RM conftest*
16196         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16197
16198         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16199   (eval $ac_compile) 2>&5
16200   ac_status=$?
16201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16202   test $ac_status = 0; } 2>conftest.err; then
16203           soname=conftest
16204           lib=conftest
16205           libobjs=conftest.$ac_objext
16206           deplibs=
16207           wl=$lt_prog_compiler_wl
16208           pic_flag=$lt_prog_compiler_pic
16209           compiler_flags=-v
16210           linker_flags=-v
16211           verstring=
16212           output_objdir=.
16213           libname=conftest
16214           lt_save_allow_undefined_flag=$allow_undefined_flag
16215           allow_undefined_flag=
16216           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16217   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16218   ac_status=$?
16219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16220   test $ac_status = 0; }
16221           then
16222             lt_cv_archive_cmds_need_lc=no
16223           else
16224             lt_cv_archive_cmds_need_lc=yes
16225           fi
16226           allow_undefined_flag=$lt_save_allow_undefined_flag
16227         else
16228           cat conftest.err 1>&5
16229         fi
16230         $RM conftest*
16231
16232 fi
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16234 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16235       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16236       ;;
16237     esac
16238   fi
16239   ;;
16240 esac
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
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16394 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16395
16396 if test "$GCC" = yes; then
16397   case $host_os in
16398     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16399     *) lt_awk_arg="/^libraries:/" ;;
16400   esac
16401   case $host_os in
16402     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16403     *) lt_sed_strip_eq="s,=/,/,g" ;;
16404   esac
16405   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16406   case $lt_search_path_spec in
16407   *\;*)
16408     # if the path contains ";" then we assume it to be the separator
16409     # otherwise default to the standard path separator (i.e. ":") - it is
16410     # assumed that no part of a normal pathname contains ";" but that should
16411     # okay in the real world where ";" in dirpaths is itself problematic.
16412     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16413     ;;
16414   *)
16415     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16416     ;;
16417   esac
16418   # Ok, now we have the path, separated by spaces, we can step through it
16419   # and add multilib dir if necessary.
16420   lt_tmp_lt_search_path_spec=
16421   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16422   for lt_sys_path in $lt_search_path_spec; do
16423     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16424       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16425     else
16426       test -d "$lt_sys_path" && \
16427         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16428     fi
16429   done
16430   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16431 BEGIN {RS=" "; FS="/|\n";} {
16432   lt_foo="";
16433   lt_count=0;
16434   for (lt_i = NF; lt_i > 0; lt_i--) {
16435     if ($lt_i != "" && $lt_i != ".") {
16436       if ($lt_i == "..") {
16437         lt_count++;
16438       } else {
16439         if (lt_count == 0) {
16440           lt_foo="/" $lt_i lt_foo;
16441         } else {
16442           lt_count--;
16443         }
16444       }
16445     }
16446   }
16447   if (lt_foo != "") { lt_freq[lt_foo]++; }
16448   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16449 }'`
16450   # AWK program above erroneously prepends '/' to C:/dos/paths
16451   # for these hosts.
16452   case $host_os in
16453     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16454       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16455   esac
16456   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16457 else
16458   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16459 fi
16460 library_names_spec=
16461 libname_spec='lib$name'
16462 soname_spec=
16463 shrext_cmds=".so"
16464 postinstall_cmds=
16465 postuninstall_cmds=
16466 finish_cmds=
16467 finish_eval=
16468 shlibpath_var=
16469 shlibpath_overrides_runpath=unknown
16470 version_type=none
16471 dynamic_linker="$host_os ld.so"
16472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16473 need_lib_prefix=unknown
16474 hardcode_into_libs=no
16475
16476 # when you set need_version to no, make sure it does not cause -set_version
16477 # flags to be left without arguments
16478 need_version=unknown
16479
16480 case $host_os in
16481 aix3*)
16482   version_type=linux # correct to gnu/linux during the next big refactor
16483   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16484   shlibpath_var=LIBPATH
16485
16486   # AIX 3 has no versioning support, so we append a major version to the name.
16487   soname_spec='${libname}${release}${shared_ext}$major'
16488   ;;
16489
16490 aix[4-9]*)
16491   version_type=linux # correct to gnu/linux during the next big refactor
16492   need_lib_prefix=no
16493   need_version=no
16494   hardcode_into_libs=yes
16495   if test "$host_cpu" = ia64; then
16496     # AIX 5 supports IA64
16497     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16498     shlibpath_var=LD_LIBRARY_PATH
16499   else
16500     # With GCC up to 2.95.x, collect2 would create an import file
16501     # for dependence libraries.  The import file would start with
16502     # the line `#! .'.  This would cause the generated library to
16503     # depend on `.', always an invalid library.  This was fixed in
16504     # development snapshots of GCC prior to 3.0.
16505     case $host_os in
16506       aix4 | aix4.[01] | aix4.[01].*)
16507       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16508            echo ' yes '
16509            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16510         :
16511       else
16512         can_build_shared=no
16513       fi
16514       ;;
16515     esac
16516     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16517     # soname into executable. Probably we can add versioning support to
16518     # collect2, so additional links can be useful in future.
16519     if test "$aix_use_runtimelinking" = yes; then
16520       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16521       # instead of lib<name>.a to let people know that these are not
16522       # typical AIX shared libraries.
16523       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16524     else
16525       # We preserve .a as extension for shared libraries through AIX4.2
16526       # and later when we are not doing run time linking.
16527       library_names_spec='${libname}${release}.a $libname.a'
16528       soname_spec='${libname}${release}${shared_ext}$major'
16529     fi
16530     shlibpath_var=LIBPATH
16531   fi
16532   ;;
16533
16534 amigaos*)
16535   case $host_cpu in
16536   powerpc)
16537     # Since July 2007 AmigaOS4 officially supports .so libraries.
16538     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540     ;;
16541   m68k)
16542     library_names_spec='$libname.ixlibrary $libname.a'
16543     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16544     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'
16545     ;;
16546   esac
16547   ;;
16548
16549 beos*)
16550   library_names_spec='${libname}${shared_ext}'
16551   dynamic_linker="$host_os ld.so"
16552   shlibpath_var=LIBRARY_PATH
16553   ;;
16554
16555 bsdi[45]*)
16556   version_type=linux # correct to gnu/linux during the next big refactor
16557   need_version=no
16558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16559   soname_spec='${libname}${release}${shared_ext}$major'
16560   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16561   shlibpath_var=LD_LIBRARY_PATH
16562   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16563   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16564   # the default ld.so.conf also contains /usr/contrib/lib and
16565   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16566   # libtool to hard-code these into programs
16567   ;;
16568
16569 cygwin* | mingw* | pw32* | cegcc*)
16570   version_type=windows
16571   shrext_cmds=".dll"
16572   need_version=no
16573   need_lib_prefix=no
16574
16575   case $GCC,$cc_basename in
16576   yes,*)
16577     # gcc
16578     library_names_spec='$libname.dll.a'
16579     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16580     postinstall_cmds='base_file=`basename \${file}`~
16581       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16582       dldir=$destdir/`dirname \$dlpath`~
16583       test -d \$dldir || mkdir -p \$dldir~
16584       $install_prog $dir/$dlname \$dldir/$dlname~
16585       chmod a+x \$dldir/$dlname~
16586       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16587         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16588       fi'
16589     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16590       dlpath=$dir/\$dldll~
16591        $RM \$dlpath'
16592     shlibpath_overrides_runpath=yes
16593
16594     case $host_os in
16595     cygwin*)
16596       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16597       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16598
16599       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16600       ;;
16601     mingw* | cegcc*)
16602       # MinGW DLLs use traditional 'lib' prefix
16603       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16604       ;;
16605     pw32*)
16606       # pw32 DLLs use 'pw' prefix rather than 'lib'
16607       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16608       ;;
16609     esac
16610     dynamic_linker='Win32 ld.exe'
16611     ;;
16612
16613   *,cl*)
16614     # Native MSVC
16615     libname_spec='$name'
16616     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16617     library_names_spec='${libname}.dll.lib'
16618
16619     case $build_os in
16620     mingw*)
16621       sys_lib_search_path_spec=
16622       lt_save_ifs=$IFS
16623       IFS=';'
16624       for lt_path in $LIB
16625       do
16626         IFS=$lt_save_ifs
16627         # Let DOS variable expansion print the short 8.3 style file name.
16628         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16629         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16630       done
16631       IFS=$lt_save_ifs
16632       # Convert to MSYS style.
16633       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16634       ;;
16635     cygwin*)
16636       # Convert to unix form, then to dos form, then back to unix form
16637       # but this time dos style (no spaces!) so that the unix form looks
16638       # like /cygdrive/c/PROGRA~1:/cygdr...
16639       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16640       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16641       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16642       ;;
16643     *)
16644       sys_lib_search_path_spec="$LIB"
16645       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16646         # It is most probably a Windows format PATH.
16647         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16648       else
16649         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16650       fi
16651       # FIXME: find the short name or the path components, as spaces are
16652       # common. (e.g. "Program Files" -> "PROGRA~1")
16653       ;;
16654     esac
16655
16656     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16657     postinstall_cmds='base_file=`basename \${file}`~
16658       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16659       dldir=$destdir/`dirname \$dlpath`~
16660       test -d \$dldir || mkdir -p \$dldir~
16661       $install_prog $dir/$dlname \$dldir/$dlname'
16662     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16663       dlpath=$dir/\$dldll~
16664        $RM \$dlpath'
16665     shlibpath_overrides_runpath=yes
16666     dynamic_linker='Win32 link.exe'
16667     ;;
16668
16669   *)
16670     # Assume MSVC wrapper
16671     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16672     dynamic_linker='Win32 ld.exe'
16673     ;;
16674   esac
16675   # FIXME: first we should search . and the directory the executable is in
16676   shlibpath_var=PATH
16677   ;;
16678
16679 darwin* | rhapsody*)
16680   dynamic_linker="$host_os dyld"
16681   version_type=darwin
16682   need_lib_prefix=no
16683   need_version=no
16684   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16685   soname_spec='${libname}${release}${major}$shared_ext'
16686   shlibpath_overrides_runpath=yes
16687   shlibpath_var=DYLD_LIBRARY_PATH
16688   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16689
16690   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16691   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16692   ;;
16693
16694 dgux*)
16695   version_type=linux # correct to gnu/linux during the next big refactor
16696   need_lib_prefix=no
16697   need_version=no
16698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16699   soname_spec='${libname}${release}${shared_ext}$major'
16700   shlibpath_var=LD_LIBRARY_PATH
16701   ;;
16702
16703 freebsd* | dragonfly*)
16704   # DragonFly does not have aout.  When/if they implement a new
16705   # versioning mechanism, adjust this.
16706   if test -x /usr/bin/objformat; then
16707     objformat=`/usr/bin/objformat`
16708   else
16709     case $host_os in
16710     freebsd[23].*) objformat=aout ;;
16711     *) objformat=elf ;;
16712     esac
16713   fi
16714   version_type=freebsd-$objformat
16715   case $version_type in
16716     freebsd-elf*)
16717       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16718       need_version=no
16719       need_lib_prefix=no
16720       ;;
16721     freebsd-*)
16722       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16723       need_version=yes
16724       ;;
16725   esac
16726   shlibpath_var=LD_LIBRARY_PATH
16727   case $host_os in
16728   freebsd2.*)
16729     shlibpath_overrides_runpath=yes
16730     ;;
16731   freebsd3.[01]* | freebsdelf3.[01]*)
16732     shlibpath_overrides_runpath=yes
16733     hardcode_into_libs=yes
16734     ;;
16735   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16736   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16737     shlibpath_overrides_runpath=no
16738     hardcode_into_libs=yes
16739     ;;
16740   *) # from 4.6 on, and DragonFly
16741     shlibpath_overrides_runpath=yes
16742     hardcode_into_libs=yes
16743     ;;
16744   esac
16745   ;;
16746
16747 haiku*)
16748   version_type=linux # correct to gnu/linux during the next big refactor
16749   need_lib_prefix=no
16750   need_version=no
16751   dynamic_linker="$host_os runtime_loader"
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   shlibpath_var=LIBRARY_PATH
16755   shlibpath_overrides_runpath=yes
16756   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16757   hardcode_into_libs=yes
16758   ;;
16759
16760 hpux9* | hpux10* | hpux11*)
16761   # Give a soname corresponding to the major version so that dld.sl refuses to
16762   # link against other versions.
16763   version_type=sunos
16764   need_lib_prefix=no
16765   need_version=no
16766   case $host_cpu in
16767   ia64*)
16768     shrext_cmds='.so'
16769     hardcode_into_libs=yes
16770     dynamic_linker="$host_os dld.so"
16771     shlibpath_var=LD_LIBRARY_PATH
16772     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774     soname_spec='${libname}${release}${shared_ext}$major'
16775     if test "X$HPUX_IA64_MODE" = X32; then
16776       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16777     else
16778       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16779     fi
16780     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16781     ;;
16782   hppa*64*)
16783     shrext_cmds='.sl'
16784     hardcode_into_libs=yes
16785     dynamic_linker="$host_os dld.sl"
16786     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16787     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16789     soname_spec='${libname}${release}${shared_ext}$major'
16790     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16791     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16792     ;;
16793   *)
16794     shrext_cmds='.sl'
16795     dynamic_linker="$host_os dld.sl"
16796     shlibpath_var=SHLIB_PATH
16797     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16799     soname_spec='${libname}${release}${shared_ext}$major'
16800     ;;
16801   esac
16802   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16803   postinstall_cmds='chmod 555 $lib'
16804   # or fails outright, so override atomically:
16805   install_override_mode=555
16806   ;;
16807
16808 interix[3-9]*)
16809   version_type=linux # correct to gnu/linux during the next big refactor
16810   need_lib_prefix=no
16811   need_version=no
16812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16813   soname_spec='${libname}${release}${shared_ext}$major'
16814   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16815   shlibpath_var=LD_LIBRARY_PATH
16816   shlibpath_overrides_runpath=no
16817   hardcode_into_libs=yes
16818   ;;
16819
16820 irix5* | irix6* | nonstopux*)
16821   case $host_os in
16822     nonstopux*) version_type=nonstopux ;;
16823     *)
16824         if test "$lt_cv_prog_gnu_ld" = yes; then
16825                 version_type=linux # correct to gnu/linux during the next big refactor
16826         else
16827                 version_type=irix
16828         fi ;;
16829   esac
16830   need_lib_prefix=no
16831   need_version=no
16832   soname_spec='${libname}${release}${shared_ext}$major'
16833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16834   case $host_os in
16835   irix5* | nonstopux*)
16836     libsuff= shlibsuff=
16837     ;;
16838   *)
16839     case $LD in # libtool.m4 will add one of these switches to LD
16840     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16841       libsuff= shlibsuff= libmagic=32-bit;;
16842     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16843       libsuff=32 shlibsuff=N32 libmagic=N32;;
16844     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16845       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16846     *) libsuff= shlibsuff= libmagic=never-match;;
16847     esac
16848     ;;
16849   esac
16850   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16851   shlibpath_overrides_runpath=no
16852   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16853   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16854   hardcode_into_libs=yes
16855   ;;
16856
16857 # No shared lib support for Linux oldld, aout, or coff.
16858 linux*oldld* | linux*aout* | linux*coff*)
16859   dynamic_linker=no
16860   ;;
16861
16862 # This must be glibc/ELF.
16863 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16864   version_type=linux # correct to gnu/linux during the next big refactor
16865   need_lib_prefix=no
16866   need_version=no
16867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868   soname_spec='${libname}${release}${shared_ext}$major'
16869   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16870   shlibpath_var=LD_LIBRARY_PATH
16871   shlibpath_overrides_runpath=no
16872
16873   # Some binutils ld are patched to set DT_RUNPATH
16874   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16875   $as_echo_n "(cached) " >&6
16876 else
16877   lt_cv_shlibpath_overrides_runpath=no
16878     save_LDFLAGS=$LDFLAGS
16879     save_libdir=$libdir
16880     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16881          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16882     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883 /* end confdefs.h.  */
16884
16885 int
16886 main ()
16887 {
16888
16889   ;
16890   return 0;
16891 }
16892 _ACEOF
16893 if ac_fn_c_try_link "$LINENO"; then :
16894   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16895   lt_cv_shlibpath_overrides_runpath=yes
16896 fi
16897 fi
16898 rm -f core conftest.err conftest.$ac_objext \
16899     conftest$ac_exeext conftest.$ac_ext
16900     LDFLAGS=$save_LDFLAGS
16901     libdir=$save_libdir
16902
16903 fi
16904
16905   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16906
16907   # This implies no fast_install, which is unacceptable.
16908   # Some rework will be needed to allow for fast_install
16909   # before this can be enabled.
16910   hardcode_into_libs=yes
16911
16912   # Append ld.so.conf contents to the search path
16913   if test -f /etc/ld.so.conf; then
16914     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' ' '`
16915     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16916   fi
16917
16918   # We used to test for /lib/ld.so.1 and disable shared libraries on
16919   # powerpc, because MkLinux only supported shared libraries with the
16920   # GNU dynamic linker.  Since this was broken with cross compilers,
16921   # most powerpc-linux boxes support dynamic linking these days and
16922   # people can always --disable-shared, the test was removed, and we
16923   # assume the GNU/Linux dynamic linker is in use.
16924   dynamic_linker='GNU/Linux ld.so'
16925   ;;
16926
16927 netbsdelf*-gnu)
16928   version_type=linux
16929   need_lib_prefix=no
16930   need_version=no
16931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16932   soname_spec='${libname}${release}${shared_ext}$major'
16933   shlibpath_var=LD_LIBRARY_PATH
16934   shlibpath_overrides_runpath=no
16935   hardcode_into_libs=yes
16936   dynamic_linker='NetBSD ld.elf_so'
16937   ;;
16938
16939 netbsd*)
16940   version_type=sunos
16941   need_lib_prefix=no
16942   need_version=no
16943   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16945     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16946     dynamic_linker='NetBSD (a.out) ld.so'
16947   else
16948     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16949     soname_spec='${libname}${release}${shared_ext}$major'
16950     dynamic_linker='NetBSD ld.elf_so'
16951   fi
16952   shlibpath_var=LD_LIBRARY_PATH
16953   shlibpath_overrides_runpath=yes
16954   hardcode_into_libs=yes
16955   ;;
16956
16957 newsos6)
16958   version_type=linux # correct to gnu/linux during the next big refactor
16959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16960   shlibpath_var=LD_LIBRARY_PATH
16961   shlibpath_overrides_runpath=yes
16962   ;;
16963
16964 *nto* | *qnx*)
16965   version_type=qnx
16966   need_lib_prefix=no
16967   need_version=no
16968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16969   soname_spec='${libname}${release}${shared_ext}$major'
16970   shlibpath_var=LD_LIBRARY_PATH
16971   shlibpath_overrides_runpath=no
16972   hardcode_into_libs=yes
16973   dynamic_linker='ldqnx.so'
16974   ;;
16975
16976 openbsd*)
16977   version_type=sunos
16978   sys_lib_dlsearch_path_spec="/usr/lib"
16979   need_lib_prefix=no
16980   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16981   case $host_os in
16982     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16983     *)                          need_version=no  ;;
16984   esac
16985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16986   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16987   shlibpath_var=LD_LIBRARY_PATH
16988   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16989     case $host_os in
16990       openbsd2.[89] | openbsd2.[89].*)
16991         shlibpath_overrides_runpath=no
16992         ;;
16993       *)
16994         shlibpath_overrides_runpath=yes
16995         ;;
16996       esac
16997   else
16998     shlibpath_overrides_runpath=yes
16999   fi
17000   ;;
17001
17002 os2*)
17003   libname_spec='$name'
17004   shrext_cmds=".dll"
17005   need_lib_prefix=no
17006   library_names_spec='$libname${shared_ext} $libname.a'
17007   dynamic_linker='OS/2 ld.exe'
17008   shlibpath_var=LIBPATH
17009   ;;
17010
17011 osf3* | osf4* | osf5*)
17012   version_type=osf
17013   need_lib_prefix=no
17014   need_version=no
17015   soname_spec='${libname}${release}${shared_ext}$major'
17016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17017   shlibpath_var=LD_LIBRARY_PATH
17018   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17019   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17020   ;;
17021
17022 rdos*)
17023   dynamic_linker=no
17024   ;;
17025
17026 solaris*)
17027   version_type=linux # correct to gnu/linux during the next big refactor
17028   need_lib_prefix=no
17029   need_version=no
17030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17031   soname_spec='${libname}${release}${shared_ext}$major'
17032   shlibpath_var=LD_LIBRARY_PATH
17033   shlibpath_overrides_runpath=yes
17034   hardcode_into_libs=yes
17035   # ldd complains unless libraries are executable
17036   postinstall_cmds='chmod +x $lib'
17037   ;;
17038
17039 sunos4*)
17040   version_type=sunos
17041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17042   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17043   shlibpath_var=LD_LIBRARY_PATH
17044   shlibpath_overrides_runpath=yes
17045   if test "$with_gnu_ld" = yes; then
17046     need_lib_prefix=no
17047   fi
17048   need_version=yes
17049   ;;
17050
17051 sysv4 | sysv4.3*)
17052   version_type=linux # correct to gnu/linux during the next big refactor
17053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17054   soname_spec='${libname}${release}${shared_ext}$major'
17055   shlibpath_var=LD_LIBRARY_PATH
17056   case $host_vendor in
17057     sni)
17058       shlibpath_overrides_runpath=no
17059       need_lib_prefix=no
17060       runpath_var=LD_RUN_PATH
17061       ;;
17062     siemens)
17063       need_lib_prefix=no
17064       ;;
17065     motorola)
17066       need_lib_prefix=no
17067       need_version=no
17068       shlibpath_overrides_runpath=no
17069       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17070       ;;
17071   esac
17072   ;;
17073
17074 sysv4*MP*)
17075   if test -d /usr/nec ;then
17076     version_type=linux # correct to gnu/linux during the next big refactor
17077     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17078     soname_spec='$libname${shared_ext}.$major'
17079     shlibpath_var=LD_LIBRARY_PATH
17080   fi
17081   ;;
17082
17083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17084   version_type=freebsd-elf
17085   need_lib_prefix=no
17086   need_version=no
17087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17088   soname_spec='${libname}${release}${shared_ext}$major'
17089   shlibpath_var=LD_LIBRARY_PATH
17090   shlibpath_overrides_runpath=yes
17091   hardcode_into_libs=yes
17092   if test "$with_gnu_ld" = yes; then
17093     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17094   else
17095     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17096     case $host_os in
17097       sco3.2v5*)
17098         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17099         ;;
17100     esac
17101   fi
17102   sys_lib_dlsearch_path_spec='/usr/lib'
17103   ;;
17104
17105 tpf*)
17106   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17107   version_type=linux # correct to gnu/linux during the next big refactor
17108   need_lib_prefix=no
17109   need_version=no
17110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17111   shlibpath_var=LD_LIBRARY_PATH
17112   shlibpath_overrides_runpath=no
17113   hardcode_into_libs=yes
17114   ;;
17115
17116 uts4*)
17117   version_type=linux # correct to gnu/linux during the next big refactor
17118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119   soname_spec='${libname}${release}${shared_ext}$major'
17120   shlibpath_var=LD_LIBRARY_PATH
17121   ;;
17122
17123 *)
17124   dynamic_linker=no
17125   ;;
17126 esac
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17128 $as_echo "$dynamic_linker" >&6; }
17129 test "$dynamic_linker" = no && can_build_shared=no
17130
17131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17132 if test "$GCC" = yes; then
17133   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17134 fi
17135
17136 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17137   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17138 fi
17139 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17140   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17141 fi
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
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17235 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17236 hardcode_action=
17237 if test -n "$hardcode_libdir_flag_spec" ||
17238    test -n "$runpath_var" ||
17239    test "X$hardcode_automatic" = "Xyes" ; then
17240
17241   # We can hardcode non-existent directories.
17242   if test "$hardcode_direct" != no &&
17243      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17244      # have to relink, otherwise we might link with an installed library
17245      # when we should be linking with a yet-to-be-installed one
17246      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17247      test "$hardcode_minus_L" != no; then
17248     # Linking always hardcodes the temporary library directory.
17249     hardcode_action=relink
17250   else
17251     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17252     hardcode_action=immediate
17253   fi
17254 else
17255   # We cannot hardcode anything, or else we can only hardcode existing
17256   # directories.
17257   hardcode_action=unsupported
17258 fi
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17260 $as_echo "$hardcode_action" >&6; }
17261
17262 if test "$hardcode_action" = relink ||
17263    test "$inherit_rpath" = yes; then
17264   # Fast installation is not supported
17265   enable_fast_install=no
17266 elif test "$shlibpath_overrides_runpath" = yes ||
17267      test "$enable_shared" = no; then
17268   # Fast installation is not necessary
17269   enable_fast_install=needless
17270 fi
17271
17272
17273
17274
17275
17276
17277   if test "x$enable_dlopen" != xyes; then
17278   enable_dlopen=unknown
17279   enable_dlopen_self=unknown
17280   enable_dlopen_self_static=unknown
17281 else
17282   lt_cv_dlopen=no
17283   lt_cv_dlopen_libs=
17284
17285   case $host_os in
17286   beos*)
17287     lt_cv_dlopen="load_add_on"
17288     lt_cv_dlopen_libs=
17289     lt_cv_dlopen_self=yes
17290     ;;
17291
17292   mingw* | pw32* | cegcc*)
17293     lt_cv_dlopen="LoadLibrary"
17294     lt_cv_dlopen_libs=
17295     ;;
17296
17297   cygwin*)
17298     lt_cv_dlopen="dlopen"
17299     lt_cv_dlopen_libs=
17300     ;;
17301
17302   darwin*)
17303   # if libdl is installed we need to link against it
17304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17306 if ${ac_cv_lib_dl_dlopen+:} false; then :
17307   $as_echo_n "(cached) " >&6
17308 else
17309   ac_check_lib_save_LIBS=$LIBS
17310 LIBS="-ldl  $LIBS"
17311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312 /* end confdefs.h.  */
17313
17314 /* Override any GCC internal prototype to avoid an error.
17315    Use char because int might match the return type of a GCC
17316    builtin and then its argument prototype would still apply.  */
17317 #ifdef __cplusplus
17318 extern "C"
17319 #endif
17320 char dlopen ();
17321 int
17322 main ()
17323 {
17324 return dlopen ();
17325   ;
17326   return 0;
17327 }
17328 _ACEOF
17329 if ac_fn_c_try_link "$LINENO"; then :
17330   ac_cv_lib_dl_dlopen=yes
17331 else
17332   ac_cv_lib_dl_dlopen=no
17333 fi
17334 rm -f core conftest.err conftest.$ac_objext \
17335     conftest$ac_exeext conftest.$ac_ext
17336 LIBS=$ac_check_lib_save_LIBS
17337 fi
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17339 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17340 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17341   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17342 else
17343
17344     lt_cv_dlopen="dyld"
17345     lt_cv_dlopen_libs=
17346     lt_cv_dlopen_self=yes
17347
17348 fi
17349
17350     ;;
17351
17352   *)
17353     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17354 if test "x$ac_cv_func_shl_load" = xyes; then :
17355   lt_cv_dlopen="shl_load"
17356 else
17357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17358 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17359 if ${ac_cv_lib_dld_shl_load+:} false; then :
17360   $as_echo_n "(cached) " >&6
17361 else
17362   ac_check_lib_save_LIBS=$LIBS
17363 LIBS="-ldld  $LIBS"
17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h.  */
17366
17367 /* Override any GCC internal prototype to avoid an error.
17368    Use char because int might match the return type of a GCC
17369    builtin and then its argument prototype would still apply.  */
17370 #ifdef __cplusplus
17371 extern "C"
17372 #endif
17373 char shl_load ();
17374 int
17375 main ()
17376 {
17377 return shl_load ();
17378   ;
17379   return 0;
17380 }
17381 _ACEOF
17382 if ac_fn_c_try_link "$LINENO"; then :
17383   ac_cv_lib_dld_shl_load=yes
17384 else
17385   ac_cv_lib_dld_shl_load=no
17386 fi
17387 rm -f core conftest.err conftest.$ac_objext \
17388     conftest$ac_exeext conftest.$ac_ext
17389 LIBS=$ac_check_lib_save_LIBS
17390 fi
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17392 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17393 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17394   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17395 else
17396   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17397 if test "x$ac_cv_func_dlopen" = xyes; then :
17398   lt_cv_dlopen="dlopen"
17399 else
17400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17401 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17402 if ${ac_cv_lib_dl_dlopen+:} false; then :
17403   $as_echo_n "(cached) " >&6
17404 else
17405   ac_check_lib_save_LIBS=$LIBS
17406 LIBS="-ldl  $LIBS"
17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h.  */
17409
17410 /* Override any GCC internal prototype to avoid an error.
17411    Use char because int might match the return type of a GCC
17412    builtin and then its argument prototype would still apply.  */
17413 #ifdef __cplusplus
17414 extern "C"
17415 #endif
17416 char dlopen ();
17417 int
17418 main ()
17419 {
17420 return dlopen ();
17421   ;
17422   return 0;
17423 }
17424 _ACEOF
17425 if ac_fn_c_try_link "$LINENO"; then :
17426   ac_cv_lib_dl_dlopen=yes
17427 else
17428   ac_cv_lib_dl_dlopen=no
17429 fi
17430 rm -f core conftest.err conftest.$ac_objext \
17431     conftest$ac_exeext conftest.$ac_ext
17432 LIBS=$ac_check_lib_save_LIBS
17433 fi
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17435 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17436 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17437   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17438 else
17439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17440 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17441 if ${ac_cv_lib_svld_dlopen+:} false; then :
17442   $as_echo_n "(cached) " >&6
17443 else
17444   ac_check_lib_save_LIBS=$LIBS
17445 LIBS="-lsvld  $LIBS"
17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447 /* end confdefs.h.  */
17448
17449 /* Override any GCC internal prototype to avoid an error.
17450    Use char because int might match the return type of a GCC
17451    builtin and then its argument prototype would still apply.  */
17452 #ifdef __cplusplus
17453 extern "C"
17454 #endif
17455 char dlopen ();
17456 int
17457 main ()
17458 {
17459 return dlopen ();
17460   ;
17461   return 0;
17462 }
17463 _ACEOF
17464 if ac_fn_c_try_link "$LINENO"; then :
17465   ac_cv_lib_svld_dlopen=yes
17466 else
17467   ac_cv_lib_svld_dlopen=no
17468 fi
17469 rm -f core conftest.err conftest.$ac_objext \
17470     conftest$ac_exeext conftest.$ac_ext
17471 LIBS=$ac_check_lib_save_LIBS
17472 fi
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17474 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17475 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17476   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17477 else
17478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17479 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17480 if ${ac_cv_lib_dld_dld_link+:} false; then :
17481   $as_echo_n "(cached) " >&6
17482 else
17483   ac_check_lib_save_LIBS=$LIBS
17484 LIBS="-ldld  $LIBS"
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h.  */
17487
17488 /* Override any GCC internal prototype to avoid an error.
17489    Use char because int might match the return type of a GCC
17490    builtin and then its argument prototype would still apply.  */
17491 #ifdef __cplusplus
17492 extern "C"
17493 #endif
17494 char dld_link ();
17495 int
17496 main ()
17497 {
17498 return dld_link ();
17499   ;
17500   return 0;
17501 }
17502 _ACEOF
17503 if ac_fn_c_try_link "$LINENO"; then :
17504   ac_cv_lib_dld_dld_link=yes
17505 else
17506   ac_cv_lib_dld_dld_link=no
17507 fi
17508 rm -f core conftest.err conftest.$ac_objext \
17509     conftest$ac_exeext conftest.$ac_ext
17510 LIBS=$ac_check_lib_save_LIBS
17511 fi
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17513 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17514 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17515   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17516 fi
17517
17518
17519 fi
17520
17521
17522 fi
17523
17524
17525 fi
17526
17527
17528 fi
17529
17530
17531 fi
17532
17533     ;;
17534   esac
17535
17536   if test "x$lt_cv_dlopen" != xno; then
17537     enable_dlopen=yes
17538   else
17539     enable_dlopen=no
17540   fi
17541
17542   case $lt_cv_dlopen in
17543   dlopen)
17544     save_CPPFLAGS="$CPPFLAGS"
17545     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17546
17547     save_LDFLAGS="$LDFLAGS"
17548     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17549
17550     save_LIBS="$LIBS"
17551     LIBS="$lt_cv_dlopen_libs $LIBS"
17552
17553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17554 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17555 if ${lt_cv_dlopen_self+:} false; then :
17556   $as_echo_n "(cached) " >&6
17557 else
17558           if test "$cross_compiling" = yes; then :
17559   lt_cv_dlopen_self=cross
17560 else
17561   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17562   lt_status=$lt_dlunknown
17563   cat > conftest.$ac_ext <<_LT_EOF
17564 #line $LINENO "configure"
17565 #include "confdefs.h"
17566
17567 #if HAVE_DLFCN_H
17568 #include <dlfcn.h>
17569 #endif
17570
17571 #include <stdio.h>
17572
17573 #ifdef RTLD_GLOBAL
17574 #  define LT_DLGLOBAL           RTLD_GLOBAL
17575 #else
17576 #  ifdef DL_GLOBAL
17577 #    define LT_DLGLOBAL         DL_GLOBAL
17578 #  else
17579 #    define LT_DLGLOBAL         0
17580 #  endif
17581 #endif
17582
17583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17584    find out it does not work in some platform. */
17585 #ifndef LT_DLLAZY_OR_NOW
17586 #  ifdef RTLD_LAZY
17587 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17588 #  else
17589 #    ifdef DL_LAZY
17590 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17591 #    else
17592 #      ifdef RTLD_NOW
17593 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17594 #      else
17595 #        ifdef DL_NOW
17596 #          define LT_DLLAZY_OR_NOW      DL_NOW
17597 #        else
17598 #          define LT_DLLAZY_OR_NOW      0
17599 #        endif
17600 #      endif
17601 #    endif
17602 #  endif
17603 #endif
17604
17605 /* When -fvisbility=hidden is used, assume the code has been annotated
17606    correspondingly for the symbols needed.  */
17607 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17608 int fnord () __attribute__((visibility("default")));
17609 #endif
17610
17611 int fnord () { return 42; }
17612 int main ()
17613 {
17614   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17615   int status = $lt_dlunknown;
17616
17617   if (self)
17618     {
17619       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17620       else
17621         {
17622           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17623           else puts (dlerror ());
17624         }
17625       /* dlclose (self); */
17626     }
17627   else
17628     puts (dlerror ());
17629
17630   return status;
17631 }
17632 _LT_EOF
17633   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17634   (eval $ac_link) 2>&5
17635   ac_status=$?
17636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17637   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17638     (./conftest; exit; ) >&5 2>/dev/null
17639     lt_status=$?
17640     case x$lt_status in
17641       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17642       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17643       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17644     esac
17645   else :
17646     # compilation failed
17647     lt_cv_dlopen_self=no
17648   fi
17649 fi
17650 rm -fr conftest*
17651
17652
17653 fi
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17655 $as_echo "$lt_cv_dlopen_self" >&6; }
17656
17657     if test "x$lt_cv_dlopen_self" = xyes; then
17658       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17659       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17660 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17661 if ${lt_cv_dlopen_self_static+:} false; then :
17662   $as_echo_n "(cached) " >&6
17663 else
17664           if test "$cross_compiling" = yes; then :
17665   lt_cv_dlopen_self_static=cross
17666 else
17667   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17668   lt_status=$lt_dlunknown
17669   cat > conftest.$ac_ext <<_LT_EOF
17670 #line $LINENO "configure"
17671 #include "confdefs.h"
17672
17673 #if HAVE_DLFCN_H
17674 #include <dlfcn.h>
17675 #endif
17676
17677 #include <stdio.h>
17678
17679 #ifdef RTLD_GLOBAL
17680 #  define LT_DLGLOBAL           RTLD_GLOBAL
17681 #else
17682 #  ifdef DL_GLOBAL
17683 #    define LT_DLGLOBAL         DL_GLOBAL
17684 #  else
17685 #    define LT_DLGLOBAL         0
17686 #  endif
17687 #endif
17688
17689 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17690    find out it does not work in some platform. */
17691 #ifndef LT_DLLAZY_OR_NOW
17692 #  ifdef RTLD_LAZY
17693 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17694 #  else
17695 #    ifdef DL_LAZY
17696 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17697 #    else
17698 #      ifdef RTLD_NOW
17699 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17700 #      else
17701 #        ifdef DL_NOW
17702 #          define LT_DLLAZY_OR_NOW      DL_NOW
17703 #        else
17704 #          define LT_DLLAZY_OR_NOW      0
17705 #        endif
17706 #      endif
17707 #    endif
17708 #  endif
17709 #endif
17710
17711 /* When -fvisbility=hidden is used, assume the code has been annotated
17712    correspondingly for the symbols needed.  */
17713 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17714 int fnord () __attribute__((visibility("default")));
17715 #endif
17716
17717 int fnord () { return 42; }
17718 int main ()
17719 {
17720   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17721   int status = $lt_dlunknown;
17722
17723   if (self)
17724     {
17725       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17726       else
17727         {
17728           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17729           else puts (dlerror ());
17730         }
17731       /* dlclose (self); */
17732     }
17733   else
17734     puts (dlerror ());
17735
17736   return status;
17737 }
17738 _LT_EOF
17739   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17740   (eval $ac_link) 2>&5
17741   ac_status=$?
17742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17743   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17744     (./conftest; exit; ) >&5 2>/dev/null
17745     lt_status=$?
17746     case x$lt_status in
17747       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17748       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17749       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17750     esac
17751   else :
17752     # compilation failed
17753     lt_cv_dlopen_self_static=no
17754   fi
17755 fi
17756 rm -fr conftest*
17757
17758
17759 fi
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17761 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17762     fi
17763
17764     CPPFLAGS="$save_CPPFLAGS"
17765     LDFLAGS="$save_LDFLAGS"
17766     LIBS="$save_LIBS"
17767     ;;
17768   esac
17769
17770   case $lt_cv_dlopen_self in
17771   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17772   *) enable_dlopen_self=unknown ;;
17773   esac
17774
17775   case $lt_cv_dlopen_self_static in
17776   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17777   *) enable_dlopen_self_static=unknown ;;
17778   esac
17779 fi
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797 striplib=
17798 old_striplib=
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17800 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17801 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17802   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17803   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17805 $as_echo "yes" >&6; }
17806 else
17807 # FIXME - insert some real tests, host_os isn't really good enough
17808   case $host_os in
17809   darwin*)
17810     if test -n "$STRIP" ; then
17811       striplib="$STRIP -x"
17812       old_striplib="$STRIP -S"
17813       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17814 $as_echo "yes" >&6; }
17815     else
17816       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17817 $as_echo "no" >&6; }
17818     fi
17819     ;;
17820   *)
17821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17822 $as_echo "no" >&6; }
17823     ;;
17824   esac
17825 fi
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838   # Report which library types will actually be built
17839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17840 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17842 $as_echo "$can_build_shared" >&6; }
17843
17844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17845 $as_echo_n "checking whether to build shared libraries... " >&6; }
17846   test "$can_build_shared" = "no" && enable_shared=no
17847
17848   # On AIX, shared libraries and static libraries use the same namespace, and
17849   # are all built from PIC.
17850   case $host_os in
17851   aix3*)
17852     test "$enable_shared" = yes && enable_static=no
17853     if test -n "$RANLIB"; then
17854       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17855       postinstall_cmds='$RANLIB $lib'
17856     fi
17857     ;;
17858
17859   aix[4-9]*)
17860     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17861       test "$enable_shared" = yes && enable_static=no
17862     fi
17863     ;;
17864   esac
17865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17866 $as_echo "$enable_shared" >&6; }
17867
17868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17869 $as_echo_n "checking whether to build static libraries... " >&6; }
17870   # Make sure either enable_shared or enable_static is yes.
17871   test "$enable_shared" = yes || enable_static=yes
17872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17873 $as_echo "$enable_static" >&6; }
17874
17875
17876
17877
17878 fi
17879 ac_ext=c
17880 ac_cpp='$CPP $CPPFLAGS'
17881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17884
17885 CC="$lt_save_CC"
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901         ac_config_commands="$ac_config_commands libtool"
17902
17903
17904
17905
17906 # Only expand once:
17907
17908
17909 # Check whether --enable-largefile was given.
17910 if test "${enable_largefile+set}" = set; then :
17911   enableval=$enable_largefile;
17912 fi
17913
17914 if test "$enable_largefile" != no; then
17915
17916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17917 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17918 if ${ac_cv_sys_largefile_CC+:} false; then :
17919   $as_echo_n "(cached) " >&6
17920 else
17921   ac_cv_sys_largefile_CC=no
17922      if test "$GCC" != yes; then
17923        ac_save_CC=$CC
17924        while :; do
17925          # IRIX 6.2 and later do not support large files by default,
17926          # so use the C compiler's -n32 option if that helps.
17927          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h.  */
17929 #include <sys/types.h>
17930  /* Check that off_t can represent 2**63 - 1 correctly.
17931     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17932     since some C++ compilers masquerading as C compilers
17933     incorrectly reject 9223372036854775807.  */
17934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17935   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17936                        && LARGE_OFF_T % 2147483647 == 1)
17937                       ? 1 : -1];
17938 int
17939 main ()
17940 {
17941
17942   ;
17943   return 0;
17944 }
17945 _ACEOF
17946          if ac_fn_c_try_compile "$LINENO"; then :
17947   break
17948 fi
17949 rm -f core conftest.err conftest.$ac_objext
17950          CC="$CC -n32"
17951          if ac_fn_c_try_compile "$LINENO"; then :
17952   ac_cv_sys_largefile_CC=' -n32'; break
17953 fi
17954 rm -f core conftest.err conftest.$ac_objext
17955          break
17956        done
17957        CC=$ac_save_CC
17958        rm -f conftest.$ac_ext
17959     fi
17960 fi
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17962 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17963   if test "$ac_cv_sys_largefile_CC" != no; then
17964     CC=$CC$ac_cv_sys_largefile_CC
17965   fi
17966
17967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17968 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17969 if ${ac_cv_sys_file_offset_bits+:} false; then :
17970   $as_echo_n "(cached) " >&6
17971 else
17972   while :; do
17973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17974 /* end confdefs.h.  */
17975 #include <sys/types.h>
17976  /* Check that off_t can represent 2**63 - 1 correctly.
17977     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17978     since some C++ compilers masquerading as C compilers
17979     incorrectly reject 9223372036854775807.  */
17980 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17981   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17982                        && LARGE_OFF_T % 2147483647 == 1)
17983                       ? 1 : -1];
17984 int
17985 main ()
17986 {
17987
17988   ;
17989   return 0;
17990 }
17991 _ACEOF
17992 if ac_fn_c_try_compile "$LINENO"; then :
17993   ac_cv_sys_file_offset_bits=no; break
17994 fi
17995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997 /* end confdefs.h.  */
17998 #define _FILE_OFFSET_BITS 64
17999 #include <sys/types.h>
18000  /* Check that off_t can represent 2**63 - 1 correctly.
18001     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18002     since some C++ compilers masquerading as C compilers
18003     incorrectly reject 9223372036854775807.  */
18004 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18005   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18006                        && LARGE_OFF_T % 2147483647 == 1)
18007                       ? 1 : -1];
18008 int
18009 main ()
18010 {
18011
18012   ;
18013   return 0;
18014 }
18015 _ACEOF
18016 if ac_fn_c_try_compile "$LINENO"; then :
18017   ac_cv_sys_file_offset_bits=64; break
18018 fi
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020   ac_cv_sys_file_offset_bits=unknown
18021   break
18022 done
18023 fi
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18025 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18026 case $ac_cv_sys_file_offset_bits in #(
18027   no | unknown) ;;
18028   *)
18029 cat >>confdefs.h <<_ACEOF
18030 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18031 _ACEOF
18032 ;;
18033 esac
18034 rm -rf conftest*
18035   if test $ac_cv_sys_file_offset_bits = unknown; then
18036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18037 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18038 if ${ac_cv_sys_large_files+:} false; then :
18039   $as_echo_n "(cached) " >&6
18040 else
18041   while :; do
18042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18043 /* end confdefs.h.  */
18044 #include <sys/types.h>
18045  /* Check that off_t can represent 2**63 - 1 correctly.
18046     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18047     since some C++ compilers masquerading as C compilers
18048     incorrectly reject 9223372036854775807.  */
18049 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18050   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18051                        && LARGE_OFF_T % 2147483647 == 1)
18052                       ? 1 : -1];
18053 int
18054 main ()
18055 {
18056
18057   ;
18058   return 0;
18059 }
18060 _ACEOF
18061 if ac_fn_c_try_compile "$LINENO"; then :
18062   ac_cv_sys_large_files=no; break
18063 fi
18064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h.  */
18067 #define _LARGE_FILES 1
18068 #include <sys/types.h>
18069  /* Check that off_t can represent 2**63 - 1 correctly.
18070     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18071     since some C++ compilers masquerading as C compilers
18072     incorrectly reject 9223372036854775807.  */
18073 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18074   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18075                        && LARGE_OFF_T % 2147483647 == 1)
18076                       ? 1 : -1];
18077 int
18078 main ()
18079 {
18080
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 if ac_fn_c_try_compile "$LINENO"; then :
18086   ac_cv_sys_large_files=1; break
18087 fi
18088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18089   ac_cv_sys_large_files=unknown
18090   break
18091 done
18092 fi
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18094 $as_echo "$ac_cv_sys_large_files" >&6; }
18095 case $ac_cv_sys_large_files in #(
18096   no | unknown) ;;
18097   *)
18098 cat >>confdefs.h <<_ACEOF
18099 #define _LARGE_FILES $ac_cv_sys_large_files
18100 _ACEOF
18101 ;;
18102 esac
18103 rm -rf conftest*
18104   fi
18105
18106
18107 fi
18108
18109
18110 # Are we in a git checkout?
18111 dot_git=no
18112 if test -e .git; then
18113
18114 $as_echo "#define HAVE_DOT_GIT 1" >>confdefs.h
18115
18116         dot_git=yes
18117 fi
18118  if test x$dot_git = xyes; then
18119   HAVE_DOT_GIT_TRUE=
18120   HAVE_DOT_GIT_FALSE='#'
18121 else
18122   HAVE_DOT_GIT_TRUE='#'
18123   HAVE_DOT_GIT_FALSE=
18124 fi
18125
18126
18127 # If so, we include the git description in our logs for sanity checking.
18128 #
18129 # However, for people not running their own drivers this is just noise.
18130 # So we copy the xserver's builderstring idiom to allow for this to be
18131 # overridden and perhaps replaced with something more useful.
18132
18133 # Check whether --with-builderstring was given.
18134 if test "${with_builderstring+set}" = set; then :
18135   withval=$with_builderstring; BUILDERSTRING="$withval"
18136 else
18137   BUILDERSTRING="x-magic-git-describe"
18138 fi
18139
18140
18141 if test "x$BUILDERSTRING" = xx-magic-git-describe -a x$dot_git = xyes; then
18142
18143 $as_echo "#define USE_GIT_DESCRIBE 1" >>confdefs.h
18144
18145 else
18146   if test "x$BUILDERSTRING" != x -a "x$BUILDERSTRING" != xno -a "x$BUILDERSTRING" != xx-magic-git-describe; then
18147
18148 cat >>confdefs.h <<_ACEOF
18149 #define BUILDER_DESCRIPTION "$BUILDERSTRING"
18150 _ACEOF
18151
18152   fi
18153 fi
18154
18155
18156
18157 pkg_failed=no
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEN4ASM" >&5
18159 $as_echo_n "checking for GEN4ASM... " >&6; }
18160
18161 if test -n "$GEN4ASM_CFLAGS"; then
18162     pkg_cv_GEN4ASM_CFLAGS="$GEN4ASM_CFLAGS"
18163  elif test -n "$PKG_CONFIG"; then
18164     if test -n "$PKG_CONFIG" && \
18165     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5
18166   ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5
18167   ac_status=$?
18168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18169   test $ac_status = 0; }; then
18170   pkg_cv_GEN4ASM_CFLAGS=`$PKG_CONFIG --cflags "intel-gen4asm >= 1.2" 2>/dev/null`
18171                       test "x$?" != "x0" && pkg_failed=yes
18172 else
18173   pkg_failed=yes
18174 fi
18175  else
18176     pkg_failed=untried
18177 fi
18178 if test -n "$GEN4ASM_LIBS"; then
18179     pkg_cv_GEN4ASM_LIBS="$GEN4ASM_LIBS"
18180  elif test -n "$PKG_CONFIG"; then
18181     if test -n "$PKG_CONFIG" && \
18182     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5
18183   ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5
18184   ac_status=$?
18185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18186   test $ac_status = 0; }; then
18187   pkg_cv_GEN4ASM_LIBS=`$PKG_CONFIG --libs "intel-gen4asm >= 1.2" 2>/dev/null`
18188                       test "x$?" != "x0" && pkg_failed=yes
18189 else
18190   pkg_failed=yes
18191 fi
18192  else
18193     pkg_failed=untried
18194 fi
18195
18196
18197
18198 if test $pkg_failed = yes; then
18199         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18200 $as_echo "no" >&6; }
18201
18202 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18203         _pkg_short_errors_supported=yes
18204 else
18205         _pkg_short_errors_supported=no
18206 fi
18207         if test $_pkg_short_errors_supported = yes; then
18208                 GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1`
18209         else
18210                 GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1`
18211         fi
18212         # Put the nasty error message in config.log where it belongs
18213         echo "$GEN4ASM_PKG_ERRORS" >&5
18214
18215         gen4asm=no
18216 elif test $pkg_failed = untried; then
18217         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18218 $as_echo "no" >&6; }
18219         gen4asm=no
18220 else
18221         GEN4ASM_CFLAGS=$pkg_cv_GEN4ASM_CFLAGS
18222         GEN4ASM_LIBS=$pkg_cv_GEN4ASM_LIBS
18223         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18224 $as_echo "yes" >&6; }
18225         gen4asm=yes
18226 fi
18227  if test x$gen4asm = xyes; then
18228   HAVE_GEN4ASM_TRUE=
18229   HAVE_GEN4ASM_FALSE='#'
18230 else
18231   HAVE_GEN4ASM_TRUE='#'
18232   HAVE_GEN4ASM_FALSE=
18233 fi
18234
18235
18236 # Check whether --enable-udev was given.
18237 if test "${enable_udev+set}" = set; then :
18238   enableval=$enable_udev; UDEV="$enableval"
18239 else
18240   UDEV=auto
18241 fi
18242
18243
18244 if test x$UDEV != "xno"; then
18245
18246 pkg_failed=no
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
18248 $as_echo_n "checking for UDEV... " >&6; }
18249
18250 if test -n "$UDEV_CFLAGS"; then
18251     pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
18252  elif test -n "$PKG_CONFIG"; then
18253     if test -n "$PKG_CONFIG" && \
18254     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
18255   ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
18256   ac_status=$?
18257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18258   test $ac_status = 0; }; then
18259   pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
18260                       test "x$?" != "x0" && pkg_failed=yes
18261 else
18262   pkg_failed=yes
18263 fi
18264  else
18265     pkg_failed=untried
18266 fi
18267 if test -n "$UDEV_LIBS"; then
18268     pkg_cv_UDEV_LIBS="$UDEV_LIBS"
18269  elif test -n "$PKG_CONFIG"; then
18270     if test -n "$PKG_CONFIG" && \
18271     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
18272   ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
18273   ac_status=$?
18274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18275   test $ac_status = 0; }; then
18276   pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
18277                       test "x$?" != "x0" && pkg_failed=yes
18278 else
18279   pkg_failed=yes
18280 fi
18281  else
18282     pkg_failed=untried
18283 fi
18284
18285
18286
18287 if test $pkg_failed = yes; then
18288         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289 $as_echo "no" >&6; }
18290
18291 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18292         _pkg_short_errors_supported=yes
18293 else
18294         _pkg_short_errors_supported=no
18295 fi
18296         if test $_pkg_short_errors_supported = yes; then
18297                 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
18298         else
18299                 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
18300         fi
18301         # Put the nasty error message in config.log where it belongs
18302         echo "$UDEV_PKG_ERRORS" >&5
18303
18304         udev=no
18305 elif test $pkg_failed = untried; then
18306         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18307 $as_echo "no" >&6; }
18308         udev=no
18309 else
18310         UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
18311         UDEV_LIBS=$pkg_cv_UDEV_LIBS
18312         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18313 $as_echo "yes" >&6; }
18314         udev=yes
18315 fi
18316         if test x$UDEV == xyes -a x$udev != xyes; then
18317                 as_fn_error $? "udev support requested but not found (libudev)" "$LINENO" 5
18318         fi
18319         if test x$udev = xyes; then
18320
18321 $as_echo "#define HAVE_UDEV 1" >>confdefs.h
18322
18323         fi
18324 fi
18325
18326
18327 pkg_failed=no
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
18329 $as_echo_n "checking for X11... " >&6; }
18330
18331 if test -n "$X11_CFLAGS"; then
18332     pkg_cv_X11_CFLAGS="$X11_CFLAGS"
18333  elif test -n "$PKG_CONFIG"; then
18334     if test -n "$PKG_CONFIG" && \
18335     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xrender xext pixman-1\""; } >&5
18336   ($PKG_CONFIG --exists --print-errors "x11 xrender xext pixman-1") 2>&5
18337   ac_status=$?
18338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18339   test $ac_status = 0; }; then
18340   pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xrender xext pixman-1" 2>/dev/null`
18341                       test "x$?" != "x0" && pkg_failed=yes
18342 else
18343   pkg_failed=yes
18344 fi
18345  else
18346     pkg_failed=untried
18347 fi
18348 if test -n "$X11_LIBS"; then
18349     pkg_cv_X11_LIBS="$X11_LIBS"
18350  elif test -n "$PKG_CONFIG"; then
18351     if test -n "$PKG_CONFIG" && \
18352     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xrender xext pixman-1\""; } >&5
18353   ($PKG_CONFIG --exists --print-errors "x11 xrender xext pixman-1") 2>&5
18354   ac_status=$?
18355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18356   test $ac_status = 0; }; then
18357   pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xrender xext pixman-1" 2>/dev/null`
18358                       test "x$?" != "x0" && pkg_failed=yes
18359 else
18360   pkg_failed=yes
18361 fi
18362  else
18363     pkg_failed=untried
18364 fi
18365
18366
18367
18368 if test $pkg_failed = yes; then
18369         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18370 $as_echo "no" >&6; }
18371
18372 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18373         _pkg_short_errors_supported=yes
18374 else
18375         _pkg_short_errors_supported=no
18376 fi
18377         if test $_pkg_short_errors_supported = yes; then
18378                 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xrender xext pixman-1" 2>&1`
18379         else
18380                 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xrender xext pixman-1" 2>&1`
18381         fi
18382         # Put the nasty error message in config.log where it belongs
18383         echo "$X11_PKG_ERRORS" >&5
18384
18385         x11=no
18386 elif test $pkg_failed = untried; then
18387         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18388 $as_echo "no" >&6; }
18389         x11=no
18390 else
18391         X11_CFLAGS=$pkg_cv_X11_CFLAGS
18392         X11_LIBS=$pkg_cv_X11_LIBS
18393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18394 $as_echo "yes" >&6; }
18395         x11=yes
18396 fi
18397  if test x$x11 = xyes; then
18398   HAVE_X11_TRUE=
18399   HAVE_X11_FALSE='#'
18400 else
18401   HAVE_X11_TRUE='#'
18402   HAVE_X11_FALSE=
18403 fi
18404
18405
18406
18407
18408 # Define a configure option for an alternate module directory
18409
18410 # Check whether --with-xorg-module-dir was given.
18411 if test "${with_xorg_module_dir+set}" = set; then :
18412   withval=$with_xorg_module_dir; moduledir="$withval"
18413 else
18414   moduledir="$libdir/xorg/modules"
18415 fi
18416
18417
18418 # Check whether --enable-dri was given.
18419 if test "${enable_dri+set}" = set; then :
18420   enableval=$enable_dri;
18421 fi
18422
18423
18424 # Check whether --enable-xvmc was given.
18425 if test "${enable_xvmc+set}" = set; then :
18426   enableval=$enable_xvmc; XVMC="$enableval"
18427 else
18428   XVMC=yes
18429 fi
18430
18431
18432 # Check whether --enable-kms-only was given.
18433 if test "${enable_kms_only+set}" = set; then :
18434   enableval=$enable_kms_only; KMS_ONLY="$enableval"
18435 else
18436   KMS_ONLY=no
18437 fi
18438
18439 # Check whether --enable-ums-only was given.
18440 if test "${enable_ums_only+set}" = set; then :
18441   enableval=$enable_ums_only; UMS_ONLY="$enableval"
18442 else
18443   UMS_ONLY=no
18444 fi
18445
18446
18447 required_xorg_xserver_version=1.6
18448 required_pixman_version=0.24
18449
18450 if pkg-config --exists 'pixman-1 >= 0.27.1'; then
18451
18452 $as_echo "#define HAS_PIXMAN_GLYPHS 1" >>confdefs.h
18453
18454 fi
18455
18456 # Check whether --enable-sna was given.
18457 if test "${enable_sna+set}" = set; then :
18458   enableval=$enable_sna; SNA="$enableval"
18459 else
18460   SNA=auto
18461 fi
18462
18463
18464 for ac_header in sys/sysinfo.h
18465 do :
18466   ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
18467 if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
18468   cat >>confdefs.h <<_ACEOF
18469 #define HAVE_SYS_SYSINFO_H 1
18470 _ACEOF
18471
18472 else
18473   SNA=no
18474 fi
18475
18476 done
18477
18478 if test "x$SNA" = "xauto" && pkg-config --exists "xorg-server >= 1.10"; then
18479         SNA=yes
18480 fi
18481 if test "x$SNA" != "xno"; then
18482         required_xorg_xserver_version=1.10
18483
18484 $as_echo "#define USE_SNA 1" >>confdefs.h
18485
18486 fi
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include SNA support" >&5
18488 $as_echo_n "checking whether to include SNA support... " >&6; }
18489  if test x$SNA != xno; then
18490   SNA_TRUE=
18491   SNA_FALSE='#'
18492 else
18493   SNA_TRUE='#'
18494   SNA_FALSE=
18495 fi
18496
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNA" >&5
18498 $as_echo "$SNA" >&6; }
18499
18500 # Check whether --enable-uxa was given.
18501 if test "${enable_uxa+set}" = set; then :
18502   enableval=$enable_uxa; UXA="$enableval"
18503 else
18504   UXA=yes
18505 fi
18506
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include UXA support" >&5
18508 $as_echo_n "checking whether to include UXA support... " >&6; }
18509  if test x$UXA != xno; then
18510   UXA_TRUE=
18511   UXA_FALSE='#'
18512 else
18513   UXA_TRUE='#'
18514   UXA_FALSE=
18515 fi
18516
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UXA" >&5
18518 $as_echo "$UXA" >&6; }
18519 if test "x$UXA" != "xno"; then
18520
18521 $as_echo "#define USE_UXA 1" >>confdefs.h
18522
18523
18524 pkg_failed=no
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRMINTEL" >&5
18526 $as_echo_n "checking for DRMINTEL... " >&6; }
18527
18528 if test -n "$DRMINTEL_CFLAGS"; then
18529     pkg_cv_DRMINTEL_CFLAGS="$DRMINTEL_CFLAGS"
18530  elif test -n "$PKG_CONFIG"; then
18531     if test -n "$PKG_CONFIG" && \
18532     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= 2.4.29\""; } >&5
18533   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= 2.4.29") 2>&5
18534   ac_status=$?
18535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18536   test $ac_status = 0; }; then
18537   pkg_cv_DRMINTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= 2.4.29" 2>/dev/null`
18538                       test "x$?" != "x0" && pkg_failed=yes
18539 else
18540   pkg_failed=yes
18541 fi
18542  else
18543     pkg_failed=untried
18544 fi
18545 if test -n "$DRMINTEL_LIBS"; then
18546     pkg_cv_DRMINTEL_LIBS="$DRMINTEL_LIBS"
18547  elif test -n "$PKG_CONFIG"; then
18548     if test -n "$PKG_CONFIG" && \
18549     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= 2.4.29\""; } >&5
18550   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= 2.4.29") 2>&5
18551   ac_status=$?
18552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18553   test $ac_status = 0; }; then
18554   pkg_cv_DRMINTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= 2.4.29" 2>/dev/null`
18555                       test "x$?" != "x0" && pkg_failed=yes
18556 else
18557   pkg_failed=yes
18558 fi
18559  else
18560     pkg_failed=untried
18561 fi
18562
18563
18564
18565 if test $pkg_failed = yes; then
18566         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18567 $as_echo "no" >&6; }
18568
18569 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18570         _pkg_short_errors_supported=yes
18571 else
18572         _pkg_short_errors_supported=no
18573 fi
18574         if test $_pkg_short_errors_supported = yes; then
18575                 DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= 2.4.29" 2>&1`
18576         else
18577                 DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= 2.4.29" 2>&1`
18578         fi
18579         # Put the nasty error message in config.log where it belongs
18580         echo "$DRMINTEL_PKG_ERRORS" >&5
18581
18582         as_fn_error $? "Package requirements (libdrm_intel >= 2.4.29) were not met:
18583
18584 $DRMINTEL_PKG_ERRORS
18585
18586 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18587 installed software in a non-standard prefix.
18588
18589 Alternatively, you may set the environment variables DRMINTEL_CFLAGS
18590 and DRMINTEL_LIBS to avoid the need to call pkg-config.
18591 See the pkg-config man page for more details." "$LINENO" 5
18592 elif test $pkg_failed = untried; then
18593         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18594 $as_echo "no" >&6; }
18595         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18597 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18598 is in your PATH or set the PKG_CONFIG environment variable to the full
18599 path to pkg-config.
18600
18601 Alternatively, you may set the environment variables DRMINTEL_CFLAGS
18602 and DRMINTEL_LIBS to avoid the need to call pkg-config.
18603 See the pkg-config man page for more details.
18604
18605 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18606 See \`config.log' for more details" "$LINENO" 5; }
18607 else
18608         DRMINTEL_CFLAGS=$pkg_cv_DRMINTEL_CFLAGS
18609         DRMINTEL_LIBS=$pkg_cv_DRMINTEL_LIBS
18610         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18611 $as_echo "yes" >&6; }
18612
18613 fi
18614 fi
18615
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
18617 $as_echo_n "checking whether to include GLAMOR support... " >&6; }
18618 # Check whether --enable-glamor was given.
18619 if test "${enable_glamor+set}" = set; then :
18620   enableval=$enable_glamor; GLAMOR="$enableval"
18621 else
18622   GLAMOR=no
18623 fi
18624
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5
18626 $as_echo "$GLAMOR" >&6; }
18627  if test x$GLAMOR != xno; then
18628   GLAMOR_TRUE=
18629   GLAMOR_FALSE='#'
18630 else
18631   GLAMOR_TRUE='#'
18632   GLAMOR_FALSE=
18633 fi
18634
18635 if test "x$GLAMOR" != "xno"; then
18636
18637 pkg_failed=no
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5
18639 $as_echo_n "checking for LIBGLAMOR... " >&6; }
18640
18641 if test -n "$LIBGLAMOR_CFLAGS"; then
18642     pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS"
18643  elif test -n "$PKG_CONFIG"; then
18644     if test -n "$PKG_CONFIG" && \
18645     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.3.1\""; } >&5
18646   ($PKG_CONFIG --exists --print-errors "glamor >= 0.3.1") 2>&5
18647   ac_status=$?
18648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18649   test $ac_status = 0; }; then
18650   pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.3.1" 2>/dev/null`
18651                       test "x$?" != "x0" && pkg_failed=yes
18652 else
18653   pkg_failed=yes
18654 fi
18655  else
18656     pkg_failed=untried
18657 fi
18658 if test -n "$LIBGLAMOR_LIBS"; then
18659     pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS"
18660  elif test -n "$PKG_CONFIG"; then
18661     if test -n "$PKG_CONFIG" && \
18662     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.3.1\""; } >&5
18663   ($PKG_CONFIG --exists --print-errors "glamor >= 0.3.1") 2>&5
18664   ac_status=$?
18665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18666   test $ac_status = 0; }; then
18667   pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.3.1" 2>/dev/null`
18668                       test "x$?" != "x0" && pkg_failed=yes
18669 else
18670   pkg_failed=yes
18671 fi
18672  else
18673     pkg_failed=untried
18674 fi
18675
18676
18677
18678 if test $pkg_failed = yes; then
18679         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18680 $as_echo "no" >&6; }
18681
18682 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18683         _pkg_short_errors_supported=yes
18684 else
18685         _pkg_short_errors_supported=no
18686 fi
18687         if test $_pkg_short_errors_supported = yes; then
18688                 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.3.1" 2>&1`
18689         else
18690                 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.3.1" 2>&1`
18691         fi
18692         # Put the nasty error message in config.log where it belongs
18693         echo "$LIBGLAMOR_PKG_ERRORS" >&5
18694
18695         as_fn_error $? "Package requirements (glamor >= 0.3.1) were not met:
18696
18697 $LIBGLAMOR_PKG_ERRORS
18698
18699 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18700 installed software in a non-standard prefix.
18701
18702 Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
18703 and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
18704 See the pkg-config man page for more details." "$LINENO" 5
18705 elif test $pkg_failed = untried; then
18706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18707 $as_echo "no" >&6; }
18708         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18710 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18711 is in your PATH or set the PKG_CONFIG environment variable to the full
18712 path to pkg-config.
18713
18714 Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
18715 and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
18716 See the pkg-config man page for more details.
18717
18718 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18719 See \`config.log' for more details" "$LINENO" 5; }
18720 else
18721         LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS
18722         LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS
18723         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18724 $as_echo "yes" >&6; }
18725
18726 fi
18727
18728 pkg_failed=no
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5
18730 $as_echo_n "checking for LIBGLAMOR_EGL... " >&6; }
18731
18732 if test -n "$LIBGLAMOR_EGL_CFLAGS"; then
18733     pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS"
18734  elif test -n "$PKG_CONFIG"; then
18735     if test -n "$PKG_CONFIG" && \
18736     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
18737   ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
18738   ac_status=$?
18739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18740   test $ac_status = 0; }; then
18741   pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null`
18742                       test "x$?" != "x0" && pkg_failed=yes
18743 else
18744   pkg_failed=yes
18745 fi
18746  else
18747     pkg_failed=untried
18748 fi
18749 if test -n "$LIBGLAMOR_EGL_LIBS"; then
18750     pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS"
18751  elif test -n "$PKG_CONFIG"; then
18752     if test -n "$PKG_CONFIG" && \
18753     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
18754   ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
18755   ac_status=$?
18756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18757   test $ac_status = 0; }; then
18758   pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null`
18759                       test "x$?" != "x0" && pkg_failed=yes
18760 else
18761   pkg_failed=yes
18762 fi
18763  else
18764     pkg_failed=untried
18765 fi
18766
18767
18768
18769 if test $pkg_failed = yes; then
18770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18771 $as_echo "no" >&6; }
18772
18773 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18774         _pkg_short_errors_supported=yes
18775 else
18776         _pkg_short_errors_supported=no
18777 fi
18778         if test $_pkg_short_errors_supported = yes; then
18779                 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1`
18780         else
18781                 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1`
18782         fi
18783         # Put the nasty error message in config.log where it belongs
18784         echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5
18785
18786         as_fn_error $? "Package requirements (glamor-egl) were not met:
18787
18788 $LIBGLAMOR_EGL_PKG_ERRORS
18789
18790 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18791 installed software in a non-standard prefix.
18792
18793 Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
18794 and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
18795 See the pkg-config man page for more details." "$LINENO" 5
18796 elif test $pkg_failed = untried; then
18797         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18798 $as_echo "no" >&6; }
18799         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18801 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18802 is in your PATH or set the PKG_CONFIG environment variable to the full
18803 path to pkg-config.
18804
18805 Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
18806 and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
18807 See the pkg-config man page for more details.
18808
18809 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18810 See \`config.log' for more details" "$LINENO" 5; }
18811 else
18812         LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS
18813         LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS
18814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18815 $as_echo "yes" >&6; }
18816
18817 fi
18818
18819 $as_echo "#define USE_GLAMOR 1" >>confdefs.h
18820
18821 fi
18822
18823
18824
18825 pkg_failed=no
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18827 $as_echo_n "checking for XORG... " >&6; }
18828
18829 if test -n "$XORG_CFLAGS"; then
18830     pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18831  elif test -n "$PKG_CONFIG"; then
18832     if test -n "$PKG_CONFIG" && \
18833     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_xserver_version xproto fontsproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5
18834   ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5
18835   ac_status=$?
18836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18837   test $ac_status = 0; }; then
18838   pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null`
18839                       test "x$?" != "x0" && pkg_failed=yes
18840 else
18841   pkg_failed=yes
18842 fi
18843  else
18844     pkg_failed=untried
18845 fi
18846 if test -n "$XORG_LIBS"; then
18847     pkg_cv_XORG_LIBS="$XORG_LIBS"
18848  elif test -n "$PKG_CONFIG"; then
18849     if test -n "$PKG_CONFIG" && \
18850     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_xserver_version xproto fontsproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5
18851   ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5
18852   ac_status=$?
18853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18854   test $ac_status = 0; }; then
18855   pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null`
18856                       test "x$?" != "x0" && pkg_failed=yes
18857 else
18858   pkg_failed=yes
18859 fi
18860  else
18861     pkg_failed=untried
18862 fi
18863
18864
18865
18866 if test $pkg_failed = yes; then
18867         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18868 $as_echo "no" >&6; }
18869
18870 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18871         _pkg_short_errors_supported=yes
18872 else
18873         _pkg_short_errors_supported=no
18874 fi
18875         if test $_pkg_short_errors_supported = yes; then
18876                 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1`
18877         else
18878                 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1`
18879         fi
18880         # Put the nasty error message in config.log where it belongs
18881         echo "$XORG_PKG_ERRORS" >&5
18882
18883         as_fn_error $? "Package requirements (xorg-server >= $required_xorg_xserver_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES) were not met:
18884
18885 $XORG_PKG_ERRORS
18886
18887 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18888 installed software in a non-standard prefix.
18889
18890 Alternatively, you may set the environment variables XORG_CFLAGS
18891 and XORG_LIBS to avoid the need to call pkg-config.
18892 See the pkg-config man page for more details." "$LINENO" 5
18893 elif test $pkg_failed = untried; then
18894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18895 $as_echo "no" >&6; }
18896         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18898 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18899 is in your PATH or set the PKG_CONFIG environment variable to the full
18900 path to pkg-config.
18901
18902 Alternatively, you may set the environment variables XORG_CFLAGS
18903 and XORG_LIBS to avoid the need to call pkg-config.
18904 See the pkg-config man page for more details.
18905
18906 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18907 See \`config.log' for more details" "$LINENO" 5; }
18908 else
18909         XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18910         XORG_LIBS=$pkg_cv_XORG_LIBS
18911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18912 $as_echo "yes" >&6; }
18913
18914 fi
18915
18916 # Check whether --enable-xaa was given.
18917 if test "${enable_xaa+set}" = set; then :
18918   enableval=$enable_xaa; XAA="$enableval"
18919 else
18920   XAA=auto
18921 fi
18922
18923 if test "x$XAA" != xno; then
18924         save_CFLAGS=$CFLAGS
18925         CFLAGS=$XORG_CFLAGS
18926         for ac_header in xaa.h
18927 do :
18928   ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18929 if test "x$ac_cv_header_xaa_h" = xyes; then :
18930   cat >>confdefs.h <<_ACEOF
18931 #define HAVE_XAA_H 1
18932 _ACEOF
18933  XAA=yes
18934 else
18935   XAA=no
18936 fi
18937
18938 done
18939
18940         CFLAGS=$save_CFLAGS
18941 fi
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18943 $as_echo_n "checking whether to include XAA support... " >&6; }
18944  if test "x$XAA" = xyes; then
18945   XAA_TRUE=
18946   XAA_FALSE='#'
18947 else
18948   XAA_TRUE='#'
18949   XAA_FALSE=
18950 fi
18951
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18953 $as_echo "$XAA" >&6; }
18954
18955 # Check whether --enable-dga was given.
18956 if test "${enable_dga+set}" = set; then :
18957   enableval=$enable_dga; DGA="$enableval"
18958 else
18959   DGA=auto
18960 fi
18961
18962 if test "x$DGA" != xno; then
18963         save_CFLAGS=$CFLAGS
18964         CFLAGS=$XORG_CFLAGS
18965         for ac_header in dgaproc.h
18966 do :
18967   ac_fn_c_check_header_compile "$LINENO" "dgaproc.h" "ac_cv_header_dgaproc_h" "#include <dixstruct.h>
18968 "
18969 if test "x$ac_cv_header_dgaproc_h" = xyes; then :
18970   cat >>confdefs.h <<_ACEOF
18971 #define HAVE_DGAPROC_H 1
18972 _ACEOF
18973  DGA=yes
18974 else
18975   DGA=no
18976 fi
18977
18978 done
18979
18980         CFLAGS=$save_CFLAGS
18981 fi
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5
18983 $as_echo_n "checking whether to include DGA support... " >&6; }
18984  if test "x$DGA" = xyes; then
18985   DGA_TRUE=
18986   DGA_FALSE='#'
18987 else
18988   DGA_TRUE='#'
18989   DGA_FALSE=
18990 fi
18991
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DGA" >&5
18993 $as_echo "$DGA" >&6; }
18994
18995
18996 # Check whether --with-default-accel was given.
18997 if test "${with_default_accel+set}" = set; then :
18998   withval=$with_default_accel; accel="$withval"
18999 else
19000   accel=auto
19001 fi
19002
19003 if test "x$accel" = xyes; then
19004         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No default acceleration specified, choosing automatic selection" >&5
19005 $as_echo "$as_me: WARNING: No default acceleration specified, choosing automatic selection" >&2;}
19006         accel="auto"
19007 fi
19008
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which acceleration method to use by default" >&5
19010 $as_echo_n "checking which acceleration method to use by default... " >&6; }
19011 if test "x$accel" = xauto; then
19012         if test "x$UXA" != "xno"; then
19013                 accel=uxa
19014         else
19015                 if test "x$SNA" != "xno"; then
19016                         accel=sna
19017                 fi
19018         fi
19019         if test "x$accel" = xauto -a "x$UMS_ONLY" != "xyes"; then
19020                 as_fn_error $? "No default acceleration option" "$LINENO" 5
19021         fi
19022 fi
19023
19024 have_accel=none
19025 if test "x$accel" = xsna; then
19026         if test "x$SNA" != "xno"; then
19027
19028 $as_echo "#define DEFAULT_ACCEL_METHOD SNA" >>confdefs.h
19029
19030                 have_accel=yes
19031         else
19032                 as_fn_error $? "SNA requested as default, but is not enabled" "$LINENO" 5
19033         fi
19034 fi
19035
19036 if test "x$accel" = xuxa; then
19037         if test "x$UXA" != "xno"; then
19038
19039 $as_echo "#define DEFAULT_ACCEL_METHOD UXA" >>confdefs.h
19040
19041                 have_accel=yes
19042         else
19043                 as_fn_error $? "UXA requested as default, but is not enabled" "$LINENO" 5
19044         fi
19045 fi
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $accel" >&5
19047 $as_echo "$accel" >&6; }
19048 if test "x$accel" = xnone -a "x$UMS_ONLY" != "xyes"; then
19049         as_fn_error $? "No default acceleration option" "$LINENO" 5
19050 fi
19051
19052 # Check whether --enable-userptr was given.
19053 if test "${enable_userptr+set}" = set; then :
19054   enableval=$enable_userptr; USERPTR="$enableval"
19055 else
19056   USERPTR=no
19057 fi
19058
19059  if test x$USERPTR = xyes; then
19060   USE_USERPTR_TRUE=
19061   USE_USERPTR_FALSE='#'
19062 else
19063   USE_USERPTR_TRUE='#'
19064   USE_USERPTR_FALSE=
19065 fi
19066
19067 if test "x$USERPTR" = xyes; then
19068
19069 $as_echo "#define USE_USERPTR 1" >>confdefs.h
19070
19071 fi
19072
19073 # Check whether --enable-async-swap was given.
19074 if test "${enable_async_swap+set}" = set; then :
19075   enableval=$enable_async_swap; ASYNC_SWAP="$enableval"
19076 else
19077   ASYNC_SWAP=no
19078 fi
19079
19080  if test x$ASYNC_SWAP = xyes; then
19081   USE_ASYNC_SWAP_TRUE=
19082   USE_ASYNC_SWAP_FALSE='#'
19083 else
19084   USE_ASYNC_SWAP_TRUE='#'
19085   USE_ASYNC_SWAP_FALSE=
19086 fi
19087
19088 if test "x$ASYNC_SWAP" = xyes; then
19089
19090 $as_echo "#define USE_ASYNC_SWAP 1" >>confdefs.h
19091
19092 fi
19093
19094 # Check whether --enable-debug was given.
19095 if test "${enable_debug+set}" = set; then :
19096   enableval=$enable_debug; DEBUG="$enableval"
19097 else
19098   DEBUG=no
19099 fi
19100
19101 # Store the list of server defined optional extensions in REQUIRED_MODULES
19102
19103
19104         SAVE_CFLAGS="$CFLAGS"
19105         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19106         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19107 /* end confdefs.h.  */
19108
19109 #include "xorg-server.h"
19110 #if !defined RANDR
19111 #error RANDR not defined
19112 #endif
19113
19114 int
19115 main ()
19116 {
19117
19118   ;
19119   return 0;
19120 }
19121 _ACEOF
19122 if ac_fn_c_try_compile "$LINENO"; then :
19123   _EXT_CHECK=yes
19124 else
19125   _EXT_CHECK=no
19126 fi
19127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19128         CFLAGS="$SAVE_CFLAGS"
19129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19130 $as_echo_n "checking if RANDR is defined... " >&6; }
19131         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19132 $as_echo "$_EXT_CHECK" >&6; }
19133         if test "$_EXT_CHECK" != no; then
19134                 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19135         fi
19136
19137
19138
19139         SAVE_CFLAGS="$CFLAGS"
19140         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19141         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142 /* end confdefs.h.  */
19143
19144 #include "xorg-server.h"
19145 #if !defined RENDER
19146 #error RENDER not defined
19147 #endif
19148
19149 int
19150 main ()
19151 {
19152
19153   ;
19154   return 0;
19155 }
19156 _ACEOF
19157 if ac_fn_c_try_compile "$LINENO"; then :
19158   _EXT_CHECK=yes
19159 else
19160   _EXT_CHECK=no
19161 fi
19162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19163         CFLAGS="$SAVE_CFLAGS"
19164         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19165 $as_echo_n "checking if RENDER is defined... " >&6; }
19166         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19167 $as_echo "$_EXT_CHECK" >&6; }
19168         if test "$_EXT_CHECK" != no; then
19169                 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19170         fi
19171
19172
19173
19174         SAVE_CFLAGS="$CFLAGS"
19175         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19176         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19177 /* end confdefs.h.  */
19178
19179 #include "xorg-server.h"
19180 #if !defined XF86DRI
19181 #error XF86DRI not defined
19182 #endif
19183
19184 int
19185 main ()
19186 {
19187
19188   ;
19189   return 0;
19190 }
19191 _ACEOF
19192 if ac_fn_c_try_compile "$LINENO"; then :
19193   _EXT_CHECK=yes
19194 else
19195   _EXT_CHECK=no
19196 fi
19197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19198         CFLAGS="$SAVE_CFLAGS"
19199         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5
19200 $as_echo_n "checking if XF86DRI is defined... " >&6; }
19201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19202 $as_echo "$_EXT_CHECK" >&6; }
19203         if test "$_EXT_CHECK" != no; then
19204                 REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11"
19205         fi
19206
19207
19208
19209         SAVE_CFLAGS="$CFLAGS"
19210         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19211         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212 /* end confdefs.h.  */
19213
19214 #include "xorg-server.h"
19215 #if !defined DPMSExtension
19216 #error DPMSExtension not defined
19217 #endif
19218
19219 int
19220 main ()
19221 {
19222
19223   ;
19224   return 0;
19225 }
19226 _ACEOF
19227 if ac_fn_c_try_compile "$LINENO"; then :
19228   _EXT_CHECK=yes
19229 else
19230   _EXT_CHECK=no
19231 fi
19232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233         CFLAGS="$SAVE_CFLAGS"
19234         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19235 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
19236         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19237 $as_echo "$_EXT_CHECK" >&6; }
19238         if test "$_EXT_CHECK" != no; then
19239                 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19240         fi
19241
19242
19243 # Obtain compiler/linker options for the driver dependencies
19244
19245 pkg_failed=no
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5
19247 $as_echo_n "checking for DRM... " >&6; }
19248
19249 if test -n "$DRM_CFLAGS"; then
19250     pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
19251  elif test -n "$PKG_CONFIG"; then
19252     if test -n "$PKG_CONFIG" && \
19253     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.24\""; } >&5
19254   ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.24") 2>&5
19255   ac_status=$?
19256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19257   test $ac_status = 0; }; then
19258   pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.24" 2>/dev/null`
19259                       test "x$?" != "x0" && pkg_failed=yes
19260 else
19261   pkg_failed=yes
19262 fi
19263  else
19264     pkg_failed=untried
19265 fi
19266 if test -n "$DRM_LIBS"; then
19267     pkg_cv_DRM_LIBS="$DRM_LIBS"
19268  elif test -n "$PKG_CONFIG"; then
19269     if test -n "$PKG_CONFIG" && \
19270     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.24\""; } >&5
19271   ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.24") 2>&5
19272   ac_status=$?
19273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19274   test $ac_status = 0; }; then
19275   pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.24" 2>/dev/null`
19276                       test "x$?" != "x0" && pkg_failed=yes
19277 else
19278   pkg_failed=yes
19279 fi
19280  else
19281     pkg_failed=untried
19282 fi
19283
19284
19285
19286 if test $pkg_failed = yes; then
19287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19288 $as_echo "no" >&6; }
19289
19290 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19291         _pkg_short_errors_supported=yes
19292 else
19293         _pkg_short_errors_supported=no
19294 fi
19295         if test $_pkg_short_errors_supported = yes; then
19296                 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.24" 2>&1`
19297         else
19298                 DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.24" 2>&1`
19299         fi
19300         # Put the nasty error message in config.log where it belongs
19301         echo "$DRM_PKG_ERRORS" >&5
19302
19303         as_fn_error $? "Package requirements (libdrm >= 2.4.24) were not met:
19304
19305 $DRM_PKG_ERRORS
19306
19307 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19308 installed software in a non-standard prefix.
19309
19310 Alternatively, you may set the environment variables DRM_CFLAGS
19311 and DRM_LIBS to avoid the need to call pkg-config.
19312 See the pkg-config man page for more details." "$LINENO" 5
19313 elif test $pkg_failed = untried; then
19314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19315 $as_echo "no" >&6; }
19316         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19318 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19319 is in your PATH or set the PKG_CONFIG environment variable to the full
19320 path to pkg-config.
19321
19322 Alternatively, you may set the environment variables DRM_CFLAGS
19323 and DRM_LIBS to avoid the need to call pkg-config.
19324 See the pkg-config man page for more details.
19325
19326 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19327 See \`config.log' for more details" "$LINENO" 5; }
19328 else
19329         DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
19330         DRM_LIBS=$pkg_cv_DRM_LIBS
19331         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19332 $as_echo "yes" >&6; }
19333
19334 fi # libdrm_intel is checked separately
19335
19336 pkg_failed=no
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
19338 $as_echo_n "checking for DRI... " >&6; }
19339
19340 if test -n "$DRI_CFLAGS"; then
19341     pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
19342  elif test -n "$PKG_CONFIG"; then
19343     if test -n "$PKG_CONFIG" && \
19344     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
19345   ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
19346   ac_status=$?
19347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19348   test $ac_status = 0; }; then
19349   pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto" 2>/dev/null`
19350                       test "x$?" != "x0" && pkg_failed=yes
19351 else
19352   pkg_failed=yes
19353 fi
19354  else
19355     pkg_failed=untried
19356 fi
19357 if test -n "$DRI_LIBS"; then
19358     pkg_cv_DRI_LIBS="$DRI_LIBS"
19359  elif test -n "$PKG_CONFIG"; then
19360     if test -n "$PKG_CONFIG" && \
19361     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
19362   ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
19363   ac_status=$?
19364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19365   test $ac_status = 0; }; then
19366   pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "xf86driproto" 2>/dev/null`
19367                       test "x$?" != "x0" && pkg_failed=yes
19368 else
19369   pkg_failed=yes
19370 fi
19371  else
19372     pkg_failed=untried
19373 fi
19374
19375
19376
19377 if test $pkg_failed = yes; then
19378         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19379 $as_echo "no" >&6; }
19380
19381 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19382         _pkg_short_errors_supported=yes
19383 else
19384         _pkg_short_errors_supported=no
19385 fi
19386         if test $_pkg_short_errors_supported = yes; then
19387                 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86driproto" 2>&1`
19388         else
19389                 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86driproto" 2>&1`
19390         fi
19391         # Put the nasty error message in config.log where it belongs
19392         echo "$DRI_PKG_ERRORS" >&5
19393
19394         DRI=no
19395 elif test $pkg_failed = untried; then
19396         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19397 $as_echo "no" >&6; }
19398         DRI=no
19399 else
19400         DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
19401         DRI_LIBS=$pkg_cv_DRI_LIBS
19402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19403 $as_echo "yes" >&6; }
19404
19405 fi
19406
19407 pkg_failed=no
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2" >&5
19409 $as_echo_n "checking for DRI2... " >&6; }
19410
19411 if test -n "$DRI2_CFLAGS"; then
19412     pkg_cv_DRI2_CFLAGS="$DRI2_CFLAGS"
19413  elif test -n "$PKG_CONFIG"; then
19414     if test -n "$PKG_CONFIG" && \
19415     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5
19416   ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5
19417   ac_status=$?
19418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19419   test $ac_status = 0; }; then
19420   pkg_cv_DRI2_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= 2.6" 2>/dev/null`
19421                       test "x$?" != "x0" && pkg_failed=yes
19422 else
19423   pkg_failed=yes
19424 fi
19425  else
19426     pkg_failed=untried
19427 fi
19428 if test -n "$DRI2_LIBS"; then
19429     pkg_cv_DRI2_LIBS="$DRI2_LIBS"
19430  elif test -n "$PKG_CONFIG"; then
19431     if test -n "$PKG_CONFIG" && \
19432     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5
19433   ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5
19434   ac_status=$?
19435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19436   test $ac_status = 0; }; then
19437   pkg_cv_DRI2_LIBS=`$PKG_CONFIG --libs "dri2proto >= 2.6" 2>/dev/null`
19438                       test "x$?" != "x0" && pkg_failed=yes
19439 else
19440   pkg_failed=yes
19441 fi
19442  else
19443     pkg_failed=untried
19444 fi
19445
19446
19447
19448 if test $pkg_failed = yes; then
19449         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19450 $as_echo "no" >&6; }
19451
19452 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19453         _pkg_short_errors_supported=yes
19454 else
19455         _pkg_short_errors_supported=no
19456 fi
19457         if test $_pkg_short_errors_supported = yes; then
19458                 DRI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1`
19459         else
19460                 DRI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1`
19461         fi
19462         # Put the nasty error message in config.log where it belongs
19463         echo "$DRI2_PKG_ERRORS" >&5
19464
19465         DRI2=no
19466 elif test $pkg_failed = untried; then
19467         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19468 $as_echo "no" >&6; }
19469         DRI2=no
19470 else
19471         DRI2_CFLAGS=$pkg_cv_DRI2_CFLAGS
19472         DRI2_LIBS=$pkg_cv_DRI2_LIBS
19473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19474 $as_echo "yes" >&6; }
19475
19476 fi
19477
19478 pkg_failed=no
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19480 $as_echo_n "checking for PCIACCESS... " >&6; }
19481
19482 if test -n "$PCIACCESS_CFLAGS"; then
19483     pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19484  elif test -n "$PKG_CONFIG"; then
19485     if test -n "$PKG_CONFIG" && \
19486     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19487   ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19488   ac_status=$?
19489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19490   test $ac_status = 0; }; then
19491   pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
19492                       test "x$?" != "x0" && pkg_failed=yes
19493 else
19494   pkg_failed=yes
19495 fi
19496  else
19497     pkg_failed=untried
19498 fi
19499 if test -n "$PCIACCESS_LIBS"; then
19500     pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19501  elif test -n "$PKG_CONFIG"; then
19502     if test -n "$PKG_CONFIG" && \
19503     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19504   ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19505   ac_status=$?
19506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19507   test $ac_status = 0; }; then
19508   pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
19509                       test "x$?" != "x0" && pkg_failed=yes
19510 else
19511   pkg_failed=yes
19512 fi
19513  else
19514     pkg_failed=untried
19515 fi
19516
19517
19518
19519 if test $pkg_failed = yes; then
19520         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19521 $as_echo "no" >&6; }
19522
19523 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19524         _pkg_short_errors_supported=yes
19525 else
19526         _pkg_short_errors_supported=no
19527 fi
19528         if test $_pkg_short_errors_supported = yes; then
19529                 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19530         else
19531                 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19532         fi
19533         # Put the nasty error message in config.log where it belongs
19534         echo "$PCIACCESS_PKG_ERRORS" >&5
19535
19536         as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
19537
19538 $PCIACCESS_PKG_ERRORS
19539
19540 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19541 installed software in a non-standard prefix.
19542
19543 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19544 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19545 See the pkg-config man page for more details." "$LINENO" 5
19546 elif test $pkg_failed = untried; then
19547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19548 $as_echo "no" >&6; }
19549         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19551 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19552 is in your PATH or set the PKG_CONFIG environment variable to the full
19553 path to pkg-config.
19554
19555 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19556 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19557 See the pkg-config man page for more details.
19558
19559 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19560 See \`config.log' for more details" "$LINENO" 5; }
19561 else
19562         PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19563         PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19565 $as_echo "yes" >&6; }
19566
19567 fi
19568
19569 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
19570
19571 if test "x$enable_dri" != "xno"; then
19572         save_CFLAGS="$CFLAGS"
19573         save_CPPFLAGS="$CPPFLAGS"
19574         CFLAGS="$CFLAGS $XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
19575         CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
19576         for ac_header in dri.h sarea.h dristruct.h
19577 do :
19578   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19579 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "/* for dri.h */
19580                  #include <xf86str.h>
19581                  /* for dristruct.h */
19582                  #include <xorg-server.h>
19583                  #ifdef HAVE_DRI_H
19584                  # include <dri.h>
19585                  #endif
19586                  #ifdef HAVE_SAREA_H
19587                  # include <sarea.h>
19588                  #endif
19589
19590 "
19591 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19592   cat >>confdefs.h <<_ACEOF
19593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19594 _ACEOF
19595
19596 else
19597   DRI=no
19598 fi
19599
19600 done
19601
19602         CFLAGS="$save_CFLAGS $DEBUGFLAGS"
19603         CPPFLAGS="$save_CPPFLAGS"
19604 else
19605         DRI=no
19606 fi
19607
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
19609 $as_echo_n "checking whether to include DRI support... " >&6; }
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${DRI-yes}" >&5
19611 $as_echo "${DRI-yes}" >&6; }
19612
19613  if test x$DRI != xno; then
19614   DRI_TRUE=
19615   DRI_FALSE='#'
19616 else
19617   DRI_TRUE='#'
19618   DRI_FALSE=
19619 fi
19620
19621 if test "x$DRI" != "xno"; then
19622
19623 $as_echo "#define HAVE_DRI1 1" >>confdefs.h
19624
19625 else
19626         DRI_CFLAGS=""
19627         DRI_LIBS=""
19628
19629         if test "x$enable_dri" = "xyes"; then
19630                 as_fn_error $? "DRI requested but prerequisites not found" "$LINENO" 5
19631         fi
19632 fi
19633
19634 if test "x$DRI2" != "xno"; then
19635         save_CFLAGS=$CFLAGS
19636         CFLAGS="$XORG_CFLAGS $DRM_CFLAGS $DRI_CFLAGS $DRI2_CFLAGS"
19637         for ac_header in dri2.h
19638 do :
19639   ac_fn_c_check_header_compile "$LINENO" "dri2.h" "ac_cv_header_dri2_h" "#include <dixstruct.h>
19640 "
19641 if test "x$ac_cv_header_dri2_h" = xyes; then :
19642   cat >>confdefs.h <<_ACEOF
19643 #define HAVE_DRI2_H 1
19644 _ACEOF
19645  DRI2=yes
19646 else
19647   DRI2=no
19648 fi
19649
19650 done
19651
19652         CFLAGS=$save_CFLAGS
19653 fi
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI2 support" >&5
19655 $as_echo_n "checking whether to include DRI2 support... " >&6; }
19656  if test "x$DRI2" = xyes; then
19657   DRI2_TRUE=
19658   DRI2_FALSE='#'
19659 else
19660   DRI2_TRUE='#'
19661   DRI2_FALSE=
19662 fi
19663
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI2" >&5
19665 $as_echo "$DRI2" >&6; }
19666
19667 if test "$XVMC" = yes; then
19668
19669 pkg_failed=no
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMCLIB" >&5
19671 $as_echo_n "checking for XVMCLIB... " >&6; }
19672
19673 if test -n "$XVMCLIB_CFLAGS"; then
19674     pkg_cv_XVMCLIB_CFLAGS="$XVMCLIB_CFLAGS"
19675  elif test -n "$PKG_CONFIG"; then
19676     if test -n "$PKG_CONFIG" && \
19677     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux\""; } >&5
19678   ($PKG_CONFIG --exists --print-errors "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux") 2>&5
19679   ac_status=$?
19680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19681   test $ac_status = 0; }; then
19682   pkg_cv_XVMCLIB_CFLAGS=`$PKG_CONFIG --cflags "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>/dev/null`
19683                       test "x$?" != "x0" && pkg_failed=yes
19684 else
19685   pkg_failed=yes
19686 fi
19687  else
19688     pkg_failed=untried
19689 fi
19690 if test -n "$XVMCLIB_LIBS"; then
19691     pkg_cv_XVMCLIB_LIBS="$XVMCLIB_LIBS"
19692  elif test -n "$PKG_CONFIG"; then
19693     if test -n "$PKG_CONFIG" && \
19694     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux\""; } >&5
19695   ($PKG_CONFIG --exists --print-errors "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux") 2>&5
19696   ac_status=$?
19697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19698   test $ac_status = 0; }; then
19699   pkg_cv_XVMCLIB_LIBS=`$PKG_CONFIG --libs "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>/dev/null`
19700                       test "x$?" != "x0" && pkg_failed=yes
19701 else
19702   pkg_failed=yes
19703 fi
19704  else
19705     pkg_failed=untried
19706 fi
19707
19708
19709
19710 if test $pkg_failed = yes; then
19711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19712 $as_echo "no" >&6; }
19713
19714 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19715         _pkg_short_errors_supported=yes
19716 else
19717         _pkg_short_errors_supported=no
19718 fi
19719         if test $_pkg_short_errors_supported = yes; then
19720                 XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>&1`
19721         else
19722                 XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>&1`
19723         fi
19724         # Put the nasty error message in config.log where it belongs
19725         echo "$XVMCLIB_PKG_ERRORS" >&5
19726
19727         XVMC=no
19728 elif test $pkg_failed = untried; then
19729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19730 $as_echo "no" >&6; }
19731         XVMC=no
19732 else
19733         XVMCLIB_CFLAGS=$pkg_cv_XVMCLIB_CFLAGS
19734         XVMCLIB_LIBS=$pkg_cv_XVMCLIB_LIBS
19735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19736 $as_echo "yes" >&6; }
19737         XVMC=yes
19738 fi
19739 fi
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XvMC support" >&5
19741 $as_echo_n "checking whether to include XvMC support... " >&6; }
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5
19743 $as_echo "$XVMC" >&6; }
19744  if test x$XVMC = xyes; then
19745   XVMC_TRUE=
19746   XVMC_FALSE='#'
19747 else
19748   XVMC_TRUE='#'
19749   XVMC_FALSE=
19750 fi
19751
19752 if test "x$XVMC" = xyes; then
19753
19754 $as_echo "#define ENABLE_XVMC 1" >>confdefs.h
19755
19756 fi
19757
19758  if test x$KMS_ONLY = xyes; then
19759   KMS_ONLY_TRUE=
19760   KMS_ONLY_FALSE='#'
19761 else
19762   KMS_ONLY_TRUE='#'
19763   KMS_ONLY_FALSE=
19764 fi
19765
19766 if test "x$KMS_ONLY" = xyes; then
19767
19768 $as_echo "#define KMS_ONLY 1" >>confdefs.h
19769
19770 fi
19771  if test x$UMS_ONLY = xyes; then
19772   UMS_ONLY_TRUE=
19773   UMS_ONLY_FALSE='#'
19774 else
19775   UMS_ONLY_TRUE='#'
19776   UMS_ONLY_FALSE=
19777 fi
19778
19779 if test "x$UMS_ONLY" = xyes; then
19780
19781 $as_echo "#define UMS_ONLY 1" >>confdefs.h
19782
19783 fi
19784
19785  if test x$DEBUG != xno; then
19786   DEBUG_TRUE=
19787   DEBUG_FALSE='#'
19788 else
19789   DEBUG_TRUE='#'
19790   DEBUG_FALSE=
19791 fi
19792
19793  if test x$FULL_DEBUG == xfull; then
19794   FULL_DEBUG_TRUE=
19795   FULL_DEBUG_FALSE='#'
19796 else
19797   FULL_DEBUG_TRUE='#'
19798   FULL_DEBUG_FALSE=
19799 fi
19800
19801 if test "x$DEBUG" = xno; then
19802
19803 $as_echo "#define NDEBUG 1" >>confdefs.h
19804
19805 fi
19806 if test "x$DEBUG" != xno; then
19807
19808 pkg_failed=no
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
19810 $as_echo_n "checking for VALGRIND... " >&6; }
19811
19812 if test -n "$VALGRIND_CFLAGS"; then
19813     pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
19814  elif test -n "$PKG_CONFIG"; then
19815     if test -n "$PKG_CONFIG" && \
19816     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19817   ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19818   ac_status=$?
19819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19820   test $ac_status = 0; }; then
19821   pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
19822                       test "x$?" != "x0" && pkg_failed=yes
19823 else
19824   pkg_failed=yes
19825 fi
19826  else
19827     pkg_failed=untried
19828 fi
19829 if test -n "$VALGRIND_LIBS"; then
19830     pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
19831  elif test -n "$PKG_CONFIG"; then
19832     if test -n "$PKG_CONFIG" && \
19833     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19834   ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19835   ac_status=$?
19836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19837   test $ac_status = 0; }; then
19838   pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
19839                       test "x$?" != "x0" && pkg_failed=yes
19840 else
19841   pkg_failed=yes
19842 fi
19843  else
19844     pkg_failed=untried
19845 fi
19846
19847
19848
19849 if test $pkg_failed = yes; then
19850         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19851 $as_echo "no" >&6; }
19852
19853 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19854         _pkg_short_errors_supported=yes
19855 else
19856         _pkg_short_errors_supported=no
19857 fi
19858         if test $_pkg_short_errors_supported = yes; then
19859                 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
19860         else
19861                 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
19862         fi
19863         # Put the nasty error message in config.log where it belongs
19864         echo "$VALGRIND_PKG_ERRORS" >&5
19865
19866         have_valgrind=no
19867 elif test $pkg_failed = untried; then
19868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19869 $as_echo "no" >&6; }
19870         have_valgrind=no
19871 else
19872         VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
19873         VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
19874         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19875 $as_echo "yes" >&6; }
19876         have_valgrind=yes
19877 fi
19878         if test x$have_valgrind = xyes; then
19879
19880 $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
19881
19882         fi
19883 fi
19884 if test "x$DEBUG" = xmemory; then
19885
19886 $as_echo "#define DEBUG_MEMORY 1" >>confdefs.h
19887
19888 fi
19889 if test "x$DEBUG" = xpixmap; then
19890
19891 $as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h
19892
19893 fi
19894 if test "x$DEBUG" = xfull; then
19895
19896 $as_echo "#define DEBUG_MEMORY 1" >>confdefs.h
19897
19898
19899 $as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h
19900
19901
19902 $as_echo "#define HAS_DEBUG_FULL 1" >>confdefs.h
19903
19904         CFLAGS="$CFLAGS -O0 -ggdb3"
19905 fi
19906
19907 DRIVER_NAME=intel
19908
19909
19910
19911 ac_config_files="$ac_config_files Makefile uxa/Makefile src/Makefile src/xvmc/Makefile src/xvmc/shader/Makefile src/xvmc/shader/mc/Makefile src/xvmc/shader/vld/Makefile src/legacy/Makefile src/legacy/i810/Makefile src/legacy/i810/xvmc/Makefile src/sna/Makefile src/sna/brw/Makefile src/sna/fb/Makefile man/Makefile src/render_program/Makefile test/Makefile"
19912
19913 cat >confcache <<\_ACEOF
19914 # This file is a shell script that caches the results of configure
19915 # tests run on this system so they can be shared between configure
19916 # scripts and configure runs, see configure's option --config-cache.
19917 # It is not useful on other systems.  If it contains results you don't
19918 # want to keep, you may remove or edit it.
19919 #
19920 # config.status only pays attention to the cache file if you give it
19921 # the --recheck option to rerun configure.
19922 #
19923 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19924 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19925 # following values.
19926
19927 _ACEOF
19928
19929 # The following way of writing the cache mishandles newlines in values,
19930 # but we know of no workaround that is simple, portable, and efficient.
19931 # So, we kill variables containing newlines.
19932 # Ultrix sh set writes to stderr and can't be redirected directly,
19933 # and sets the high bit in the cache file unless we assign to the vars.
19934 (
19935   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19936     eval ac_val=\$$ac_var
19937     case $ac_val in #(
19938     *${as_nl}*)
19939       case $ac_var in #(
19940       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19941 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19942       esac
19943       case $ac_var in #(
19944       _ | IFS | as_nl) ;; #(
19945       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19946       *) { eval $ac_var=; unset $ac_var;} ;;
19947       esac ;;
19948     esac
19949   done
19950
19951   (set) 2>&1 |
19952     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19953     *${as_nl}ac_space=\ *)
19954       # `set' does not quote correctly, so add quotes: double-quote
19955       # substitution turns \\\\ into \\, and sed turns \\ into \.
19956       sed -n \
19957         "s/'/'\\\\''/g;
19958           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19959       ;; #(
19960     *)
19961       # `set' quotes correctly as required by POSIX, so do not add quotes.
19962       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19963       ;;
19964     esac |
19965     sort
19966 ) |
19967   sed '
19968      /^ac_cv_env_/b end
19969      t clear
19970      :clear
19971      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19972      t end
19973      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19974      :end' >>confcache
19975 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19976   if test -w "$cache_file"; then
19977     if test "x$cache_file" != "x/dev/null"; then
19978       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19979 $as_echo "$as_me: updating cache $cache_file" >&6;}
19980       if test ! -f "$cache_file" || test -h "$cache_file"; then
19981         cat confcache >"$cache_file"
19982       else
19983         case $cache_file in #(
19984         */* | ?:*)
19985           mv -f confcache "$cache_file"$$ &&
19986           mv -f "$cache_file"$$ "$cache_file" ;; #(
19987         *)
19988           mv -f confcache "$cache_file" ;;
19989         esac
19990       fi
19991     fi
19992   else
19993     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19994 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19995   fi
19996 fi
19997 rm -f confcache
19998
19999 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20000 # Let make expand exec_prefix.
20001 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20002
20003 DEFS=-DHAVE_CONFIG_H
20004
20005 ac_libobjs=
20006 ac_ltlibobjs=
20007 U=
20008 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20009   # 1. Remove the extension, and $U if already installed.
20010   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20011   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20012   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20013   #    will be set to the directory where LIBOBJS objects are built.
20014   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20015   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20016 done
20017 LIBOBJS=$ac_libobjs
20018
20019 LTLIBOBJS=$ac_ltlibobjs
20020
20021
20022  if test -n "$EXEEXT"; then
20023   am__EXEEXT_TRUE=
20024   am__EXEEXT_FALSE='#'
20025 else
20026   am__EXEEXT_TRUE='#'
20027   am__EXEEXT_FALSE=
20028 fi
20029
20030 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20031   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20033 fi
20034 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20035   as_fn_error $? "conditional \"AMDEP\" was never defined.
20036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20037 fi
20038 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20039   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20041 fi
20042 if test -z "${HAVE_DOT_GIT_TRUE}" && test -z "${HAVE_DOT_GIT_FALSE}"; then
20043   as_fn_error $? "conditional \"HAVE_DOT_GIT\" was never defined.
20044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20045 fi
20046 if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then
20047   as_fn_error $? "conditional \"HAVE_GEN4ASM\" was never defined.
20048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20049 fi
20050 if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then
20051   as_fn_error $? "conditional \"HAVE_X11\" was never defined.
20052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20053 fi
20054 if test -z "${SNA_TRUE}" && test -z "${SNA_FALSE}"; then
20055   as_fn_error $? "conditional \"SNA\" was never defined.
20056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20057 fi
20058 if test -z "${UXA_TRUE}" && test -z "${UXA_FALSE}"; then
20059   as_fn_error $? "conditional \"UXA\" was never defined.
20060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20061 fi
20062 if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
20063   as_fn_error $? "conditional \"GLAMOR\" was never defined.
20064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20065 fi
20066 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
20067   as_fn_error $? "conditional \"XAA\" was never defined.
20068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20069 fi
20070 if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
20071   as_fn_error $? "conditional \"DGA\" was never defined.
20072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20073 fi
20074 if test -z "${USE_USERPTR_TRUE}" && test -z "${USE_USERPTR_FALSE}"; then
20075   as_fn_error $? "conditional \"USE_USERPTR\" was never defined.
20076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20077 fi
20078 if test -z "${USE_ASYNC_SWAP_TRUE}" && test -z "${USE_ASYNC_SWAP_FALSE}"; then
20079   as_fn_error $? "conditional \"USE_ASYNC_SWAP\" was never defined.
20080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20081 fi
20082 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
20083   as_fn_error $? "conditional \"DRI\" was never defined.
20084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20085 fi
20086 if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
20087   as_fn_error $? "conditional \"DRI2\" was never defined.
20088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20089 fi
20090 if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
20091   as_fn_error $? "conditional \"XVMC\" was never defined.
20092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20093 fi
20094 if test -z "${KMS_ONLY_TRUE}" && test -z "${KMS_ONLY_FALSE}"; then
20095   as_fn_error $? "conditional \"KMS_ONLY\" was never defined.
20096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20097 fi
20098 if test -z "${UMS_ONLY_TRUE}" && test -z "${UMS_ONLY_FALSE}"; then
20099   as_fn_error $? "conditional \"UMS_ONLY\" was never defined.
20100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20101 fi
20102 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
20103   as_fn_error $? "conditional \"DEBUG\" was never defined.
20104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20105 fi
20106 if test -z "${FULL_DEBUG_TRUE}" && test -z "${FULL_DEBUG_FALSE}"; then
20107   as_fn_error $? "conditional \"FULL_DEBUG\" was never defined.
20108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20109 fi
20110
20111 : "${CONFIG_STATUS=./config.status}"
20112 ac_write_fail=0
20113 ac_clean_files_save=$ac_clean_files
20114 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20116 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20117 as_write_fail=0
20118 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20119 #! $SHELL
20120 # Generated by $as_me.
20121 # Run this file to recreate the current configuration.
20122 # Compiler output produced by configure, useful for debugging
20123 # configure, is in config.log if it exists.
20124
20125 debug=false
20126 ac_cs_recheck=false
20127 ac_cs_silent=false
20128
20129 SHELL=\${CONFIG_SHELL-$SHELL}
20130 export SHELL
20131 _ASEOF
20132 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20133 ## -------------------- ##
20134 ## M4sh Initialization. ##
20135 ## -------------------- ##
20136
20137 # Be more Bourne compatible
20138 DUALCASE=1; export DUALCASE # for MKS sh
20139 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20140   emulate sh
20141   NULLCMD=:
20142   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20143   # is contrary to our usage.  Disable this feature.
20144   alias -g '${1+"$@"}'='"$@"'
20145   setopt NO_GLOB_SUBST
20146 else
20147   case `(set -o) 2>/dev/null` in #(
20148   *posix*) :
20149     set -o posix ;; #(
20150   *) :
20151      ;;
20152 esac
20153 fi
20154
20155
20156 as_nl='
20157 '
20158 export as_nl
20159 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20160 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20161 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20162 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20163 # Prefer a ksh shell builtin over an external printf program on Solaris,
20164 # but without wasting forks for bash or zsh.
20165 if test -z "$BASH_VERSION$ZSH_VERSION" \
20166     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20167   as_echo='print -r --'
20168   as_echo_n='print -rn --'
20169 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20170   as_echo='printf %s\n'
20171   as_echo_n='printf %s'
20172 else
20173   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20174     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20175     as_echo_n='/usr/ucb/echo -n'
20176   else
20177     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20178     as_echo_n_body='eval
20179       arg=$1;
20180       case $arg in #(
20181       *"$as_nl"*)
20182         expr "X$arg" : "X\\(.*\\)$as_nl";
20183         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20184       esac;
20185       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20186     '
20187     export as_echo_n_body
20188     as_echo_n='sh -c $as_echo_n_body as_echo'
20189   fi
20190   export as_echo_body
20191   as_echo='sh -c $as_echo_body as_echo'
20192 fi
20193
20194 # The user is always right.
20195 if test "${PATH_SEPARATOR+set}" != set; then
20196   PATH_SEPARATOR=:
20197   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20198     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20199       PATH_SEPARATOR=';'
20200   }
20201 fi
20202
20203
20204 # IFS
20205 # We need space, tab and new line, in precisely that order.  Quoting is
20206 # there to prevent editors from complaining about space-tab.
20207 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20208 # splitting by setting IFS to empty value.)
20209 IFS=" ""        $as_nl"
20210
20211 # Find who we are.  Look in the path if we contain no directory separator.
20212 as_myself=
20213 case $0 in #((
20214   *[\\/]* ) as_myself=$0 ;;
20215   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20216 for as_dir in $PATH
20217 do
20218   IFS=$as_save_IFS
20219   test -z "$as_dir" && as_dir=.
20220     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20221   done
20222 IFS=$as_save_IFS
20223
20224      ;;
20225 esac
20226 # We did not find ourselves, most probably we were run as `sh COMMAND'
20227 # in which case we are not to be found in the path.
20228 if test "x$as_myself" = x; then
20229   as_myself=$0
20230 fi
20231 if test ! -f "$as_myself"; then
20232   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20233   exit 1
20234 fi
20235
20236 # Unset variables that we do not need and which cause bugs (e.g. in
20237 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20238 # suppresses any "Segmentation fault" message there.  '((' could
20239 # trigger a bug in pdksh 5.2.14.
20240 for as_var in BASH_ENV ENV MAIL MAILPATH
20241 do eval test x\${$as_var+set} = xset \
20242   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20243 done
20244 PS1='$ '
20245 PS2='> '
20246 PS4='+ '
20247
20248 # NLS nuisances.
20249 LC_ALL=C
20250 export LC_ALL
20251 LANGUAGE=C
20252 export LANGUAGE
20253
20254 # CDPATH.
20255 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20256
20257
20258 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20259 # ----------------------------------------
20260 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20261 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20262 # script with STATUS, using 1 if that was 0.
20263 as_fn_error ()
20264 {
20265   as_status=$1; test $as_status -eq 0 && as_status=1
20266   if test "$4"; then
20267     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20268     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20269   fi
20270   $as_echo "$as_me: error: $2" >&2
20271   as_fn_exit $as_status
20272 } # as_fn_error
20273
20274
20275 # as_fn_set_status STATUS
20276 # -----------------------
20277 # Set $? to STATUS, without forking.
20278 as_fn_set_status ()
20279 {
20280   return $1
20281 } # as_fn_set_status
20282
20283 # as_fn_exit STATUS
20284 # -----------------
20285 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20286 as_fn_exit ()
20287 {
20288   set +e
20289   as_fn_set_status $1
20290   exit $1
20291 } # as_fn_exit
20292
20293 # as_fn_unset VAR
20294 # ---------------
20295 # Portably unset VAR.
20296 as_fn_unset ()
20297 {
20298   { eval $1=; unset $1;}
20299 }
20300 as_unset=as_fn_unset
20301 # as_fn_append VAR VALUE
20302 # ----------------------
20303 # Append the text in VALUE to the end of the definition contained in VAR. Take
20304 # advantage of any shell optimizations that allow amortized linear growth over
20305 # repeated appends, instead of the typical quadratic growth present in naive
20306 # implementations.
20307 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20308   eval 'as_fn_append ()
20309   {
20310     eval $1+=\$2
20311   }'
20312 else
20313   as_fn_append ()
20314   {
20315     eval $1=\$$1\$2
20316   }
20317 fi # as_fn_append
20318
20319 # as_fn_arith ARG...
20320 # ------------------
20321 # Perform arithmetic evaluation on the ARGs, and store the result in the
20322 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20323 # must be portable across $(()) and expr.
20324 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20325   eval 'as_fn_arith ()
20326   {
20327     as_val=$(( $* ))
20328   }'
20329 else
20330   as_fn_arith ()
20331   {
20332     as_val=`expr "$@" || test $? -eq 1`
20333   }
20334 fi # as_fn_arith
20335
20336
20337 if expr a : '\(a\)' >/dev/null 2>&1 &&
20338    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20339   as_expr=expr
20340 else
20341   as_expr=false
20342 fi
20343
20344 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20345   as_basename=basename
20346 else
20347   as_basename=false
20348 fi
20349
20350 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20351   as_dirname=dirname
20352 else
20353   as_dirname=false
20354 fi
20355
20356 as_me=`$as_basename -- "$0" ||
20357 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20358          X"$0" : 'X\(//\)$' \| \
20359          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20360 $as_echo X/"$0" |
20361     sed '/^.*\/\([^/][^/]*\)\/*$/{
20362             s//\1/
20363             q
20364           }
20365           /^X\/\(\/\/\)$/{
20366             s//\1/
20367             q
20368           }
20369           /^X\/\(\/\).*/{
20370             s//\1/
20371             q
20372           }
20373           s/.*/./; q'`
20374
20375 # Avoid depending upon Character Ranges.
20376 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20377 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20378 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20379 as_cr_digits='0123456789'
20380 as_cr_alnum=$as_cr_Letters$as_cr_digits
20381
20382 ECHO_C= ECHO_N= ECHO_T=
20383 case `echo -n x` in #(((((
20384 -n*)
20385   case `echo 'xy\c'` in
20386   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20387   xy)  ECHO_C='\c';;
20388   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20389        ECHO_T=' ';;
20390   esac;;
20391 *)
20392   ECHO_N='-n';;
20393 esac
20394
20395 rm -f conf$$ conf$$.exe conf$$.file
20396 if test -d conf$$.dir; then
20397   rm -f conf$$.dir/conf$$.file
20398 else
20399   rm -f conf$$.dir
20400   mkdir conf$$.dir 2>/dev/null
20401 fi
20402 if (echo >conf$$.file) 2>/dev/null; then
20403   if ln -s conf$$.file conf$$ 2>/dev/null; then
20404     as_ln_s='ln -s'
20405     # ... but there are two gotchas:
20406     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20407     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20408     # In both cases, we have to default to `cp -pR'.
20409     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20410       as_ln_s='cp -pR'
20411   elif ln conf$$.file conf$$ 2>/dev/null; then
20412     as_ln_s=ln
20413   else
20414     as_ln_s='cp -pR'
20415   fi
20416 else
20417   as_ln_s='cp -pR'
20418 fi
20419 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20420 rmdir conf$$.dir 2>/dev/null
20421
20422
20423 # as_fn_mkdir_p
20424 # -------------
20425 # Create "$as_dir" as a directory, including parents if necessary.
20426 as_fn_mkdir_p ()
20427 {
20428
20429   case $as_dir in #(
20430   -*) as_dir=./$as_dir;;
20431   esac
20432   test -d "$as_dir" || eval $as_mkdir_p || {
20433     as_dirs=
20434     while :; do
20435       case $as_dir in #(
20436       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20437       *) as_qdir=$as_dir;;
20438       esac
20439       as_dirs="'$as_qdir' $as_dirs"
20440       as_dir=`$as_dirname -- "$as_dir" ||
20441 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20442          X"$as_dir" : 'X\(//\)[^/]' \| \
20443          X"$as_dir" : 'X\(//\)$' \| \
20444          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20445 $as_echo X"$as_dir" |
20446     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20447             s//\1/
20448             q
20449           }
20450           /^X\(\/\/\)[^/].*/{
20451             s//\1/
20452             q
20453           }
20454           /^X\(\/\/\)$/{
20455             s//\1/
20456             q
20457           }
20458           /^X\(\/\).*/{
20459             s//\1/
20460             q
20461           }
20462           s/.*/./; q'`
20463       test -d "$as_dir" && break
20464     done
20465     test -z "$as_dirs" || eval "mkdir $as_dirs"
20466   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20467
20468
20469 } # as_fn_mkdir_p
20470 if mkdir -p . 2>/dev/null; then
20471   as_mkdir_p='mkdir -p "$as_dir"'
20472 else
20473   test -d ./-p && rmdir ./-p
20474   as_mkdir_p=false
20475 fi
20476
20477
20478 # as_fn_executable_p FILE
20479 # -----------------------
20480 # Test if FILE is an executable regular file.
20481 as_fn_executable_p ()
20482 {
20483   test -f "$1" && test -x "$1"
20484 } # as_fn_executable_p
20485 as_test_x='test -x'
20486 as_executable_p=as_fn_executable_p
20487
20488 # Sed expression to map a string onto a valid CPP name.
20489 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20490
20491 # Sed expression to map a string onto a valid variable name.
20492 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20493
20494
20495 exec 6>&1
20496 ## ----------------------------------- ##
20497 ## Main body of $CONFIG_STATUS script. ##
20498 ## ----------------------------------- ##
20499 _ASEOF
20500 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20501
20502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20503 # Save the log message, to keep $0 and so on meaningful, and to
20504 # report actual input values of CONFIG_FILES etc. instead of their
20505 # values after options handling.
20506 ac_log="
20507 This file was extended by xf86-video-intel $as_me 2.20.9, which was
20508 generated by GNU Autoconf 2.69.  Invocation command line was
20509
20510   CONFIG_FILES    = $CONFIG_FILES
20511   CONFIG_HEADERS  = $CONFIG_HEADERS
20512   CONFIG_LINKS    = $CONFIG_LINKS
20513   CONFIG_COMMANDS = $CONFIG_COMMANDS
20514   $ $0 $@
20515
20516 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20517 "
20518
20519 _ACEOF
20520
20521 case $ac_config_files in *"
20522 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20523 esac
20524
20525 case $ac_config_headers in *"
20526 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20527 esac
20528
20529
20530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20531 # Files that config.status was made for.
20532 config_files="$ac_config_files"
20533 config_headers="$ac_config_headers"
20534 config_commands="$ac_config_commands"
20535
20536 _ACEOF
20537
20538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20539 ac_cs_usage="\
20540 \`$as_me' instantiates files and other configuration actions
20541 from templates according to the current configuration.  Unless the files
20542 and actions are specified as TAGs, all are instantiated by default.
20543
20544 Usage: $0 [OPTION]... [TAG]...
20545
20546   -h, --help       print this help, then exit
20547   -V, --version    print version number and configuration settings, then exit
20548       --config     print configuration, then exit
20549   -q, --quiet, --silent
20550                    do not print progress messages
20551   -d, --debug      don't remove temporary files
20552       --recheck    update $as_me by reconfiguring in the same conditions
20553       --file=FILE[:TEMPLATE]
20554                    instantiate the configuration file FILE
20555       --header=FILE[:TEMPLATE]
20556                    instantiate the configuration header FILE
20557
20558 Configuration files:
20559 $config_files
20560
20561 Configuration headers:
20562 $config_headers
20563
20564 Configuration commands:
20565 $config_commands
20566
20567 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20568
20569 _ACEOF
20570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20571 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20572 ac_cs_version="\\
20573 xf86-video-intel config.status 2.20.9
20574 configured by $0, generated by GNU Autoconf 2.69,
20575   with options \\"\$ac_cs_config\\"
20576
20577 Copyright (C) 2012 Free Software Foundation, Inc.
20578 This config.status script is free software; the Free Software Foundation
20579 gives unlimited permission to copy, distribute and modify it."
20580
20581 ac_pwd='$ac_pwd'
20582 srcdir='$srcdir'
20583 INSTALL='$INSTALL'
20584 MKDIR_P='$MKDIR_P'
20585 AWK='$AWK'
20586 test -n "\$AWK" || AWK=awk
20587 _ACEOF
20588
20589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20590 # The default lists apply if the user does not specify any file.
20591 ac_need_defaults=:
20592 while test $# != 0
20593 do
20594   case $1 in
20595   --*=?*)
20596     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20597     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20598     ac_shift=:
20599     ;;
20600   --*=)
20601     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20602     ac_optarg=
20603     ac_shift=:
20604     ;;
20605   *)
20606     ac_option=$1
20607     ac_optarg=$2
20608     ac_shift=shift
20609     ;;
20610   esac
20611
20612   case $ac_option in
20613   # Handling of the options.
20614   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20615     ac_cs_recheck=: ;;
20616   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20617     $as_echo "$ac_cs_version"; exit ;;
20618   --config | --confi | --conf | --con | --co | --c )
20619     $as_echo "$ac_cs_config"; exit ;;
20620   --debug | --debu | --deb | --de | --d | -d )
20621     debug=: ;;
20622   --file | --fil | --fi | --f )
20623     $ac_shift
20624     case $ac_optarg in
20625     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20626     '') as_fn_error $? "missing file argument" ;;
20627     esac
20628     as_fn_append CONFIG_FILES " '$ac_optarg'"
20629     ac_need_defaults=false;;
20630   --header | --heade | --head | --hea )
20631     $ac_shift
20632     case $ac_optarg in
20633     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20634     esac
20635     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20636     ac_need_defaults=false;;
20637   --he | --h)
20638     # Conflict between --help and --header
20639     as_fn_error $? "ambiguous option: \`$1'
20640 Try \`$0 --help' for more information.";;
20641   --help | --hel | -h )
20642     $as_echo "$ac_cs_usage"; exit ;;
20643   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20644   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20645     ac_cs_silent=: ;;
20646
20647   # This is an error.
20648   -*) as_fn_error $? "unrecognized option: \`$1'
20649 Try \`$0 --help' for more information." ;;
20650
20651   *) as_fn_append ac_config_targets " $1"
20652      ac_need_defaults=false ;;
20653
20654   esac
20655   shift
20656 done
20657
20658 ac_configure_extra_args=
20659
20660 if $ac_cs_silent; then
20661   exec 6>/dev/null
20662   ac_configure_extra_args="$ac_configure_extra_args --silent"
20663 fi
20664
20665 _ACEOF
20666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20667 if \$ac_cs_recheck; then
20668   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20669   shift
20670   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20671   CONFIG_SHELL='$SHELL'
20672   export CONFIG_SHELL
20673   exec "\$@"
20674 fi
20675
20676 _ACEOF
20677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20678 exec 5>>config.log
20679 {
20680   echo
20681   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20682 ## Running $as_me. ##
20683 _ASBOX
20684   $as_echo "$ac_log"
20685 } >&5
20686
20687 _ACEOF
20688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20689 #
20690 # INIT-COMMANDS
20691 #
20692 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20693
20694
20695 # The HP-UX ksh and POSIX shell print the target directory to stdout
20696 # if CDPATH is set.
20697 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20698
20699 sed_quote_subst='$sed_quote_subst'
20700 double_quote_subst='$double_quote_subst'
20701 delay_variable_subst='$delay_variable_subst'
20702 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20703 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20704 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20705 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20706 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20707 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20708 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20709 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20710 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20711 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20712 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20713 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20714 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20715 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20716 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20717 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20718 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20719 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20720 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20721 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20722 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20723 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20724 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20725 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20726 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20727 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20728 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20729 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20730 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20731 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20732 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20733 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20734 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20735 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20736 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20737 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20738 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20739 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20740 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20741 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20742 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20743 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20744 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20745 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20746 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20747 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20748 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20749 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20750 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20751 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20752 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20753 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20754 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20755 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20756 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20757 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20758 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"`'
20759 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20760 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20761 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20762 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20763 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20764 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20765 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20766 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20767 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20768 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20769 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20770 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20771 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20772 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20773 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20774 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20775 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20776 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20777 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20778 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20779 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20780 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20781 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20782 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20783 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20784 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20785 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20786 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20787 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20788 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20789 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20790 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20791 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20792 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20793 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20794 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20795 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20796 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20797 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20798 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20799 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20800 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20801 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20802 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20803 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20804 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20805 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20806 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20807 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20808 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20809 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20810 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20811 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20812 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20813 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20814 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20815 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20816 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20817 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20818 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20819 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20820 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20821 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20822 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20823 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20824 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20825 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20826 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20827 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20828 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20829 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20830 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20831 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20832
20833 LTCC='$LTCC'
20834 LTCFLAGS='$LTCFLAGS'
20835 compiler='$compiler_DEFAULT'
20836
20837 # A function that is used when there is no print builtin or printf.
20838 func_fallback_echo ()
20839 {
20840   eval 'cat <<_LTECHO_EOF
20841 \$1
20842 _LTECHO_EOF'
20843 }
20844
20845 # Quote evaled strings.
20846 for var in SHELL \
20847 ECHO \
20848 PATH_SEPARATOR \
20849 SED \
20850 GREP \
20851 EGREP \
20852 FGREP \
20853 LD \
20854 NM \
20855 LN_S \
20856 lt_SP2NL \
20857 lt_NL2SP \
20858 reload_flag \
20859 OBJDUMP \
20860 deplibs_check_method \
20861 file_magic_cmd \
20862 file_magic_glob \
20863 want_nocaseglob \
20864 DLLTOOL \
20865 sharedlib_from_linklib_cmd \
20866 AR \
20867 AR_FLAGS \
20868 archiver_list_spec \
20869 STRIP \
20870 RANLIB \
20871 CC \
20872 CFLAGS \
20873 compiler \
20874 lt_cv_sys_global_symbol_pipe \
20875 lt_cv_sys_global_symbol_to_cdecl \
20876 lt_cv_sys_global_symbol_to_c_name_address \
20877 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20878 nm_file_list_spec \
20879 lt_prog_compiler_no_builtin_flag \
20880 lt_prog_compiler_pic \
20881 lt_prog_compiler_wl \
20882 lt_prog_compiler_static \
20883 lt_cv_prog_compiler_c_o \
20884 need_locks \
20885 MANIFEST_TOOL \
20886 DSYMUTIL \
20887 NMEDIT \
20888 LIPO \
20889 OTOOL \
20890 OTOOL64 \
20891 shrext_cmds \
20892 export_dynamic_flag_spec \
20893 whole_archive_flag_spec \
20894 compiler_needs_object \
20895 with_gnu_ld \
20896 allow_undefined_flag \
20897 no_undefined_flag \
20898 hardcode_libdir_flag_spec \
20899 hardcode_libdir_separator \
20900 exclude_expsyms \
20901 include_expsyms \
20902 file_list_spec \
20903 variables_saved_for_relink \
20904 libname_spec \
20905 library_names_spec \
20906 soname_spec \
20907 install_override_mode \
20908 finish_eval \
20909 old_striplib \
20910 striplib; do
20911     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20912     *[\\\\\\\`\\"\\\$]*)
20913       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20914       ;;
20915     *)
20916       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20917       ;;
20918     esac
20919 done
20920
20921 # Double-quote double-evaled strings.
20922 for var in reload_cmds \
20923 old_postinstall_cmds \
20924 old_postuninstall_cmds \
20925 old_archive_cmds \
20926 extract_expsyms_cmds \
20927 old_archive_from_new_cmds \
20928 old_archive_from_expsyms_cmds \
20929 archive_cmds \
20930 archive_expsym_cmds \
20931 module_cmds \
20932 module_expsym_cmds \
20933 export_symbols_cmds \
20934 prelink_cmds \
20935 postlink_cmds \
20936 postinstall_cmds \
20937 postuninstall_cmds \
20938 finish_cmds \
20939 sys_lib_search_path_spec \
20940 sys_lib_dlsearch_path_spec; do
20941     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20942     *[\\\\\\\`\\"\\\$]*)
20943       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20944       ;;
20945     *)
20946       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20947       ;;
20948     esac
20949 done
20950
20951 ac_aux_dir='$ac_aux_dir'
20952 xsi_shell='$xsi_shell'
20953 lt_shell_append='$lt_shell_append'
20954
20955 # See if we are running on zsh, and set the options which allow our
20956 # commands through without removal of \ escapes INIT.
20957 if test -n "\${ZSH_VERSION+set}" ; then
20958    setopt NO_GLOB_SUBST
20959 fi
20960
20961
20962     PACKAGE='$PACKAGE'
20963     VERSION='$VERSION'
20964     TIMESTAMP='$TIMESTAMP'
20965     RM='$RM'
20966     ofile='$ofile'
20967
20968
20969
20970
20971 _ACEOF
20972
20973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20974
20975 # Handling of arguments.
20976 for ac_config_target in $ac_config_targets
20977 do
20978   case $ac_config_target in
20979     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20980     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20981     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20982     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20983     "uxa/Makefile") CONFIG_FILES="$CONFIG_FILES uxa/Makefile" ;;
20984     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20985     "src/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/Makefile" ;;
20986     "src/xvmc/shader/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/Makefile" ;;
20987     "src/xvmc/shader/mc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/mc/Makefile" ;;
20988     "src/xvmc/shader/vld/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/vld/Makefile" ;;
20989     "src/legacy/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/Makefile" ;;
20990     "src/legacy/i810/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/Makefile" ;;
20991     "src/legacy/i810/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/xvmc/Makefile" ;;
20992     "src/sna/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/Makefile" ;;
20993     "src/sna/brw/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/brw/Makefile" ;;
20994     "src/sna/fb/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/fb/Makefile" ;;
20995     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20996     "src/render_program/Makefile") CONFIG_FILES="$CONFIG_FILES src/render_program/Makefile" ;;
20997     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20998
20999   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21000   esac
21001 done
21002
21003
21004 # If the user did not use the arguments to specify the items to instantiate,
21005 # then the envvar interface is used.  Set only those that are not.
21006 # We use the long form for the default assignment because of an extremely
21007 # bizarre bug on SunOS 4.1.3.
21008 if $ac_need_defaults; then
21009   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21010   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21011   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21012 fi
21013
21014 # Have a temporary directory for convenience.  Make it in the build tree
21015 # simply because there is no reason against having it here, and in addition,
21016 # creating and moving files from /tmp can sometimes cause problems.
21017 # Hook for its removal unless debugging.
21018 # Note that there is a small window in which the directory will not be cleaned:
21019 # after its creation but before its name has been assigned to `$tmp'.
21020 $debug ||
21021 {
21022   tmp= ac_tmp=
21023   trap 'exit_status=$?
21024   : "${ac_tmp:=$tmp}"
21025   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21026 ' 0
21027   trap 'as_fn_exit 1' 1 2 13 15
21028 }
21029 # Create a (secure) tmp directory for tmp files.
21030
21031 {
21032   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21033   test -d "$tmp"
21034 }  ||
21035 {
21036   tmp=./conf$$-$RANDOM
21037   (umask 077 && mkdir "$tmp")
21038 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21039 ac_tmp=$tmp
21040
21041 # Set up the scripts for CONFIG_FILES section.
21042 # No need to generate them if there are no CONFIG_FILES.
21043 # This happens for instance with `./config.status config.h'.
21044 if test -n "$CONFIG_FILES"; then
21045
21046
21047 ac_cr=`echo X | tr X '\015'`
21048 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21049 # But we know of no other shell where ac_cr would be empty at this
21050 # point, so we can use a bashism as a fallback.
21051 if test "x$ac_cr" = x; then
21052   eval ac_cr=\$\'\\r\'
21053 fi
21054 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21055 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21056   ac_cs_awk_cr='\\r'
21057 else
21058   ac_cs_awk_cr=$ac_cr
21059 fi
21060
21061 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21062 _ACEOF
21063
21064
21065 {
21066   echo "cat >conf$$subs.awk <<_ACEOF" &&
21067   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21068   echo "_ACEOF"
21069 } >conf$$subs.sh ||
21070   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21071 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21072 ac_delim='%!_!# '
21073 for ac_last_try in false false false false false :; do
21074   . ./conf$$subs.sh ||
21075     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21076
21077   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21078   if test $ac_delim_n = $ac_delim_num; then
21079     break
21080   elif $ac_last_try; then
21081     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21082   else
21083     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21084   fi
21085 done
21086 rm -f conf$$subs.sh
21087
21088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21089 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21090 _ACEOF
21091 sed -n '
21092 h
21093 s/^/S["/; s/!.*/"]=/
21094 p
21095 g
21096 s/^[^!]*!//
21097 :repl
21098 t repl
21099 s/'"$ac_delim"'$//
21100 t delim
21101 :nl
21102 h
21103 s/\(.\{148\}\)..*/\1/
21104 t more1
21105 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21106 p
21107 n
21108 b repl
21109 :more1
21110 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21111 p
21112 g
21113 s/.\{148\}//
21114 t nl
21115 :delim
21116 h
21117 s/\(.\{148\}\)..*/\1/
21118 t more2
21119 s/["\\]/\\&/g; s/^/"/; s/$/"/
21120 p
21121 b
21122 :more2
21123 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21124 p
21125 g
21126 s/.\{148\}//
21127 t delim
21128 ' <conf$$subs.awk | sed '
21129 /^[^""]/{
21130   N
21131   s/\n//
21132 }
21133 ' >>$CONFIG_STATUS || ac_write_fail=1
21134 rm -f conf$$subs.awk
21135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21136 _ACAWK
21137 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21138   for (key in S) S_is_set[key] = 1
21139   FS = "\a"
21140
21141 }
21142 {
21143   line = $ 0
21144   nfields = split(line, field, "@")
21145   substed = 0
21146   len = length(field[1])
21147   for (i = 2; i < nfields; i++) {
21148     key = field[i]
21149     keylen = length(key)
21150     if (S_is_set[key]) {
21151       value = S[key]
21152       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21153       len += length(value) + length(field[++i])
21154       substed = 1
21155     } else
21156       len += 1 + keylen
21157   }
21158
21159   print line
21160 }
21161
21162 _ACAWK
21163 _ACEOF
21164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21165 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21166   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21167 else
21168   cat
21169 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21170   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21171 _ACEOF
21172
21173 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21174 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21175 # trailing colons and then remove the whole line if VPATH becomes empty
21176 # (actually we leave an empty line to preserve line numbers).
21177 if test "x$srcdir" = x.; then
21178   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21179 h
21180 s///
21181 s/^/:/
21182 s/[      ]*$/:/
21183 s/:\$(srcdir):/:/g
21184 s/:\${srcdir}:/:/g
21185 s/:@srcdir@:/:/g
21186 s/^:*//
21187 s/:*$//
21188 x
21189 s/\(=[   ]*\).*/\1/
21190 G
21191 s/\n//
21192 s/^[^=]*=[       ]*$//
21193 }'
21194 fi
21195
21196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21197 fi # test -n "$CONFIG_FILES"
21198
21199 # Set up the scripts for CONFIG_HEADERS section.
21200 # No need to generate them if there are no CONFIG_HEADERS.
21201 # This happens for instance with `./config.status Makefile'.
21202 if test -n "$CONFIG_HEADERS"; then
21203 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21204 BEGIN {
21205 _ACEOF
21206
21207 # Transform confdefs.h into an awk script `defines.awk', embedded as
21208 # here-document in config.status, that substitutes the proper values into
21209 # config.h.in to produce config.h.
21210
21211 # Create a delimiter string that does not exist in confdefs.h, to ease
21212 # handling of long lines.
21213 ac_delim='%!_!# '
21214 for ac_last_try in false false :; do
21215   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21216   if test -z "$ac_tt"; then
21217     break
21218   elif $ac_last_try; then
21219     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21220   else
21221     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21222   fi
21223 done
21224
21225 # For the awk script, D is an array of macro values keyed by name,
21226 # likewise P contains macro parameters if any.  Preserve backslash
21227 # newline sequences.
21228
21229 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21230 sed -n '
21231 s/.\{148\}/&'"$ac_delim"'/g
21232 t rset
21233 :rset
21234 s/^[     ]*#[    ]*define[       ][      ]*/ /
21235 t def
21236 d
21237 :def
21238 s/\\$//
21239 t bsnl
21240 s/["\\]/\\&/g
21241 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21242 D["\1"]=" \3"/p
21243 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21244 d
21245 :bsnl
21246 s/["\\]/\\&/g
21247 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21248 D["\1"]=" \3\\\\\\n"\\/p
21249 t cont
21250 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21251 t cont
21252 d
21253 :cont
21254 n
21255 s/.\{148\}/&'"$ac_delim"'/g
21256 t clear
21257 :clear
21258 s/\\$//
21259 t bsnlc
21260 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21261 d
21262 :bsnlc
21263 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21264 b cont
21265 ' <confdefs.h | sed '
21266 s/'"$ac_delim"'/"\\\
21267 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21268
21269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21270   for (key in D) D_is_set[key] = 1
21271   FS = "\a"
21272 }
21273 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21274   line = \$ 0
21275   split(line, arg, " ")
21276   if (arg[1] == "#") {
21277     defundef = arg[2]
21278     mac1 = arg[3]
21279   } else {
21280     defundef = substr(arg[1], 2)
21281     mac1 = arg[2]
21282   }
21283   split(mac1, mac2, "(") #)
21284   macro = mac2[1]
21285   prefix = substr(line, 1, index(line, defundef) - 1)
21286   if (D_is_set[macro]) {
21287     # Preserve the white space surrounding the "#".
21288     print prefix "define", macro P[macro] D[macro]
21289     next
21290   } else {
21291     # Replace #undef with comments.  This is necessary, for example,
21292     # in the case of _POSIX_SOURCE, which is predefined and required
21293     # on some systems where configure will not decide to define it.
21294     if (defundef == "undef") {
21295       print "/*", prefix defundef, macro, "*/"
21296       next
21297     }
21298   }
21299 }
21300 { print }
21301 _ACAWK
21302 _ACEOF
21303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21304   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21305 fi # test -n "$CONFIG_HEADERS"
21306
21307
21308 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21309 shift
21310 for ac_tag
21311 do
21312   case $ac_tag in
21313   :[FHLC]) ac_mode=$ac_tag; continue;;
21314   esac
21315   case $ac_mode$ac_tag in
21316   :[FHL]*:*);;
21317   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21318   :[FH]-) ac_tag=-:-;;
21319   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21320   esac
21321   ac_save_IFS=$IFS
21322   IFS=:
21323   set x $ac_tag
21324   IFS=$ac_save_IFS
21325   shift
21326   ac_file=$1
21327   shift
21328
21329   case $ac_mode in
21330   :L) ac_source=$1;;
21331   :[FH])
21332     ac_file_inputs=
21333     for ac_f
21334     do
21335       case $ac_f in
21336       -) ac_f="$ac_tmp/stdin";;
21337       *) # Look for the file first in the build tree, then in the source tree
21338          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21339          # because $ac_f cannot contain `:'.
21340          test -f "$ac_f" ||
21341            case $ac_f in
21342            [\\/$]*) false;;
21343            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21344            esac ||
21345            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21346       esac
21347       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21348       as_fn_append ac_file_inputs " '$ac_f'"
21349     done
21350
21351     # Let's still pretend it is `configure' which instantiates (i.e., don't
21352     # use $as_me), people would be surprised to read:
21353     #    /* config.h.  Generated by config.status.  */
21354     configure_input='Generated from '`
21355           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21356         `' by configure.'
21357     if test x"$ac_file" != x-; then
21358       configure_input="$ac_file.  $configure_input"
21359       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21360 $as_echo "$as_me: creating $ac_file" >&6;}
21361     fi
21362     # Neutralize special characters interpreted by sed in replacement strings.
21363     case $configure_input in #(
21364     *\&* | *\|* | *\\* )
21365        ac_sed_conf_input=`$as_echo "$configure_input" |
21366        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21367     *) ac_sed_conf_input=$configure_input;;
21368     esac
21369
21370     case $ac_tag in
21371     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21372       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21373     esac
21374     ;;
21375   esac
21376
21377   ac_dir=`$as_dirname -- "$ac_file" ||
21378 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21379          X"$ac_file" : 'X\(//\)[^/]' \| \
21380          X"$ac_file" : 'X\(//\)$' \| \
21381          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21382 $as_echo X"$ac_file" |
21383     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21384             s//\1/
21385             q
21386           }
21387           /^X\(\/\/\)[^/].*/{
21388             s//\1/
21389             q
21390           }
21391           /^X\(\/\/\)$/{
21392             s//\1/
21393             q
21394           }
21395           /^X\(\/\).*/{
21396             s//\1/
21397             q
21398           }
21399           s/.*/./; q'`
21400   as_dir="$ac_dir"; as_fn_mkdir_p
21401   ac_builddir=.
21402
21403 case "$ac_dir" in
21404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21405 *)
21406   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21407   # A ".." for each directory in $ac_dir_suffix.
21408   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21409   case $ac_top_builddir_sub in
21410   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21411   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21412   esac ;;
21413 esac
21414 ac_abs_top_builddir=$ac_pwd
21415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21416 # for backward compatibility:
21417 ac_top_builddir=$ac_top_build_prefix
21418
21419 case $srcdir in
21420   .)  # We are building in place.
21421     ac_srcdir=.
21422     ac_top_srcdir=$ac_top_builddir_sub
21423     ac_abs_top_srcdir=$ac_pwd ;;
21424   [\\/]* | ?:[\\/]* )  # Absolute name.
21425     ac_srcdir=$srcdir$ac_dir_suffix;
21426     ac_top_srcdir=$srcdir
21427     ac_abs_top_srcdir=$srcdir ;;
21428   *) # Relative name.
21429     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21430     ac_top_srcdir=$ac_top_build_prefix$srcdir
21431     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21432 esac
21433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21434
21435
21436   case $ac_mode in
21437   :F)
21438   #
21439   # CONFIG_FILE
21440   #
21441
21442   case $INSTALL in
21443   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21444   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21445   esac
21446   ac_MKDIR_P=$MKDIR_P
21447   case $MKDIR_P in
21448   [\\/$]* | ?:[\\/]* ) ;;
21449   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21450   esac
21451 _ACEOF
21452
21453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21454 # If the template does not know about datarootdir, expand it.
21455 # FIXME: This hack should be removed a few years after 2.60.
21456 ac_datarootdir_hack=; ac_datarootdir_seen=
21457 ac_sed_dataroot='
21458 /datarootdir/ {
21459   p
21460   q
21461 }
21462 /@datadir@/p
21463 /@docdir@/p
21464 /@infodir@/p
21465 /@localedir@/p
21466 /@mandir@/p'
21467 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21468 *datarootdir*) ac_datarootdir_seen=yes;;
21469 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21470   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21471 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21472 _ACEOF
21473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21474   ac_datarootdir_hack='
21475   s&@datadir@&$datadir&g
21476   s&@docdir@&$docdir&g
21477   s&@infodir@&$infodir&g
21478   s&@localedir@&$localedir&g
21479   s&@mandir@&$mandir&g
21480   s&\\\${datarootdir}&$datarootdir&g' ;;
21481 esac
21482 _ACEOF
21483
21484 # Neutralize VPATH when `$srcdir' = `.'.
21485 # Shell code in configure.ac might set extrasub.
21486 # FIXME: do we really want to maintain this feature?
21487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21488 ac_sed_extra="$ac_vpsub
21489 $extrasub
21490 _ACEOF
21491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21492 :t
21493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21494 s|@configure_input@|$ac_sed_conf_input|;t t
21495 s&@top_builddir@&$ac_top_builddir_sub&;t t
21496 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21497 s&@srcdir@&$ac_srcdir&;t t
21498 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21499 s&@top_srcdir@&$ac_top_srcdir&;t t
21500 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21501 s&@builddir@&$ac_builddir&;t t
21502 s&@abs_builddir@&$ac_abs_builddir&;t t
21503 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21504 s&@INSTALL@&$ac_INSTALL&;t t
21505 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21506 $ac_datarootdir_hack
21507 "
21508 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21509   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21510
21511 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21512   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21513   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21514       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21515   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21516 which seems to be undefined.  Please make sure it is defined" >&5
21517 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21518 which seems to be undefined.  Please make sure it is defined" >&2;}
21519
21520   rm -f "$ac_tmp/stdin"
21521   case $ac_file in
21522   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21523   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21524   esac \
21525   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21526  ;;
21527   :H)
21528   #
21529   # CONFIG_HEADER
21530   #
21531   if test x"$ac_file" != x-; then
21532     {
21533       $as_echo "/* $configure_input  */" \
21534       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21535     } >"$ac_tmp/config.h" \
21536       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21537     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21538       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21539 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21540     else
21541       rm -f "$ac_file"
21542       mv "$ac_tmp/config.h" "$ac_file" \
21543         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21544     fi
21545   else
21546     $as_echo "/* $configure_input  */" \
21547       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21548       || as_fn_error $? "could not create -" "$LINENO" 5
21549   fi
21550 # Compute "$ac_file"'s index in $config_headers.
21551 _am_arg="$ac_file"
21552 _am_stamp_count=1
21553 for _am_header in $config_headers :; do
21554   case $_am_header in
21555     $_am_arg | $_am_arg:* )
21556       break ;;
21557     * )
21558       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21559   esac
21560 done
21561 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21562 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21563          X"$_am_arg" : 'X\(//\)[^/]' \| \
21564          X"$_am_arg" : 'X\(//\)$' \| \
21565          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21566 $as_echo X"$_am_arg" |
21567     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21568             s//\1/
21569             q
21570           }
21571           /^X\(\/\/\)[^/].*/{
21572             s//\1/
21573             q
21574           }
21575           /^X\(\/\/\)$/{
21576             s//\1/
21577             q
21578           }
21579           /^X\(\/\).*/{
21580             s//\1/
21581             q
21582           }
21583           s/.*/./; q'`/stamp-h$_am_stamp_count
21584  ;;
21585
21586   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21587 $as_echo "$as_me: executing $ac_file commands" >&6;}
21588  ;;
21589   esac
21590
21591
21592   case $ac_file$ac_mode in
21593     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21594   # Autoconf 2.62 quotes --file arguments for eval, but not when files
21595   # are listed without --file.  Let's play safe and only enable the eval
21596   # if we detect the quoting.
21597   case $CONFIG_FILES in
21598   *\'*) eval set x "$CONFIG_FILES" ;;
21599   *)   set x $CONFIG_FILES ;;
21600   esac
21601   shift
21602   for mf
21603   do
21604     # Strip MF so we end up with the name of the file.
21605     mf=`echo "$mf" | sed -e 's/:.*$//'`
21606     # Check whether this is an Automake generated Makefile or not.
21607     # We used to match only the files named `Makefile.in', but
21608     # some people rename them; so instead we look at the file content.
21609     # Grep'ing the first line is not enough: some people post-process
21610     # each Makefile.in and add a new line on top of each file to say so.
21611     # Grep'ing the whole file is not good either: AIX grep has a line
21612     # limit of 2048, but all sed's we know have understand at least 4000.
21613     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21614       dirpart=`$as_dirname -- "$mf" ||
21615 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21616          X"$mf" : 'X\(//\)[^/]' \| \
21617          X"$mf" : 'X\(//\)$' \| \
21618          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21619 $as_echo X"$mf" |
21620     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21621             s//\1/
21622             q
21623           }
21624           /^X\(\/\/\)[^/].*/{
21625             s//\1/
21626             q
21627           }
21628           /^X\(\/\/\)$/{
21629             s//\1/
21630             q
21631           }
21632           /^X\(\/\).*/{
21633             s//\1/
21634             q
21635           }
21636           s/.*/./; q'`
21637     else
21638       continue
21639     fi
21640     # Extract the definition of DEPDIR, am__include, and am__quote
21641     # from the Makefile without running `make'.
21642     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21643     test -z "$DEPDIR" && continue
21644     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21645     test -z "am__include" && continue
21646     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21647     # When using ansi2knr, U may be empty or an underscore; expand it
21648     U=`sed -n 's/^U = //p' < "$mf"`
21649     # Find all dependency output files, they are included files with
21650     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21651     # simplest approach to changing $(DEPDIR) to its actual value in the
21652     # expansion.
21653     for file in `sed -n "
21654       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21655          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21656       # Make sure the directory exists.
21657       test -f "$dirpart/$file" && continue
21658       fdir=`$as_dirname -- "$file" ||
21659 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21660          X"$file" : 'X\(//\)[^/]' \| \
21661          X"$file" : 'X\(//\)$' \| \
21662          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21663 $as_echo X"$file" |
21664     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21665             s//\1/
21666             q
21667           }
21668           /^X\(\/\/\)[^/].*/{
21669             s//\1/
21670             q
21671           }
21672           /^X\(\/\/\)$/{
21673             s//\1/
21674             q
21675           }
21676           /^X\(\/\).*/{
21677             s//\1/
21678             q
21679           }
21680           s/.*/./; q'`
21681       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21682       # echo "creating $dirpart/$file"
21683       echo '# dummy' > "$dirpart/$file"
21684     done
21685   done
21686 }
21687  ;;
21688     "libtool":C)
21689
21690     # See if we are running on zsh, and set the options which allow our
21691     # commands through without removal of \ escapes.
21692     if test -n "${ZSH_VERSION+set}" ; then
21693       setopt NO_GLOB_SUBST
21694     fi
21695
21696     cfgfile="${ofile}T"
21697     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21698     $RM "$cfgfile"
21699
21700     cat <<_LT_EOF >> "$cfgfile"
21701 #! $SHELL
21702
21703 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21704 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21705 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21706 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21707 #
21708 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21709 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21710 #                 Foundation, Inc.
21711 #   Written by Gordon Matzigkeit, 1996
21712 #
21713 #   This file is part of GNU Libtool.
21714 #
21715 # GNU Libtool is free software; you can redistribute it and/or
21716 # modify it under the terms of the GNU General Public License as
21717 # published by the Free Software Foundation; either version 2 of
21718 # the License, or (at your option) any later version.
21719 #
21720 # As a special exception to the GNU General Public License,
21721 # if you distribute this file as part of a program or library that
21722 # is built using GNU Libtool, you may include this file under the
21723 # same distribution terms that you use for the rest of that program.
21724 #
21725 # GNU Libtool is distributed in the hope that it will be useful,
21726 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21728 # GNU General Public License for more details.
21729 #
21730 # You should have received a copy of the GNU General Public License
21731 # along with GNU Libtool; see the file COPYING.  If not, a copy
21732 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21733 # obtained by writing to the Free Software Foundation, Inc.,
21734 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21735
21736
21737 # The names of the tagged configurations supported by this script.
21738 available_tags=""
21739
21740 # ### BEGIN LIBTOOL CONFIG
21741
21742 # Whether or not to build static libraries.
21743 build_old_libs=$enable_static
21744
21745 # Which release of libtool.m4 was used?
21746 macro_version=$macro_version
21747 macro_revision=$macro_revision
21748
21749 # Whether or not to build shared libraries.
21750 build_libtool_libs=$enable_shared
21751
21752 # What type of objects to build.
21753 pic_mode=$pic_mode
21754
21755 # Whether or not to optimize for fast installation.
21756 fast_install=$enable_fast_install
21757
21758 # Shell to use when invoking shell scripts.
21759 SHELL=$lt_SHELL
21760
21761 # An echo program that protects backslashes.
21762 ECHO=$lt_ECHO
21763
21764 # The PATH separator for the build system.
21765 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21766
21767 # The host system.
21768 host_alias=$host_alias
21769 host=$host
21770 host_os=$host_os
21771
21772 # The build system.
21773 build_alias=$build_alias
21774 build=$build
21775 build_os=$build_os
21776
21777 # A sed program that does not truncate output.
21778 SED=$lt_SED
21779
21780 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21781 Xsed="\$SED -e 1s/^X//"
21782
21783 # A grep program that handles long lines.
21784 GREP=$lt_GREP
21785
21786 # An ERE matcher.
21787 EGREP=$lt_EGREP
21788
21789 # A literal string matcher.
21790 FGREP=$lt_FGREP
21791
21792 # A BSD- or MS-compatible name lister.
21793 NM=$lt_NM
21794
21795 # Whether we need soft or hard links.
21796 LN_S=$lt_LN_S
21797
21798 # What is the maximum length of a command?
21799 max_cmd_len=$max_cmd_len
21800
21801 # Object file suffix (normally "o").
21802 objext=$ac_objext
21803
21804 # Executable file suffix (normally "").
21805 exeext=$exeext
21806
21807 # whether the shell understands "unset".
21808 lt_unset=$lt_unset
21809
21810 # turn spaces into newlines.
21811 SP2NL=$lt_lt_SP2NL
21812
21813 # turn newlines into spaces.
21814 NL2SP=$lt_lt_NL2SP
21815
21816 # convert \$build file names to \$host format.
21817 to_host_file_cmd=$lt_cv_to_host_file_cmd
21818
21819 # convert \$build files to toolchain format.
21820 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21821
21822 # An object symbol dumper.
21823 OBJDUMP=$lt_OBJDUMP
21824
21825 # Method to check whether dependent libraries are shared objects.
21826 deplibs_check_method=$lt_deplibs_check_method
21827
21828 # Command to use when deplibs_check_method = "file_magic".
21829 file_magic_cmd=$lt_file_magic_cmd
21830
21831 # How to find potential files when deplibs_check_method = "file_magic".
21832 file_magic_glob=$lt_file_magic_glob
21833
21834 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21835 want_nocaseglob=$lt_want_nocaseglob
21836
21837 # DLL creation program.
21838 DLLTOOL=$lt_DLLTOOL
21839
21840 # Command to associate shared and link libraries.
21841 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21842
21843 # The archiver.
21844 AR=$lt_AR
21845
21846 # Flags to create an archive.
21847 AR_FLAGS=$lt_AR_FLAGS
21848
21849 # How to feed a file listing to the archiver.
21850 archiver_list_spec=$lt_archiver_list_spec
21851
21852 # A symbol stripping program.
21853 STRIP=$lt_STRIP
21854
21855 # Commands used to install an old-style archive.
21856 RANLIB=$lt_RANLIB
21857 old_postinstall_cmds=$lt_old_postinstall_cmds
21858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21859
21860 # Whether to use a lock for old archive extraction.
21861 lock_old_archive_extraction=$lock_old_archive_extraction
21862
21863 # A C compiler.
21864 LTCC=$lt_CC
21865
21866 # LTCC compiler flags.
21867 LTCFLAGS=$lt_CFLAGS
21868
21869 # Take the output of nm and produce a listing of raw symbols and C names.
21870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21871
21872 # Transform the output of nm in a proper C declaration.
21873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21874
21875 # Transform the output of nm in a C name address pair.
21876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21877
21878 # Transform the output of nm in a C name address pair when lib prefix is needed.
21879 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21880
21881 # Specify filename containing input files for \$NM.
21882 nm_file_list_spec=$lt_nm_file_list_spec
21883
21884 # The root where to search for dependent libraries,and in which our libraries should be installed.
21885 lt_sysroot=$lt_sysroot
21886
21887 # The name of the directory that contains temporary libtool files.
21888 objdir=$objdir
21889
21890 # Used to examine libraries when file_magic_cmd begins with "file".
21891 MAGIC_CMD=$MAGIC_CMD
21892
21893 # Must we lock files when doing compilation?
21894 need_locks=$lt_need_locks
21895
21896 # Manifest tool.
21897 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21898
21899 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21900 DSYMUTIL=$lt_DSYMUTIL
21901
21902 # Tool to change global to local symbols on Mac OS X.
21903 NMEDIT=$lt_NMEDIT
21904
21905 # Tool to manipulate fat objects and archives on Mac OS X.
21906 LIPO=$lt_LIPO
21907
21908 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21909 OTOOL=$lt_OTOOL
21910
21911 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21912 OTOOL64=$lt_OTOOL64
21913
21914 # Old archive suffix (normally "a").
21915 libext=$libext
21916
21917 # Shared library suffix (normally ".so").
21918 shrext_cmds=$lt_shrext_cmds
21919
21920 # The commands to extract the exported symbol list from a shared archive.
21921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21922
21923 # Variables whose values should be saved in libtool wrapper scripts and
21924 # restored at link time.
21925 variables_saved_for_relink=$lt_variables_saved_for_relink
21926
21927 # Do we need the "lib" prefix for modules?
21928 need_lib_prefix=$need_lib_prefix
21929
21930 # Do we need a version for libraries?
21931 need_version=$need_version
21932
21933 # Library versioning type.
21934 version_type=$version_type
21935
21936 # Shared library runtime path variable.
21937 runpath_var=$runpath_var
21938
21939 # Shared library path variable.
21940 shlibpath_var=$shlibpath_var
21941
21942 # Is shlibpath searched before the hard-coded library search path?
21943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21944
21945 # Format of library name prefix.
21946 libname_spec=$lt_libname_spec
21947
21948 # List of archive names.  First name is the real one, the rest are links.
21949 # The last name is the one that the linker finds with -lNAME
21950 library_names_spec=$lt_library_names_spec
21951
21952 # The coded name of the library, if different from the real name.
21953 soname_spec=$lt_soname_spec
21954
21955 # Permission mode override for installation of shared libraries.
21956 install_override_mode=$lt_install_override_mode
21957
21958 # Command to use after installation of a shared archive.
21959 postinstall_cmds=$lt_postinstall_cmds
21960
21961 # Command to use after uninstallation of a shared archive.
21962 postuninstall_cmds=$lt_postuninstall_cmds
21963
21964 # Commands used to finish a libtool library installation in a directory.
21965 finish_cmds=$lt_finish_cmds
21966
21967 # As "finish_cmds", except a single script fragment to be evaled but
21968 # not shown.
21969 finish_eval=$lt_finish_eval
21970
21971 # Whether we should hardcode library paths into libraries.
21972 hardcode_into_libs=$hardcode_into_libs
21973
21974 # Compile-time system search path for libraries.
21975 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21976
21977 # Run-time system search path for libraries.
21978 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21979
21980 # Whether dlopen is supported.
21981 dlopen_support=$enable_dlopen
21982
21983 # Whether dlopen of programs is supported.
21984 dlopen_self=$enable_dlopen_self
21985
21986 # Whether dlopen of statically linked programs is supported.
21987 dlopen_self_static=$enable_dlopen_self_static
21988
21989 # Commands to strip libraries.
21990 old_striplib=$lt_old_striplib
21991 striplib=$lt_striplib
21992
21993
21994 # The linker used to build libraries.
21995 LD=$lt_LD
21996
21997 # How to create reloadable object files.
21998 reload_flag=$lt_reload_flag
21999 reload_cmds=$lt_reload_cmds
22000
22001 # Commands used to build an old-style archive.
22002 old_archive_cmds=$lt_old_archive_cmds
22003
22004 # A language specific compiler.
22005 CC=$lt_compiler
22006
22007 # Is the compiler the GNU compiler?
22008 with_gcc=$GCC
22009
22010 # Compiler flag to turn off builtin functions.
22011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22012
22013 # Additional compiler flags for building library objects.
22014 pic_flag=$lt_lt_prog_compiler_pic
22015
22016 # How to pass a linker flag through the compiler.
22017 wl=$lt_lt_prog_compiler_wl
22018
22019 # Compiler flag to prevent dynamic linking.
22020 link_static_flag=$lt_lt_prog_compiler_static
22021
22022 # Does compiler simultaneously support -c and -o options?
22023 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22024
22025 # Whether or not to add -lc for building shared libraries.
22026 build_libtool_need_lc=$archive_cmds_need_lc
22027
22028 # Whether or not to disallow shared libs when runtime libs are static.
22029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22030
22031 # Compiler flag to allow reflexive dlopens.
22032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22033
22034 # Compiler flag to generate shared objects directly from archives.
22035 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22036
22037 # Whether the compiler copes with passing no objects directly.
22038 compiler_needs_object=$lt_compiler_needs_object
22039
22040 # Create an old-style archive from a shared archive.
22041 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22042
22043 # Create a temporary old-style archive to link instead of a shared archive.
22044 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22045
22046 # Commands used to build a shared archive.
22047 archive_cmds=$lt_archive_cmds
22048 archive_expsym_cmds=$lt_archive_expsym_cmds
22049
22050 # Commands used to build a loadable module if different from building
22051 # a shared archive.
22052 module_cmds=$lt_module_cmds
22053 module_expsym_cmds=$lt_module_expsym_cmds
22054
22055 # Whether we are building with GNU ld or not.
22056 with_gnu_ld=$lt_with_gnu_ld
22057
22058 # Flag that allows shared libraries with undefined symbols to be built.
22059 allow_undefined_flag=$lt_allow_undefined_flag
22060
22061 # Flag that enforces no undefined symbols.
22062 no_undefined_flag=$lt_no_undefined_flag
22063
22064 # Flag to hardcode \$libdir into a binary during linking.
22065 # This must work even if \$libdir does not exist
22066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22067
22068 # Whether we need a single "-rpath" flag with a separated argument.
22069 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22070
22071 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22072 # DIR into the resulting binary.
22073 hardcode_direct=$hardcode_direct
22074
22075 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22076 # DIR into the resulting binary and the resulting library dependency is
22077 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22078 # library is relocated.
22079 hardcode_direct_absolute=$hardcode_direct_absolute
22080
22081 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22082 # into the resulting binary.
22083 hardcode_minus_L=$hardcode_minus_L
22084
22085 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22086 # into the resulting binary.
22087 hardcode_shlibpath_var=$hardcode_shlibpath_var
22088
22089 # Set to "yes" if building a shared library automatically hardcodes DIR
22090 # into the library and all subsequent libraries and executables linked
22091 # against it.
22092 hardcode_automatic=$hardcode_automatic
22093
22094 # Set to yes if linker adds runtime paths of dependent libraries
22095 # to runtime path list.
22096 inherit_rpath=$inherit_rpath
22097
22098 # Whether libtool must link a program against all its dependency libraries.
22099 link_all_deplibs=$link_all_deplibs
22100
22101 # Set to "yes" if exported symbols are required.
22102 always_export_symbols=$always_export_symbols
22103
22104 # The commands to list exported symbols.
22105 export_symbols_cmds=$lt_export_symbols_cmds
22106
22107 # Symbols that should not be listed in the preloaded symbols.
22108 exclude_expsyms=$lt_exclude_expsyms
22109
22110 # Symbols that must always be exported.
22111 include_expsyms=$lt_include_expsyms
22112
22113 # Commands necessary for linking programs (against libraries) with templates.
22114 prelink_cmds=$lt_prelink_cmds
22115
22116 # Commands necessary for finishing linking programs.
22117 postlink_cmds=$lt_postlink_cmds
22118
22119 # Specify filename containing input files.
22120 file_list_spec=$lt_file_list_spec
22121
22122 # How to hardcode a shared library path into an executable.
22123 hardcode_action=$hardcode_action
22124
22125 # ### END LIBTOOL CONFIG
22126
22127 _LT_EOF
22128
22129   case $host_os in
22130   aix3*)
22131     cat <<\_LT_EOF >> "$cfgfile"
22132 # AIX sometimes has problems with the GCC collect2 program.  For some
22133 # reason, if we set the COLLECT_NAMES environment variable, the problems
22134 # vanish in a puff of smoke.
22135 if test "X${COLLECT_NAMES+set}" != Xset; then
22136   COLLECT_NAMES=
22137   export COLLECT_NAMES
22138 fi
22139 _LT_EOF
22140     ;;
22141   esac
22142
22143
22144 ltmain="$ac_aux_dir/ltmain.sh"
22145
22146
22147   # We use sed instead of cat because bash on DJGPP gets confused if
22148   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22149   # text mode, it properly converts lines to CR/LF.  This bash problem
22150   # is reportedly fixed, but why not run on old versions too?
22151   sed '$q' "$ltmain" >> "$cfgfile" \
22152      || (rm -f "$cfgfile"; exit 1)
22153
22154   if test x"$xsi_shell" = xyes; then
22155   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22156 func_dirname ()\
22157 {\
22158 \    case ${1} in\
22159 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22160 \      *  ) func_dirname_result="${3}" ;;\
22161 \    esac\
22162 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22163   && mv -f "$cfgfile.tmp" "$cfgfile" \
22164     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22165 test 0 -eq $? || _lt_function_replace_fail=:
22166
22167
22168   sed -e '/^func_basename ()$/,/^} # func_basename /c\
22169 func_basename ()\
22170 {\
22171 \    func_basename_result="${1##*/}"\
22172 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22173   && mv -f "$cfgfile.tmp" "$cfgfile" \
22174     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22175 test 0 -eq $? || _lt_function_replace_fail=:
22176
22177
22178   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22179 func_dirname_and_basename ()\
22180 {\
22181 \    case ${1} in\
22182 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22183 \      *  ) func_dirname_result="${3}" ;;\
22184 \    esac\
22185 \    func_basename_result="${1##*/}"\
22186 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22187   && mv -f "$cfgfile.tmp" "$cfgfile" \
22188     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22189 test 0 -eq $? || _lt_function_replace_fail=:
22190
22191
22192   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22193 func_stripname ()\
22194 {\
22195 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22196 \    # positional parameters, so assign one to ordinary parameter first.\
22197 \    func_stripname_result=${3}\
22198 \    func_stripname_result=${func_stripname_result#"${1}"}\
22199 \    func_stripname_result=${func_stripname_result%"${2}"}\
22200 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22201   && mv -f "$cfgfile.tmp" "$cfgfile" \
22202     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22203 test 0 -eq $? || _lt_function_replace_fail=:
22204
22205
22206   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22207 func_split_long_opt ()\
22208 {\
22209 \    func_split_long_opt_name=${1%%=*}\
22210 \    func_split_long_opt_arg=${1#*=}\
22211 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22212   && mv -f "$cfgfile.tmp" "$cfgfile" \
22213     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22214 test 0 -eq $? || _lt_function_replace_fail=:
22215
22216
22217   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22218 func_split_short_opt ()\
22219 {\
22220 \    func_split_short_opt_arg=${1#??}\
22221 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22222 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22223   && mv -f "$cfgfile.tmp" "$cfgfile" \
22224     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22225 test 0 -eq $? || _lt_function_replace_fail=:
22226
22227
22228   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22229 func_lo2o ()\
22230 {\
22231 \    case ${1} in\
22232 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22233 \      *)    func_lo2o_result=${1} ;;\
22234 \    esac\
22235 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22236   && mv -f "$cfgfile.tmp" "$cfgfile" \
22237     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22238 test 0 -eq $? || _lt_function_replace_fail=:
22239
22240
22241   sed -e '/^func_xform ()$/,/^} # func_xform /c\
22242 func_xform ()\
22243 {\
22244     func_xform_result=${1%.*}.lo\
22245 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22246   && mv -f "$cfgfile.tmp" "$cfgfile" \
22247     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22248 test 0 -eq $? || _lt_function_replace_fail=:
22249
22250
22251   sed -e '/^func_arith ()$/,/^} # func_arith /c\
22252 func_arith ()\
22253 {\
22254     func_arith_result=$(( $* ))\
22255 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22256   && mv -f "$cfgfile.tmp" "$cfgfile" \
22257     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22258 test 0 -eq $? || _lt_function_replace_fail=:
22259
22260
22261   sed -e '/^func_len ()$/,/^} # func_len /c\
22262 func_len ()\
22263 {\
22264     func_len_result=${#1}\
22265 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22266   && mv -f "$cfgfile.tmp" "$cfgfile" \
22267     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22268 test 0 -eq $? || _lt_function_replace_fail=:
22269
22270 fi
22271
22272 if test x"$lt_shell_append" = xyes; then
22273   sed -e '/^func_append ()$/,/^} # func_append /c\
22274 func_append ()\
22275 {\
22276     eval "${1}+=\\${2}"\
22277 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22278   && mv -f "$cfgfile.tmp" "$cfgfile" \
22279     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22280 test 0 -eq $? || _lt_function_replace_fail=:
22281
22282
22283   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22284 func_append_quoted ()\
22285 {\
22286 \    func_quote_for_eval "${2}"\
22287 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22288 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22289   && mv -f "$cfgfile.tmp" "$cfgfile" \
22290     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22291 test 0 -eq $? || _lt_function_replace_fail=:
22292
22293
22294   # Save a `func_append' function call where possible by direct use of '+='
22295   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22296     && mv -f "$cfgfile.tmp" "$cfgfile" \
22297       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22298   test 0 -eq $? || _lt_function_replace_fail=:
22299 else
22300   # Save a `func_append' function call even when '+=' is not available
22301   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22302     && mv -f "$cfgfile.tmp" "$cfgfile" \
22303       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22304   test 0 -eq $? || _lt_function_replace_fail=:
22305 fi
22306
22307 if test x"$_lt_function_replace_fail" = x":"; then
22308   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22309 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22310 fi
22311
22312
22313    mv -f "$cfgfile" "$ofile" ||
22314     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22315   chmod +x "$ofile"
22316
22317  ;;
22318
22319   esac
22320 done # for ac_tag
22321
22322
22323 as_fn_exit 0
22324 _ACEOF
22325 ac_clean_files=$ac_clean_files_save
22326
22327 test $ac_write_fail = 0 ||
22328   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22329
22330
22331 # configure is writing to config.log, and then calls config.status.
22332 # config.status does its own redirection, appending to config.log.
22333 # Unfortunately, on DOS this fails, as config.log is still kept open
22334 # by configure, so config.status won't be able to write to it; its
22335 # output is simply discarded.  So we exec the FD to /dev/null,
22336 # effectively closing config.log, so it can be properly (re)opened and
22337 # appended to by config.status.  When coming back to configure, we
22338 # need to make the FD available again.
22339 if test "$no_create" != yes; then
22340   ac_cs_success=:
22341   ac_config_status_args=
22342   test "$silent" = yes &&
22343     ac_config_status_args="$ac_config_status_args --quiet"
22344   exec 5>/dev/null
22345   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22346   exec 5>>config.log
22347   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22348   # would make configure fail if this is the last instruction.
22349   $ac_cs_success || as_fn_exit 1
22350 fi
22351 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22352   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22353 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22354 fi
22355