remove patches and cleanup spec
[platform/upstream/xf86-video-vesa.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-video-vesa 2.3.2.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255   fi
256   exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274   { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283   return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291   set +e
292   as_fn_set_status $1
293   exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302   case $as_dir in #(
303   -*) as_dir=./$as_dir;;
304   esac
305   test -d "$as_dir" || eval $as_mkdir_p || {
306     as_dirs=
307     while :; do
308       case $as_dir in #(
309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310       *) as_qdir=$as_dir;;
311       esac
312       as_dirs="'$as_qdir' $as_dirs"
313       as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315          X"$as_dir" : 'X\(//\)[^/]' \| \
316          X"$as_dir" : 'X\(//\)$' \| \
317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)[^/].*/{
324             s//\1/
325             q
326           }
327           /^X\(\/\/\)$/{
328             s//\1/
329             q
330           }
331           /^X\(\/\).*/{
332             s//\1/
333             q
334           }
335           s/.*/./; q'`
336       test -d "$as_dir" && break
337     done
338     test -z "$as_dirs" || eval "mkdir $as_dirs"
339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350   eval 'as_fn_append ()
351   {
352     eval $1+=\$2
353   }'
354 else
355   as_fn_append ()
356   {
357     eval $1=\$$1\$2
358   }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367   eval 'as_fn_arith ()
368   {
369     as_val=$(( $* ))
370   }'
371 else
372   as_fn_arith ()
373   {
374     as_val=`expr "$@" || test $? -eq 1`
375   }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386   as_status=$1; test $as_status -eq 0 && as_status=1
387   if test "$4"; then
388     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390   fi
391   $as_echo "$as_me: error: $2" >&2
392   as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
397   as_expr=expr
398 else
399   as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403   as_basename=basename
404 else
405   as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409   as_dirname=dirname
410 else
411   as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416          X"$0" : 'X\(//\)$' \| \
417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419     sed '/^.*\/\([^/][^/]*\)\/*$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\/\)$/{
424             s//\1/
425             q
426           }
427           /^X\/\(\/\).*/{
428             s//\1/
429             q
430           }
431           s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441   as_lineno_1=$LINENO as_lineno_1a=$LINENO
442   as_lineno_2=$LINENO as_lineno_2a=$LINENO
443   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446   sed -n '
447     p
448     /[$]LINENO/=
449   ' <$as_myself |
450     sed '
451       s/[$]LINENO.*/&-/
452       t lineno
453       b
454       :lineno
455       N
456       :loop
457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458       t loop
459       s/-\n.*//
460     ' >$as_me.lineno &&
461   chmod +x "$as_me.lineno" ||
462     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -p'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -p'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -p'
505   fi
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520   as_test_x='test -x'
521 else
522   if ls -dL / >/dev/null 2>&1; then
523     as_ls_L_option=L
524   else
525     as_ls_L_option=
526   fi
527   as_test_x='
528     eval sh -c '\''
529       if test -d "$1"; then
530         test -d "$1/.";
531       else
532         case $1 in #(
533         -*)set "./$1";;
534         esac;
535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536         ???[sx]*):;;*)false;;esac;fi
537     '\'' sh
538   '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='xf86-video-vesa'
573 PACKAGE_TARNAME='xf86-video-vesa'
574 PACKAGE_VERSION='2.3.2'
575 PACKAGE_STRING='xf86-video-vesa 2.3.2'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 DRIVER_NAME
621 XSERVER_LIBPCIACCESS_FALSE
622 XSERVER_LIBPCIACCESS_TRUE
623 PCIACCESS_LIBS
624 PCIACCESS_CFLAGS
625 HAVE_XEXTPROTO_71_FALSE
626 HAVE_XEXTPROTO_71_TRUE
627 XEXT_LIBS
628 XEXT_CFLAGS
629 XORG_LIBS
630 XORG_CFLAGS
631 moduledir
632 OTOOL64
633 OTOOL
634 LIPO
635 NMEDIT
636 DSYMUTIL
637 MANIFEST_TOOL
638 RANLIB
639 ac_ct_AR
640 AR
641 DLLTOOL
642 OBJDUMP
643 LN_S
644 NM
645 ac_ct_DUMPBIN
646 DUMPBIN
647 LD
648 FGREP
649 LIBTOOL
650 AM_BACKSLASH
651 AM_DEFAULT_VERBOSITY
652 AM_DEFAULT_V
653 AM_V
654 MAN_SUBSTS
655 XORG_MAN_PAGE
656 ADMIN_MAN_DIR
657 DRIVER_MAN_DIR
658 MISC_MAN_DIR
659 FILE_MAN_DIR
660 LIB_MAN_DIR
661 APP_MAN_DIR
662 ADMIN_MAN_SUFFIX
663 DRIVER_MAN_SUFFIX
664 MISC_MAN_SUFFIX
665 FILE_MAN_SUFFIX
666 LIB_MAN_SUFFIX
667 APP_MAN_SUFFIX
668 SED
669 host_os
670 host_vendor
671 host_cpu
672 host
673 build_os
674 build_vendor
675 build_cpu
676 build
677 INSTALL_CMD
678 PKG_CONFIG_LIBDIR
679 PKG_CONFIG_PATH
680 PKG_CONFIG
681 CHANGELOG_CMD
682 STRICT_CFLAGS
683 CWARNFLAGS
684 BASE_CFLAGS
685 EGREP
686 GREP
687 CPP
688 am__fastdepCC_FALSE
689 am__fastdepCC_TRUE
690 CCDEPMODE
691 am__nodep
692 AMDEPBACKSLASH
693 AMDEP_FALSE
694 AMDEP_TRUE
695 am__quote
696 am__include
697 DEPDIR
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 MAINT
706 MAINTAINER_MODE_FALSE
707 MAINTAINER_MODE_TRUE
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
713 AWK
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 VERSION
725 PACKAGE
726 CYGPATH_W
727 am__isrc
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 enable_maintainer_mode
773 enable_dependency_tracking
774 enable_selective_werror
775 enable_strict_compilation
776 enable_silent_rules
777 enable_static
778 enable_shared
779 with_pic
780 enable_fast_install
781 with_gnu_ld
782 with_sysroot
783 enable_libtool_lock
784 with_xorg_module_dir
785 '
786       ac_precious_vars='build_alias
787 host_alias
788 target_alias
789 CC
790 CFLAGS
791 LDFLAGS
792 LIBS
793 CPPFLAGS
794 CPP
795 PKG_CONFIG
796 PKG_CONFIG_PATH
797 PKG_CONFIG_LIBDIR
798 XORG_CFLAGS
799 XORG_LIBS
800 XEXT_CFLAGS
801 XEXT_LIBS
802 PCIACCESS_CFLAGS
803 PCIACCESS_LIBS'
804
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
827
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
853
854 ac_prev=
855 ac_dashdash=
856 for ac_option
857 do
858   # If the previous option needs an argument, assign it.
859   if test -n "$ac_prev"; then
860     eval $ac_prev=\$ac_option
861     ac_prev=
862     continue
863   fi
864
865   case $ac_option in
866   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867   *=)   ac_optarg= ;;
868   *)    ac_optarg=yes ;;
869   esac
870
871   # Accept the important Cygnus configure options, so we can diagnose typos.
872
873   case $ac_dashdash$ac_option in
874   --)
875     ac_dashdash=yes ;;
876
877   -bindir | --bindir | --bindi | --bind | --bin | --bi)
878     ac_prev=bindir ;;
879   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880     bindir=$ac_optarg ;;
881
882   -build | --build | --buil | --bui | --bu)
883     ac_prev=build_alias ;;
884   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885     build_alias=$ac_optarg ;;
886
887   -cache-file | --cache-file | --cache-fil | --cache-fi \
888   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889     ac_prev=cache_file ;;
890   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892     cache_file=$ac_optarg ;;
893
894   --config-cache | -C)
895     cache_file=config.cache ;;
896
897   -datadir | --datadir | --datadi | --datad)
898     ac_prev=datadir ;;
899   -datadir=* | --datadir=* | --datadi=* | --datad=*)
900     datadir=$ac_optarg ;;
901
902   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903   | --dataroo | --dataro | --datar)
904     ac_prev=datarootdir ;;
905   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907     datarootdir=$ac_optarg ;;
908
909   -disable-* | --disable-*)
910     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911     # Reject names that are not valid shell variable names.
912     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913       as_fn_error $? "invalid feature name: $ac_useropt"
914     ac_useropt_orig=$ac_useropt
915     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916     case $ac_user_opts in
917       *"
918 "enable_$ac_useropt"
919 "*) ;;
920       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921          ac_unrecognized_sep=', ';;
922     esac
923     eval enable_$ac_useropt=no ;;
924
925   -docdir | --docdir | --docdi | --doc | --do)
926     ac_prev=docdir ;;
927   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928     docdir=$ac_optarg ;;
929
930   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931     ac_prev=dvidir ;;
932   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933     dvidir=$ac_optarg ;;
934
935   -enable-* | --enable-*)
936     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937     # Reject names that are not valid shell variable names.
938     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939       as_fn_error $? "invalid feature name: $ac_useropt"
940     ac_useropt_orig=$ac_useropt
941     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942     case $ac_user_opts in
943       *"
944 "enable_$ac_useropt"
945 "*) ;;
946       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947          ac_unrecognized_sep=', ';;
948     esac
949     eval enable_$ac_useropt=\$ac_optarg ;;
950
951   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953   | --exec | --exe | --ex)
954     ac_prev=exec_prefix ;;
955   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957   | --exec=* | --exe=* | --ex=*)
958     exec_prefix=$ac_optarg ;;
959
960   -gas | --gas | --ga | --g)
961     # Obsolete; use --with-gas.
962     with_gas=yes ;;
963
964   -help | --help | --hel | --he | -h)
965     ac_init_help=long ;;
966   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967     ac_init_help=recursive ;;
968   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969     ac_init_help=short ;;
970
971   -host | --host | --hos | --ho)
972     ac_prev=host_alias ;;
973   -host=* | --host=* | --hos=* | --ho=*)
974     host_alias=$ac_optarg ;;
975
976   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977     ac_prev=htmldir ;;
978   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979   | --ht=*)
980     htmldir=$ac_optarg ;;
981
982   -includedir | --includedir | --includedi | --included | --include \
983   | --includ | --inclu | --incl | --inc)
984     ac_prev=includedir ;;
985   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986   | --includ=* | --inclu=* | --incl=* | --inc=*)
987     includedir=$ac_optarg ;;
988
989   -infodir | --infodir | --infodi | --infod | --info | --inf)
990     ac_prev=infodir ;;
991   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992     infodir=$ac_optarg ;;
993
994   -libdir | --libdir | --libdi | --libd)
995     ac_prev=libdir ;;
996   -libdir=* | --libdir=* | --libdi=* | --libd=*)
997     libdir=$ac_optarg ;;
998
999   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000   | --libexe | --libex | --libe)
1001     ac_prev=libexecdir ;;
1002   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003   | --libexe=* | --libex=* | --libe=*)
1004     libexecdir=$ac_optarg ;;
1005
1006   -localedir | --localedir | --localedi | --localed | --locale)
1007     ac_prev=localedir ;;
1008   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009     localedir=$ac_optarg ;;
1010
1011   -localstatedir | --localstatedir | --localstatedi | --localstated \
1012   | --localstate | --localstat | --localsta | --localst | --locals)
1013     ac_prev=localstatedir ;;
1014   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016     localstatedir=$ac_optarg ;;
1017
1018   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019     ac_prev=mandir ;;
1020   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021     mandir=$ac_optarg ;;
1022
1023   -nfp | --nfp | --nf)
1024     # Obsolete; use --without-fp.
1025     with_fp=no ;;
1026
1027   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028   | --no-cr | --no-c | -n)
1029     no_create=yes ;;
1030
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     no_recursion=yes ;;
1034
1035   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037   | --oldin | --oldi | --old | --ol | --o)
1038     ac_prev=oldincludedir ;;
1039   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042     oldincludedir=$ac_optarg ;;
1043
1044   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045     ac_prev=prefix ;;
1046   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047     prefix=$ac_optarg ;;
1048
1049   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050   | --program-pre | --program-pr | --program-p)
1051     ac_prev=program_prefix ;;
1052   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054     program_prefix=$ac_optarg ;;
1055
1056   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057   | --program-suf | --program-su | --program-s)
1058     ac_prev=program_suffix ;;
1059   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061     program_suffix=$ac_optarg ;;
1062
1063   -program-transform-name | --program-transform-name \
1064   | --program-transform-nam | --program-transform-na \
1065   | --program-transform-n | --program-transform- \
1066   | --program-transform | --program-transfor \
1067   | --program-transfo | --program-transf \
1068   | --program-trans | --program-tran \
1069   | --progr-tra | --program-tr | --program-t)
1070     ac_prev=program_transform_name ;;
1071   -program-transform-name=* | --program-transform-name=* \
1072   | --program-transform-nam=* | --program-transform-na=* \
1073   | --program-transform-n=* | --program-transform-=* \
1074   | --program-transform=* | --program-transfor=* \
1075   | --program-transfo=* | --program-transf=* \
1076   | --program-trans=* | --program-tran=* \
1077   | --progr-tra=* | --program-tr=* | --program-t=*)
1078     program_transform_name=$ac_optarg ;;
1079
1080   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081     ac_prev=pdfdir ;;
1082   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083     pdfdir=$ac_optarg ;;
1084
1085   -psdir | --psdir | --psdi | --psd | --ps)
1086     ac_prev=psdir ;;
1087   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088     psdir=$ac_optarg ;;
1089
1090   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091   | -silent | --silent | --silen | --sile | --sil)
1092     silent=yes ;;
1093
1094   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095     ac_prev=sbindir ;;
1096   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097   | --sbi=* | --sb=*)
1098     sbindir=$ac_optarg ;;
1099
1100   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102   | --sharedst | --shareds | --shared | --share | --shar \
1103   | --sha | --sh)
1104     ac_prev=sharedstatedir ;;
1105   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108   | --sha=* | --sh=*)
1109     sharedstatedir=$ac_optarg ;;
1110
1111   -site | --site | --sit)
1112     ac_prev=site ;;
1113   -site=* | --site=* | --sit=*)
1114     site=$ac_optarg ;;
1115
1116   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117     ac_prev=srcdir ;;
1118   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119     srcdir=$ac_optarg ;;
1120
1121   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122   | --syscon | --sysco | --sysc | --sys | --sy)
1123     ac_prev=sysconfdir ;;
1124   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126     sysconfdir=$ac_optarg ;;
1127
1128   -target | --target | --targe | --targ | --tar | --ta | --t)
1129     ac_prev=target_alias ;;
1130   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131     target_alias=$ac_optarg ;;
1132
1133   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134     verbose=yes ;;
1135
1136   -version | --version | --versio | --versi | --vers | -V)
1137     ac_init_version=: ;;
1138
1139   -with-* | --with-*)
1140     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143       as_fn_error $? "invalid package name: $ac_useropt"
1144     ac_useropt_orig=$ac_useropt
1145     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146     case $ac_user_opts in
1147       *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151          ac_unrecognized_sep=', ';;
1152     esac
1153     eval with_$ac_useropt=\$ac_optarg ;;
1154
1155   -without-* | --without-*)
1156     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159       as_fn_error $? "invalid package name: $ac_useropt"
1160     ac_useropt_orig=$ac_useropt
1161     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162     case $ac_user_opts in
1163       *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167          ac_unrecognized_sep=', ';;
1168     esac
1169     eval with_$ac_useropt=no ;;
1170
1171   --x)
1172     # Obsolete; use --with-x.
1173     with_x=yes ;;
1174
1175   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176   | --x-incl | --x-inc | --x-in | --x-i)
1177     ac_prev=x_includes ;;
1178   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180     x_includes=$ac_optarg ;;
1181
1182   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184     ac_prev=x_libraries ;;
1185   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187     x_libraries=$ac_optarg ;;
1188
1189   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1191     ;;
1192
1193   *=*)
1194     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195     # Reject names that are not valid shell variable names.
1196     case $ac_envvar in #(
1197       '' | [0-9]* | *[!_$as_cr_alnum]* )
1198       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199     esac
1200     eval $ac_envvar=\$ac_optarg
1201     export $ac_envvar ;;
1202
1203   *)
1204     # FIXME: should be removed in autoconf 3.0.
1205     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209     ;;
1210
1211   esac
1212 done
1213
1214 if test -n "$ac_prev"; then
1215   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216   as_fn_error $? "missing argument to $ac_option"
1217 fi
1218
1219 if test -n "$ac_unrecognized_opts"; then
1220   case $enable_option_checking in
1221     no) ;;
1222     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224   esac
1225 fi
1226
1227 # Check all directory arguments for consistency.
1228 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229                 datadir sysconfdir sharedstatedir localstatedir includedir \
1230                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231                 libdir localedir mandir
1232 do
1233   eval ac_val=\$$ac_var
1234   # Remove trailing slashes.
1235   case $ac_val in
1236     */ )
1237       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238       eval $ac_var=\$ac_val;;
1239   esac
1240   # Be sure to have absolute directory names.
1241   case $ac_val in
1242     [\\/$]* | ?:[\\/]* )  continue;;
1243     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244   esac
1245   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1247
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1254
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257   if test "x$build_alias" = x; then
1258     cross_compiling=maybe
1259     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1260     If a cross compiler is detected then cross compile mode will be used" >&2
1261   elif test "x$build_alias" != "x$host_alias"; then
1262     cross_compiling=yes
1263   fi
1264 fi
1265
1266 ac_tool_prefix=
1267 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269 test "$silent" = yes && exec 6>/dev/null
1270
1271
1272 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di=`ls -di .` &&
1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275   as_fn_error $? "working directory cannot be determined"
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277   as_fn_error $? "pwd does not report name of working directory"
1278
1279
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282   ac_srcdir_defaulted=yes
1283   # Try the directory containing this script, then the parent directory.
1284   ac_confdir=`$as_dirname -- "$as_myself" ||
1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286          X"$as_myself" : 'X\(//\)[^/]' \| \
1287          X"$as_myself" : 'X\(//\)$' \| \
1288          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289 $as_echo X"$as_myself" |
1290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291             s//\1/
1292             q
1293           }
1294           /^X\(\/\/\)[^/].*/{
1295             s//\1/
1296             q
1297           }
1298           /^X\(\/\/\)$/{
1299             s//\1/
1300             q
1301           }
1302           /^X\(\/\).*/{
1303             s//\1/
1304             q
1305           }
1306           s/.*/./; q'`
1307   srcdir=$ac_confdir
1308   if test ! -r "$srcdir/$ac_unique_file"; then
1309     srcdir=..
1310   fi
1311 else
1312   ac_srcdir_defaulted=no
1313 fi
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317 fi
1318 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 ac_abs_confdir=`(
1320         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321         pwd)`
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324   srcdir=.
1325 fi
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1329 case $srcdir in
1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 esac
1332 for ac_var in $ac_precious_vars; do
1333   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334   eval ac_env_${ac_var}_value=\$${ac_var}
1335   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 done
1338
1339 #
1340 # Report the --help message.
1341 #
1342 if test "$ac_init_help" = "long"; then
1343   # Omit some internal or obsolete options to make the list less imposing.
1344   # This message is too long to be a string in the A/UX 3.1 sh.
1345   cat <<_ACEOF
1346 \`configure' configures xf86-video-vesa 2.3.2 to adapt to many kinds of systems.
1347
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE.  See below for descriptions of some of the useful variables.
1352
1353 Defaults for the options are specified in brackets.
1354
1355 Configuration:
1356   -h, --help              display this help and exit
1357       --help=short        display options specific to this package
1358       --help=recursive    display the short help of all the included packages
1359   -V, --version           display version information and exit
1360   -q, --quiet, --silent   do not print \`checking ...' messages
1361       --cache-file=FILE   cache test results in FILE [disabled]
1362   -C, --config-cache      alias for \`--cache-file=config.cache'
1363   -n, --no-create         do not create output files
1364       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1365
1366 Installation directories:
1367   --prefix=PREFIX         install architecture-independent files in PREFIX
1368                           [$ac_default_prefix]
1369   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1370                           [PREFIX]
1371
1372 By default, \`make install' will install all the files in
1373 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1374 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375 for instance \`--prefix=\$HOME'.
1376
1377 For better control, use the options below.
1378
1379 Fine tuning of the installation directories:
1380   --bindir=DIR            user executables [EPREFIX/bin]
1381   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1382   --libexecdir=DIR        program executables [EPREFIX/libexec]
1383   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1384   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1385   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1386   --libdir=DIR            object code libraries [EPREFIX/lib]
1387   --includedir=DIR        C header files [PREFIX/include]
1388   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391   --infodir=DIR           info documentation [DATAROOTDIR/info]
1392   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393   --mandir=DIR            man documentation [DATAROOTDIR/man]
1394   --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-vesa]
1395   --htmldir=DIR           html documentation [DOCDIR]
1396   --dvidir=DIR            dvi documentation [DOCDIR]
1397   --pdfdir=DIR            pdf documentation [DOCDIR]
1398   --psdir=DIR             ps documentation [DOCDIR]
1399 _ACEOF
1400
1401   cat <<\_ACEOF
1402
1403 Program names:
1404   --program-prefix=PREFIX            prepend PREFIX to installed program names
1405   --program-suffix=SUFFIX            append SUFFIX to installed program names
1406   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408 System types:
1409   --build=BUILD     configure for building on BUILD [guessed]
1410   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411 _ACEOF
1412 fi
1413
1414 if test -n "$ac_init_help"; then
1415   case $ac_init_help in
1416      short | recursive ) echo "Configuration of xf86-video-vesa 2.3.2:";;
1417    esac
1418   cat <<\_ACEOF
1419
1420 Optional Features:
1421   --disable-option-checking  ignore unrecognized --enable/--with options
1422   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424   --enable-maintainer-mode  enable make rules and dependencies not useful
1425                           (and sometimes confusing) to the casual installer
1426   --disable-dependency-tracking  speeds up one-time build
1427   --enable-dependency-tracking   do not reject slow dependency extractors
1428   --disable-selective-werror
1429                           Turn off selective compiler errors. (default:
1430                           enabled)
1431   --enable-strict-compilation
1432                           Enable all warnings from compiler and make them
1433                           errors (default: disabled)
1434   --enable-silent-rules          less verbose build output (undo: `make V=1')
1435   --disable-silent-rules         verbose build output (undo: `make V=0')
1436   --enable-static[=PKGS]  build static libraries [default=no]
1437   --enable-shared[=PKGS]  build shared libraries [default=yes]
1438   --enable-fast-install[=PKGS]
1439                           optimize for fast installation [default=yes]
1440   --disable-libtool-lock  avoid locking (might break parallel builds)
1441
1442 Optional Packages:
1443   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1444   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1445   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1446                           both]
1447   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1448   --with-sysroot=DIR Search for dependent libraries within DIR
1449                         (or the compiler's sysroot if not specified).
1450   --with-xorg-module-dir=DIR
1451
1452 Some influential environment variables:
1453   CC          C compiler command
1454   CFLAGS      C compiler flags
1455   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1456               nonstandard directory <lib dir>
1457   LIBS        libraries to pass to the linker, e.g. -l<library>
1458   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459               you have headers in a nonstandard directory <include dir>
1460   CPP         C preprocessor
1461   PKG_CONFIG  path to pkg-config utility
1462   PKG_CONFIG_PATH
1463               directories to add to pkg-config's search path
1464   PKG_CONFIG_LIBDIR
1465               path overriding pkg-config's built-in search path
1466   XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1467   XORG_LIBS   linker flags for XORG, overriding pkg-config
1468   XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1469   XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1470   PCIACCESS_CFLAGS
1471               C compiler flags for PCIACCESS, overriding pkg-config
1472   PCIACCESS_LIBS
1473               linker flags for PCIACCESS, overriding pkg-config
1474
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1477
1478 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1479 _ACEOF
1480 ac_status=$?
1481 fi
1482
1483 if test "$ac_init_help" = "recursive"; then
1484   # If there are subdirs, report their specific --help.
1485   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486     test -d "$ac_dir" ||
1487       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488       continue
1489     ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495   # A ".." for each directory in $ac_dir_suffix.
1496   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497   case $ac_top_builddir_sub in
1498   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500   esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508   .)  # We are building in place.
1509     ac_srcdir=.
1510     ac_top_srcdir=$ac_top_builddir_sub
1511     ac_abs_top_srcdir=$ac_pwd ;;
1512   [\\/]* | ?:[\\/]* )  # Absolute name.
1513     ac_srcdir=$srcdir$ac_dir_suffix;
1514     ac_top_srcdir=$srcdir
1515     ac_abs_top_srcdir=$srcdir ;;
1516   *) # Relative name.
1517     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518     ac_top_srcdir=$ac_top_build_prefix$srcdir
1519     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523     cd "$ac_dir" || { ac_status=$?; continue; }
1524     # Check for guested configure.
1525     if test -f "$ac_srcdir/configure.gnu"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528     elif test -f "$ac_srcdir/configure"; then
1529       echo &&
1530       $SHELL "$ac_srcdir/configure" --help=recursive
1531     else
1532       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533     fi || ac_status=$?
1534     cd "$ac_pwd" || { ac_status=$?; break; }
1535   done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540   cat <<\_ACEOF
1541 xf86-video-vesa configure 2.3.2
1542 generated by GNU Autoconf 2.68
1543
1544 Copyright (C) 2010 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548   exit
1549 fi
1550
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1554
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1559 {
1560   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561   rm -f conftest.$ac_objext
1562   if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565   *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569   (eval "$ac_compile") 2>conftest.err
1570   ac_status=$?
1571   if test -s conftest.err; then
1572     grep -v '^ *+' conftest.err >conftest.er1
1573     cat conftest.er1 >&5
1574     mv -f conftest.er1 conftest.err
1575   fi
1576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577   test $ac_status = 0; } && {
1578          test -z "$ac_c_werror_flag" ||
1579          test ! -s conftest.err
1580        } && test -s conftest.$ac_objext; then :
1581   ac_retval=0
1582 else
1583   $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586         ac_retval=1
1587 fi
1588   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589   as_fn_set_status $ac_retval
1590
1591 } # ac_fn_c_try_compile
1592
1593 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1594 # ---------------------------------------------
1595 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1596 # accordingly.
1597 ac_fn_c_check_decl ()
1598 {
1599   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600   as_decl_name=`echo $2|sed 's/ *(.*//'`
1601   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1603 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1604 if eval \${$3+:} false; then :
1605   $as_echo_n "(cached) " >&6
1606 else
1607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h.  */
1609 $4
1610 int
1611 main ()
1612 {
1613 #ifndef $as_decl_name
1614 #ifdef __cplusplus
1615   (void) $as_decl_use;
1616 #else
1617   (void) $as_decl_name;
1618 #endif
1619 #endif
1620
1621   ;
1622   return 0;
1623 }
1624 _ACEOF
1625 if ac_fn_c_try_compile "$LINENO"; then :
1626   eval "$3=yes"
1627 else
1628   eval "$3=no"
1629 fi
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631 fi
1632 eval ac_res=\$$3
1633                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1635   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636
1637 } # ac_fn_c_check_decl
1638
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_cpp ()
1643 {
1644   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645   if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 case "(($ac_try" in
1647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648   *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653   ac_status=$?
1654   if test -s conftest.err; then
1655     grep -v '^ *+' conftest.err >conftest.er1
1656     cat conftest.er1 >&5
1657     mv -f conftest.er1 conftest.err
1658   fi
1659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660   test $ac_status = 0; } > conftest.i && {
1661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662          test ! -s conftest.err
1663        }; then :
1664   ac_retval=0
1665 else
1666   $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669     ac_retval=1
1670 fi
1671   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672   as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_cpp
1675
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679 # that executables *can* be run.
1680 ac_fn_c_try_run ()
1681 {
1682   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683   if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686   *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690   (eval "$ac_link") 2>&5
1691   ac_status=$?
1692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694   { { case "(($ac_try" in
1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696   *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700   (eval "$ac_try") 2>&5
1701   ac_status=$?
1702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703   test $ac_status = 0; }; }; then :
1704   ac_retval=0
1705 else
1706   $as_echo "$as_me: program exited with status $ac_status" >&5
1707        $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710        ac_retval=$ac_status
1711 fi
1712   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714   as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_run
1717
1718 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719 # -------------------------------------------------------
1720 # Tests whether HEADER exists and can be compiled using the include files in
1721 # INCLUDES, setting the cache variable VAR accordingly.
1722 ac_fn_c_check_header_compile ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728   $as_echo_n "(cached) " >&6
1729 else
1730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h.  */
1732 $4
1733 #include <$2>
1734 _ACEOF
1735 if ac_fn_c_try_compile "$LINENO"; then :
1736   eval "$3=yes"
1737 else
1738   eval "$3=no"
1739 fi
1740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741 fi
1742 eval ac_res=\$$3
1743                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1745   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
1747 } # ac_fn_c_check_header_compile
1748
1749 # ac_fn_c_try_link LINENO
1750 # -----------------------
1751 # Try to link conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_c_try_link ()
1753 {
1754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755   rm -f conftest.$ac_objext conftest$ac_exeext
1756   if { { ac_try="$ac_link"
1757 case "(($ac_try" in
1758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759   *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763   (eval "$ac_link") 2>conftest.err
1764   ac_status=$?
1765   if test -s conftest.err; then
1766     grep -v '^ *+' conftest.err >conftest.er1
1767     cat conftest.er1 >&5
1768     mv -f conftest.er1 conftest.err
1769   fi
1770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771   test $ac_status = 0; } && {
1772          test -z "$ac_c_werror_flag" ||
1773          test ! -s conftest.err
1774        } && test -s conftest$ac_exeext && {
1775          test "$cross_compiling" = yes ||
1776          $as_test_x conftest$ac_exeext
1777        }; then :
1778   ac_retval=0
1779 else
1780   $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1782
1783         ac_retval=1
1784 fi
1785   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787   # interfere with the next link command; also delete a directory that is
1788   # left behind by Apple's compiler.  We do this before executing the actions.
1789   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791   as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_link
1794
1795 # ac_fn_c_check_func LINENO FUNC VAR
1796 # ----------------------------------
1797 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1798 ac_fn_c_check_func ()
1799 {
1800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804   $as_echo_n "(cached) " >&6
1805 else
1806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h.  */
1808 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1810 #define $2 innocuous_$2
1811
1812 /* System header to define __stub macros and hopefully few prototypes,
1813     which can conflict with char $2 (); below.
1814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1815     <limits.h> exists even on freestanding compilers.  */
1816
1817 #ifdef __STDC__
1818 # include <limits.h>
1819 #else
1820 # include <assert.h>
1821 #endif
1822
1823 #undef $2
1824
1825 /* Override any GCC internal prototype to avoid an error.
1826    Use char because int might match the return type of a GCC
1827    builtin and then its argument prototype would still apply.  */
1828 #ifdef __cplusplus
1829 extern "C"
1830 #endif
1831 char $2 ();
1832 /* The GNU C library defines this for functions which it implements
1833     to always fail with ENOSYS.  Some functions are actually named
1834     something starting with __ and the normal name is an alias.  */
1835 #if defined __stub_$2 || defined __stub___$2
1836 choke me
1837 #endif
1838
1839 int
1840 main ()
1841 {
1842 return $2 ();
1843   ;
1844   return 0;
1845 }
1846 _ACEOF
1847 if ac_fn_c_try_link "$LINENO"; then :
1848   eval "$3=yes"
1849 else
1850   eval "$3=no"
1851 fi
1852 rm -f core conftest.err conftest.$ac_objext \
1853     conftest$ac_exeext conftest.$ac_ext
1854 fi
1855 eval ac_res=\$$3
1856                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860 } # ac_fn_c_check_func
1861 cat >config.log <<_ACEOF
1862 This file contains any messages produced by compilers while
1863 running configure, to aid debugging if configure makes a mistake.
1864
1865 It was created by xf86-video-vesa $as_me 2.3.2, which was
1866 generated by GNU Autoconf 2.68.  Invocation command line was
1867
1868   $ $0 $@
1869
1870 _ACEOF
1871 exec 5>>config.log
1872 {
1873 cat <<_ASUNAME
1874 ## --------- ##
1875 ## Platform. ##
1876 ## --------- ##
1877
1878 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1879 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1880 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1881 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1882 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1883
1884 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1885 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1886
1887 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1888 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1889 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1890 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1891 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1892 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1893 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1894
1895 _ASUNAME
1896
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1899 do
1900   IFS=$as_save_IFS
1901   test -z "$as_dir" && as_dir=.
1902     $as_echo "PATH: $as_dir"
1903   done
1904 IFS=$as_save_IFS
1905
1906 } >&5
1907
1908 cat >&5 <<_ACEOF
1909
1910
1911 ## ----------- ##
1912 ## Core tests. ##
1913 ## ----------- ##
1914
1915 _ACEOF
1916
1917
1918 # Keep a trace of the command line.
1919 # Strip out --no-create and --no-recursion so they do not pile up.
1920 # Strip out --silent because we don't want to record it for future runs.
1921 # Also quote any args containing shell meta-characters.
1922 # Make two passes to allow for proper duplicate-argument suppression.
1923 ac_configure_args=
1924 ac_configure_args0=
1925 ac_configure_args1=
1926 ac_must_keep_next=false
1927 for ac_pass in 1 2
1928 do
1929   for ac_arg
1930   do
1931     case $ac_arg in
1932     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1933     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1934     | -silent | --silent | --silen | --sile | --sil)
1935       continue ;;
1936     *\'*)
1937       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1938     esac
1939     case $ac_pass in
1940     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1941     2)
1942       as_fn_append ac_configure_args1 " '$ac_arg'"
1943       if test $ac_must_keep_next = true; then
1944         ac_must_keep_next=false # Got value, back to normal.
1945       else
1946         case $ac_arg in
1947           *=* | --config-cache | -C | -disable-* | --disable-* \
1948           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1949           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1950           | -with-* | --with-* | -without-* | --without-* | --x)
1951             case "$ac_configure_args0 " in
1952               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1953             esac
1954             ;;
1955           -* ) ac_must_keep_next=true ;;
1956         esac
1957       fi
1958       as_fn_append ac_configure_args " '$ac_arg'"
1959       ;;
1960     esac
1961   done
1962 done
1963 { ac_configure_args0=; unset ac_configure_args0;}
1964 { ac_configure_args1=; unset ac_configure_args1;}
1965
1966 # When interrupted or exit'd, cleanup temporary files, and complete
1967 # config.log.  We remove comments because anyway the quotes in there
1968 # would cause problems or look ugly.
1969 # WARNING: Use '\'' to represent an apostrophe within the trap.
1970 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1971 trap 'exit_status=$?
1972   # Save into config.log some information that might help in debugging.
1973   {
1974     echo
1975
1976     $as_echo "## ---------------- ##
1977 ## Cache variables. ##
1978 ## ---------------- ##"
1979     echo
1980     # The following way of writing the cache mishandles newlines in values,
1981 (
1982   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1983     eval ac_val=\$$ac_var
1984     case $ac_val in #(
1985     *${as_nl}*)
1986       case $ac_var in #(
1987       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1988 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1989       esac
1990       case $ac_var in #(
1991       _ | IFS | as_nl) ;; #(
1992       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1993       *) { eval $ac_var=; unset $ac_var;} ;;
1994       esac ;;
1995     esac
1996   done
1997   (set) 2>&1 |
1998     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1999     *${as_nl}ac_space=\ *)
2000       sed -n \
2001         "s/'\''/'\''\\\\'\'''\''/g;
2002           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2003       ;; #(
2004     *)
2005       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2006       ;;
2007     esac |
2008     sort
2009 )
2010     echo
2011
2012     $as_echo "## ----------------- ##
2013 ## Output variables. ##
2014 ## ----------------- ##"
2015     echo
2016     for ac_var in $ac_subst_vars
2017     do
2018       eval ac_val=\$$ac_var
2019       case $ac_val in
2020       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021       esac
2022       $as_echo "$ac_var='\''$ac_val'\''"
2023     done | sort
2024     echo
2025
2026     if test -n "$ac_subst_files"; then
2027       $as_echo "## ------------------- ##
2028 ## File substitutions. ##
2029 ## ------------------- ##"
2030       echo
2031       for ac_var in $ac_subst_files
2032       do
2033         eval ac_val=\$$ac_var
2034         case $ac_val in
2035         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036         esac
2037         $as_echo "$ac_var='\''$ac_val'\''"
2038       done | sort
2039       echo
2040     fi
2041
2042     if test -s confdefs.h; then
2043       $as_echo "## ----------- ##
2044 ## confdefs.h. ##
2045 ## ----------- ##"
2046       echo
2047       cat confdefs.h
2048       echo
2049     fi
2050     test "$ac_signal" != 0 &&
2051       $as_echo "$as_me: caught signal $ac_signal"
2052     $as_echo "$as_me: exit $exit_status"
2053   } >&5
2054   rm -f core *.core core.conftest.* &&
2055     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2056     exit $exit_status
2057 ' 0
2058 for ac_signal in 1 2 13 15; do
2059   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2060 done
2061 ac_signal=0
2062
2063 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2064 rm -f -r conftest* confdefs.h
2065
2066 $as_echo "/* confdefs.h */" > confdefs.h
2067
2068 # Predefined preprocessor variables.
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_NAME "$PACKAGE_NAME"
2072 _ACEOF
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2076 _ACEOF
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_STRING "$PACKAGE_STRING"
2084 _ACEOF
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2088 _ACEOF
2089
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_URL "$PACKAGE_URL"
2092 _ACEOF
2093
2094
2095 # Let the site file select an alternate cache file if it wants to.
2096 # Prefer an explicitly selected file to automatically selected ones.
2097 ac_site_file1=NONE
2098 ac_site_file2=NONE
2099 if test -n "$CONFIG_SITE"; then
2100   # We do not want a PATH search for config.site.
2101   case $CONFIG_SITE in #((
2102     -*)  ac_site_file1=./$CONFIG_SITE;;
2103     */*) ac_site_file1=$CONFIG_SITE;;
2104     *)   ac_site_file1=./$CONFIG_SITE;;
2105   esac
2106 elif test "x$prefix" != xNONE; then
2107   ac_site_file1=$prefix/share/config.site
2108   ac_site_file2=$prefix/etc/config.site
2109 else
2110   ac_site_file1=$ac_default_prefix/share/config.site
2111   ac_site_file2=$ac_default_prefix/etc/config.site
2112 fi
2113 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2114 do
2115   test "x$ac_site_file" = xNONE && continue
2116   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2117     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2118 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2119     sed 's/^/| /' "$ac_site_file" >&5
2120     . "$ac_site_file" \
2121       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2123 as_fn_error $? "failed to load site script $ac_site_file
2124 See \`config.log' for more details" "$LINENO" 5; }
2125   fi
2126 done
2127
2128 if test -r "$cache_file"; then
2129   # Some versions of bash will fail to source /dev/null (special files
2130   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2131   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2132     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2133 $as_echo "$as_me: loading cache $cache_file" >&6;}
2134     case $cache_file in
2135       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2136       *)                      . "./$cache_file";;
2137     esac
2138   fi
2139 else
2140   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2141 $as_echo "$as_me: creating cache $cache_file" >&6;}
2142   >$cache_file
2143 fi
2144
2145 # Check that the precious variables saved in the cache have kept the same
2146 # value.
2147 ac_cache_corrupted=false
2148 for ac_var in $ac_precious_vars; do
2149   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2150   eval ac_new_set=\$ac_env_${ac_var}_set
2151   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2152   eval ac_new_val=\$ac_env_${ac_var}_value
2153   case $ac_old_set,$ac_new_set in
2154     set,)
2155       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2157       ac_cache_corrupted=: ;;
2158     ,set)
2159       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2160 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2161       ac_cache_corrupted=: ;;
2162     ,);;
2163     *)
2164       if test "x$ac_old_val" != "x$ac_new_val"; then
2165         # differences in whitespace do not lead to failure.
2166         ac_old_val_w=`echo x $ac_old_val`
2167         ac_new_val_w=`echo x $ac_new_val`
2168         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2169           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2170 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2171           ac_cache_corrupted=:
2172         else
2173           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2174 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2175           eval $ac_var=\$ac_old_val
2176         fi
2177         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2178 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2179         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2180 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2181       fi;;
2182   esac
2183   # Pass precious variables to config.status.
2184   if test "$ac_new_set" = set; then
2185     case $ac_new_val in
2186     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2187     *) ac_arg=$ac_var=$ac_new_val ;;
2188     esac
2189     case " $ac_configure_args " in
2190       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2191       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2192     esac
2193   fi
2194 done
2195 if $ac_cache_corrupted; then
2196   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2199 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2200   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2201 fi
2202 ## -------------------- ##
2203 ## Main body of script. ##
2204 ## -------------------- ##
2205
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211
2212
2213
2214 ac_config_headers="$ac_config_headers config.h"
2215
2216 ac_aux_dir=
2217 for ac_dir in . "$srcdir"/.; do
2218   if test -f "$ac_dir/install-sh"; then
2219     ac_aux_dir=$ac_dir
2220     ac_install_sh="$ac_aux_dir/install-sh -c"
2221     break
2222   elif test -f "$ac_dir/install.sh"; then
2223     ac_aux_dir=$ac_dir
2224     ac_install_sh="$ac_aux_dir/install.sh -c"
2225     break
2226   elif test -f "$ac_dir/shtool"; then
2227     ac_aux_dir=$ac_dir
2228     ac_install_sh="$ac_aux_dir/shtool install -c"
2229     break
2230   fi
2231 done
2232 if test -z "$ac_aux_dir"; then
2233   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2234 fi
2235
2236 # These three variables are undocumented and unsupported,
2237 # and are intended to be withdrawn in a future Autoconf release.
2238 # They can cause serious problems if a builder's source tree is in a directory
2239 # whose full name contains unusual characters.
2240 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2241 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2242 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2243
2244
2245
2246 # Initialize Automake
2247 am__api_version='1.11'
2248
2249 # Find a good install program.  We prefer a C program (faster),
2250 # so one script is as good as another.  But avoid the broken or
2251 # incompatible versions:
2252 # SysV /etc/install, /usr/sbin/install
2253 # SunOS /usr/etc/install
2254 # IRIX /sbin/install
2255 # AIX /bin/install
2256 # AmigaOS /C/install, which installs bootblocks on floppy discs
2257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2260 # OS/2's system install, which has a completely different semantic
2261 # ./install, which can be erroneously created by make from ./install.sh.
2262 # Reject install programs that cannot install multiple files.
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2264 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2265 if test -z "$INSTALL"; then
2266 if ${ac_cv_path_install+:} false; then :
2267   $as_echo_n "(cached) " >&6
2268 else
2269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2271 do
2272   IFS=$as_save_IFS
2273   test -z "$as_dir" && as_dir=.
2274     # Account for people who put trailing slashes in PATH elements.
2275 case $as_dir/ in #((
2276   ./ | .// | /[cC]/* | \
2277   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2278   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2279   /usr/ucb/* ) ;;
2280   *)
2281     # OSF1 and SCO ODT 3.0 have their own names for install.
2282     # Don't use installbsd from OSF since it installs stuff as root
2283     # by default.
2284     for ac_prog in ginstall scoinst install; do
2285       for ac_exec_ext in '' $ac_executable_extensions; do
2286         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2287           if test $ac_prog = install &&
2288             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289             # AIX install.  It has an incompatible calling convention.
2290             :
2291           elif test $ac_prog = install &&
2292             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2293             # program-specific install script used by HP pwplus--don't use.
2294             :
2295           else
2296             rm -rf conftest.one conftest.two conftest.dir
2297             echo one > conftest.one
2298             echo two > conftest.two
2299             mkdir conftest.dir
2300             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2301               test -s conftest.one && test -s conftest.two &&
2302               test -s conftest.dir/conftest.one &&
2303               test -s conftest.dir/conftest.two
2304             then
2305               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2306               break 3
2307             fi
2308           fi
2309         fi
2310       done
2311     done
2312     ;;
2313 esac
2314
2315   done
2316 IFS=$as_save_IFS
2317
2318 rm -rf conftest.one conftest.two conftest.dir
2319
2320 fi
2321   if test "${ac_cv_path_install+set}" = set; then
2322     INSTALL=$ac_cv_path_install
2323   else
2324     # As a last resort, use the slow shell script.  Don't cache a
2325     # value for INSTALL within a source directory, because that will
2326     # break other packages using the cache if that directory is
2327     # removed, or if the value is a relative name.
2328     INSTALL=$ac_install_sh
2329   fi
2330 fi
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2332 $as_echo "$INSTALL" >&6; }
2333
2334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2335 # It thinks the first close brace ends the variable substitution.
2336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2337
2338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2339
2340 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2341
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2343 $as_echo_n "checking whether build environment is sane... " >&6; }
2344 # Just in case
2345 sleep 1
2346 echo timestamp > conftest.file
2347 # Reject unsafe characters in $srcdir or the absolute working directory
2348 # name.  Accept space and tab only in the latter.
2349 am_lf='
2350 '
2351 case `pwd` in
2352   *[\\\"\#\$\&\'\`$am_lf]*)
2353     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2354 esac
2355 case $srcdir in
2356   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2357     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2358 esac
2359
2360 # Do `set' in a subshell so we don't clobber the current shell's
2361 # arguments.  Must try -L first in case configure is actually a
2362 # symlink; some systems play weird games with the mod time of symlinks
2363 # (eg FreeBSD returns the mod time of the symlink's containing
2364 # directory).
2365 if (
2366    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2367    if test "$*" = "X"; then
2368       # -L didn't work.
2369       set X `ls -t "$srcdir/configure" conftest.file`
2370    fi
2371    rm -f conftest.file
2372    if test "$*" != "X $srcdir/configure conftest.file" \
2373       && test "$*" != "X conftest.file $srcdir/configure"; then
2374
2375       # If neither matched, then we have a broken ls.  This can happen
2376       # if, for instance, CONFIG_SHELL is bash and it inherits a
2377       # broken ls alias from the environment.  This has actually
2378       # happened.  Such a system could not be considered "sane".
2379       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2380 alias in your environment" "$LINENO" 5
2381    fi
2382
2383    test "$2" = conftest.file
2384    )
2385 then
2386    # Ok.
2387    :
2388 else
2389    as_fn_error $? "newly created file is older than distributed files!
2390 Check your system clock" "$LINENO" 5
2391 fi
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2393 $as_echo "yes" >&6; }
2394 test "$program_prefix" != NONE &&
2395   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2396 # Use a double $ so make ignores it.
2397 test "$program_suffix" != NONE &&
2398   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2399 # Double any \ or $.
2400 # By default was `s,x,x', remove it if useless.
2401 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2402 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2403
2404 # expand $ac_aux_dir to an absolute path
2405 am_aux_dir=`cd $ac_aux_dir && pwd`
2406
2407 if test x"${MISSING+set}" != xset; then
2408   case $am_aux_dir in
2409   *\ * | *\     *)
2410     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2411   *)
2412     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2413   esac
2414 fi
2415 # Use eval to expand $SHELL
2416 if eval "$MISSING --run true"; then
2417   am_missing_run="$MISSING --run "
2418 else
2419   am_missing_run=
2420   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2421 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2422 fi
2423
2424 if test x"${install_sh}" != xset; then
2425   case $am_aux_dir in
2426   *\ * | *\     *)
2427     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2428   *)
2429     install_sh="\${SHELL} $am_aux_dir/install-sh"
2430   esac
2431 fi
2432
2433 # Installed binaries are usually stripped using `strip' when the user
2434 # run `make install-strip'.  However `strip' might not be the right
2435 # tool to use in cross-compilation environments, therefore Automake
2436 # will honor the `STRIP' environment variable to overrule this program.
2437 if test "$cross_compiling" != no; then
2438   if test -n "$ac_tool_prefix"; then
2439   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}strip; ac_word=$2
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442 $as_echo_n "checking for $ac_word... " >&6; }
2443 if ${ac_cv_prog_STRIP+:} false; then :
2444   $as_echo_n "(cached) " >&6
2445 else
2446   if test -n "$STRIP"; then
2447   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452   IFS=$as_save_IFS
2453   test -z "$as_dir" && as_dir=.
2454     for ac_exec_ext in '' $ac_executable_extensions; do
2455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2458     break 2
2459   fi
2460 done
2461   done
2462 IFS=$as_save_IFS
2463
2464 fi
2465 fi
2466 STRIP=$ac_cv_prog_STRIP
2467 if test -n "$STRIP"; then
2468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2469 $as_echo "$STRIP" >&6; }
2470 else
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472 $as_echo "no" >&6; }
2473 fi
2474
2475
2476 fi
2477 if test -z "$ac_cv_prog_STRIP"; then
2478   ac_ct_STRIP=$STRIP
2479   # Extract the first word of "strip", so it can be a program name with args.
2480 set dummy strip; ac_word=$2
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2484   $as_echo_n "(cached) " >&6
2485 else
2486   if test -n "$ac_ct_STRIP"; then
2487   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492   IFS=$as_save_IFS
2493   test -z "$as_dir" && as_dir=.
2494     for ac_exec_ext in '' $ac_executable_extensions; do
2495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496     ac_cv_prog_ac_ct_STRIP="strip"
2497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2498     break 2
2499   fi
2500 done
2501   done
2502 IFS=$as_save_IFS
2503
2504 fi
2505 fi
2506 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2507 if test -n "$ac_ct_STRIP"; then
2508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2509 $as_echo "$ac_ct_STRIP" >&6; }
2510 else
2511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2512 $as_echo "no" >&6; }
2513 fi
2514
2515   if test "x$ac_ct_STRIP" = x; then
2516     STRIP=":"
2517   else
2518     case $cross_compiling:$ac_tool_warned in
2519 yes:)
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2522 ac_tool_warned=yes ;;
2523 esac
2524     STRIP=$ac_ct_STRIP
2525   fi
2526 else
2527   STRIP="$ac_cv_prog_STRIP"
2528 fi
2529
2530 fi
2531 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2532
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2534 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2535 if test -z "$MKDIR_P"; then
2536   if ${ac_cv_path_mkdir+:} false; then :
2537   $as_echo_n "(cached) " >&6
2538 else
2539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2541 do
2542   IFS=$as_save_IFS
2543   test -z "$as_dir" && as_dir=.
2544     for ac_prog in mkdir gmkdir; do
2545          for ac_exec_ext in '' $ac_executable_extensions; do
2546            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2547            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2548              'mkdir (GNU coreutils) '* | \
2549              'mkdir (coreutils) '* | \
2550              'mkdir (fileutils) '4.1*)
2551                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2552                break 3;;
2553            esac
2554          done
2555        done
2556   done
2557 IFS=$as_save_IFS
2558
2559 fi
2560
2561   test -d ./--version && rmdir ./--version
2562   if test "${ac_cv_path_mkdir+set}" = set; then
2563     MKDIR_P="$ac_cv_path_mkdir -p"
2564   else
2565     # As a last resort, use the slow shell script.  Don't cache a
2566     # value for MKDIR_P within a source directory, because that will
2567     # break other packages using the cache if that directory is
2568     # removed, or if the value is a relative name.
2569     MKDIR_P="$ac_install_sh -d"
2570   fi
2571 fi
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2573 $as_echo "$MKDIR_P" >&6; }
2574
2575 mkdir_p="$MKDIR_P"
2576 case $mkdir_p in
2577   [\\/$]* | ?:[\\/]*) ;;
2578   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2579 esac
2580
2581 for ac_prog in gawk mawk nawk awk
2582 do
2583   # Extract the first word of "$ac_prog", so it can be a program name with args.
2584 set dummy $ac_prog; ac_word=$2
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586 $as_echo_n "checking for $ac_word... " >&6; }
2587 if ${ac_cv_prog_AWK+:} false; then :
2588   $as_echo_n "(cached) " >&6
2589 else
2590   if test -n "$AWK"; then
2591   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596   IFS=$as_save_IFS
2597   test -z "$as_dir" && as_dir=.
2598     for ac_exec_ext in '' $ac_executable_extensions; do
2599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600     ac_cv_prog_AWK="$ac_prog"
2601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602     break 2
2603   fi
2604 done
2605   done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 AWK=$ac_cv_prog_AWK
2611 if test -n "$AWK"; then
2612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2613 $as_echo "$AWK" >&6; }
2614 else
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616 $as_echo "no" >&6; }
2617 fi
2618
2619
2620   test -n "$AWK" && break
2621 done
2622
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2624 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2625 set x ${MAKE-make}
2626 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2627 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2628   $as_echo_n "(cached) " >&6
2629 else
2630   cat >conftest.make <<\_ACEOF
2631 SHELL = /bin/sh
2632 all:
2633         @echo '@@@%%%=$(MAKE)=@@@%%%'
2634 _ACEOF
2635 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2636 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2637   *@@@%%%=?*=@@@%%%*)
2638     eval ac_cv_prog_make_${ac_make}_set=yes;;
2639   *)
2640     eval ac_cv_prog_make_${ac_make}_set=no;;
2641 esac
2642 rm -f conftest.make
2643 fi
2644 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646 $as_echo "yes" >&6; }
2647   SET_MAKE=
2648 else
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651   SET_MAKE="MAKE=${MAKE-make}"
2652 fi
2653
2654 rm -rf .tst 2>/dev/null
2655 mkdir .tst 2>/dev/null
2656 if test -d .tst; then
2657   am__leading_dot=.
2658 else
2659   am__leading_dot=_
2660 fi
2661 rmdir .tst 2>/dev/null
2662
2663 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2664   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2665   # is not polluted with repeated "-I."
2666   am__isrc=' -I$(srcdir)'
2667   # test to see if srcdir already configured
2668   if test -f $srcdir/config.status; then
2669     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2670   fi
2671 fi
2672
2673 # test whether we have cygpath
2674 if test -z "$CYGPATH_W"; then
2675   if (cygpath --version) >/dev/null 2>/dev/null; then
2676     CYGPATH_W='cygpath -w'
2677   else
2678     CYGPATH_W=echo
2679   fi
2680 fi
2681
2682
2683 # Define the identity of the package.
2684  PACKAGE='xf86-video-vesa'
2685  VERSION='2.3.2'
2686
2687
2688 cat >>confdefs.h <<_ACEOF
2689 #define PACKAGE "$PACKAGE"
2690 _ACEOF
2691
2692
2693 cat >>confdefs.h <<_ACEOF
2694 #define VERSION "$VERSION"
2695 _ACEOF
2696
2697 # Some tools Automake needs.
2698
2699 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2700
2701
2702 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2703
2704
2705 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2706
2707
2708 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2709
2710
2711 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2712
2713 # We need awk for the "check" target.  The system "awk" is bad on
2714 # some platforms.
2715 # Always define AMTAR for backward compatibility.  Yes, it's still used
2716 # in the wild :-(  We should find a proper way to deprecate it ...
2717 AMTAR='$${TAR-tar}'
2718
2719 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2720
2721
2722
2723
2724
2725
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2727 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2728     # Check whether --enable-maintainer-mode was given.
2729 if test "${enable_maintainer_mode+set}" = set; then :
2730   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2731 else
2732   USE_MAINTAINER_MODE=no
2733 fi
2734
2735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2736 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2737    if test $USE_MAINTAINER_MODE = yes; then
2738   MAINTAINER_MODE_TRUE=
2739   MAINTAINER_MODE_FALSE='#'
2740 else
2741   MAINTAINER_MODE_TRUE='#'
2742   MAINTAINER_MODE_FALSE=
2743 fi
2744
2745   MAINT=$MAINTAINER_MODE_TRUE
2746
2747
2748
2749 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761 DEPDIR="${am__leading_dot}deps"
2762
2763 ac_config_commands="$ac_config_commands depfiles"
2764
2765
2766 am_make=${MAKE-make}
2767 cat > confinc << 'END'
2768 am__doit:
2769         @echo this is the am__doit target
2770 .PHONY: am__doit
2771 END
2772 # If we don't find an include directive, just comment out the code.
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2774 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2775 am__include="#"
2776 am__quote=
2777 _am_result=none
2778 # First try GNU make style include.
2779 echo "include confinc" > confmf
2780 # Ignore all kinds of additional output from `make'.
2781 case `$am_make -s -f confmf 2> /dev/null` in #(
2782 *the\ am__doit\ target*)
2783   am__include=include
2784   am__quote=
2785   _am_result=GNU
2786   ;;
2787 esac
2788 # Now try BSD make style include.
2789 if test "$am__include" = "#"; then
2790    echo '.include "confinc"' > confmf
2791    case `$am_make -s -f confmf 2> /dev/null` in #(
2792    *the\ am__doit\ target*)
2793      am__include=.include
2794      am__quote="\""
2795      _am_result=BSD
2796      ;;
2797    esac
2798 fi
2799
2800
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2802 $as_echo "$_am_result" >&6; }
2803 rm -f confinc confmf
2804
2805 # Check whether --enable-dependency-tracking was given.
2806 if test "${enable_dependency_tracking+set}" = set; then :
2807   enableval=$enable_dependency_tracking;
2808 fi
2809
2810 if test "x$enable_dependency_tracking" != xno; then
2811   am_depcomp="$ac_aux_dir/depcomp"
2812   AMDEPBACKSLASH='\'
2813   am__nodep='_no'
2814 fi
2815  if test "x$enable_dependency_tracking" != xno; then
2816   AMDEP_TRUE=
2817   AMDEP_FALSE='#'
2818 else
2819   AMDEP_TRUE='#'
2820   AMDEP_FALSE=
2821 fi
2822
2823
2824 ac_ext=c
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829 if test -n "$ac_tool_prefix"; then
2830   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2831 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_CC+:} false; then :
2835   $as_echo_n "(cached) " >&6
2836 else
2837   if test -n "$CC"; then
2838   ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843   IFS=$as_save_IFS
2844   test -z "$as_dir" && as_dir=.
2845     for ac_exec_ext in '' $ac_executable_extensions; do
2846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849     break 2
2850   fi
2851 done
2852   done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 CC=$ac_cv_prog_CC
2858 if test -n "$CC"; then
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2861 else
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2864 fi
2865
2866
2867 fi
2868 if test -z "$ac_cv_prog_CC"; then
2869   ac_ct_CC=$CC
2870   # Extract the first word of "gcc", so it can be a program name with args.
2871 set dummy gcc; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2875   $as_echo_n "(cached) " >&6
2876 else
2877   if test -n "$ac_ct_CC"; then
2878   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883   IFS=$as_save_IFS
2884   test -z "$as_dir" && as_dir=.
2885     for ac_exec_ext in '' $ac_executable_extensions; do
2886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887     ac_cv_prog_ac_ct_CC="gcc"
2888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889     break 2
2890   fi
2891 done
2892   done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2898 if test -n "$ac_ct_CC"; then
2899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2900 $as_echo "$ac_ct_CC" >&6; }
2901 else
2902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2904 fi
2905
2906   if test "x$ac_ct_CC" = x; then
2907     CC=""
2908   else
2909     case $cross_compiling:$ac_tool_warned in
2910 yes:)
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2913 ac_tool_warned=yes ;;
2914 esac
2915     CC=$ac_ct_CC
2916   fi
2917 else
2918   CC="$ac_cv_prog_CC"
2919 fi
2920
2921 if test -z "$CC"; then
2922           if test -n "$ac_tool_prefix"; then
2923     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2924 set dummy ${ac_tool_prefix}cc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_CC+:} false; then :
2928   $as_echo_n "(cached) " >&6
2929 else
2930   if test -n "$CC"; then
2931   ac_cv_prog_CC="$CC" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936   IFS=$as_save_IFS
2937   test -z "$as_dir" && as_dir=.
2938     for ac_exec_ext in '' $ac_executable_extensions; do
2939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940     ac_cv_prog_CC="${ac_tool_prefix}cc"
2941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942     break 2
2943   fi
2944 done
2945   done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 CC=$ac_cv_prog_CC
2951 if test -n "$CC"; then
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2954 else
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 fi
2958
2959
2960   fi
2961 fi
2962 if test -z "$CC"; then
2963   # Extract the first word of "cc", so it can be a program name with args.
2964 set dummy cc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_CC+:} false; then :
2968   $as_echo_n "(cached) " >&6
2969 else
2970   if test -n "$CC"; then
2971   ac_cv_prog_CC="$CC" # Let the user override the test.
2972 else
2973   ac_prog_rejected=no
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977   IFS=$as_save_IFS
2978   test -z "$as_dir" && as_dir=.
2979     for ac_exec_ext in '' $ac_executable_extensions; do
2980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2982        ac_prog_rejected=yes
2983        continue
2984      fi
2985     ac_cv_prog_CC="cc"
2986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987     break 2
2988   fi
2989 done
2990   done
2991 IFS=$as_save_IFS
2992
2993 if test $ac_prog_rejected = yes; then
2994   # We found a bogon in the path, so make sure we never use it.
2995   set dummy $ac_cv_prog_CC
2996   shift
2997   if test $# != 0; then
2998     # We chose a different compiler from the bogus one.
2999     # However, it has the same basename, so the bogon will be chosen
3000     # first if we set CC to just the basename; use the full file name.
3001     shift
3002     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3003   fi
3004 fi
3005 fi
3006 fi
3007 CC=$ac_cv_prog_CC
3008 if test -n "$CC"; then
3009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3011 else
3012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3014 fi
3015
3016
3017 fi
3018 if test -z "$CC"; then
3019   if test -n "$ac_tool_prefix"; then
3020   for ac_prog in cl.exe
3021   do
3022     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3023 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_CC+:} false; then :
3027   $as_echo_n "(cached) " >&6
3028 else
3029   if test -n "$CC"; then
3030   ac_cv_prog_CC="$CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035   IFS=$as_save_IFS
3036   test -z "$as_dir" && as_dir=.
3037     for ac_exec_ext in '' $ac_executable_extensions; do
3038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041     break 2
3042   fi
3043 done
3044   done
3045 IFS=$as_save_IFS
3046
3047 fi
3048 fi
3049 CC=$ac_cv_prog_CC
3050 if test -n "$CC"; then
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052 $as_echo "$CC" >&6; }
3053 else
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3056 fi
3057
3058
3059     test -n "$CC" && break
3060   done
3061 fi
3062 if test -z "$CC"; then
3063   ac_ct_CC=$CC
3064   for ac_prog in cl.exe
3065 do
3066   # Extract the first word of "$ac_prog", so it can be a program name with args.
3067 set dummy $ac_prog; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   if test -n "$ac_ct_CC"; then
3074   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081     for ac_exec_ext in '' $ac_executable_extensions; do
3082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083     ac_cv_prog_ac_ct_CC="$ac_prog"
3084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086   fi
3087 done
3088   done
3089 IFS=$as_save_IFS
3090
3091 fi
3092 fi
3093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3094 if test -n "$ac_ct_CC"; then
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3096 $as_echo "$ac_ct_CC" >&6; }
3097 else
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 fi
3101
3102
3103   test -n "$ac_ct_CC" && break
3104 done
3105
3106   if test "x$ac_ct_CC" = x; then
3107     CC=""
3108   else
3109     case $cross_compiling:$ac_tool_warned in
3110 yes:)
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3113 ac_tool_warned=yes ;;
3114 esac
3115     CC=$ac_ct_CC
3116   fi
3117 fi
3118
3119 fi
3120
3121
3122 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error $? "no acceptable C compiler found in \$PATH
3125 See \`config.log' for more details" "$LINENO" 5; }
3126
3127 # Provide some information about the compiler.
3128 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3129 set X $ac_compile
3130 ac_compiler=$2
3131 for ac_option in --version -v -V -qversion; do
3132   { { ac_try="$ac_compiler $ac_option >&5"
3133 case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138 $as_echo "$ac_try_echo"; } >&5
3139   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3140   ac_status=$?
3141   if test -s conftest.err; then
3142     sed '10a\
3143 ... rest of stderr output deleted ...
3144          10q' conftest.err >conftest.er1
3145     cat conftest.er1 >&5
3146   fi
3147   rm -f conftest.er1 conftest.err
3148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149   test $ac_status = 0; }
3150 done
3151
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h.  */
3154
3155 int
3156 main ()
3157 {
3158
3159   ;
3160   return 0;
3161 }
3162 _ACEOF
3163 ac_clean_files_save=$ac_clean_files
3164 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3165 # Try to create an executable without -o first, disregard a.out.
3166 # It will help us diagnose broken compilers, and finding out an intuition
3167 # of exeext.
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3169 $as_echo_n "checking whether the C compiler works... " >&6; }
3170 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3171
3172 # The possible output files:
3173 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3174
3175 ac_rmfiles=
3176 for ac_file in $ac_files
3177 do
3178   case $ac_file in
3179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3180     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3181   esac
3182 done
3183 rm -f $ac_rmfiles
3184
3185 if { { ac_try="$ac_link_default"
3186 case "(($ac_try" in
3187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188   *) ac_try_echo=$ac_try;;
3189 esac
3190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191 $as_echo "$ac_try_echo"; } >&5
3192   (eval "$ac_link_default") 2>&5
3193   ac_status=$?
3194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195   test $ac_status = 0; }; then :
3196   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3197 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3198 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3199 # so that the user can short-circuit this test for compilers unknown to
3200 # Autoconf.
3201 for ac_file in $ac_files ''
3202 do
3203   test -f "$ac_file" || continue
3204   case $ac_file in
3205     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3206         ;;
3207     [ab].out )
3208         # We found the default executable, but exeext='' is most
3209         # certainly right.
3210         break;;
3211     *.* )
3212         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3213         then :; else
3214            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3215         fi
3216         # We set ac_cv_exeext here because the later test for it is not
3217         # safe: cross compilers may not add the suffix if given an `-o'
3218         # argument, so we may need to know it at that point already.
3219         # Even if this section looks crufty: it has the advantage of
3220         # actually working.
3221         break;;
3222     * )
3223         break;;
3224   esac
3225 done
3226 test "$ac_cv_exeext" = no && ac_cv_exeext=
3227
3228 else
3229   ac_file=''
3230 fi
3231 if test -z "$ac_file"; then :
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 $as_echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error 77 "C compiler cannot create executables
3240 See \`config.log' for more details" "$LINENO" 5; }
3241 else
3242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3243 $as_echo "yes" >&6; }
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3246 $as_echo_n "checking for C compiler default output file name... " >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3248 $as_echo "$ac_file" >&6; }
3249 ac_exeext=$ac_cv_exeext
3250
3251 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3252 ac_clean_files=$ac_clean_files_save
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3254 $as_echo_n "checking for suffix of executables... " >&6; }
3255 if { { ac_try="$ac_link"
3256 case "(($ac_try" in
3257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258   *) ac_try_echo=$ac_try;;
3259 esac
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262   (eval "$ac_link") 2>&5
3263   ac_status=$?
3264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265   test $ac_status = 0; }; then :
3266   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3267 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3268 # work properly (i.e., refer to `conftest.exe'), while it won't with
3269 # `rm'.
3270 for ac_file in conftest.exe conftest conftest.*; do
3271   test -f "$ac_file" || continue
3272   case $ac_file in
3273     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3274     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275           break;;
3276     * ) break;;
3277   esac
3278 done
3279 else
3280   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3283 See \`config.log' for more details" "$LINENO" 5; }
3284 fi
3285 rm -f conftest conftest$ac_cv_exeext
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3287 $as_echo "$ac_cv_exeext" >&6; }
3288
3289 rm -f conftest.$ac_ext
3290 EXEEXT=$ac_cv_exeext
3291 ac_exeext=$EXEEXT
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h.  */
3294 #include <stdio.h>
3295 int
3296 main ()
3297 {
3298 FILE *f = fopen ("conftest.out", "w");
3299  return ferror (f) || fclose (f) != 0;
3300
3301   ;
3302   return 0;
3303 }
3304 _ACEOF
3305 ac_clean_files="$ac_clean_files conftest.out"
3306 # Check that the compiler produces executables we can run.  If not, either
3307 # the compiler is broken, or we cross compile.
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3309 $as_echo_n "checking whether we are cross compiling... " >&6; }
3310 if test "$cross_compiling" != yes; then
3311   { { ac_try="$ac_link"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318   (eval "$ac_link") 2>&5
3319   ac_status=$?
3320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321   test $ac_status = 0; }
3322   if { ac_try='./conftest$ac_cv_exeext'
3323   { { case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329   (eval "$ac_try") 2>&5
3330   ac_status=$?
3331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332   test $ac_status = 0; }; }; then
3333     cross_compiling=no
3334   else
3335     if test "$cross_compiling" = maybe; then
3336         cross_compiling=yes
3337     else
3338         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error $? "cannot run C compiled programs.
3341 If you meant to cross compile, use \`--host'.
3342 See \`config.log' for more details" "$LINENO" 5; }
3343     fi
3344   fi
3345 fi
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3347 $as_echo "$cross_compiling" >&6; }
3348
3349 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3350 ac_clean_files=$ac_clean_files_save
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3352 $as_echo_n "checking for suffix of object files... " >&6; }
3353 if ${ac_cv_objext+:} false; then :
3354   $as_echo_n "(cached) " >&6
3355 else
3356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h.  */
3358
3359 int
3360 main ()
3361 {
3362
3363   ;
3364   return 0;
3365 }
3366 _ACEOF
3367 rm -f conftest.o conftest.obj
3368 if { { ac_try="$ac_compile"
3369 case "(($ac_try" in
3370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371   *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375   (eval "$ac_compile") 2>&5
3376   ac_status=$?
3377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378   test $ac_status = 0; }; then :
3379   for ac_file in conftest.o conftest.obj conftest.*; do
3380   test -f "$ac_file" || continue;
3381   case $ac_file in
3382     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3383     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3384        break;;
3385   esac
3386 done
3387 else
3388   $as_echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error $? "cannot compute suffix of object files: cannot compile
3394 See \`config.log' for more details" "$LINENO" 5; }
3395 fi
3396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3397 fi
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3399 $as_echo "$ac_cv_objext" >&6; }
3400 OBJEXT=$ac_cv_objext
3401 ac_objext=$OBJEXT
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3403 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3404 if ${ac_cv_c_compiler_gnu+:} false; then :
3405   $as_echo_n "(cached) " >&6
3406 else
3407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h.  */
3409
3410 int
3411 main ()
3412 {
3413 #ifndef __GNUC__
3414        choke me
3415 #endif
3416
3417   ;
3418   return 0;
3419 }
3420 _ACEOF
3421 if ac_fn_c_try_compile "$LINENO"; then :
3422   ac_compiler_gnu=yes
3423 else
3424   ac_compiler_gnu=no
3425 fi
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3428
3429 fi
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3431 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3432 if test $ac_compiler_gnu = yes; then
3433   GCC=yes
3434 else
3435   GCC=
3436 fi
3437 ac_test_CFLAGS=${CFLAGS+set}
3438 ac_save_CFLAGS=$CFLAGS
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3440 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3441 if ${ac_cv_prog_cc_g+:} false; then :
3442   $as_echo_n "(cached) " >&6
3443 else
3444   ac_save_c_werror_flag=$ac_c_werror_flag
3445    ac_c_werror_flag=yes
3446    ac_cv_prog_cc_g=no
3447    CFLAGS="-g"
3448    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h.  */
3450
3451 int
3452 main ()
3453 {
3454
3455   ;
3456   return 0;
3457 }
3458 _ACEOF
3459 if ac_fn_c_try_compile "$LINENO"; then :
3460   ac_cv_prog_cc_g=yes
3461 else
3462   CFLAGS=""
3463       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475
3476 else
3477   ac_c_werror_flag=$ac_save_c_werror_flag
3478          CFLAGS="-g"
3479          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h.  */
3481
3482 int
3483 main ()
3484 {
3485
3486   ;
3487   return 0;
3488 }
3489 _ACEOF
3490 if ac_fn_c_try_compile "$LINENO"; then :
3491   ac_cv_prog_cc_g=yes
3492 fi
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 fi
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 fi
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498    ac_c_werror_flag=$ac_save_c_werror_flag
3499 fi
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3501 $as_echo "$ac_cv_prog_cc_g" >&6; }
3502 if test "$ac_test_CFLAGS" = set; then
3503   CFLAGS=$ac_save_CFLAGS
3504 elif test $ac_cv_prog_cc_g = yes; then
3505   if test "$GCC" = yes; then
3506     CFLAGS="-g -O2"
3507   else
3508     CFLAGS="-g"
3509   fi
3510 else
3511   if test "$GCC" = yes; then
3512     CFLAGS="-O2"
3513   else
3514     CFLAGS=
3515   fi
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3518 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3519 if ${ac_cv_prog_cc_c89+:} false; then :
3520   $as_echo_n "(cached) " >&6
3521 else
3522   ac_cv_prog_cc_c89=no
3523 ac_save_CC=$CC
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h.  */
3526 #include <stdarg.h>
3527 #include <stdio.h>
3528 #include <sys/types.h>
3529 #include <sys/stat.h>
3530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3531 struct buf { int x; };
3532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3533 static char *e (p, i)
3534      char **p;
3535      int i;
3536 {
3537   return p[i];
3538 }
3539 static char *f (char * (*g) (char **, int), char **p, ...)
3540 {
3541   char *s;
3542   va_list v;
3543   va_start (v,p);
3544   s = g (p, va_arg (v,int));
3545   va_end (v);
3546   return s;
3547 }
3548
3549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3550    function prototypes and stuff, but not '\xHH' hex character constants.
3551    These don't provoke an error unfortunately, instead are silently treated
3552    as 'x'.  The following induces an error, until -std is added to get
3553    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3554    array size at least.  It's necessary to write '\x00'==0 to get something
3555    that's true only with -std.  */
3556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3557
3558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3559    inside strings and character constants.  */
3560 #define FOO(x) 'x'
3561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3562
3563 int test (int i, double x);
3564 struct s1 {int (*f) (int a);};
3565 struct s2 {int (*f) (double a);};
3566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3567 int argc;
3568 char **argv;
3569 int
3570 main ()
3571 {
3572 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3573   ;
3574   return 0;
3575 }
3576 _ACEOF
3577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3578         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3579 do
3580   CC="$ac_save_CC $ac_arg"
3581   if ac_fn_c_try_compile "$LINENO"; then :
3582   ac_cv_prog_cc_c89=$ac_arg
3583 fi
3584 rm -f core conftest.err conftest.$ac_objext
3585   test "x$ac_cv_prog_cc_c89" != "xno" && break
3586 done
3587 rm -f conftest.$ac_ext
3588 CC=$ac_save_CC
3589
3590 fi
3591 # AC_CACHE_VAL
3592 case "x$ac_cv_prog_cc_c89" in
3593   x)
3594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3595 $as_echo "none needed" >&6; } ;;
3596   xno)
3597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3598 $as_echo "unsupported" >&6; } ;;
3599   *)
3600     CC="$CC $ac_cv_prog_cc_c89"
3601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3602 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3603 esac
3604 if test "x$ac_cv_prog_cc_c89" != xno; then :
3605
3606 fi
3607
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614 depcc="$CC"   am_compiler_list=
3615
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3617 $as_echo_n "checking dependency style of $depcc... " >&6; }
3618 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3619   $as_echo_n "(cached) " >&6
3620 else
3621   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3622   # We make a subdir and do the tests there.  Otherwise we can end up
3623   # making bogus files that we don't know about and never remove.  For
3624   # instance it was reported that on HP-UX the gcc test will end up
3625   # making a dummy file named `D' -- because `-MD' means `put the output
3626   # in D'.
3627   rm -rf conftest.dir
3628   mkdir conftest.dir
3629   # Copy depcomp to subdir because otherwise we won't find it if we're
3630   # using a relative directory.
3631   cp "$am_depcomp" conftest.dir
3632   cd conftest.dir
3633   # We will build objects and dependencies in a subdirectory because
3634   # it helps to detect inapplicable dependency modes.  For instance
3635   # both Tru64's cc and ICC support -MD to output dependencies as a
3636   # side effect of compilation, but ICC will put the dependencies in
3637   # the current directory while Tru64 will put them in the object
3638   # directory.
3639   mkdir sub
3640
3641   am_cv_CC_dependencies_compiler_type=none
3642   if test "$am_compiler_list" = ""; then
3643      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3644   fi
3645   am__universal=false
3646   case " $depcc " in #(
3647      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3648      esac
3649
3650   for depmode in $am_compiler_list; do
3651     # Setup a source with many dependencies, because some compilers
3652     # like to wrap large dependency lists on column 80 (with \), and
3653     # we should not choose a depcomp mode which is confused by this.
3654     #
3655     # We need to recreate these files for each test, as the compiler may
3656     # overwrite some of them when testing with obscure command lines.
3657     # This happens at least with the AIX C compiler.
3658     : > sub/conftest.c
3659     for i in 1 2 3 4 5 6; do
3660       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3661       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3662       # Solaris 8's {/usr,}/bin/sh.
3663       touch sub/conftst$i.h
3664     done
3665     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3666
3667     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3668     # mode.  It turns out that the SunPro C++ compiler does not properly
3669     # handle `-M -o', and we need to detect this.  Also, some Intel
3670     # versions had trouble with output in subdirs
3671     am__obj=sub/conftest.${OBJEXT-o}
3672     am__minus_obj="-o $am__obj"
3673     case $depmode in
3674     gcc)
3675       # This depmode causes a compiler race in universal mode.
3676       test "$am__universal" = false || continue
3677       ;;
3678     nosideeffect)
3679       # after this tag, mechanisms are not by side-effect, so they'll
3680       # only be used when explicitly requested
3681       if test "x$enable_dependency_tracking" = xyes; then
3682         continue
3683       else
3684         break
3685       fi
3686       ;;
3687     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3688       # This compiler won't grok `-c -o', but also, the minuso test has
3689       # not run yet.  These depmodes are late enough in the game, and
3690       # so weak that their functioning should not be impacted.
3691       am__obj=conftest.${OBJEXT-o}
3692       am__minus_obj=
3693       ;;
3694     none) break ;;
3695     esac
3696     if depmode=$depmode \
3697        source=sub/conftest.c object=$am__obj \
3698        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3699        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3700          >/dev/null 2>conftest.err &&
3701        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3702        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3703        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3704        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3705       # icc doesn't choke on unknown options, it will just issue warnings
3706       # or remarks (even with -Werror).  So we grep stderr for any message
3707       # that says an option was ignored or not supported.
3708       # When given -MP, icc 7.0 and 7.1 complain thusly:
3709       #   icc: Command line warning: ignoring option '-M'; no argument required
3710       # The diagnosis changed in icc 8.0:
3711       #   icc: Command line remark: option '-MP' not supported
3712       if (grep 'ignoring option' conftest.err ||
3713           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3714         am_cv_CC_dependencies_compiler_type=$depmode
3715         break
3716       fi
3717     fi
3718   done
3719
3720   cd ..
3721   rm -rf conftest.dir
3722 else
3723   am_cv_CC_dependencies_compiler_type=none
3724 fi
3725
3726 fi
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3728 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3729 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3730
3731  if
3732   test "x$enable_dependency_tracking" != xno \
3733   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3734   am__fastdepCC_TRUE=
3735   am__fastdepCC_FALSE='#'
3736 else
3737   am__fastdepCC_TRUE='#'
3738   am__fastdepCC_FALSE=
3739 fi
3740
3741
3742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3743 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3744 if ${ac_cv_prog_cc_c99+:} false; then :
3745   $as_echo_n "(cached) " >&6
3746 else
3747   ac_cv_prog_cc_c99=no
3748 ac_save_CC=$CC
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h.  */
3751 #include <stdarg.h>
3752 #include <stdbool.h>
3753 #include <stdlib.h>
3754 #include <wchar.h>
3755 #include <stdio.h>
3756
3757 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3758 #define debug(...) fprintf (stderr, __VA_ARGS__)
3759 #define showlist(...) puts (#__VA_ARGS__)
3760 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3761 static void
3762 test_varargs_macros (void)
3763 {
3764   int x = 1234;
3765   int y = 5678;
3766   debug ("Flag");
3767   debug ("X = %d\n", x);
3768   showlist (The first, second, and third items.);
3769   report (x>y, "x is %d but y is %d", x, y);
3770 }
3771
3772 // Check long long types.
3773 #define BIG64 18446744073709551615ull
3774 #define BIG32 4294967295ul
3775 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3776 #if !BIG_OK
3777   your preprocessor is broken;
3778 #endif
3779 #if BIG_OK
3780 #else
3781   your preprocessor is broken;
3782 #endif
3783 static long long int bignum = -9223372036854775807LL;
3784 static unsigned long long int ubignum = BIG64;
3785
3786 struct incomplete_array
3787 {
3788   int datasize;
3789   double data[];
3790 };
3791
3792 struct named_init {
3793   int number;
3794   const wchar_t *name;
3795   double average;
3796 };
3797
3798 typedef const char *ccp;
3799
3800 static inline int
3801 test_restrict (ccp restrict text)
3802 {
3803   // See if C++-style comments work.
3804   // Iterate through items via the restricted pointer.
3805   // Also check for declarations in for loops.
3806   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3807     continue;
3808   return 0;
3809 }
3810
3811 // Check varargs and va_copy.
3812 static void
3813 test_varargs (const char *format, ...)
3814 {
3815   va_list args;
3816   va_start (args, format);
3817   va_list args_copy;
3818   va_copy (args_copy, args);
3819
3820   const char *str;
3821   int number;
3822   float fnumber;
3823
3824   while (*format)
3825     {
3826       switch (*format++)
3827         {
3828         case 's': // string
3829           str = va_arg (args_copy, const char *);
3830           break;
3831         case 'd': // int
3832           number = va_arg (args_copy, int);
3833           break;
3834         case 'f': // float
3835           fnumber = va_arg (args_copy, double);
3836           break;
3837         default:
3838           break;
3839         }
3840     }
3841   va_end (args_copy);
3842   va_end (args);
3843 }
3844
3845 int
3846 main ()
3847 {
3848
3849   // Check bool.
3850   _Bool success = false;
3851
3852   // Check restrict.
3853   if (test_restrict ("String literal") == 0)
3854     success = true;
3855   char *restrict newvar = "Another string";
3856
3857   // Check varargs.
3858   test_varargs ("s, d' f .", "string", 65, 34.234);
3859   test_varargs_macros ();
3860
3861   // Check flexible array members.
3862   struct incomplete_array *ia =
3863     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3864   ia->datasize = 10;
3865   for (int i = 0; i < ia->datasize; ++i)
3866     ia->data[i] = i * 1.234;
3867
3868   // Check named initializers.
3869   struct named_init ni = {
3870     .number = 34,
3871     .name = L"Test wide string",
3872     .average = 543.34343,
3873   };
3874
3875   ni.number = 58;
3876
3877   int dynamic_array[ni.number];
3878   dynamic_array[ni.number - 1] = 543;
3879
3880   // work around unused variable warnings
3881   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3882           || dynamic_array[ni.number - 1] != 543);
3883
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3889 do
3890   CC="$ac_save_CC $ac_arg"
3891   if ac_fn_c_try_compile "$LINENO"; then :
3892   ac_cv_prog_cc_c99=$ac_arg
3893 fi
3894 rm -f core conftest.err conftest.$ac_objext
3895   test "x$ac_cv_prog_cc_c99" != "xno" && break
3896 done
3897 rm -f conftest.$ac_ext
3898 CC=$ac_save_CC
3899
3900 fi
3901 # AC_CACHE_VAL
3902 case "x$ac_cv_prog_cc_c99" in
3903   x)
3904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3905 $as_echo "none needed" >&6; } ;;
3906   xno)
3907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3908 $as_echo "unsupported" >&6; } ;;
3909   *)
3910     CC="$CC $ac_cv_prog_cc_c99"
3911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3912 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3913 esac
3914 if test "x$ac_cv_prog_cc_c99" != xno; then :
3915
3916 fi
3917
3918
3919
3920 ac_ext=c
3921 ac_cpp='$CPP $CPPFLAGS'
3922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3926 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3927 # On Suns, sometimes $CPP names a directory.
3928 if test -n "$CPP" && test -d "$CPP"; then
3929   CPP=
3930 fi
3931 if test -z "$CPP"; then
3932   if ${ac_cv_prog_CPP+:} false; then :
3933   $as_echo_n "(cached) " >&6
3934 else
3935       # Double quotes because CPP needs to be expanded
3936     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3937     do
3938       ac_preproc_ok=false
3939 for ac_c_preproc_warn_flag in '' yes
3940 do
3941   # Use a header file that comes with gcc, so configuring glibc
3942   # with a fresh cross-compiler works.
3943   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3944   # <limits.h> exists even on freestanding compilers.
3945   # On the NeXT, cc -E runs the code through the compiler's parser,
3946   # not just through cpp. "Syntax error" is here to catch this case.
3947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h.  */
3949 #ifdef __STDC__
3950 # include <limits.h>
3951 #else
3952 # include <assert.h>
3953 #endif
3954                      Syntax error
3955 _ACEOF
3956 if ac_fn_c_try_cpp "$LINENO"; then :
3957
3958 else
3959   # Broken: fails on valid input.
3960 continue
3961 fi
3962 rm -f conftest.err conftest.i conftest.$ac_ext
3963
3964   # OK, works on sane cases.  Now check whether nonexistent headers
3965   # can be detected and how.
3966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h.  */
3968 #include <ac_nonexistent.h>
3969 _ACEOF
3970 if ac_fn_c_try_cpp "$LINENO"; then :
3971   # Broken: success on invalid input.
3972 continue
3973 else
3974   # Passes both tests.
3975 ac_preproc_ok=:
3976 break
3977 fi
3978 rm -f conftest.err conftest.i conftest.$ac_ext
3979
3980 done
3981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3982 rm -f conftest.i conftest.err conftest.$ac_ext
3983 if $ac_preproc_ok; then :
3984   break
3985 fi
3986
3987     done
3988     ac_cv_prog_CPP=$CPP
3989
3990 fi
3991   CPP=$ac_cv_prog_CPP
3992 else
3993   ac_cv_prog_CPP=$CPP
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3996 $as_echo "$CPP" >&6; }
3997 ac_preproc_ok=false
3998 for ac_c_preproc_warn_flag in '' yes
3999 do
4000   # Use a header file that comes with gcc, so configuring glibc
4001   # with a fresh cross-compiler works.
4002   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4003   # <limits.h> exists even on freestanding compilers.
4004   # On the NeXT, cc -E runs the code through the compiler's parser,
4005   # not just through cpp. "Syntax error" is here to catch this case.
4006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h.  */
4008 #ifdef __STDC__
4009 # include <limits.h>
4010 #else
4011 # include <assert.h>
4012 #endif
4013                      Syntax error
4014 _ACEOF
4015 if ac_fn_c_try_cpp "$LINENO"; then :
4016
4017 else
4018   # Broken: fails on valid input.
4019 continue
4020 fi
4021 rm -f conftest.err conftest.i conftest.$ac_ext
4022
4023   # OK, works on sane cases.  Now check whether nonexistent headers
4024   # can be detected and how.
4025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h.  */
4027 #include <ac_nonexistent.h>
4028 _ACEOF
4029 if ac_fn_c_try_cpp "$LINENO"; then :
4030   # Broken: success on invalid input.
4031 continue
4032 else
4033   # Passes both tests.
4034 ac_preproc_ok=:
4035 break
4036 fi
4037 rm -f conftest.err conftest.i conftest.$ac_ext
4038
4039 done
4040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4041 rm -f conftest.i conftest.err conftest.$ac_ext
4042 if $ac_preproc_ok; then :
4043
4044 else
4045   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4048 See \`config.log' for more details" "$LINENO" 5; }
4049 fi
4050
4051 ac_ext=c
4052 ac_cpp='$CPP $CPPFLAGS'
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056
4057
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4059 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4060 if ${ac_cv_path_GREP+:} false; then :
4061   $as_echo_n "(cached) " >&6
4062 else
4063   if test -z "$GREP"; then
4064   ac_path_GREP_found=false
4065   # Loop through the user's path and test for each of PROGNAME-LIST
4066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4068 do
4069   IFS=$as_save_IFS
4070   test -z "$as_dir" && as_dir=.
4071     for ac_prog in grep ggrep; do
4072     for ac_exec_ext in '' $ac_executable_extensions; do
4073       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4074       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4075 # Check for GNU ac_path_GREP and select it if it is found.
4076   # Check for GNU $ac_path_GREP
4077 case `"$ac_path_GREP" --version 2>&1` in
4078 *GNU*)
4079   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4080 *)
4081   ac_count=0
4082   $as_echo_n 0123456789 >"conftest.in"
4083   while :
4084   do
4085     cat "conftest.in" "conftest.in" >"conftest.tmp"
4086     mv "conftest.tmp" "conftest.in"
4087     cp "conftest.in" "conftest.nl"
4088     $as_echo 'GREP' >> "conftest.nl"
4089     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4090     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4091     as_fn_arith $ac_count + 1 && ac_count=$as_val
4092     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4093       # Best one so far, save it but keep looking for a better one
4094       ac_cv_path_GREP="$ac_path_GREP"
4095       ac_path_GREP_max=$ac_count
4096     fi
4097     # 10*(2^10) chars as input seems more than enough
4098     test $ac_count -gt 10 && break
4099   done
4100   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4101 esac
4102
4103       $ac_path_GREP_found && break 3
4104     done
4105   done
4106   done
4107 IFS=$as_save_IFS
4108   if test -z "$ac_cv_path_GREP"; then
4109     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4110   fi
4111 else
4112   ac_cv_path_GREP=$GREP
4113 fi
4114
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4117 $as_echo "$ac_cv_path_GREP" >&6; }
4118  GREP="$ac_cv_path_GREP"
4119
4120
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4122 $as_echo_n "checking for egrep... " >&6; }
4123 if ${ac_cv_path_EGREP+:} false; then :
4124   $as_echo_n "(cached) " >&6
4125 else
4126   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4127    then ac_cv_path_EGREP="$GREP -E"
4128    else
4129      if test -z "$EGREP"; then
4130   ac_path_EGREP_found=false
4131   # Loop through the user's path and test for each of PROGNAME-LIST
4132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137     for ac_prog in egrep; do
4138     for ac_exec_ext in '' $ac_executable_extensions; do
4139       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4140       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4141 # Check for GNU ac_path_EGREP and select it if it is found.
4142   # Check for GNU $ac_path_EGREP
4143 case `"$ac_path_EGREP" --version 2>&1` in
4144 *GNU*)
4145   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4146 *)
4147   ac_count=0
4148   $as_echo_n 0123456789 >"conftest.in"
4149   while :
4150   do
4151     cat "conftest.in" "conftest.in" >"conftest.tmp"
4152     mv "conftest.tmp" "conftest.in"
4153     cp "conftest.in" "conftest.nl"
4154     $as_echo 'EGREP' >> "conftest.nl"
4155     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4156     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4157     as_fn_arith $ac_count + 1 && ac_count=$as_val
4158     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4159       # Best one so far, save it but keep looking for a better one
4160       ac_cv_path_EGREP="$ac_path_EGREP"
4161       ac_path_EGREP_max=$ac_count
4162     fi
4163     # 10*(2^10) chars as input seems more than enough
4164     test $ac_count -gt 10 && break
4165   done
4166   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4167 esac
4168
4169       $ac_path_EGREP_found && break 3
4170     done
4171   done
4172   done
4173 IFS=$as_save_IFS
4174   if test -z "$ac_cv_path_EGREP"; then
4175     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4176   fi
4177 else
4178   ac_cv_path_EGREP=$EGREP
4179 fi
4180
4181    fi
4182 fi
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4184 $as_echo "$ac_cv_path_EGREP" >&6; }
4185  EGREP="$ac_cv_path_EGREP"
4186
4187
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4189 $as_echo_n "checking for ANSI C header files... " >&6; }
4190 if ${ac_cv_header_stdc+:} false; then :
4191   $as_echo_n "(cached) " >&6
4192 else
4193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h.  */
4195 #include <stdlib.h>
4196 #include <stdarg.h>
4197 #include <string.h>
4198 #include <float.h>
4199
4200 int
4201 main ()
4202 {
4203
4204   ;
4205   return 0;
4206 }
4207 _ACEOF
4208 if ac_fn_c_try_compile "$LINENO"; then :
4209   ac_cv_header_stdc=yes
4210 else
4211   ac_cv_header_stdc=no
4212 fi
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214
4215 if test $ac_cv_header_stdc = yes; then
4216   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h.  */
4219 #include <string.h>
4220
4221 _ACEOF
4222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223   $EGREP "memchr" >/dev/null 2>&1; then :
4224
4225 else
4226   ac_cv_header_stdc=no
4227 fi
4228 rm -f conftest*
4229
4230 fi
4231
4232 if test $ac_cv_header_stdc = yes; then
4233   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h.  */
4236 #include <stdlib.h>
4237
4238 _ACEOF
4239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240   $EGREP "free" >/dev/null 2>&1; then :
4241
4242 else
4243   ac_cv_header_stdc=no
4244 fi
4245 rm -f conftest*
4246
4247 fi
4248
4249 if test $ac_cv_header_stdc = yes; then
4250   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4251   if test "$cross_compiling" = yes; then :
4252   :
4253 else
4254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h.  */
4256 #include <ctype.h>
4257 #include <stdlib.h>
4258 #if ((' ' & 0x0FF) == 0x020)
4259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4261 #else
4262 # define ISLOWER(c) \
4263                    (('a' <= (c) && (c) <= 'i') \
4264                      || ('j' <= (c) && (c) <= 'r') \
4265                      || ('s' <= (c) && (c) <= 'z'))
4266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4267 #endif
4268
4269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4270 int
4271 main ()
4272 {
4273   int i;
4274   for (i = 0; i < 256; i++)
4275     if (XOR (islower (i), ISLOWER (i))
4276         || toupper (i) != TOUPPER (i))
4277       return 2;
4278   return 0;
4279 }
4280 _ACEOF
4281 if ac_fn_c_try_run "$LINENO"; then :
4282
4283 else
4284   ac_cv_header_stdc=no
4285 fi
4286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4287   conftest.$ac_objext conftest.beam conftest.$ac_ext
4288 fi
4289
4290 fi
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4293 $as_echo "$ac_cv_header_stdc" >&6; }
4294 if test $ac_cv_header_stdc = yes; then
4295
4296 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4297
4298 fi
4299
4300 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4301 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4302                   inttypes.h stdint.h unistd.h
4303 do :
4304   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4305 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4306 "
4307 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4308   cat >>confdefs.h <<_ACEOF
4309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4310 _ACEOF
4311
4312 fi
4313
4314 done
4315
4316
4317
4318
4319
4320
4321 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4322 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4323   CLANGCC="yes"
4324 else
4325   CLANGCC="no"
4326 fi
4327
4328 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4329 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4330   INTELCC="yes"
4331 else
4332   INTELCC="no"
4333 fi
4334
4335 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4336 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4337   SUNCC="yes"
4338 else
4339   SUNCC="no"
4340 fi
4341
4342
4343
4344
4345
4346
4347
4348
4349 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4350         if test -n "$ac_tool_prefix"; then
4351   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4352 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4356   $as_echo_n "(cached) " >&6
4357 else
4358   case $PKG_CONFIG in
4359   [\\/]* | ?:[\\/]*)
4360   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4361   ;;
4362   *)
4363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368     for ac_exec_ext in '' $ac_executable_extensions; do
4369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372     break 2
4373   fi
4374 done
4375   done
4376 IFS=$as_save_IFS
4377
4378   ;;
4379 esac
4380 fi
4381 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4382 if test -n "$PKG_CONFIG"; then
4383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4384 $as_echo "$PKG_CONFIG" >&6; }
4385 else
4386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4388 fi
4389
4390
4391 fi
4392 if test -z "$ac_cv_path_PKG_CONFIG"; then
4393   ac_pt_PKG_CONFIG=$PKG_CONFIG
4394   # Extract the first word of "pkg-config", so it can be a program name with args.
4395 set dummy pkg-config; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401   case $ac_pt_PKG_CONFIG in
4402   [\\/]* | ?:[\\/]*)
4403   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4404   ;;
4405   *)
4406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411     for ac_exec_ext in '' $ac_executable_extensions; do
4412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418   done
4419 IFS=$as_save_IFS
4420
4421   ;;
4422 esac
4423 fi
4424 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4425 if test -n "$ac_pt_PKG_CONFIG"; then
4426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4427 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4428 else
4429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 fi
4432
4433   if test "x$ac_pt_PKG_CONFIG" = x; then
4434     PKG_CONFIG=""
4435   else
4436     case $cross_compiling:$ac_tool_warned in
4437 yes:)
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4440 ac_tool_warned=yes ;;
4441 esac
4442     PKG_CONFIG=$ac_pt_PKG_CONFIG
4443   fi
4444 else
4445   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4446 fi
4447
4448 fi
4449 if test -n "$PKG_CONFIG"; then
4450         _pkg_min_version=0.9.0
4451         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4452 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4453         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4454                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4455 $as_echo "yes" >&6; }
4456         else
4457                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458 $as_echo "no" >&6; }
4459                 PKG_CONFIG=""
4460         fi
4461 fi
4462 # Make sure we can run config.sub.
4463 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4464   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4465
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4467 $as_echo_n "checking build system type... " >&6; }
4468 if ${ac_cv_build+:} false; then :
4469   $as_echo_n "(cached) " >&6
4470 else
4471   ac_build_alias=$build_alias
4472 test "x$ac_build_alias" = x &&
4473   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4474 test "x$ac_build_alias" = x &&
4475   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4476 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4477   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4478
4479 fi
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4481 $as_echo "$ac_cv_build" >&6; }
4482 case $ac_cv_build in
4483 *-*-*) ;;
4484 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4485 esac
4486 build=$ac_cv_build
4487 ac_save_IFS=$IFS; IFS='-'
4488 set x $ac_cv_build
4489 shift
4490 build_cpu=$1
4491 build_vendor=$2
4492 shift; shift
4493 # Remember, the first character of IFS is used to create $*,
4494 # except with old shells:
4495 build_os=$*
4496 IFS=$ac_save_IFS
4497 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4498
4499
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4501 $as_echo_n "checking host system type... " >&6; }
4502 if ${ac_cv_host+:} false; then :
4503   $as_echo_n "(cached) " >&6
4504 else
4505   if test "x$host_alias" = x; then
4506   ac_cv_host=$ac_cv_build
4507 else
4508   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4509     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4510 fi
4511
4512 fi
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4514 $as_echo "$ac_cv_host" >&6; }
4515 case $ac_cv_host in
4516 *-*-*) ;;
4517 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4518 esac
4519 host=$ac_cv_host
4520 ac_save_IFS=$IFS; IFS='-'
4521 set x $ac_cv_host
4522 shift
4523 host_cpu=$1
4524 host_vendor=$2
4525 shift; shift
4526 # Remember, the first character of IFS is used to create $*,
4527 # except with old shells:
4528 host_os=$*
4529 IFS=$ac_save_IFS
4530 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4531
4532
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4534 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4535 if ${ac_cv_path_SED+:} false; then :
4536   $as_echo_n "(cached) " >&6
4537 else
4538             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4539      for ac_i in 1 2 3 4 5 6 7; do
4540        ac_script="$ac_script$as_nl$ac_script"
4541      done
4542      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4543      { ac_script=; unset ac_script;}
4544      if test -z "$SED"; then
4545   ac_path_SED_found=false
4546   # Loop through the user's path and test for each of PROGNAME-LIST
4547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4549 do
4550   IFS=$as_save_IFS
4551   test -z "$as_dir" && as_dir=.
4552     for ac_prog in sed gsed; do
4553     for ac_exec_ext in '' $ac_executable_extensions; do
4554       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4555       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4556 # Check for GNU ac_path_SED and select it if it is found.
4557   # Check for GNU $ac_path_SED
4558 case `"$ac_path_SED" --version 2>&1` in
4559 *GNU*)
4560   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4561 *)
4562   ac_count=0
4563   $as_echo_n 0123456789 >"conftest.in"
4564   while :
4565   do
4566     cat "conftest.in" "conftest.in" >"conftest.tmp"
4567     mv "conftest.tmp" "conftest.in"
4568     cp "conftest.in" "conftest.nl"
4569     $as_echo '' >> "conftest.nl"
4570     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4571     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4572     as_fn_arith $ac_count + 1 && ac_count=$as_val
4573     if test $ac_count -gt ${ac_path_SED_max-0}; then
4574       # Best one so far, save it but keep looking for a better one
4575       ac_cv_path_SED="$ac_path_SED"
4576       ac_path_SED_max=$ac_count
4577     fi
4578     # 10*(2^10) chars as input seems more than enough
4579     test $ac_count -gt 10 && break
4580   done
4581   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4582 esac
4583
4584       $ac_path_SED_found && break 3
4585     done
4586   done
4587   done
4588 IFS=$as_save_IFS
4589   if test -z "$ac_cv_path_SED"; then
4590     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4591   fi
4592 else
4593   ac_cv_path_SED=$SED
4594 fi
4595
4596 fi
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4598 $as_echo "$ac_cv_path_SED" >&6; }
4599  SED="$ac_cv_path_SED"
4600   rm -f conftest.sed
4601
4602
4603
4604
4605
4606
4607 # Check whether --enable-selective-werror was given.
4608 if test "${enable_selective_werror+set}" = set; then :
4609   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4610 else
4611   SELECTIVE_WERROR=yes
4612 fi
4613
4614
4615
4616
4617
4618 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4619 if test "x$SUNCC" = "xyes"; then
4620     BASE_CFLAGS="-v"
4621 else
4622     BASE_CFLAGS=""
4623 fi
4624
4625 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639 xorg_testset_save_CFLAGS="$CFLAGS"
4640
4641 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4642         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4643         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4644 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4645 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4646   $as_echo_n "(cached) " >&6
4647 else
4648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h.  */
4650 int i;
4651 _ACEOF
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653   xorg_cv_cc_flag_unknown_warning_option=yes
4654 else
4655   xorg_cv_cc_flag_unknown_warning_option=no
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 fi
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4660 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4661         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4662         CFLAGS="$xorg_testset_save_CFLAGS"
4663 fi
4664
4665 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4666         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4667                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4668         fi
4669         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4670         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4671 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4672 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4673   $as_echo_n "(cached) " >&6
4674 else
4675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h.  */
4677 int i;
4678 _ACEOF
4679 if ac_fn_c_try_compile "$LINENO"; then :
4680   xorg_cv_cc_flag_unused_command_line_argument=yes
4681 else
4682   xorg_cv_cc_flag_unused_command_line_argument=no
4683 fi
4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4687 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4688         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4689         CFLAGS="$xorg_testset_save_CFLAGS"
4690 fi
4691
4692 found="no"
4693
4694         if test $found = "no" ; then
4695                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4696                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4697                 fi
4698
4699                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4700                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4701                 fi
4702
4703                 CFLAGS="$CFLAGS -Wall"
4704
4705                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4706 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4707                 cacheid=xorg_cv_cc_flag__Wall
4708                 if eval \${$cacheid+:} false; then :
4709   $as_echo_n "(cached) " >&6
4710 else
4711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h.  */
4713 int i;
4714 int
4715 main ()
4716 {
4717
4718   ;
4719   return 0;
4720 }
4721 _ACEOF
4722 if ac_fn_c_try_link "$LINENO"; then :
4723   eval $cacheid=yes
4724 else
4725   eval $cacheid=no
4726 fi
4727 rm -f core conftest.err conftest.$ac_objext \
4728     conftest$ac_exeext conftest.$ac_ext
4729 fi
4730
4731
4732                 CFLAGS="$xorg_testset_save_CFLAGS"
4733
4734                 eval supported=\$$cacheid
4735                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4736 $as_echo "$supported" >&6; }
4737                 if test "$supported" = "yes" ; then
4738                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
4739                         found="yes"
4740                 fi
4741         fi
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757 xorg_testset_save_CFLAGS="$CFLAGS"
4758
4759 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4760         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4761         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4762 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4763 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4764   $as_echo_n "(cached) " >&6
4765 else
4766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h.  */
4768 int i;
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771   xorg_cv_cc_flag_unknown_warning_option=yes
4772 else
4773   xorg_cv_cc_flag_unknown_warning_option=no
4774 fi
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 fi
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4778 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4779         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4780         CFLAGS="$xorg_testset_save_CFLAGS"
4781 fi
4782
4783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4784         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4785                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4786         fi
4787         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4789 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4790 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4791   $as_echo_n "(cached) " >&6
4792 else
4793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h.  */
4795 int i;
4796 _ACEOF
4797 if ac_fn_c_try_compile "$LINENO"; then :
4798   xorg_cv_cc_flag_unused_command_line_argument=yes
4799 else
4800   xorg_cv_cc_flag_unused_command_line_argument=no
4801 fi
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4805 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4806         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4807         CFLAGS="$xorg_testset_save_CFLAGS"
4808 fi
4809
4810 found="no"
4811
4812         if test $found = "no" ; then
4813                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4814                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4815                 fi
4816
4817                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4818                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4819                 fi
4820
4821                 CFLAGS="$CFLAGS -Wpointer-arith"
4822
4823                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4824 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4825                 cacheid=xorg_cv_cc_flag__Wpointer_arith
4826                 if eval \${$cacheid+:} false; then :
4827   $as_echo_n "(cached) " >&6
4828 else
4829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h.  */
4831 int i;
4832 int
4833 main ()
4834 {
4835
4836   ;
4837   return 0;
4838 }
4839 _ACEOF
4840 if ac_fn_c_try_link "$LINENO"; then :
4841   eval $cacheid=yes
4842 else
4843   eval $cacheid=no
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext \
4846     conftest$ac_exeext conftest.$ac_ext
4847 fi
4848
4849
4850                 CFLAGS="$xorg_testset_save_CFLAGS"
4851
4852                 eval supported=\$$cacheid
4853                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4854 $as_echo "$supported" >&6; }
4855                 if test "$supported" = "yes" ; then
4856                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4857                         found="yes"
4858                 fi
4859         fi
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875 xorg_testset_save_CFLAGS="$CFLAGS"
4876
4877 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4878         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4879         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4880 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4881 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h.  */
4886 int i;
4887 _ACEOF
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889   xorg_cv_cc_flag_unknown_warning_option=yes
4890 else
4891   xorg_cv_cc_flag_unknown_warning_option=no
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4896 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4897         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4898         CFLAGS="$xorg_testset_save_CFLAGS"
4899 fi
4900
4901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4902         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4903                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4904         fi
4905         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4906         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4907 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4908 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4909   $as_echo_n "(cached) " >&6
4910 else
4911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h.  */
4913 int i;
4914 _ACEOF
4915 if ac_fn_c_try_compile "$LINENO"; then :
4916   xorg_cv_cc_flag_unused_command_line_argument=yes
4917 else
4918   xorg_cv_cc_flag_unused_command_line_argument=no
4919 fi
4920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921 fi
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4923 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4924         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4925         CFLAGS="$xorg_testset_save_CFLAGS"
4926 fi
4927
4928 found="no"
4929
4930         if test $found = "no" ; then
4931                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4932                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4933                 fi
4934
4935                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4936                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4937                 fi
4938
4939                 CFLAGS="$CFLAGS -Wmissing-declarations"
4940
4941                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4942 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4943                 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4944                 if eval \${$cacheid+:} false; then :
4945   $as_echo_n "(cached) " >&6
4946 else
4947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h.  */
4949 int i;
4950 int
4951 main ()
4952 {
4953
4954   ;
4955   return 0;
4956 }
4957 _ACEOF
4958 if ac_fn_c_try_link "$LINENO"; then :
4959   eval $cacheid=yes
4960 else
4961   eval $cacheid=no
4962 fi
4963 rm -f core conftest.err conftest.$ac_objext \
4964     conftest$ac_exeext conftest.$ac_ext
4965 fi
4966
4967
4968                 CFLAGS="$xorg_testset_save_CFLAGS"
4969
4970                 eval supported=\$$cacheid
4971                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4972 $as_echo "$supported" >&6; }
4973                 if test "$supported" = "yes" ; then
4974                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4975                         found="yes"
4976                 fi
4977         fi
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993 xorg_testset_save_CFLAGS="$CFLAGS"
4994
4995 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4996         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4997         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4998 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4999 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5000   $as_echo_n "(cached) " >&6
5001 else
5002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h.  */
5004 int i;
5005 _ACEOF
5006 if ac_fn_c_try_compile "$LINENO"; then :
5007   xorg_cv_cc_flag_unknown_warning_option=yes
5008 else
5009   xorg_cv_cc_flag_unknown_warning_option=no
5010 fi
5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 fi
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5014 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5015         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5016         CFLAGS="$xorg_testset_save_CFLAGS"
5017 fi
5018
5019 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5020         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5021                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5022         fi
5023         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5024         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5025 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5026 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5027   $as_echo_n "(cached) " >&6
5028 else
5029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h.  */
5031 int i;
5032 _ACEOF
5033 if ac_fn_c_try_compile "$LINENO"; then :
5034   xorg_cv_cc_flag_unused_command_line_argument=yes
5035 else
5036   xorg_cv_cc_flag_unused_command_line_argument=no
5037 fi
5038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5041 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5042         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5043         CFLAGS="$xorg_testset_save_CFLAGS"
5044 fi
5045
5046 found="no"
5047
5048         if test $found = "no" ; then
5049                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5050                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5051                 fi
5052
5053                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5054                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5055                 fi
5056
5057                 CFLAGS="$CFLAGS -Wformat=2"
5058
5059                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5060 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5061                 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5062                 if eval \${$cacheid+:} false; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h.  */
5067 int i;
5068 int
5069 main ()
5070 {
5071
5072   ;
5073   return 0;
5074 }
5075 _ACEOF
5076 if ac_fn_c_try_link "$LINENO"; then :
5077   eval $cacheid=yes
5078 else
5079   eval $cacheid=no
5080 fi
5081 rm -f core conftest.err conftest.$ac_objext \
5082     conftest$ac_exeext conftest.$ac_ext
5083 fi
5084
5085
5086                 CFLAGS="$xorg_testset_save_CFLAGS"
5087
5088                 eval supported=\$$cacheid
5089                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5090 $as_echo "$supported" >&6; }
5091                 if test "$supported" = "yes" ; then
5092                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5093                         found="yes"
5094                 fi
5095         fi
5096
5097         if test $found = "no" ; then
5098                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5099                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5100                 fi
5101
5102                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5103                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5104                 fi
5105
5106                 CFLAGS="$CFLAGS -Wformat"
5107
5108                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5109 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5110                 cacheid=xorg_cv_cc_flag__Wformat
5111                 if eval \${$cacheid+:} false; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h.  */
5116 int i;
5117 int
5118 main ()
5119 {
5120
5121   ;
5122   return 0;
5123 }
5124 _ACEOF
5125 if ac_fn_c_try_link "$LINENO"; then :
5126   eval $cacheid=yes
5127 else
5128   eval $cacheid=no
5129 fi
5130 rm -f core conftest.err conftest.$ac_objext \
5131     conftest$ac_exeext conftest.$ac_ext
5132 fi
5133
5134
5135                 CFLAGS="$xorg_testset_save_CFLAGS"
5136
5137                 eval supported=\$$cacheid
5138                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5139 $as_echo "$supported" >&6; }
5140                 if test "$supported" = "yes" ; then
5141                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5142                         found="yes"
5143                 fi
5144         fi
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162 xorg_testset_save_CFLAGS="$CFLAGS"
5163
5164 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5165         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5166         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5167 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5168 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5169   $as_echo_n "(cached) " >&6
5170 else
5171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h.  */
5173 int i;
5174 _ACEOF
5175 if ac_fn_c_try_compile "$LINENO"; then :
5176   xorg_cv_cc_flag_unknown_warning_option=yes
5177 else
5178   xorg_cv_cc_flag_unknown_warning_option=no
5179 fi
5180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181 fi
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5183 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5184         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5185         CFLAGS="$xorg_testset_save_CFLAGS"
5186 fi
5187
5188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5189         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5190                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5191         fi
5192         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5193         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5194 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5195 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5196   $as_echo_n "(cached) " >&6
5197 else
5198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h.  */
5200 int i;
5201 _ACEOF
5202 if ac_fn_c_try_compile "$LINENO"; then :
5203   xorg_cv_cc_flag_unused_command_line_argument=yes
5204 else
5205   xorg_cv_cc_flag_unused_command_line_argument=no
5206 fi
5207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208 fi
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5210 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5211         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5212         CFLAGS="$xorg_testset_save_CFLAGS"
5213 fi
5214
5215 found="no"
5216
5217         if test $found = "no" ; then
5218                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5219                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5220                 fi
5221
5222                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5223                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5224                 fi
5225
5226                 CFLAGS="$CFLAGS -Wstrict-prototypes"
5227
5228                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5229 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5230                 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5231                 if eval \${$cacheid+:} false; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h.  */
5236 int i;
5237 int
5238 main ()
5239 {
5240
5241   ;
5242   return 0;
5243 }
5244 _ACEOF
5245 if ac_fn_c_try_link "$LINENO"; then :
5246   eval $cacheid=yes
5247 else
5248   eval $cacheid=no
5249 fi
5250 rm -f core conftest.err conftest.$ac_objext \
5251     conftest$ac_exeext conftest.$ac_ext
5252 fi
5253
5254
5255                 CFLAGS="$xorg_testset_save_CFLAGS"
5256
5257                 eval supported=\$$cacheid
5258                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5259 $as_echo "$supported" >&6; }
5260                 if test "$supported" = "yes" ; then
5261                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5262                         found="yes"
5263                 fi
5264         fi
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280 xorg_testset_save_CFLAGS="$CFLAGS"
5281
5282 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5283         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5285 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5286 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5287   $as_echo_n "(cached) " >&6
5288 else
5289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h.  */
5291 int i;
5292 _ACEOF
5293 if ac_fn_c_try_compile "$LINENO"; then :
5294   xorg_cv_cc_flag_unknown_warning_option=yes
5295 else
5296   xorg_cv_cc_flag_unknown_warning_option=no
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 fi
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5301 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5302         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5303         CFLAGS="$xorg_testset_save_CFLAGS"
5304 fi
5305
5306 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5307         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5308                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5309         fi
5310         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5311         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5312 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5313 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5314   $as_echo_n "(cached) " >&6
5315 else
5316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h.  */
5318 int i;
5319 _ACEOF
5320 if ac_fn_c_try_compile "$LINENO"; then :
5321   xorg_cv_cc_flag_unused_command_line_argument=yes
5322 else
5323   xorg_cv_cc_flag_unused_command_line_argument=no
5324 fi
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 fi
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5328 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5329         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5330         CFLAGS="$xorg_testset_save_CFLAGS"
5331 fi
5332
5333 found="no"
5334
5335         if test $found = "no" ; then
5336                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5337                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5338                 fi
5339
5340                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5341                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5342                 fi
5343
5344                 CFLAGS="$CFLAGS -Wmissing-prototypes"
5345
5346                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5347 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5348                 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5349                 if eval \${$cacheid+:} false; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h.  */
5354 int i;
5355 int
5356 main ()
5357 {
5358
5359   ;
5360   return 0;
5361 }
5362 _ACEOF
5363 if ac_fn_c_try_link "$LINENO"; then :
5364   eval $cacheid=yes
5365 else
5366   eval $cacheid=no
5367 fi
5368 rm -f core conftest.err conftest.$ac_objext \
5369     conftest$ac_exeext conftest.$ac_ext
5370 fi
5371
5372
5373                 CFLAGS="$xorg_testset_save_CFLAGS"
5374
5375                 eval supported=\$$cacheid
5376                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5377 $as_echo "$supported" >&6; }
5378                 if test "$supported" = "yes" ; then
5379                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5380                         found="yes"
5381                 fi
5382         fi
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398 xorg_testset_save_CFLAGS="$CFLAGS"
5399
5400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5401         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5402         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5403 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5404 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5405   $as_echo_n "(cached) " >&6
5406 else
5407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h.  */
5409 int i;
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412   xorg_cv_cc_flag_unknown_warning_option=yes
5413 else
5414   xorg_cv_cc_flag_unknown_warning_option=no
5415 fi
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 fi
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5419 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5420         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5421         CFLAGS="$xorg_testset_save_CFLAGS"
5422 fi
5423
5424 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5425         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5426                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5427         fi
5428         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5429         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5430 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5431 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5432   $as_echo_n "(cached) " >&6
5433 else
5434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h.  */
5436 int i;
5437 _ACEOF
5438 if ac_fn_c_try_compile "$LINENO"; then :
5439   xorg_cv_cc_flag_unused_command_line_argument=yes
5440 else
5441   xorg_cv_cc_flag_unused_command_line_argument=no
5442 fi
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444 fi
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5446 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5447         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5448         CFLAGS="$xorg_testset_save_CFLAGS"
5449 fi
5450
5451 found="no"
5452
5453         if test $found = "no" ; then
5454                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5455                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5456                 fi
5457
5458                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5459                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5460                 fi
5461
5462                 CFLAGS="$CFLAGS -Wnested-externs"
5463
5464                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5465 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5466                 cacheid=xorg_cv_cc_flag__Wnested_externs
5467                 if eval \${$cacheid+:} false; then :
5468   $as_echo_n "(cached) " >&6
5469 else
5470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h.  */
5472 int i;
5473 int
5474 main ()
5475 {
5476
5477   ;
5478   return 0;
5479 }
5480 _ACEOF
5481 if ac_fn_c_try_link "$LINENO"; then :
5482   eval $cacheid=yes
5483 else
5484   eval $cacheid=no
5485 fi
5486 rm -f core conftest.err conftest.$ac_objext \
5487     conftest$ac_exeext conftest.$ac_ext
5488 fi
5489
5490
5491                 CFLAGS="$xorg_testset_save_CFLAGS"
5492
5493                 eval supported=\$$cacheid
5494                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5495 $as_echo "$supported" >&6; }
5496                 if test "$supported" = "yes" ; then
5497                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5498                         found="yes"
5499                 fi
5500         fi
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516 xorg_testset_save_CFLAGS="$CFLAGS"
5517
5518 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5519         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5520         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5521 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5522 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h.  */
5527 int i;
5528 _ACEOF
5529 if ac_fn_c_try_compile "$LINENO"; then :
5530   xorg_cv_cc_flag_unknown_warning_option=yes
5531 else
5532   xorg_cv_cc_flag_unknown_warning_option=no
5533 fi
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 fi
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5537 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5538         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5539         CFLAGS="$xorg_testset_save_CFLAGS"
5540 fi
5541
5542 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5543         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5544                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5545         fi
5546         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5547         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5548 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5549 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5550   $as_echo_n "(cached) " >&6
5551 else
5552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h.  */
5554 int i;
5555 _ACEOF
5556 if ac_fn_c_try_compile "$LINENO"; then :
5557   xorg_cv_cc_flag_unused_command_line_argument=yes
5558 else
5559   xorg_cv_cc_flag_unused_command_line_argument=no
5560 fi
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 fi
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5564 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5565         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5566         CFLAGS="$xorg_testset_save_CFLAGS"
5567 fi
5568
5569 found="no"
5570
5571         if test $found = "no" ; then
5572                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5573                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5574                 fi
5575
5576                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5577                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5578                 fi
5579
5580                 CFLAGS="$CFLAGS -Wbad-function-cast"
5581
5582                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5583 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5584                 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5585                 if eval \${$cacheid+:} false; then :
5586   $as_echo_n "(cached) " >&6
5587 else
5588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h.  */
5590 int i;
5591 int
5592 main ()
5593 {
5594
5595   ;
5596   return 0;
5597 }
5598 _ACEOF
5599 if ac_fn_c_try_link "$LINENO"; then :
5600   eval $cacheid=yes
5601 else
5602   eval $cacheid=no
5603 fi
5604 rm -f core conftest.err conftest.$ac_objext \
5605     conftest$ac_exeext conftest.$ac_ext
5606 fi
5607
5608
5609                 CFLAGS="$xorg_testset_save_CFLAGS"
5610
5611                 eval supported=\$$cacheid
5612                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5613 $as_echo "$supported" >&6; }
5614                 if test "$supported" = "yes" ; then
5615                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5616                         found="yes"
5617                 fi
5618         fi
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634 xorg_testset_save_CFLAGS="$CFLAGS"
5635
5636 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5637         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5638         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5639 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5640 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5641   $as_echo_n "(cached) " >&6
5642 else
5643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h.  */
5645 int i;
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648   xorg_cv_cc_flag_unknown_warning_option=yes
5649 else
5650   xorg_cv_cc_flag_unknown_warning_option=no
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5655 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5656         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5657         CFLAGS="$xorg_testset_save_CFLAGS"
5658 fi
5659
5660 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5661         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5662                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5663         fi
5664         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5665         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5666 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5667 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5668   $as_echo_n "(cached) " >&6
5669 else
5670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h.  */
5672 int i;
5673 _ACEOF
5674 if ac_fn_c_try_compile "$LINENO"; then :
5675   xorg_cv_cc_flag_unused_command_line_argument=yes
5676 else
5677   xorg_cv_cc_flag_unused_command_line_argument=no
5678 fi
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 fi
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5682 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5683         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5684         CFLAGS="$xorg_testset_save_CFLAGS"
5685 fi
5686
5687 found="no"
5688
5689         if test $found = "no" ; then
5690                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5691                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5692                 fi
5693
5694                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5695                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5696                 fi
5697
5698                 CFLAGS="$CFLAGS -Wold-style-definition"
5699
5700                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5701 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5702                 cacheid=xorg_cv_cc_flag__Wold_style_definition
5703                 if eval \${$cacheid+:} false; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h.  */
5708 int i;
5709 int
5710 main ()
5711 {
5712
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 if ac_fn_c_try_link "$LINENO"; then :
5718   eval $cacheid=yes
5719 else
5720   eval $cacheid=no
5721 fi
5722 rm -f core conftest.err conftest.$ac_objext \
5723     conftest$ac_exeext conftest.$ac_ext
5724 fi
5725
5726
5727                 CFLAGS="$xorg_testset_save_CFLAGS"
5728
5729                 eval supported=\$$cacheid
5730                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5731 $as_echo "$supported" >&6; }
5732                 if test "$supported" = "yes" ; then
5733                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5734                         found="yes"
5735                 fi
5736         fi
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752 xorg_testset_save_CFLAGS="$CFLAGS"
5753
5754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5755         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5756         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5757 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5758 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h.  */
5763 int i;
5764 _ACEOF
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766   xorg_cv_cc_flag_unknown_warning_option=yes
5767 else
5768   xorg_cv_cc_flag_unknown_warning_option=no
5769 fi
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5773 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5774         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5775         CFLAGS="$xorg_testset_save_CFLAGS"
5776 fi
5777
5778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5779         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5780                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5781         fi
5782         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5783         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5784 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5785 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5786   $as_echo_n "(cached) " >&6
5787 else
5788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h.  */
5790 int i;
5791 _ACEOF
5792 if ac_fn_c_try_compile "$LINENO"; then :
5793   xorg_cv_cc_flag_unused_command_line_argument=yes
5794 else
5795   xorg_cv_cc_flag_unused_command_line_argument=no
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 fi
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5800 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5801         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5802         CFLAGS="$xorg_testset_save_CFLAGS"
5803 fi
5804
5805 found="no"
5806
5807         if test $found = "no" ; then
5808                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5809                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810                 fi
5811
5812                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5813                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5814                 fi
5815
5816                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5817
5818                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5819 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5820                 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5821                 if eval \${$cacheid+:} false; then :
5822   $as_echo_n "(cached) " >&6
5823 else
5824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h.  */
5826 int i;
5827 int
5828 main ()
5829 {
5830
5831   ;
5832   return 0;
5833 }
5834 _ACEOF
5835 if ac_fn_c_try_link "$LINENO"; then :
5836   eval $cacheid=yes
5837 else
5838   eval $cacheid=no
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext \
5841     conftest$ac_exeext conftest.$ac_ext
5842 fi
5843
5844
5845                 CFLAGS="$xorg_testset_save_CFLAGS"
5846
5847                 eval supported=\$$cacheid
5848                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5849 $as_echo "$supported" >&6; }
5850                 if test "$supported" = "yes" ; then
5851                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5852                         found="yes"
5853                 fi
5854         fi
5855
5856
5857
5858
5859
5860 # This chunk adds additional warnings that could catch undesired effects.
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874 xorg_testset_save_CFLAGS="$CFLAGS"
5875
5876 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5877         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5878         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5879 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5880 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5881   $as_echo_n "(cached) " >&6
5882 else
5883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h.  */
5885 int i;
5886 _ACEOF
5887 if ac_fn_c_try_compile "$LINENO"; then :
5888   xorg_cv_cc_flag_unknown_warning_option=yes
5889 else
5890   xorg_cv_cc_flag_unknown_warning_option=no
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 fi
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5895 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5896         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5897         CFLAGS="$xorg_testset_save_CFLAGS"
5898 fi
5899
5900 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5901         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5902                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5903         fi
5904         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5905         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5906 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5907 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h.  */
5912 int i;
5913 _ACEOF
5914 if ac_fn_c_try_compile "$LINENO"; then :
5915   xorg_cv_cc_flag_unused_command_line_argument=yes
5916 else
5917   xorg_cv_cc_flag_unused_command_line_argument=no
5918 fi
5919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 fi
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5922 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5923         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5924         CFLAGS="$xorg_testset_save_CFLAGS"
5925 fi
5926
5927 found="no"
5928
5929         if test $found = "no" ; then
5930                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5931                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5932                 fi
5933
5934                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5935                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5936                 fi
5937
5938                 CFLAGS="$CFLAGS -Wunused"
5939
5940                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5941 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5942                 cacheid=xorg_cv_cc_flag__Wunused
5943                 if eval \${$cacheid+:} false; then :
5944   $as_echo_n "(cached) " >&6
5945 else
5946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h.  */
5948 int i;
5949 int
5950 main ()
5951 {
5952
5953   ;
5954   return 0;
5955 }
5956 _ACEOF
5957 if ac_fn_c_try_link "$LINENO"; then :
5958   eval $cacheid=yes
5959 else
5960   eval $cacheid=no
5961 fi
5962 rm -f core conftest.err conftest.$ac_objext \
5963     conftest$ac_exeext conftest.$ac_ext
5964 fi
5965
5966
5967                 CFLAGS="$xorg_testset_save_CFLAGS"
5968
5969                 eval supported=\$$cacheid
5970                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5971 $as_echo "$supported" >&6; }
5972                 if test "$supported" = "yes" ; then
5973                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5974                         found="yes"
5975                 fi
5976         fi
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992 xorg_testset_save_CFLAGS="$CFLAGS"
5993
5994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5995         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5996         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5997 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5998 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5999   $as_echo_n "(cached) " >&6
6000 else
6001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h.  */
6003 int i;
6004 _ACEOF
6005 if ac_fn_c_try_compile "$LINENO"; then :
6006   xorg_cv_cc_flag_unknown_warning_option=yes
6007 else
6008   xorg_cv_cc_flag_unknown_warning_option=no
6009 fi
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011 fi
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6013 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6014         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6015         CFLAGS="$xorg_testset_save_CFLAGS"
6016 fi
6017
6018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6019         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6020                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6021         fi
6022         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6024 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6025 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6026   $as_echo_n "(cached) " >&6
6027 else
6028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h.  */
6030 int i;
6031 _ACEOF
6032 if ac_fn_c_try_compile "$LINENO"; then :
6033   xorg_cv_cc_flag_unused_command_line_argument=yes
6034 else
6035   xorg_cv_cc_flag_unused_command_line_argument=no
6036 fi
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 fi
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6040 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6041         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6042         CFLAGS="$xorg_testset_save_CFLAGS"
6043 fi
6044
6045 found="no"
6046
6047         if test $found = "no" ; then
6048                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6049                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050                 fi
6051
6052                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6053                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6054                 fi
6055
6056                 CFLAGS="$CFLAGS -Wuninitialized"
6057
6058                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6059 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6060                 cacheid=xorg_cv_cc_flag__Wuninitialized
6061                 if eval \${$cacheid+:} false; then :
6062   $as_echo_n "(cached) " >&6
6063 else
6064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h.  */
6066 int i;
6067 int
6068 main ()
6069 {
6070
6071   ;
6072   return 0;
6073 }
6074 _ACEOF
6075 if ac_fn_c_try_link "$LINENO"; then :
6076   eval $cacheid=yes
6077 else
6078   eval $cacheid=no
6079 fi
6080 rm -f core conftest.err conftest.$ac_objext \
6081     conftest$ac_exeext conftest.$ac_ext
6082 fi
6083
6084
6085                 CFLAGS="$xorg_testset_save_CFLAGS"
6086
6087                 eval supported=\$$cacheid
6088                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6089 $as_echo "$supported" >&6; }
6090                 if test "$supported" = "yes" ; then
6091                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6092                         found="yes"
6093                 fi
6094         fi
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110 xorg_testset_save_CFLAGS="$CFLAGS"
6111
6112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6113         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6115 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6116 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6117   $as_echo_n "(cached) " >&6
6118 else
6119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h.  */
6121 int i;
6122 _ACEOF
6123 if ac_fn_c_try_compile "$LINENO"; then :
6124   xorg_cv_cc_flag_unknown_warning_option=yes
6125 else
6126   xorg_cv_cc_flag_unknown_warning_option=no
6127 fi
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 fi
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6131 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6132         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6133         CFLAGS="$xorg_testset_save_CFLAGS"
6134 fi
6135
6136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6137         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6138                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6139         fi
6140         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6141         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6142 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6143 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6144   $as_echo_n "(cached) " >&6
6145 else
6146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h.  */
6148 int i;
6149 _ACEOF
6150 if ac_fn_c_try_compile "$LINENO"; then :
6151   xorg_cv_cc_flag_unused_command_line_argument=yes
6152 else
6153   xorg_cv_cc_flag_unused_command_line_argument=no
6154 fi
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6158 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6159         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6160         CFLAGS="$xorg_testset_save_CFLAGS"
6161 fi
6162
6163 found="no"
6164
6165         if test $found = "no" ; then
6166                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6167                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6168                 fi
6169
6170                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6171                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6172                 fi
6173
6174                 CFLAGS="$CFLAGS -Wshadow"
6175
6176                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6177 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6178                 cacheid=xorg_cv_cc_flag__Wshadow
6179                 if eval \${$cacheid+:} false; then :
6180   $as_echo_n "(cached) " >&6
6181 else
6182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h.  */
6184 int i;
6185 int
6186 main ()
6187 {
6188
6189   ;
6190   return 0;
6191 }
6192 _ACEOF
6193 if ac_fn_c_try_link "$LINENO"; then :
6194   eval $cacheid=yes
6195 else
6196   eval $cacheid=no
6197 fi
6198 rm -f core conftest.err conftest.$ac_objext \
6199     conftest$ac_exeext conftest.$ac_ext
6200 fi
6201
6202
6203                 CFLAGS="$xorg_testset_save_CFLAGS"
6204
6205                 eval supported=\$$cacheid
6206                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6207 $as_echo "$supported" >&6; }
6208                 if test "$supported" = "yes" ; then
6209                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6210                         found="yes"
6211                 fi
6212         fi
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228 xorg_testset_save_CFLAGS="$CFLAGS"
6229
6230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6231         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6232         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6233 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6234 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6235   $as_echo_n "(cached) " >&6
6236 else
6237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h.  */
6239 int i;
6240 _ACEOF
6241 if ac_fn_c_try_compile "$LINENO"; then :
6242   xorg_cv_cc_flag_unknown_warning_option=yes
6243 else
6244   xorg_cv_cc_flag_unknown_warning_option=no
6245 fi
6246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247 fi
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6249 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6250         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6251         CFLAGS="$xorg_testset_save_CFLAGS"
6252 fi
6253
6254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6255         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6256                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6257         fi
6258         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6259         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6260 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6261 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6262   $as_echo_n "(cached) " >&6
6263 else
6264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h.  */
6266 int i;
6267 _ACEOF
6268 if ac_fn_c_try_compile "$LINENO"; then :
6269   xorg_cv_cc_flag_unused_command_line_argument=yes
6270 else
6271   xorg_cv_cc_flag_unused_command_line_argument=no
6272 fi
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274 fi
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6276 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6277         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6278         CFLAGS="$xorg_testset_save_CFLAGS"
6279 fi
6280
6281 found="no"
6282
6283         if test $found = "no" ; then
6284                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6285                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6286                 fi
6287
6288                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6289                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6290                 fi
6291
6292                 CFLAGS="$CFLAGS -Wcast-qual"
6293
6294                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6295 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6296                 cacheid=xorg_cv_cc_flag__Wcast_qual
6297                 if eval \${$cacheid+:} false; then :
6298   $as_echo_n "(cached) " >&6
6299 else
6300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h.  */
6302 int i;
6303 int
6304 main ()
6305 {
6306
6307   ;
6308   return 0;
6309 }
6310 _ACEOF
6311 if ac_fn_c_try_link "$LINENO"; then :
6312   eval $cacheid=yes
6313 else
6314   eval $cacheid=no
6315 fi
6316 rm -f core conftest.err conftest.$ac_objext \
6317     conftest$ac_exeext conftest.$ac_ext
6318 fi
6319
6320
6321                 CFLAGS="$xorg_testset_save_CFLAGS"
6322
6323                 eval supported=\$$cacheid
6324                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6325 $as_echo "$supported" >&6; }
6326                 if test "$supported" = "yes" ; then
6327                         BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6328                         found="yes"
6329                 fi
6330         fi
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346 xorg_testset_save_CFLAGS="$CFLAGS"
6347
6348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6349         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6351 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6352 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6353   $as_echo_n "(cached) " >&6
6354 else
6355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h.  */
6357 int i;
6358 _ACEOF
6359 if ac_fn_c_try_compile "$LINENO"; then :
6360   xorg_cv_cc_flag_unknown_warning_option=yes
6361 else
6362   xorg_cv_cc_flag_unknown_warning_option=no
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 fi
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6367 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6368         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6369         CFLAGS="$xorg_testset_save_CFLAGS"
6370 fi
6371
6372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6373         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6374                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6375         fi
6376         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6377         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6378 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6379 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6380   $as_echo_n "(cached) " >&6
6381 else
6382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h.  */
6384 int i;
6385 _ACEOF
6386 if ac_fn_c_try_compile "$LINENO"; then :
6387   xorg_cv_cc_flag_unused_command_line_argument=yes
6388 else
6389   xorg_cv_cc_flag_unused_command_line_argument=no
6390 fi
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 fi
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6394 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6395         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6396         CFLAGS="$xorg_testset_save_CFLAGS"
6397 fi
6398
6399 found="no"
6400
6401         if test $found = "no" ; then
6402                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6403                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404                 fi
6405
6406                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6407                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408                 fi
6409
6410                 CFLAGS="$CFLAGS -Wmissing-noreturn"
6411
6412                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6413 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6414                 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6415                 if eval \${$cacheid+:} false; then :
6416   $as_echo_n "(cached) " >&6
6417 else
6418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h.  */
6420 int i;
6421 int
6422 main ()
6423 {
6424
6425   ;
6426   return 0;
6427 }
6428 _ACEOF
6429 if ac_fn_c_try_link "$LINENO"; then :
6430   eval $cacheid=yes
6431 else
6432   eval $cacheid=no
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext \
6435     conftest$ac_exeext conftest.$ac_ext
6436 fi
6437
6438
6439                 CFLAGS="$xorg_testset_save_CFLAGS"
6440
6441                 eval supported=\$$cacheid
6442                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6443 $as_echo "$supported" >&6; }
6444                 if test "$supported" = "yes" ; then
6445                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6446                         found="yes"
6447                 fi
6448         fi
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464 xorg_testset_save_CFLAGS="$CFLAGS"
6465
6466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6467         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6468         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6469 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6470 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6471   $as_echo_n "(cached) " >&6
6472 else
6473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h.  */
6475 int i;
6476 _ACEOF
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478   xorg_cv_cc_flag_unknown_warning_option=yes
6479 else
6480   xorg_cv_cc_flag_unknown_warning_option=no
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 fi
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6485 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6486         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6487         CFLAGS="$xorg_testset_save_CFLAGS"
6488 fi
6489
6490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6491         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6492                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6493         fi
6494         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6495         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6496 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6497 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6498   $as_echo_n "(cached) " >&6
6499 else
6500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h.  */
6502 int i;
6503 _ACEOF
6504 if ac_fn_c_try_compile "$LINENO"; then :
6505   xorg_cv_cc_flag_unused_command_line_argument=yes
6506 else
6507   xorg_cv_cc_flag_unused_command_line_argument=no
6508 fi
6509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510 fi
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6512 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6513         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6514         CFLAGS="$xorg_testset_save_CFLAGS"
6515 fi
6516
6517 found="no"
6518
6519         if test $found = "no" ; then
6520                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6521                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522                 fi
6523
6524                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6525                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6526                 fi
6527
6528                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6529
6530                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6531 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6532                 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6533                 if eval \${$cacheid+:} false; then :
6534   $as_echo_n "(cached) " >&6
6535 else
6536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h.  */
6538 int i;
6539 int
6540 main ()
6541 {
6542
6543   ;
6544   return 0;
6545 }
6546 _ACEOF
6547 if ac_fn_c_try_link "$LINENO"; then :
6548   eval $cacheid=yes
6549 else
6550   eval $cacheid=no
6551 fi
6552 rm -f core conftest.err conftest.$ac_objext \
6553     conftest$ac_exeext conftest.$ac_ext
6554 fi
6555
6556
6557                 CFLAGS="$xorg_testset_save_CFLAGS"
6558
6559                 eval supported=\$$cacheid
6560                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6561 $as_echo "$supported" >&6; }
6562                 if test "$supported" = "yes" ; then
6563                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6564                         found="yes"
6565                 fi
6566         fi
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582 xorg_testset_save_CFLAGS="$CFLAGS"
6583
6584 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6585         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6587 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6588 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6589   $as_echo_n "(cached) " >&6
6590 else
6591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h.  */
6593 int i;
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596   xorg_cv_cc_flag_unknown_warning_option=yes
6597 else
6598   xorg_cv_cc_flag_unknown_warning_option=no
6599 fi
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 fi
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6603 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6604         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6605         CFLAGS="$xorg_testset_save_CFLAGS"
6606 fi
6607
6608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6609         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6610                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6611         fi
6612         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6614 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6615 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6616   $as_echo_n "(cached) " >&6
6617 else
6618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h.  */
6620 int i;
6621 _ACEOF
6622 if ac_fn_c_try_compile "$LINENO"; then :
6623   xorg_cv_cc_flag_unused_command_line_argument=yes
6624 else
6625   xorg_cv_cc_flag_unused_command_line_argument=no
6626 fi
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 fi
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6630 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6631         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6632         CFLAGS="$xorg_testset_save_CFLAGS"
6633 fi
6634
6635 found="no"
6636
6637         if test $found = "no" ; then
6638                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6639                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6640                 fi
6641
6642                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6643                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6644                 fi
6645
6646                 CFLAGS="$CFLAGS -Wredundant-decls"
6647
6648                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6649 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6650                 cacheid=xorg_cv_cc_flag__Wredundant_decls
6651                 if eval \${$cacheid+:} false; then :
6652   $as_echo_n "(cached) " >&6
6653 else
6654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h.  */
6656 int i;
6657 int
6658 main ()
6659 {
6660
6661   ;
6662   return 0;
6663 }
6664 _ACEOF
6665 if ac_fn_c_try_link "$LINENO"; then :
6666   eval $cacheid=yes
6667 else
6668   eval $cacheid=no
6669 fi
6670 rm -f core conftest.err conftest.$ac_objext \
6671     conftest$ac_exeext conftest.$ac_ext
6672 fi
6673
6674
6675                 CFLAGS="$xorg_testset_save_CFLAGS"
6676
6677                 eval supported=\$$cacheid
6678                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6679 $as_echo "$supported" >&6; }
6680                 if test "$supported" = "yes" ; then
6681                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6682                         found="yes"
6683                 fi
6684         fi
6685
6686
6687
6688 # These are currently disabled because they are noisy.  They will be enabled
6689 # in the future once the codebase is sufficiently modernized to silence
6690 # them.  For now, I don't want them to drown out the other warnings.
6691 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6692 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6693 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6694
6695 # Turn some warnings into errors, so we don't accidently get successful builds
6696 # when there are problems that should be fixed.
6697
6698 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712 xorg_testset_save_CFLAGS="$CFLAGS"
6713
6714 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6715         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6716         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6717 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6718 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6719   $as_echo_n "(cached) " >&6
6720 else
6721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h.  */
6723 int i;
6724 _ACEOF
6725 if ac_fn_c_try_compile "$LINENO"; then :
6726   xorg_cv_cc_flag_unknown_warning_option=yes
6727 else
6728   xorg_cv_cc_flag_unknown_warning_option=no
6729 fi
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 fi
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6733 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6734         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6735         CFLAGS="$xorg_testset_save_CFLAGS"
6736 fi
6737
6738 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6739         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6740                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741         fi
6742         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6743         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6744 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6745 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6746   $as_echo_n "(cached) " >&6
6747 else
6748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h.  */
6750 int i;
6751 _ACEOF
6752 if ac_fn_c_try_compile "$LINENO"; then :
6753   xorg_cv_cc_flag_unused_command_line_argument=yes
6754 else
6755   xorg_cv_cc_flag_unused_command_line_argument=no
6756 fi
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 fi
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6760 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6761         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6762         CFLAGS="$xorg_testset_save_CFLAGS"
6763 fi
6764
6765 found="no"
6766
6767         if test $found = "no" ; then
6768                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6769                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770                 fi
6771
6772                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6773                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6774                 fi
6775
6776                 CFLAGS="$CFLAGS -Werror=implicit"
6777
6778                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6779 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6780                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6781                 if eval \${$cacheid+:} false; then :
6782   $as_echo_n "(cached) " >&6
6783 else
6784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h.  */
6786 int i;
6787 int
6788 main ()
6789 {
6790
6791   ;
6792   return 0;
6793 }
6794 _ACEOF
6795 if ac_fn_c_try_link "$LINENO"; then :
6796   eval $cacheid=yes
6797 else
6798   eval $cacheid=no
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext \
6801     conftest$ac_exeext conftest.$ac_ext
6802 fi
6803
6804
6805                 CFLAGS="$xorg_testset_save_CFLAGS"
6806
6807                 eval supported=\$$cacheid
6808                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6809 $as_echo "$supported" >&6; }
6810                 if test "$supported" = "yes" ; then
6811                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6812                         found="yes"
6813                 fi
6814         fi
6815
6816         if test $found = "no" ; then
6817                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6818                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6819                 fi
6820
6821                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6822                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6823                 fi
6824
6825                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6826
6827                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6828 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6829                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6830                 if eval \${$cacheid+:} false; then :
6831   $as_echo_n "(cached) " >&6
6832 else
6833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h.  */
6835 int i;
6836 int
6837 main ()
6838 {
6839
6840   ;
6841   return 0;
6842 }
6843 _ACEOF
6844 if ac_fn_c_try_link "$LINENO"; then :
6845   eval $cacheid=yes
6846 else
6847   eval $cacheid=no
6848 fi
6849 rm -f core conftest.err conftest.$ac_objext \
6850     conftest$ac_exeext conftest.$ac_ext
6851 fi
6852
6853
6854                 CFLAGS="$xorg_testset_save_CFLAGS"
6855
6856                 eval supported=\$$cacheid
6857                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6858 $as_echo "$supported" >&6; }
6859                 if test "$supported" = "yes" ; then
6860                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6861                         found="yes"
6862                 fi
6863         fi
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879 xorg_testset_save_CFLAGS="$CFLAGS"
6880
6881 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6882         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6883         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6884 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6885 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6886   $as_echo_n "(cached) " >&6
6887 else
6888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h.  */
6890 int i;
6891 _ACEOF
6892 if ac_fn_c_try_compile "$LINENO"; then :
6893   xorg_cv_cc_flag_unknown_warning_option=yes
6894 else
6895   xorg_cv_cc_flag_unknown_warning_option=no
6896 fi
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6898 fi
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6900 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6901         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6902         CFLAGS="$xorg_testset_save_CFLAGS"
6903 fi
6904
6905 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6906         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6907                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6908         fi
6909         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6910         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6911 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6912 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6913   $as_echo_n "(cached) " >&6
6914 else
6915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h.  */
6917 int i;
6918 _ACEOF
6919 if ac_fn_c_try_compile "$LINENO"; then :
6920   xorg_cv_cc_flag_unused_command_line_argument=yes
6921 else
6922   xorg_cv_cc_flag_unused_command_line_argument=no
6923 fi
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 fi
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6927 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6928         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6929         CFLAGS="$xorg_testset_save_CFLAGS"
6930 fi
6931
6932 found="no"
6933
6934         if test $found = "no" ; then
6935                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6936                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6937                 fi
6938
6939                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6940                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6941                 fi
6942
6943                 CFLAGS="$CFLAGS -Werror=nonnull"
6944
6945                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6946 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6947                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6948                 if eval \${$cacheid+:} false; then :
6949   $as_echo_n "(cached) " >&6
6950 else
6951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h.  */
6953 int i;
6954 int
6955 main ()
6956 {
6957
6958   ;
6959   return 0;
6960 }
6961 _ACEOF
6962 if ac_fn_c_try_link "$LINENO"; then :
6963   eval $cacheid=yes
6964 else
6965   eval $cacheid=no
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext \
6968     conftest$ac_exeext conftest.$ac_ext
6969 fi
6970
6971
6972                 CFLAGS="$xorg_testset_save_CFLAGS"
6973
6974                 eval supported=\$$cacheid
6975                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6976 $as_echo "$supported" >&6; }
6977                 if test "$supported" = "yes" ; then
6978                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6979                         found="yes"
6980                 fi
6981         fi
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997 xorg_testset_save_CFLAGS="$CFLAGS"
6998
6999 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7000         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7001         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7002 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7003 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7004   $as_echo_n "(cached) " >&6
7005 else
7006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h.  */
7008 int i;
7009 _ACEOF
7010 if ac_fn_c_try_compile "$LINENO"; then :
7011   xorg_cv_cc_flag_unknown_warning_option=yes
7012 else
7013   xorg_cv_cc_flag_unknown_warning_option=no
7014 fi
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016 fi
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7018 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7019         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7020         CFLAGS="$xorg_testset_save_CFLAGS"
7021 fi
7022
7023 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7024         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7025                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7026         fi
7027         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7029 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7030 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7031   $as_echo_n "(cached) " >&6
7032 else
7033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h.  */
7035 int i;
7036 _ACEOF
7037 if ac_fn_c_try_compile "$LINENO"; then :
7038   xorg_cv_cc_flag_unused_command_line_argument=yes
7039 else
7040   xorg_cv_cc_flag_unused_command_line_argument=no
7041 fi
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043 fi
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7045 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7046         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7047         CFLAGS="$xorg_testset_save_CFLAGS"
7048 fi
7049
7050 found="no"
7051
7052         if test $found = "no" ; then
7053                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7054                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7055                 fi
7056
7057                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7058                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7059                 fi
7060
7061                 CFLAGS="$CFLAGS -Werror=init-self"
7062
7063                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7064 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7065                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7066                 if eval \${$cacheid+:} false; then :
7067   $as_echo_n "(cached) " >&6
7068 else
7069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h.  */
7071 int i;
7072 int
7073 main ()
7074 {
7075
7076   ;
7077   return 0;
7078 }
7079 _ACEOF
7080 if ac_fn_c_try_link "$LINENO"; then :
7081   eval $cacheid=yes
7082 else
7083   eval $cacheid=no
7084 fi
7085 rm -f core conftest.err conftest.$ac_objext \
7086     conftest$ac_exeext conftest.$ac_ext
7087 fi
7088
7089
7090                 CFLAGS="$xorg_testset_save_CFLAGS"
7091
7092                 eval supported=\$$cacheid
7093                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7094 $as_echo "$supported" >&6; }
7095                 if test "$supported" = "yes" ; then
7096                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7097                         found="yes"
7098                 fi
7099         fi
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115 xorg_testset_save_CFLAGS="$CFLAGS"
7116
7117 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7118         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7119         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7120 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7121 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7122   $as_echo_n "(cached) " >&6
7123 else
7124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h.  */
7126 int i;
7127 _ACEOF
7128 if ac_fn_c_try_compile "$LINENO"; then :
7129   xorg_cv_cc_flag_unknown_warning_option=yes
7130 else
7131   xorg_cv_cc_flag_unknown_warning_option=no
7132 fi
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 fi
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7136 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7137         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7138         CFLAGS="$xorg_testset_save_CFLAGS"
7139 fi
7140
7141 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7142         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7143                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7144         fi
7145         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7146         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7147 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7148 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7149   $as_echo_n "(cached) " >&6
7150 else
7151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h.  */
7153 int i;
7154 _ACEOF
7155 if ac_fn_c_try_compile "$LINENO"; then :
7156   xorg_cv_cc_flag_unused_command_line_argument=yes
7157 else
7158   xorg_cv_cc_flag_unused_command_line_argument=no
7159 fi
7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161 fi
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7163 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7164         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7165         CFLAGS="$xorg_testset_save_CFLAGS"
7166 fi
7167
7168 found="no"
7169
7170         if test $found = "no" ; then
7171                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7172                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7173                 fi
7174
7175                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7176                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7177                 fi
7178
7179                 CFLAGS="$CFLAGS -Werror=main"
7180
7181                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7182 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7183                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7184                 if eval \${$cacheid+:} false; then :
7185   $as_echo_n "(cached) " >&6
7186 else
7187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h.  */
7189 int i;
7190 int
7191 main ()
7192 {
7193
7194   ;
7195   return 0;
7196 }
7197 _ACEOF
7198 if ac_fn_c_try_link "$LINENO"; then :
7199   eval $cacheid=yes
7200 else
7201   eval $cacheid=no
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext \
7204     conftest$ac_exeext conftest.$ac_ext
7205 fi
7206
7207
7208                 CFLAGS="$xorg_testset_save_CFLAGS"
7209
7210                 eval supported=\$$cacheid
7211                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7212 $as_echo "$supported" >&6; }
7213                 if test "$supported" = "yes" ; then
7214                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7215                         found="yes"
7216                 fi
7217         fi
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233 xorg_testset_save_CFLAGS="$CFLAGS"
7234
7235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7236         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7237         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7238 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7239 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7240   $as_echo_n "(cached) " >&6
7241 else
7242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h.  */
7244 int i;
7245 _ACEOF
7246 if ac_fn_c_try_compile "$LINENO"; then :
7247   xorg_cv_cc_flag_unknown_warning_option=yes
7248 else
7249   xorg_cv_cc_flag_unknown_warning_option=no
7250 fi
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 fi
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7254 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7255         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7256         CFLAGS="$xorg_testset_save_CFLAGS"
7257 fi
7258
7259 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7260         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7261                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7262         fi
7263         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7264         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7265 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7266 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7267   $as_echo_n "(cached) " >&6
7268 else
7269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h.  */
7271 int i;
7272 _ACEOF
7273 if ac_fn_c_try_compile "$LINENO"; then :
7274   xorg_cv_cc_flag_unused_command_line_argument=yes
7275 else
7276   xorg_cv_cc_flag_unused_command_line_argument=no
7277 fi
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 fi
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7281 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7282         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7283         CFLAGS="$xorg_testset_save_CFLAGS"
7284 fi
7285
7286 found="no"
7287
7288         if test $found = "no" ; then
7289                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7290                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7291                 fi
7292
7293                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7294                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7295                 fi
7296
7297                 CFLAGS="$CFLAGS -Werror=missing-braces"
7298
7299                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7300 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7301                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7302                 if eval \${$cacheid+:} false; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h.  */
7307 int i;
7308 int
7309 main ()
7310 {
7311
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 if ac_fn_c_try_link "$LINENO"; then :
7317   eval $cacheid=yes
7318 else
7319   eval $cacheid=no
7320 fi
7321 rm -f core conftest.err conftest.$ac_objext \
7322     conftest$ac_exeext conftest.$ac_ext
7323 fi
7324
7325
7326                 CFLAGS="$xorg_testset_save_CFLAGS"
7327
7328                 eval supported=\$$cacheid
7329                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7330 $as_echo "$supported" >&6; }
7331                 if test "$supported" = "yes" ; then
7332                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7333                         found="yes"
7334                 fi
7335         fi
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351 xorg_testset_save_CFLAGS="$CFLAGS"
7352
7353 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7354         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7355         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7356 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7357 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7358   $as_echo_n "(cached) " >&6
7359 else
7360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h.  */
7362 int i;
7363 _ACEOF
7364 if ac_fn_c_try_compile "$LINENO"; then :
7365   xorg_cv_cc_flag_unknown_warning_option=yes
7366 else
7367   xorg_cv_cc_flag_unknown_warning_option=no
7368 fi
7369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370 fi
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7372 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7373         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7374         CFLAGS="$xorg_testset_save_CFLAGS"
7375 fi
7376
7377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7378         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7379                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7380         fi
7381         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7382         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7383 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7384 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7385   $as_echo_n "(cached) " >&6
7386 else
7387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h.  */
7389 int i;
7390 _ACEOF
7391 if ac_fn_c_try_compile "$LINENO"; then :
7392   xorg_cv_cc_flag_unused_command_line_argument=yes
7393 else
7394   xorg_cv_cc_flag_unused_command_line_argument=no
7395 fi
7396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7397 fi
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7399 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7400         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7401         CFLAGS="$xorg_testset_save_CFLAGS"
7402 fi
7403
7404 found="no"
7405
7406         if test $found = "no" ; then
7407                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7408                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7409                 fi
7410
7411                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7412                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7413                 fi
7414
7415                 CFLAGS="$CFLAGS -Werror=sequence-point"
7416
7417                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7418 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7419                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7420                 if eval \${$cacheid+:} false; then :
7421   $as_echo_n "(cached) " >&6
7422 else
7423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h.  */
7425 int i;
7426 int
7427 main ()
7428 {
7429
7430   ;
7431   return 0;
7432 }
7433 _ACEOF
7434 if ac_fn_c_try_link "$LINENO"; then :
7435   eval $cacheid=yes
7436 else
7437   eval $cacheid=no
7438 fi
7439 rm -f core conftest.err conftest.$ac_objext \
7440     conftest$ac_exeext conftest.$ac_ext
7441 fi
7442
7443
7444                 CFLAGS="$xorg_testset_save_CFLAGS"
7445
7446                 eval supported=\$$cacheid
7447                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7448 $as_echo "$supported" >&6; }
7449                 if test "$supported" = "yes" ; then
7450                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7451                         found="yes"
7452                 fi
7453         fi
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469 xorg_testset_save_CFLAGS="$CFLAGS"
7470
7471 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7472         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7473         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7474 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7475 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7476   $as_echo_n "(cached) " >&6
7477 else
7478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h.  */
7480 int i;
7481 _ACEOF
7482 if ac_fn_c_try_compile "$LINENO"; then :
7483   xorg_cv_cc_flag_unknown_warning_option=yes
7484 else
7485   xorg_cv_cc_flag_unknown_warning_option=no
7486 fi
7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488 fi
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7490 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7491         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7492         CFLAGS="$xorg_testset_save_CFLAGS"
7493 fi
7494
7495 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7496         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7497                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7498         fi
7499         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7500         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7501 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7502 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h.  */
7507 int i;
7508 _ACEOF
7509 if ac_fn_c_try_compile "$LINENO"; then :
7510   xorg_cv_cc_flag_unused_command_line_argument=yes
7511 else
7512   xorg_cv_cc_flag_unused_command_line_argument=no
7513 fi
7514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 fi
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7517 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7518         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7519         CFLAGS="$xorg_testset_save_CFLAGS"
7520 fi
7521
7522 found="no"
7523
7524         if test $found = "no" ; then
7525                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7526                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7527                 fi
7528
7529                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7530                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7531                 fi
7532
7533                 CFLAGS="$CFLAGS -Werror=return-type"
7534
7535                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7536 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7537                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7538                 if eval \${$cacheid+:} false; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h.  */
7543 int i;
7544 int
7545 main ()
7546 {
7547
7548   ;
7549   return 0;
7550 }
7551 _ACEOF
7552 if ac_fn_c_try_link "$LINENO"; then :
7553   eval $cacheid=yes
7554 else
7555   eval $cacheid=no
7556 fi
7557 rm -f core conftest.err conftest.$ac_objext \
7558     conftest$ac_exeext conftest.$ac_ext
7559 fi
7560
7561
7562                 CFLAGS="$xorg_testset_save_CFLAGS"
7563
7564                 eval supported=\$$cacheid
7565                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7566 $as_echo "$supported" >&6; }
7567                 if test "$supported" = "yes" ; then
7568                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7569                         found="yes"
7570                 fi
7571         fi
7572
7573         if test $found = "no" ; then
7574                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7575                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7576                 fi
7577
7578                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7579                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7580                 fi
7581
7582                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7583
7584                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7585 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7586                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7587                 if eval \${$cacheid+:} false; then :
7588   $as_echo_n "(cached) " >&6
7589 else
7590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h.  */
7592 int i;
7593 int
7594 main ()
7595 {
7596
7597   ;
7598   return 0;
7599 }
7600 _ACEOF
7601 if ac_fn_c_try_link "$LINENO"; then :
7602   eval $cacheid=yes
7603 else
7604   eval $cacheid=no
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext \
7607     conftest$ac_exeext conftest.$ac_ext
7608 fi
7609
7610
7611                 CFLAGS="$xorg_testset_save_CFLAGS"
7612
7613                 eval supported=\$$cacheid
7614                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7615 $as_echo "$supported" >&6; }
7616                 if test "$supported" = "yes" ; then
7617                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7618                         found="yes"
7619                 fi
7620         fi
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636 xorg_testset_save_CFLAGS="$CFLAGS"
7637
7638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7639         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7641 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7642 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7643   $as_echo_n "(cached) " >&6
7644 else
7645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h.  */
7647 int i;
7648 _ACEOF
7649 if ac_fn_c_try_compile "$LINENO"; then :
7650   xorg_cv_cc_flag_unknown_warning_option=yes
7651 else
7652   xorg_cv_cc_flag_unknown_warning_option=no
7653 fi
7654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 fi
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7657 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7658         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7659         CFLAGS="$xorg_testset_save_CFLAGS"
7660 fi
7661
7662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7663         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7664                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7665         fi
7666         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7667         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7668 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7669 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7670   $as_echo_n "(cached) " >&6
7671 else
7672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h.  */
7674 int i;
7675 _ACEOF
7676 if ac_fn_c_try_compile "$LINENO"; then :
7677   xorg_cv_cc_flag_unused_command_line_argument=yes
7678 else
7679   xorg_cv_cc_flag_unused_command_line_argument=no
7680 fi
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 fi
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7684 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7685         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7686         CFLAGS="$xorg_testset_save_CFLAGS"
7687 fi
7688
7689 found="no"
7690
7691         if test $found = "no" ; then
7692                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7693                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7694                 fi
7695
7696                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7697                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7698                 fi
7699
7700                 CFLAGS="$CFLAGS -Werror=trigraphs"
7701
7702                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7703 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7704                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7705                 if eval \${$cacheid+:} false; then :
7706   $as_echo_n "(cached) " >&6
7707 else
7708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h.  */
7710 int i;
7711 int
7712 main ()
7713 {
7714
7715   ;
7716   return 0;
7717 }
7718 _ACEOF
7719 if ac_fn_c_try_link "$LINENO"; then :
7720   eval $cacheid=yes
7721 else
7722   eval $cacheid=no
7723 fi
7724 rm -f core conftest.err conftest.$ac_objext \
7725     conftest$ac_exeext conftest.$ac_ext
7726 fi
7727
7728
7729                 CFLAGS="$xorg_testset_save_CFLAGS"
7730
7731                 eval supported=\$$cacheid
7732                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7733 $as_echo "$supported" >&6; }
7734                 if test "$supported" = "yes" ; then
7735                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7736                         found="yes"
7737                 fi
7738         fi
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754 xorg_testset_save_CFLAGS="$CFLAGS"
7755
7756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7757         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7759 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7760 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7761   $as_echo_n "(cached) " >&6
7762 else
7763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h.  */
7765 int i;
7766 _ACEOF
7767 if ac_fn_c_try_compile "$LINENO"; then :
7768   xorg_cv_cc_flag_unknown_warning_option=yes
7769 else
7770   xorg_cv_cc_flag_unknown_warning_option=no
7771 fi
7772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7773 fi
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7775 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7776         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7777         CFLAGS="$xorg_testset_save_CFLAGS"
7778 fi
7779
7780 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7781         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7782                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7783         fi
7784         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7785         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7786 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7787 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7788   $as_echo_n "(cached) " >&6
7789 else
7790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h.  */
7792 int i;
7793 _ACEOF
7794 if ac_fn_c_try_compile "$LINENO"; then :
7795   xorg_cv_cc_flag_unused_command_line_argument=yes
7796 else
7797   xorg_cv_cc_flag_unused_command_line_argument=no
7798 fi
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 fi
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7802 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7803         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7804         CFLAGS="$xorg_testset_save_CFLAGS"
7805 fi
7806
7807 found="no"
7808
7809         if test $found = "no" ; then
7810                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7811                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7812                 fi
7813
7814                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7815                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7816                 fi
7817
7818                 CFLAGS="$CFLAGS -Werror=array-bounds"
7819
7820                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7821 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7822                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7823                 if eval \${$cacheid+:} false; then :
7824   $as_echo_n "(cached) " >&6
7825 else
7826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h.  */
7828 int i;
7829 int
7830 main ()
7831 {
7832
7833   ;
7834   return 0;
7835 }
7836 _ACEOF
7837 if ac_fn_c_try_link "$LINENO"; then :
7838   eval $cacheid=yes
7839 else
7840   eval $cacheid=no
7841 fi
7842 rm -f core conftest.err conftest.$ac_objext \
7843     conftest$ac_exeext conftest.$ac_ext
7844 fi
7845
7846
7847                 CFLAGS="$xorg_testset_save_CFLAGS"
7848
7849                 eval supported=\$$cacheid
7850                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7851 $as_echo "$supported" >&6; }
7852                 if test "$supported" = "yes" ; then
7853                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7854                         found="yes"
7855                 fi
7856         fi
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872 xorg_testset_save_CFLAGS="$CFLAGS"
7873
7874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7875         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7876         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7877 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7878 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7879   $as_echo_n "(cached) " >&6
7880 else
7881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h.  */
7883 int i;
7884 _ACEOF
7885 if ac_fn_c_try_compile "$LINENO"; then :
7886   xorg_cv_cc_flag_unknown_warning_option=yes
7887 else
7888   xorg_cv_cc_flag_unknown_warning_option=no
7889 fi
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891 fi
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7893 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7894         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7895         CFLAGS="$xorg_testset_save_CFLAGS"
7896 fi
7897
7898 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7899         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7900                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7901         fi
7902         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7903         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7904 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7905 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7906   $as_echo_n "(cached) " >&6
7907 else
7908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h.  */
7910 int i;
7911 _ACEOF
7912 if ac_fn_c_try_compile "$LINENO"; then :
7913   xorg_cv_cc_flag_unused_command_line_argument=yes
7914 else
7915   xorg_cv_cc_flag_unused_command_line_argument=no
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 fi
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7920 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7921         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7922         CFLAGS="$xorg_testset_save_CFLAGS"
7923 fi
7924
7925 found="no"
7926
7927         if test $found = "no" ; then
7928                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7929                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930                 fi
7931
7932                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7933                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7934                 fi
7935
7936                 CFLAGS="$CFLAGS -Werror=write-strings"
7937
7938                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7939 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7940                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7941                 if eval \${$cacheid+:} false; then :
7942   $as_echo_n "(cached) " >&6
7943 else
7944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h.  */
7946 int i;
7947 int
7948 main ()
7949 {
7950
7951   ;
7952   return 0;
7953 }
7954 _ACEOF
7955 if ac_fn_c_try_link "$LINENO"; then :
7956   eval $cacheid=yes
7957 else
7958   eval $cacheid=no
7959 fi
7960 rm -f core conftest.err conftest.$ac_objext \
7961     conftest$ac_exeext conftest.$ac_ext
7962 fi
7963
7964
7965                 CFLAGS="$xorg_testset_save_CFLAGS"
7966
7967                 eval supported=\$$cacheid
7968                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7969 $as_echo "$supported" >&6; }
7970                 if test "$supported" = "yes" ; then
7971                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7972                         found="yes"
7973                 fi
7974         fi
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990 xorg_testset_save_CFLAGS="$CFLAGS"
7991
7992 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7993         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7994         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7995 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7996 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7997   $as_echo_n "(cached) " >&6
7998 else
7999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h.  */
8001 int i;
8002 _ACEOF
8003 if ac_fn_c_try_compile "$LINENO"; then :
8004   xorg_cv_cc_flag_unknown_warning_option=yes
8005 else
8006   xorg_cv_cc_flag_unknown_warning_option=no
8007 fi
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 fi
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8011 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8012         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8013         CFLAGS="$xorg_testset_save_CFLAGS"
8014 fi
8015
8016 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8017         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8018                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8019         fi
8020         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8021         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8022 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8023 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h.  */
8028 int i;
8029 _ACEOF
8030 if ac_fn_c_try_compile "$LINENO"; then :
8031   xorg_cv_cc_flag_unused_command_line_argument=yes
8032 else
8033   xorg_cv_cc_flag_unused_command_line_argument=no
8034 fi
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 fi
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8038 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8039         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8040         CFLAGS="$xorg_testset_save_CFLAGS"
8041 fi
8042
8043 found="no"
8044
8045         if test $found = "no" ; then
8046                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8047                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048                 fi
8049
8050                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8051                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8052                 fi
8053
8054                 CFLAGS="$CFLAGS -Werror=address"
8055
8056                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8057 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8058                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8059                 if eval \${$cacheid+:} false; then :
8060   $as_echo_n "(cached) " >&6
8061 else
8062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h.  */
8064 int i;
8065 int
8066 main ()
8067 {
8068
8069   ;
8070   return 0;
8071 }
8072 _ACEOF
8073 if ac_fn_c_try_link "$LINENO"; then :
8074   eval $cacheid=yes
8075 else
8076   eval $cacheid=no
8077 fi
8078 rm -f core conftest.err conftest.$ac_objext \
8079     conftest$ac_exeext conftest.$ac_ext
8080 fi
8081
8082
8083                 CFLAGS="$xorg_testset_save_CFLAGS"
8084
8085                 eval supported=\$$cacheid
8086                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8087 $as_echo "$supported" >&6; }
8088                 if test "$supported" = "yes" ; then
8089                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8090                         found="yes"
8091                 fi
8092         fi
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108 xorg_testset_save_CFLAGS="$CFLAGS"
8109
8110 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8111         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8112         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8113 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8114 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8115   $as_echo_n "(cached) " >&6
8116 else
8117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h.  */
8119 int i;
8120 _ACEOF
8121 if ac_fn_c_try_compile "$LINENO"; then :
8122   xorg_cv_cc_flag_unknown_warning_option=yes
8123 else
8124   xorg_cv_cc_flag_unknown_warning_option=no
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127 fi
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8129 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8130         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8131         CFLAGS="$xorg_testset_save_CFLAGS"
8132 fi
8133
8134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8135         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8136                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8137         fi
8138         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8139         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8140 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8141 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8142   $as_echo_n "(cached) " >&6
8143 else
8144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h.  */
8146 int i;
8147 _ACEOF
8148 if ac_fn_c_try_compile "$LINENO"; then :
8149   xorg_cv_cc_flag_unused_command_line_argument=yes
8150 else
8151   xorg_cv_cc_flag_unused_command_line_argument=no
8152 fi
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 fi
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8156 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8157         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8158         CFLAGS="$xorg_testset_save_CFLAGS"
8159 fi
8160
8161 found="no"
8162
8163         if test $found = "no" ; then
8164                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8165                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8166                 fi
8167
8168                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8169                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8170                 fi
8171
8172                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8173
8174                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8175 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8176                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8177                 if eval \${$cacheid+:} false; then :
8178   $as_echo_n "(cached) " >&6
8179 else
8180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h.  */
8182 int i;
8183 int
8184 main ()
8185 {
8186
8187   ;
8188   return 0;
8189 }
8190 _ACEOF
8191 if ac_fn_c_try_link "$LINENO"; then :
8192   eval $cacheid=yes
8193 else
8194   eval $cacheid=no
8195 fi
8196 rm -f core conftest.err conftest.$ac_objext \
8197     conftest$ac_exeext conftest.$ac_ext
8198 fi
8199
8200
8201                 CFLAGS="$xorg_testset_save_CFLAGS"
8202
8203                 eval supported=\$$cacheid
8204                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8205 $as_echo "$supported" >&6; }
8206                 if test "$supported" = "yes" ; then
8207                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8208                         found="yes"
8209                 fi
8210         fi
8211
8212         if test $found = "no" ; then
8213                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8214                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8215                 fi
8216
8217                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8218                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8219                 fi
8220
8221                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8222
8223                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8224 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8225                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8226                 if eval \${$cacheid+:} false; then :
8227   $as_echo_n "(cached) " >&6
8228 else
8229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h.  */
8231 int i;
8232 int
8233 main ()
8234 {
8235
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 if ac_fn_c_try_link "$LINENO"; then :
8241   eval $cacheid=yes
8242 else
8243   eval $cacheid=no
8244 fi
8245 rm -f core conftest.err conftest.$ac_objext \
8246     conftest$ac_exeext conftest.$ac_ext
8247 fi
8248
8249
8250                 CFLAGS="$xorg_testset_save_CFLAGS"
8251
8252                 eval supported=\$$cacheid
8253                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8254 $as_echo "$supported" >&6; }
8255                 if test "$supported" = "yes" ; then
8256                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8257                         found="yes"
8258                 fi
8259         fi
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275 xorg_testset_save_CFLAGS="$CFLAGS"
8276
8277 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8278         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8280 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8281 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8282   $as_echo_n "(cached) " >&6
8283 else
8284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h.  */
8286 int i;
8287 _ACEOF
8288 if ac_fn_c_try_compile "$LINENO"; then :
8289   xorg_cv_cc_flag_unknown_warning_option=yes
8290 else
8291   xorg_cv_cc_flag_unknown_warning_option=no
8292 fi
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 fi
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8296 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8297         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8298         CFLAGS="$xorg_testset_save_CFLAGS"
8299 fi
8300
8301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8302         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8303                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304         fi
8305         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8306         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8307 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8308 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8309   $as_echo_n "(cached) " >&6
8310 else
8311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h.  */
8313 int i;
8314 _ACEOF
8315 if ac_fn_c_try_compile "$LINENO"; then :
8316   xorg_cv_cc_flag_unused_command_line_argument=yes
8317 else
8318   xorg_cv_cc_flag_unused_command_line_argument=no
8319 fi
8320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 fi
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8323 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8324         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8325         CFLAGS="$xorg_testset_save_CFLAGS"
8326 fi
8327
8328 found="no"
8329
8330         if test $found = "no" ; then
8331                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8332                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8333                 fi
8334
8335                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8336                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8337                 fi
8338
8339                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8340
8341                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8342 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8343                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8344                 if eval \${$cacheid+:} false; then :
8345   $as_echo_n "(cached) " >&6
8346 else
8347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h.  */
8349 int i;
8350 int
8351 main ()
8352 {
8353
8354   ;
8355   return 0;
8356 }
8357 _ACEOF
8358 if ac_fn_c_try_link "$LINENO"; then :
8359   eval $cacheid=yes
8360 else
8361   eval $cacheid=no
8362 fi
8363 rm -f core conftest.err conftest.$ac_objext \
8364     conftest$ac_exeext conftest.$ac_ext
8365 fi
8366
8367
8368                 CFLAGS="$xorg_testset_save_CFLAGS"
8369
8370                 eval supported=\$$cacheid
8371                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8372 $as_echo "$supported" >&6; }
8373                 if test "$supported" = "yes" ; then
8374                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8375                         found="yes"
8376                 fi
8377         fi
8378
8379  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8380 else
8381 { $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
8382 $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;}
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396 xorg_testset_save_CFLAGS="$CFLAGS"
8397
8398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8399         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8400         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8401 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8402 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8403   $as_echo_n "(cached) " >&6
8404 else
8405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h.  */
8407 int i;
8408 _ACEOF
8409 if ac_fn_c_try_compile "$LINENO"; then :
8410   xorg_cv_cc_flag_unknown_warning_option=yes
8411 else
8412   xorg_cv_cc_flag_unknown_warning_option=no
8413 fi
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 fi
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8417 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8418         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8419         CFLAGS="$xorg_testset_save_CFLAGS"
8420 fi
8421
8422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8423         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8424                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8425         fi
8426         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8427         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8428 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8429 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h.  */
8434 int i;
8435 _ACEOF
8436 if ac_fn_c_try_compile "$LINENO"; then :
8437   xorg_cv_cc_flag_unused_command_line_argument=yes
8438 else
8439   xorg_cv_cc_flag_unused_command_line_argument=no
8440 fi
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442 fi
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8444 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8445         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8446         CFLAGS="$xorg_testset_save_CFLAGS"
8447 fi
8448
8449 found="no"
8450
8451         if test $found = "no" ; then
8452                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8453                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8454                 fi
8455
8456                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8457                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8458                 fi
8459
8460                 CFLAGS="$CFLAGS -Wimplicit"
8461
8462                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8463 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8464                 cacheid=xorg_cv_cc_flag__Wimplicit
8465                 if eval \${$cacheid+:} false; then :
8466   $as_echo_n "(cached) " >&6
8467 else
8468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h.  */
8470 int i;
8471 int
8472 main ()
8473 {
8474
8475   ;
8476   return 0;
8477 }
8478 _ACEOF
8479 if ac_fn_c_try_link "$LINENO"; then :
8480   eval $cacheid=yes
8481 else
8482   eval $cacheid=no
8483 fi
8484 rm -f core conftest.err conftest.$ac_objext \
8485     conftest$ac_exeext conftest.$ac_ext
8486 fi
8487
8488
8489                 CFLAGS="$xorg_testset_save_CFLAGS"
8490
8491                 eval supported=\$$cacheid
8492                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8493 $as_echo "$supported" >&6; }
8494                 if test "$supported" = "yes" ; then
8495                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8496                         found="yes"
8497                 fi
8498         fi
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514 xorg_testset_save_CFLAGS="$CFLAGS"
8515
8516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8517         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8518         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8519 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8520 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8521   $as_echo_n "(cached) " >&6
8522 else
8523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h.  */
8525 int i;
8526 _ACEOF
8527 if ac_fn_c_try_compile "$LINENO"; then :
8528   xorg_cv_cc_flag_unknown_warning_option=yes
8529 else
8530   xorg_cv_cc_flag_unknown_warning_option=no
8531 fi
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 fi
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8535 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8536         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8537         CFLAGS="$xorg_testset_save_CFLAGS"
8538 fi
8539
8540 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8541         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8542                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8543         fi
8544         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8545         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8546 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8547 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8548   $as_echo_n "(cached) " >&6
8549 else
8550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h.  */
8552 int i;
8553 _ACEOF
8554 if ac_fn_c_try_compile "$LINENO"; then :
8555   xorg_cv_cc_flag_unused_command_line_argument=yes
8556 else
8557   xorg_cv_cc_flag_unused_command_line_argument=no
8558 fi
8559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560 fi
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8562 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8563         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8564         CFLAGS="$xorg_testset_save_CFLAGS"
8565 fi
8566
8567 found="no"
8568
8569         if test $found = "no" ; then
8570                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8571                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8572                 fi
8573
8574                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8575                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8576                 fi
8577
8578                 CFLAGS="$CFLAGS -Wnonnull"
8579
8580                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8581 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8582                 cacheid=xorg_cv_cc_flag__Wnonnull
8583                 if eval \${$cacheid+:} false; then :
8584   $as_echo_n "(cached) " >&6
8585 else
8586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587 /* end confdefs.h.  */
8588 int i;
8589 int
8590 main ()
8591 {
8592
8593   ;
8594   return 0;
8595 }
8596 _ACEOF
8597 if ac_fn_c_try_link "$LINENO"; then :
8598   eval $cacheid=yes
8599 else
8600   eval $cacheid=no
8601 fi
8602 rm -f core conftest.err conftest.$ac_objext \
8603     conftest$ac_exeext conftest.$ac_ext
8604 fi
8605
8606
8607                 CFLAGS="$xorg_testset_save_CFLAGS"
8608
8609                 eval supported=\$$cacheid
8610                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8611 $as_echo "$supported" >&6; }
8612                 if test "$supported" = "yes" ; then
8613                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8614                         found="yes"
8615                 fi
8616         fi
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632 xorg_testset_save_CFLAGS="$CFLAGS"
8633
8634 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8635         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8637 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8638 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8639   $as_echo_n "(cached) " >&6
8640 else
8641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h.  */
8643 int i;
8644 _ACEOF
8645 if ac_fn_c_try_compile "$LINENO"; then :
8646   xorg_cv_cc_flag_unknown_warning_option=yes
8647 else
8648   xorg_cv_cc_flag_unknown_warning_option=no
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 fi
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8653 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8654         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8655         CFLAGS="$xorg_testset_save_CFLAGS"
8656 fi
8657
8658 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8659         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8660                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8661         fi
8662         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8663         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8664 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8665 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8666   $as_echo_n "(cached) " >&6
8667 else
8668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h.  */
8670 int i;
8671 _ACEOF
8672 if ac_fn_c_try_compile "$LINENO"; then :
8673   xorg_cv_cc_flag_unused_command_line_argument=yes
8674 else
8675   xorg_cv_cc_flag_unused_command_line_argument=no
8676 fi
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 fi
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8680 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8681         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8682         CFLAGS="$xorg_testset_save_CFLAGS"
8683 fi
8684
8685 found="no"
8686
8687         if test $found = "no" ; then
8688                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8689                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8690                 fi
8691
8692                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8693                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8694                 fi
8695
8696                 CFLAGS="$CFLAGS -Winit-self"
8697
8698                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8699 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8700                 cacheid=xorg_cv_cc_flag__Winit_self
8701                 if eval \${$cacheid+:} false; then :
8702   $as_echo_n "(cached) " >&6
8703 else
8704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h.  */
8706 int i;
8707 int
8708 main ()
8709 {
8710
8711   ;
8712   return 0;
8713 }
8714 _ACEOF
8715 if ac_fn_c_try_link "$LINENO"; then :
8716   eval $cacheid=yes
8717 else
8718   eval $cacheid=no
8719 fi
8720 rm -f core conftest.err conftest.$ac_objext \
8721     conftest$ac_exeext conftest.$ac_ext
8722 fi
8723
8724
8725                 CFLAGS="$xorg_testset_save_CFLAGS"
8726
8727                 eval supported=\$$cacheid
8728                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8729 $as_echo "$supported" >&6; }
8730                 if test "$supported" = "yes" ; then
8731                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8732                         found="yes"
8733                 fi
8734         fi
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750 xorg_testset_save_CFLAGS="$CFLAGS"
8751
8752 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8753         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8754         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8755 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8756 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8757   $as_echo_n "(cached) " >&6
8758 else
8759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h.  */
8761 int i;
8762 _ACEOF
8763 if ac_fn_c_try_compile "$LINENO"; then :
8764   xorg_cv_cc_flag_unknown_warning_option=yes
8765 else
8766   xorg_cv_cc_flag_unknown_warning_option=no
8767 fi
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769 fi
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8771 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8772         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8773         CFLAGS="$xorg_testset_save_CFLAGS"
8774 fi
8775
8776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8777         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8778                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8779         fi
8780         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8781         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8782 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8783 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8784   $as_echo_n "(cached) " >&6
8785 else
8786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787 /* end confdefs.h.  */
8788 int i;
8789 _ACEOF
8790 if ac_fn_c_try_compile "$LINENO"; then :
8791   xorg_cv_cc_flag_unused_command_line_argument=yes
8792 else
8793   xorg_cv_cc_flag_unused_command_line_argument=no
8794 fi
8795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796 fi
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8798 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8799         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8800         CFLAGS="$xorg_testset_save_CFLAGS"
8801 fi
8802
8803 found="no"
8804
8805         if test $found = "no" ; then
8806                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8807                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8808                 fi
8809
8810                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8811                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8812                 fi
8813
8814                 CFLAGS="$CFLAGS -Wmain"
8815
8816                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8817 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8818                 cacheid=xorg_cv_cc_flag__Wmain
8819                 if eval \${$cacheid+:} false; then :
8820   $as_echo_n "(cached) " >&6
8821 else
8822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h.  */
8824 int i;
8825 int
8826 main ()
8827 {
8828
8829   ;
8830   return 0;
8831 }
8832 _ACEOF
8833 if ac_fn_c_try_link "$LINENO"; then :
8834   eval $cacheid=yes
8835 else
8836   eval $cacheid=no
8837 fi
8838 rm -f core conftest.err conftest.$ac_objext \
8839     conftest$ac_exeext conftest.$ac_ext
8840 fi
8841
8842
8843                 CFLAGS="$xorg_testset_save_CFLAGS"
8844
8845                 eval supported=\$$cacheid
8846                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8847 $as_echo "$supported" >&6; }
8848                 if test "$supported" = "yes" ; then
8849                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8850                         found="yes"
8851                 fi
8852         fi
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868 xorg_testset_save_CFLAGS="$CFLAGS"
8869
8870 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8871         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8873 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8874 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8875   $as_echo_n "(cached) " >&6
8876 else
8877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h.  */
8879 int i;
8880 _ACEOF
8881 if ac_fn_c_try_compile "$LINENO"; then :
8882   xorg_cv_cc_flag_unknown_warning_option=yes
8883 else
8884   xorg_cv_cc_flag_unknown_warning_option=no
8885 fi
8886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887 fi
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8889 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8890         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8891         CFLAGS="$xorg_testset_save_CFLAGS"
8892 fi
8893
8894 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8895         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8896                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8897         fi
8898         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8899         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8900 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8901 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8902   $as_echo_n "(cached) " >&6
8903 else
8904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h.  */
8906 int i;
8907 _ACEOF
8908 if ac_fn_c_try_compile "$LINENO"; then :
8909   xorg_cv_cc_flag_unused_command_line_argument=yes
8910 else
8911   xorg_cv_cc_flag_unused_command_line_argument=no
8912 fi
8913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914 fi
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8916 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8917         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8918         CFLAGS="$xorg_testset_save_CFLAGS"
8919 fi
8920
8921 found="no"
8922
8923         if test $found = "no" ; then
8924                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8925                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8926                 fi
8927
8928                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8929                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8930                 fi
8931
8932                 CFLAGS="$CFLAGS -Wmissing-braces"
8933
8934                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8935 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8936                 cacheid=xorg_cv_cc_flag__Wmissing_braces
8937                 if eval \${$cacheid+:} false; then :
8938   $as_echo_n "(cached) " >&6
8939 else
8940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h.  */
8942 int i;
8943 int
8944 main ()
8945 {
8946
8947   ;
8948   return 0;
8949 }
8950 _ACEOF
8951 if ac_fn_c_try_link "$LINENO"; then :
8952   eval $cacheid=yes
8953 else
8954   eval $cacheid=no
8955 fi
8956 rm -f core conftest.err conftest.$ac_objext \
8957     conftest$ac_exeext conftest.$ac_ext
8958 fi
8959
8960
8961                 CFLAGS="$xorg_testset_save_CFLAGS"
8962
8963                 eval supported=\$$cacheid
8964                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8965 $as_echo "$supported" >&6; }
8966                 if test "$supported" = "yes" ; then
8967                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8968                         found="yes"
8969                 fi
8970         fi
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986 xorg_testset_save_CFLAGS="$CFLAGS"
8987
8988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8989         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8991 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8992 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8993   $as_echo_n "(cached) " >&6
8994 else
8995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h.  */
8997 int i;
8998 _ACEOF
8999 if ac_fn_c_try_compile "$LINENO"; then :
9000   xorg_cv_cc_flag_unknown_warning_option=yes
9001 else
9002   xorg_cv_cc_flag_unknown_warning_option=no
9003 fi
9004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9005 fi
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9007 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9008         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9009         CFLAGS="$xorg_testset_save_CFLAGS"
9010 fi
9011
9012 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9013         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9014                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9015         fi
9016         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9018 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9019 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9020   $as_echo_n "(cached) " >&6
9021 else
9022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h.  */
9024 int i;
9025 _ACEOF
9026 if ac_fn_c_try_compile "$LINENO"; then :
9027   xorg_cv_cc_flag_unused_command_line_argument=yes
9028 else
9029   xorg_cv_cc_flag_unused_command_line_argument=no
9030 fi
9031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9032 fi
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9034 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9035         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9036         CFLAGS="$xorg_testset_save_CFLAGS"
9037 fi
9038
9039 found="no"
9040
9041         if test $found = "no" ; then
9042                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9043                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9044                 fi
9045
9046                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9047                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9048                 fi
9049
9050                 CFLAGS="$CFLAGS -Wsequence-point"
9051
9052                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9053 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9054                 cacheid=xorg_cv_cc_flag__Wsequence_point
9055                 if eval \${$cacheid+:} false; then :
9056   $as_echo_n "(cached) " >&6
9057 else
9058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h.  */
9060 int i;
9061 int
9062 main ()
9063 {
9064
9065   ;
9066   return 0;
9067 }
9068 _ACEOF
9069 if ac_fn_c_try_link "$LINENO"; then :
9070   eval $cacheid=yes
9071 else
9072   eval $cacheid=no
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext \
9075     conftest$ac_exeext conftest.$ac_ext
9076 fi
9077
9078
9079                 CFLAGS="$xorg_testset_save_CFLAGS"
9080
9081                 eval supported=\$$cacheid
9082                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9083 $as_echo "$supported" >&6; }
9084                 if test "$supported" = "yes" ; then
9085                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9086                         found="yes"
9087                 fi
9088         fi
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104 xorg_testset_save_CFLAGS="$CFLAGS"
9105
9106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9107         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9109 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9110 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9111   $as_echo_n "(cached) " >&6
9112 else
9113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h.  */
9115 int i;
9116 _ACEOF
9117 if ac_fn_c_try_compile "$LINENO"; then :
9118   xorg_cv_cc_flag_unknown_warning_option=yes
9119 else
9120   xorg_cv_cc_flag_unknown_warning_option=no
9121 fi
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9125 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9126         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9127         CFLAGS="$xorg_testset_save_CFLAGS"
9128 fi
9129
9130 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9131         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9132                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9133         fi
9134         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9135         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9136 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9137 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9138   $as_echo_n "(cached) " >&6
9139 else
9140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h.  */
9142 int i;
9143 _ACEOF
9144 if ac_fn_c_try_compile "$LINENO"; then :
9145   xorg_cv_cc_flag_unused_command_line_argument=yes
9146 else
9147   xorg_cv_cc_flag_unused_command_line_argument=no
9148 fi
9149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150 fi
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9152 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9153         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9154         CFLAGS="$xorg_testset_save_CFLAGS"
9155 fi
9156
9157 found="no"
9158
9159         if test $found = "no" ; then
9160                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9161                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9162                 fi
9163
9164                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9165                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9166                 fi
9167
9168                 CFLAGS="$CFLAGS -Wreturn-type"
9169
9170                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9171 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9172                 cacheid=xorg_cv_cc_flag__Wreturn_type
9173                 if eval \${$cacheid+:} false; then :
9174   $as_echo_n "(cached) " >&6
9175 else
9176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h.  */
9178 int i;
9179 int
9180 main ()
9181 {
9182
9183   ;
9184   return 0;
9185 }
9186 _ACEOF
9187 if ac_fn_c_try_link "$LINENO"; then :
9188   eval $cacheid=yes
9189 else
9190   eval $cacheid=no
9191 fi
9192 rm -f core conftest.err conftest.$ac_objext \
9193     conftest$ac_exeext conftest.$ac_ext
9194 fi
9195
9196
9197                 CFLAGS="$xorg_testset_save_CFLAGS"
9198
9199                 eval supported=\$$cacheid
9200                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9201 $as_echo "$supported" >&6; }
9202                 if test "$supported" = "yes" ; then
9203                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9204                         found="yes"
9205                 fi
9206         fi
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222 xorg_testset_save_CFLAGS="$CFLAGS"
9223
9224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9225         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9227 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9228 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9229   $as_echo_n "(cached) " >&6
9230 else
9231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h.  */
9233 int i;
9234 _ACEOF
9235 if ac_fn_c_try_compile "$LINENO"; then :
9236   xorg_cv_cc_flag_unknown_warning_option=yes
9237 else
9238   xorg_cv_cc_flag_unknown_warning_option=no
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241 fi
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9243 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9244         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9245         CFLAGS="$xorg_testset_save_CFLAGS"
9246 fi
9247
9248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9249         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9250                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9251         fi
9252         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9253         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9254 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9255 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9256   $as_echo_n "(cached) " >&6
9257 else
9258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h.  */
9260 int i;
9261 _ACEOF
9262 if ac_fn_c_try_compile "$LINENO"; then :
9263   xorg_cv_cc_flag_unused_command_line_argument=yes
9264 else
9265   xorg_cv_cc_flag_unused_command_line_argument=no
9266 fi
9267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9268 fi
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9270 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9271         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9272         CFLAGS="$xorg_testset_save_CFLAGS"
9273 fi
9274
9275 found="no"
9276
9277         if test $found = "no" ; then
9278                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9279                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9280                 fi
9281
9282                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9283                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9284                 fi
9285
9286                 CFLAGS="$CFLAGS -Wtrigraphs"
9287
9288                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9289 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9290                 cacheid=xorg_cv_cc_flag__Wtrigraphs
9291                 if eval \${$cacheid+:} false; then :
9292   $as_echo_n "(cached) " >&6
9293 else
9294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h.  */
9296 int i;
9297 int
9298 main ()
9299 {
9300
9301   ;
9302   return 0;
9303 }
9304 _ACEOF
9305 if ac_fn_c_try_link "$LINENO"; then :
9306   eval $cacheid=yes
9307 else
9308   eval $cacheid=no
9309 fi
9310 rm -f core conftest.err conftest.$ac_objext \
9311     conftest$ac_exeext conftest.$ac_ext
9312 fi
9313
9314
9315                 CFLAGS="$xorg_testset_save_CFLAGS"
9316
9317                 eval supported=\$$cacheid
9318                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9319 $as_echo "$supported" >&6; }
9320                 if test "$supported" = "yes" ; then
9321                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9322                         found="yes"
9323                 fi
9324         fi
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340 xorg_testset_save_CFLAGS="$CFLAGS"
9341
9342 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9343         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9344         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9345 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9346 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9347   $as_echo_n "(cached) " >&6
9348 else
9349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h.  */
9351 int i;
9352 _ACEOF
9353 if ac_fn_c_try_compile "$LINENO"; then :
9354   xorg_cv_cc_flag_unknown_warning_option=yes
9355 else
9356   xorg_cv_cc_flag_unknown_warning_option=no
9357 fi
9358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359 fi
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9361 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9362         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9363         CFLAGS="$xorg_testset_save_CFLAGS"
9364 fi
9365
9366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9367         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9368                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9369         fi
9370         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9371         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9372 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9373 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9374   $as_echo_n "(cached) " >&6
9375 else
9376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h.  */
9378 int i;
9379 _ACEOF
9380 if ac_fn_c_try_compile "$LINENO"; then :
9381   xorg_cv_cc_flag_unused_command_line_argument=yes
9382 else
9383   xorg_cv_cc_flag_unused_command_line_argument=no
9384 fi
9385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386 fi
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9388 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9389         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9390         CFLAGS="$xorg_testset_save_CFLAGS"
9391 fi
9392
9393 found="no"
9394
9395         if test $found = "no" ; then
9396                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9397                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9398                 fi
9399
9400                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9401                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9402                 fi
9403
9404                 CFLAGS="$CFLAGS -Warray-bounds"
9405
9406                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9407 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9408                 cacheid=xorg_cv_cc_flag__Warray_bounds
9409                 if eval \${$cacheid+:} false; then :
9410   $as_echo_n "(cached) " >&6
9411 else
9412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h.  */
9414 int i;
9415 int
9416 main ()
9417 {
9418
9419   ;
9420   return 0;
9421 }
9422 _ACEOF
9423 if ac_fn_c_try_link "$LINENO"; then :
9424   eval $cacheid=yes
9425 else
9426   eval $cacheid=no
9427 fi
9428 rm -f core conftest.err conftest.$ac_objext \
9429     conftest$ac_exeext conftest.$ac_ext
9430 fi
9431
9432
9433                 CFLAGS="$xorg_testset_save_CFLAGS"
9434
9435                 eval supported=\$$cacheid
9436                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9437 $as_echo "$supported" >&6; }
9438                 if test "$supported" = "yes" ; then
9439                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9440                         found="yes"
9441                 fi
9442         fi
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458 xorg_testset_save_CFLAGS="$CFLAGS"
9459
9460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9461         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9463 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9464 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9465   $as_echo_n "(cached) " >&6
9466 else
9467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h.  */
9469 int i;
9470 _ACEOF
9471 if ac_fn_c_try_compile "$LINENO"; then :
9472   xorg_cv_cc_flag_unknown_warning_option=yes
9473 else
9474   xorg_cv_cc_flag_unknown_warning_option=no
9475 fi
9476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9477 fi
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9479 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9480         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9481         CFLAGS="$xorg_testset_save_CFLAGS"
9482 fi
9483
9484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9485         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9486                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9487         fi
9488         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9489         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9490 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9491 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9492   $as_echo_n "(cached) " >&6
9493 else
9494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h.  */
9496 int i;
9497 _ACEOF
9498 if ac_fn_c_try_compile "$LINENO"; then :
9499   xorg_cv_cc_flag_unused_command_line_argument=yes
9500 else
9501   xorg_cv_cc_flag_unused_command_line_argument=no
9502 fi
9503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504 fi
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9506 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9507         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9508         CFLAGS="$xorg_testset_save_CFLAGS"
9509 fi
9510
9511 found="no"
9512
9513         if test $found = "no" ; then
9514                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9515                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516                 fi
9517
9518                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9519                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9520                 fi
9521
9522                 CFLAGS="$CFLAGS -Wwrite-strings"
9523
9524                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9525 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9526                 cacheid=xorg_cv_cc_flag__Wwrite_strings
9527                 if eval \${$cacheid+:} false; then :
9528   $as_echo_n "(cached) " >&6
9529 else
9530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h.  */
9532 int i;
9533 int
9534 main ()
9535 {
9536
9537   ;
9538   return 0;
9539 }
9540 _ACEOF
9541 if ac_fn_c_try_link "$LINENO"; then :
9542   eval $cacheid=yes
9543 else
9544   eval $cacheid=no
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext \
9547     conftest$ac_exeext conftest.$ac_ext
9548 fi
9549
9550
9551                 CFLAGS="$xorg_testset_save_CFLAGS"
9552
9553                 eval supported=\$$cacheid
9554                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9555 $as_echo "$supported" >&6; }
9556                 if test "$supported" = "yes" ; then
9557                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9558                         found="yes"
9559                 fi
9560         fi
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576 xorg_testset_save_CFLAGS="$CFLAGS"
9577
9578 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9579         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9581 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9582 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9583   $as_echo_n "(cached) " >&6
9584 else
9585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h.  */
9587 int i;
9588 _ACEOF
9589 if ac_fn_c_try_compile "$LINENO"; then :
9590   xorg_cv_cc_flag_unknown_warning_option=yes
9591 else
9592   xorg_cv_cc_flag_unknown_warning_option=no
9593 fi
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595 fi
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9597 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9598         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9599         CFLAGS="$xorg_testset_save_CFLAGS"
9600 fi
9601
9602 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9603         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9604                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9605         fi
9606         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9608 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9609 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9610   $as_echo_n "(cached) " >&6
9611 else
9612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h.  */
9614 int i;
9615 _ACEOF
9616 if ac_fn_c_try_compile "$LINENO"; then :
9617   xorg_cv_cc_flag_unused_command_line_argument=yes
9618 else
9619   xorg_cv_cc_flag_unused_command_line_argument=no
9620 fi
9621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9622 fi
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9624 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9625         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9626         CFLAGS="$xorg_testset_save_CFLAGS"
9627 fi
9628
9629 found="no"
9630
9631         if test $found = "no" ; then
9632                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9633                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9634                 fi
9635
9636                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9637                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9638                 fi
9639
9640                 CFLAGS="$CFLAGS -Waddress"
9641
9642                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9643 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9644                 cacheid=xorg_cv_cc_flag__Waddress
9645                 if eval \${$cacheid+:} false; then :
9646   $as_echo_n "(cached) " >&6
9647 else
9648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h.  */
9650 int i;
9651 int
9652 main ()
9653 {
9654
9655   ;
9656   return 0;
9657 }
9658 _ACEOF
9659 if ac_fn_c_try_link "$LINENO"; then :
9660   eval $cacheid=yes
9661 else
9662   eval $cacheid=no
9663 fi
9664 rm -f core conftest.err conftest.$ac_objext \
9665     conftest$ac_exeext conftest.$ac_ext
9666 fi
9667
9668
9669                 CFLAGS="$xorg_testset_save_CFLAGS"
9670
9671                 eval supported=\$$cacheid
9672                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9673 $as_echo "$supported" >&6; }
9674                 if test "$supported" = "yes" ; then
9675                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9676                         found="yes"
9677                 fi
9678         fi
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694 xorg_testset_save_CFLAGS="$CFLAGS"
9695
9696 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9697         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9698         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9699 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9700 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9701   $as_echo_n "(cached) " >&6
9702 else
9703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h.  */
9705 int i;
9706 _ACEOF
9707 if ac_fn_c_try_compile "$LINENO"; then :
9708   xorg_cv_cc_flag_unknown_warning_option=yes
9709 else
9710   xorg_cv_cc_flag_unknown_warning_option=no
9711 fi
9712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713 fi
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9715 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9716         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9717         CFLAGS="$xorg_testset_save_CFLAGS"
9718 fi
9719
9720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9721         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9722                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9723         fi
9724         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9725         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9726 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9727 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9728   $as_echo_n "(cached) " >&6
9729 else
9730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h.  */
9732 int i;
9733 _ACEOF
9734 if ac_fn_c_try_compile "$LINENO"; then :
9735   xorg_cv_cc_flag_unused_command_line_argument=yes
9736 else
9737   xorg_cv_cc_flag_unused_command_line_argument=no
9738 fi
9739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9740 fi
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9742 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9743         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9744         CFLAGS="$xorg_testset_save_CFLAGS"
9745 fi
9746
9747 found="no"
9748
9749         if test $found = "no" ; then
9750                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9751                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9752                 fi
9753
9754                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9755                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9756                 fi
9757
9758                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9759
9760                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9761 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9762                 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9763                 if eval \${$cacheid+:} false; then :
9764   $as_echo_n "(cached) " >&6
9765 else
9766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h.  */
9768 int i;
9769 int
9770 main ()
9771 {
9772
9773   ;
9774   return 0;
9775 }
9776 _ACEOF
9777 if ac_fn_c_try_link "$LINENO"; then :
9778   eval $cacheid=yes
9779 else
9780   eval $cacheid=no
9781 fi
9782 rm -f core conftest.err conftest.$ac_objext \
9783     conftest$ac_exeext conftest.$ac_ext
9784 fi
9785
9786
9787                 CFLAGS="$xorg_testset_save_CFLAGS"
9788
9789                 eval supported=\$$cacheid
9790                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9791 $as_echo "$supported" >&6; }
9792                 if test "$supported" = "yes" ; then
9793                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9794                         found="yes"
9795                 fi
9796         fi
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812 xorg_testset_save_CFLAGS="$CFLAGS"
9813
9814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9815         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9816         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9817 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9818 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9819   $as_echo_n "(cached) " >&6
9820 else
9821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h.  */
9823 int i;
9824 _ACEOF
9825 if ac_fn_c_try_compile "$LINENO"; then :
9826   xorg_cv_cc_flag_unknown_warning_option=yes
9827 else
9828   xorg_cv_cc_flag_unknown_warning_option=no
9829 fi
9830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831 fi
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9833 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9834         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9835         CFLAGS="$xorg_testset_save_CFLAGS"
9836 fi
9837
9838 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9839         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9840                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9841         fi
9842         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9843         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9844 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9845 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9846   $as_echo_n "(cached) " >&6
9847 else
9848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h.  */
9850 int i;
9851 _ACEOF
9852 if ac_fn_c_try_compile "$LINENO"; then :
9853   xorg_cv_cc_flag_unused_command_line_argument=yes
9854 else
9855   xorg_cv_cc_flag_unused_command_line_argument=no
9856 fi
9857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9858 fi
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9860 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9861         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9862         CFLAGS="$xorg_testset_save_CFLAGS"
9863 fi
9864
9865 found="no"
9866
9867         if test $found = "no" ; then
9868                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9869                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9870                 fi
9871
9872                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9873                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9874                 fi
9875
9876                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9877
9878                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9879 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9880                 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9881                 if eval \${$cacheid+:} false; then :
9882   $as_echo_n "(cached) " >&6
9883 else
9884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h.  */
9886 int i;
9887 int
9888 main ()
9889 {
9890
9891   ;
9892   return 0;
9893 }
9894 _ACEOF
9895 if ac_fn_c_try_link "$LINENO"; then :
9896   eval $cacheid=yes
9897 else
9898   eval $cacheid=no
9899 fi
9900 rm -f core conftest.err conftest.$ac_objext \
9901     conftest$ac_exeext conftest.$ac_ext
9902 fi
9903
9904
9905                 CFLAGS="$xorg_testset_save_CFLAGS"
9906
9907                 eval supported=\$$cacheid
9908                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9909 $as_echo "$supported" >&6; }
9910                 if test "$supported" = "yes" ; then
9911                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9912                         found="yes"
9913                 fi
9914         fi
9915
9916
9917 fi
9918
9919
9920
9921
9922
9923
9924
9925                 CWARNFLAGS="$BASE_CFLAGS"
9926                 if  test "x$GCC" = xyes ; then
9927                     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9928                 fi
9929
9930
9931
9932
9933
9934
9935
9936
9937 # Check whether --enable-strict-compilation was given.
9938 if test "${enable_strict_compilation+set}" = set; then :
9939   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9940 else
9941   STRICT_COMPILE=no
9942 fi
9943
9944
9945
9946
9947
9948
9949 STRICT_CFLAGS=""
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963 xorg_testset_save_CFLAGS="$CFLAGS"
9964
9965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9966         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9967         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9968 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9969 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9970   $as_echo_n "(cached) " >&6
9971 else
9972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h.  */
9974 int i;
9975 _ACEOF
9976 if ac_fn_c_try_compile "$LINENO"; then :
9977   xorg_cv_cc_flag_unknown_warning_option=yes
9978 else
9979   xorg_cv_cc_flag_unknown_warning_option=no
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982 fi
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9984 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9985         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9986         CFLAGS="$xorg_testset_save_CFLAGS"
9987 fi
9988
9989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9990         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9991                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9992         fi
9993         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9994         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9995 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9996 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9997   $as_echo_n "(cached) " >&6
9998 else
9999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h.  */
10001 int i;
10002 _ACEOF
10003 if ac_fn_c_try_compile "$LINENO"; then :
10004   xorg_cv_cc_flag_unused_command_line_argument=yes
10005 else
10006   xorg_cv_cc_flag_unused_command_line_argument=no
10007 fi
10008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10009 fi
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10011 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10012         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10013         CFLAGS="$xorg_testset_save_CFLAGS"
10014 fi
10015
10016 found="no"
10017
10018         if test $found = "no" ; then
10019                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10020                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021                 fi
10022
10023                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10024                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10025                 fi
10026
10027                 CFLAGS="$CFLAGS -pedantic"
10028
10029                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10030 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
10031                 cacheid=xorg_cv_cc_flag__pedantic
10032                 if eval \${$cacheid+:} false; then :
10033   $as_echo_n "(cached) " >&6
10034 else
10035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h.  */
10037 int i;
10038 int
10039 main ()
10040 {
10041
10042   ;
10043   return 0;
10044 }
10045 _ACEOF
10046 if ac_fn_c_try_link "$LINENO"; then :
10047   eval $cacheid=yes
10048 else
10049   eval $cacheid=no
10050 fi
10051 rm -f core conftest.err conftest.$ac_objext \
10052     conftest$ac_exeext conftest.$ac_ext
10053 fi
10054
10055
10056                 CFLAGS="$xorg_testset_save_CFLAGS"
10057
10058                 eval supported=\$$cacheid
10059                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10060 $as_echo "$supported" >&6; }
10061                 if test "$supported" = "yes" ; then
10062                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10063                         found="yes"
10064                 fi
10065         fi
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081 xorg_testset_save_CFLAGS="$CFLAGS"
10082
10083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10084         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10085         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10086 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10087 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10088   $as_echo_n "(cached) " >&6
10089 else
10090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h.  */
10092 int i;
10093 _ACEOF
10094 if ac_fn_c_try_compile "$LINENO"; then :
10095   xorg_cv_cc_flag_unknown_warning_option=yes
10096 else
10097   xorg_cv_cc_flag_unknown_warning_option=no
10098 fi
10099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10100 fi
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10102 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10103         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10104         CFLAGS="$xorg_testset_save_CFLAGS"
10105 fi
10106
10107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10108         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10109                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10110         fi
10111         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10112         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10113 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10114 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10115   $as_echo_n "(cached) " >&6
10116 else
10117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h.  */
10119 int i;
10120 _ACEOF
10121 if ac_fn_c_try_compile "$LINENO"; then :
10122   xorg_cv_cc_flag_unused_command_line_argument=yes
10123 else
10124   xorg_cv_cc_flag_unused_command_line_argument=no
10125 fi
10126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10127 fi
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10129 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10130         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10131         CFLAGS="$xorg_testset_save_CFLAGS"
10132 fi
10133
10134 found="no"
10135
10136         if test $found = "no" ; then
10137                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10138                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10139                 fi
10140
10141                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10142                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10143                 fi
10144
10145                 CFLAGS="$CFLAGS -Werror"
10146
10147                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10148 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10149                 cacheid=xorg_cv_cc_flag__Werror
10150                 if eval \${$cacheid+:} false; then :
10151   $as_echo_n "(cached) " >&6
10152 else
10153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h.  */
10155 int i;
10156 int
10157 main ()
10158 {
10159
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 if ac_fn_c_try_link "$LINENO"; then :
10165   eval $cacheid=yes
10166 else
10167   eval $cacheid=no
10168 fi
10169 rm -f core conftest.err conftest.$ac_objext \
10170     conftest$ac_exeext conftest.$ac_ext
10171 fi
10172
10173
10174                 CFLAGS="$xorg_testset_save_CFLAGS"
10175
10176                 eval supported=\$$cacheid
10177                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10178 $as_echo "$supported" >&6; }
10179                 if test "$supported" = "yes" ; then
10180                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10181                         found="yes"
10182                 fi
10183         fi
10184
10185         if test $found = "no" ; then
10186                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10187                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10188                 fi
10189
10190                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10191                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10192                 fi
10193
10194                 CFLAGS="$CFLAGS -errwarn"
10195
10196                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10197 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10198                 cacheid=xorg_cv_cc_flag__errwarn
10199                 if eval \${$cacheid+:} false; then :
10200   $as_echo_n "(cached) " >&6
10201 else
10202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h.  */
10204 int i;
10205 int
10206 main ()
10207 {
10208
10209   ;
10210   return 0;
10211 }
10212 _ACEOF
10213 if ac_fn_c_try_link "$LINENO"; then :
10214   eval $cacheid=yes
10215 else
10216   eval $cacheid=no
10217 fi
10218 rm -f core conftest.err conftest.$ac_objext \
10219     conftest$ac_exeext conftest.$ac_ext
10220 fi
10221
10222
10223                 CFLAGS="$xorg_testset_save_CFLAGS"
10224
10225                 eval supported=\$$cacheid
10226                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10227 $as_echo "$supported" >&6; }
10228                 if test "$supported" = "yes" ; then
10229                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10230                         found="yes"
10231                 fi
10232         fi
10233
10234
10235
10236 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10237 # activate it with -Werror, so we add it here explicitly.
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251 xorg_testset_save_CFLAGS="$CFLAGS"
10252
10253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10254         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10255         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10256 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10257 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10258   $as_echo_n "(cached) " >&6
10259 else
10260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h.  */
10262 int i;
10263 _ACEOF
10264 if ac_fn_c_try_compile "$LINENO"; then :
10265   xorg_cv_cc_flag_unknown_warning_option=yes
10266 else
10267   xorg_cv_cc_flag_unknown_warning_option=no
10268 fi
10269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10270 fi
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10272 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10273         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10274         CFLAGS="$xorg_testset_save_CFLAGS"
10275 fi
10276
10277 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10278         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10279                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10280         fi
10281         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10282         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10283 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10284 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10285   $as_echo_n "(cached) " >&6
10286 else
10287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288 /* end confdefs.h.  */
10289 int i;
10290 _ACEOF
10291 if ac_fn_c_try_compile "$LINENO"; then :
10292   xorg_cv_cc_flag_unused_command_line_argument=yes
10293 else
10294   xorg_cv_cc_flag_unused_command_line_argument=no
10295 fi
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 fi
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10299 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10300         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10301         CFLAGS="$xorg_testset_save_CFLAGS"
10302 fi
10303
10304 found="no"
10305
10306         if test $found = "no" ; then
10307                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10308                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10309                 fi
10310
10311                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10312                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10313                 fi
10314
10315                 CFLAGS="$CFLAGS -Werror=attributes"
10316
10317                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10318 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10319                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10320                 if eval \${$cacheid+:} false; then :
10321   $as_echo_n "(cached) " >&6
10322 else
10323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h.  */
10325 int i;
10326 int
10327 main ()
10328 {
10329
10330   ;
10331   return 0;
10332 }
10333 _ACEOF
10334 if ac_fn_c_try_link "$LINENO"; then :
10335   eval $cacheid=yes
10336 else
10337   eval $cacheid=no
10338 fi
10339 rm -f core conftest.err conftest.$ac_objext \
10340     conftest$ac_exeext conftest.$ac_ext
10341 fi
10342
10343
10344                 CFLAGS="$xorg_testset_save_CFLAGS"
10345
10346                 eval supported=\$$cacheid
10347                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10348 $as_echo "$supported" >&6; }
10349                 if test "$supported" = "yes" ; then
10350                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10351                         found="yes"
10352                 fi
10353         fi
10354
10355
10356
10357 if test "x$STRICT_COMPILE" = "xyes"; then
10358     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10359     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10360 fi
10361
10362
10363
10364
10365
10366
10367 cat >>confdefs.h <<_ACEOF
10368 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10369 _ACEOF
10370
10371         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10372         if test "x$PVM" = "x"; then
10373                 PVM="0"
10374         fi
10375
10376 cat >>confdefs.h <<_ACEOF
10377 #define PACKAGE_VERSION_MINOR $PVM
10378 _ACEOF
10379
10380         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10381         if test "x$PVP" = "x"; then
10382                 PVP="0"
10383         fi
10384
10385 cat >>confdefs.h <<_ACEOF
10386 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10387 _ACEOF
10388
10389
10390
10391 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10392 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10393 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10394 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10395
10396
10397
10398
10399 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10400 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10401 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10402 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10403 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10404
10405
10406
10407
10408
10409
10410 if test x$APP_MAN_SUFFIX = x    ; then
10411     APP_MAN_SUFFIX=1
10412 fi
10413 if test x$APP_MAN_DIR = x    ; then
10414     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10415 fi
10416
10417 if test x$LIB_MAN_SUFFIX = x    ; then
10418     LIB_MAN_SUFFIX=3
10419 fi
10420 if test x$LIB_MAN_DIR = x    ; then
10421     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10422 fi
10423
10424 if test x$FILE_MAN_SUFFIX = x    ; then
10425     case $host_os in
10426         solaris*)       FILE_MAN_SUFFIX=4  ;;
10427         *)              FILE_MAN_SUFFIX=5  ;;
10428     esac
10429 fi
10430 if test x$FILE_MAN_DIR = x    ; then
10431     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10432 fi
10433
10434 if test x$MISC_MAN_SUFFIX = x    ; then
10435     case $host_os in
10436         solaris*)       MISC_MAN_SUFFIX=5  ;;
10437         *)              MISC_MAN_SUFFIX=7  ;;
10438     esac
10439 fi
10440 if test x$MISC_MAN_DIR = x    ; then
10441     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10442 fi
10443
10444 if test x$DRIVER_MAN_SUFFIX = x    ; then
10445     case $host_os in
10446         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
10447         *)              DRIVER_MAN_SUFFIX=4  ;;
10448     esac
10449 fi
10450 if test x$DRIVER_MAN_DIR = x    ; then
10451     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10452 fi
10453
10454 if test x$ADMIN_MAN_SUFFIX = x    ; then
10455     case $host_os in
10456         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
10457         *)              ADMIN_MAN_SUFFIX=8  ;;
10458     esac
10459 fi
10460 if test x$ADMIN_MAN_DIR = x    ; then
10461     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10462 fi
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478 XORG_MAN_PAGE="X Version 11"
10479
10480 MAN_SUBSTS="\
10481         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10482         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10483         -e 's|__xservername__|Xorg|g' \
10484         -e 's|__xconfigfile__|xorg.conf|g' \
10485         -e 's|__projectroot__|\$(prefix)|g' \
10486         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10487         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10488         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10489         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10490         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10491         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10492         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10493
10494
10495
10496 # Check whether --enable-silent-rules was given.
10497 if test "${enable_silent_rules+set}" = set; then :
10498   enableval=$enable_silent_rules;
10499 fi
10500
10501 case $enable_silent_rules in
10502 yes) AM_DEFAULT_VERBOSITY=0;;
10503 no)  AM_DEFAULT_VERBOSITY=1;;
10504 *)   AM_DEFAULT_VERBOSITY=0;;
10505 esac
10506 am_make=${MAKE-make}
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10508 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10509 if ${am_cv_make_support_nested_variables+:} false; then :
10510   $as_echo_n "(cached) " >&6
10511 else
10512   if $as_echo 'TRUE=$(BAR$(V))
10513 BAR0=false
10514 BAR1=true
10515 V=1
10516 am__doit:
10517         @$(TRUE)
10518 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10519   am_cv_make_support_nested_variables=yes
10520 else
10521   am_cv_make_support_nested_variables=no
10522 fi
10523 fi
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10525 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10526 if test $am_cv_make_support_nested_variables = yes; then
10527     AM_V='$(V)'
10528   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10529 else
10530   AM_V=$AM_DEFAULT_VERBOSITY
10531   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10532 fi
10533 AM_BACKSLASH='\'
10534
10535
10536
10537 # Initialize libtool
10538 # Check whether --enable-static was given.
10539 if test "${enable_static+set}" = set; then :
10540   enableval=$enable_static; p=${PACKAGE-default}
10541     case $enableval in
10542     yes) enable_static=yes ;;
10543     no) enable_static=no ;;
10544     *)
10545      enable_static=no
10546       # Look at the argument we got.  We use all the common list separators.
10547       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10548       for pkg in $enableval; do
10549         IFS="$lt_save_ifs"
10550         if test "X$pkg" = "X$p"; then
10551           enable_static=yes
10552         fi
10553       done
10554       IFS="$lt_save_ifs"
10555       ;;
10556     esac
10557 else
10558   enable_static=no
10559 fi
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569 case `pwd` in
10570   *\ * | *\     *)
10571     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10572 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10573 esac
10574
10575
10576
10577 macro_version='2.4.2'
10578 macro_revision='1.3337'
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592 ltmain="$ac_aux_dir/ltmain.sh"
10593
10594 # Backslashify metacharacters that are still active within
10595 # double-quoted strings.
10596 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10597
10598 # Same as above, but do not quote variable references.
10599 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10600
10601 # Sed substitution to delay expansion of an escaped shell variable in a
10602 # double_quote_subst'ed string.
10603 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10604
10605 # Sed substitution to delay expansion of an escaped single quote.
10606 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10607
10608 # Sed substitution to avoid accidental globbing in evaled expressions
10609 no_glob_subst='s/\*/\\\*/g'
10610
10611 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10612 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10613 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10614
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10616 $as_echo_n "checking how to print strings... " >&6; }
10617 # Test print first, because it will be a builtin if present.
10618 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10619    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10620   ECHO='print -r --'
10621 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10622   ECHO='printf %s\n'
10623 else
10624   # Use this function as a fallback that always works.
10625   func_fallback_echo ()
10626   {
10627     eval 'cat <<_LTECHO_EOF
10628 $1
10629 _LTECHO_EOF'
10630   }
10631   ECHO='func_fallback_echo'
10632 fi
10633
10634 # func_echo_all arg...
10635 # Invoke $ECHO with all args, space-separated.
10636 func_echo_all ()
10637 {
10638     $ECHO ""
10639 }
10640
10641 case "$ECHO" in
10642   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10643 $as_echo "printf" >&6; } ;;
10644   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10645 $as_echo "print -r" >&6; } ;;
10646   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10647 $as_echo "cat" >&6; } ;;
10648 esac
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10664 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10665 if ${ac_cv_path_SED+:} false; then :
10666   $as_echo_n "(cached) " >&6
10667 else
10668             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10669      for ac_i in 1 2 3 4 5 6 7; do
10670        ac_script="$ac_script$as_nl$ac_script"
10671      done
10672      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10673      { ac_script=; unset ac_script;}
10674      if test -z "$SED"; then
10675   ac_path_SED_found=false
10676   # Loop through the user's path and test for each of PROGNAME-LIST
10677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678 for as_dir in $PATH
10679 do
10680   IFS=$as_save_IFS
10681   test -z "$as_dir" && as_dir=.
10682     for ac_prog in sed gsed; do
10683     for ac_exec_ext in '' $ac_executable_extensions; do
10684       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10685       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10686 # Check for GNU ac_path_SED and select it if it is found.
10687   # Check for GNU $ac_path_SED
10688 case `"$ac_path_SED" --version 2>&1` in
10689 *GNU*)
10690   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10691 *)
10692   ac_count=0
10693   $as_echo_n 0123456789 >"conftest.in"
10694   while :
10695   do
10696     cat "conftest.in" "conftest.in" >"conftest.tmp"
10697     mv "conftest.tmp" "conftest.in"
10698     cp "conftest.in" "conftest.nl"
10699     $as_echo '' >> "conftest.nl"
10700     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10701     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10702     as_fn_arith $ac_count + 1 && ac_count=$as_val
10703     if test $ac_count -gt ${ac_path_SED_max-0}; then
10704       # Best one so far, save it but keep looking for a better one
10705       ac_cv_path_SED="$ac_path_SED"
10706       ac_path_SED_max=$ac_count
10707     fi
10708     # 10*(2^10) chars as input seems more than enough
10709     test $ac_count -gt 10 && break
10710   done
10711   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10712 esac
10713
10714       $ac_path_SED_found && break 3
10715     done
10716   done
10717   done
10718 IFS=$as_save_IFS
10719   if test -z "$ac_cv_path_SED"; then
10720     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10721   fi
10722 else
10723   ac_cv_path_SED=$SED
10724 fi
10725
10726 fi
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10728 $as_echo "$ac_cv_path_SED" >&6; }
10729  SED="$ac_cv_path_SED"
10730   rm -f conftest.sed
10731
10732 test -z "$SED" && SED=sed
10733 Xsed="$SED -e 1s/^X//"
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10746 $as_echo_n "checking for fgrep... " >&6; }
10747 if ${ac_cv_path_FGREP+:} false; then :
10748   $as_echo_n "(cached) " >&6
10749 else
10750   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10751    then ac_cv_path_FGREP="$GREP -F"
10752    else
10753      if test -z "$FGREP"; then
10754   ac_path_FGREP_found=false
10755   # Loop through the user's path and test for each of PROGNAME-LIST
10756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10758 do
10759   IFS=$as_save_IFS
10760   test -z "$as_dir" && as_dir=.
10761     for ac_prog in fgrep; do
10762     for ac_exec_ext in '' $ac_executable_extensions; do
10763       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10764       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10765 # Check for GNU ac_path_FGREP and select it if it is found.
10766   # Check for GNU $ac_path_FGREP
10767 case `"$ac_path_FGREP" --version 2>&1` in
10768 *GNU*)
10769   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10770 *)
10771   ac_count=0
10772   $as_echo_n 0123456789 >"conftest.in"
10773   while :
10774   do
10775     cat "conftest.in" "conftest.in" >"conftest.tmp"
10776     mv "conftest.tmp" "conftest.in"
10777     cp "conftest.in" "conftest.nl"
10778     $as_echo 'FGREP' >> "conftest.nl"
10779     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10780     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10781     as_fn_arith $ac_count + 1 && ac_count=$as_val
10782     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10783       # Best one so far, save it but keep looking for a better one
10784       ac_cv_path_FGREP="$ac_path_FGREP"
10785       ac_path_FGREP_max=$ac_count
10786     fi
10787     # 10*(2^10) chars as input seems more than enough
10788     test $ac_count -gt 10 && break
10789   done
10790   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10791 esac
10792
10793       $ac_path_FGREP_found && break 3
10794     done
10795   done
10796   done
10797 IFS=$as_save_IFS
10798   if test -z "$ac_cv_path_FGREP"; then
10799     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10800   fi
10801 else
10802   ac_cv_path_FGREP=$FGREP
10803 fi
10804
10805    fi
10806 fi
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10808 $as_echo "$ac_cv_path_FGREP" >&6; }
10809  FGREP="$ac_cv_path_FGREP"
10810
10811
10812 test -z "$GREP" && GREP=grep
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832 # Check whether --with-gnu-ld was given.
10833 if test "${with_gnu_ld+set}" = set; then :
10834   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10835 else
10836   with_gnu_ld=no
10837 fi
10838
10839 ac_prog=ld
10840 if test "$GCC" = yes; then
10841   # Check if gcc -print-prog-name=ld gives a path.
10842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10843 $as_echo_n "checking for ld used by $CC... " >&6; }
10844   case $host in
10845   *-*-mingw*)
10846     # gcc leaves a trailing carriage return which upsets mingw
10847     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10848   *)
10849     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10850   esac
10851   case $ac_prog in
10852     # Accept absolute paths.
10853     [\\/]* | ?:[\\/]*)
10854       re_direlt='/[^/][^/]*/\.\./'
10855       # Canonicalize the pathname of ld
10856       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10857       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10858         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10859       done
10860       test -z "$LD" && LD="$ac_prog"
10861       ;;
10862   "")
10863     # If it fails, then pretend we aren't using GCC.
10864     ac_prog=ld
10865     ;;
10866   *)
10867     # If it is relative, then search for the first ld in PATH.
10868     with_gnu_ld=unknown
10869     ;;
10870   esac
10871 elif test "$with_gnu_ld" = yes; then
10872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10873 $as_echo_n "checking for GNU ld... " >&6; }
10874 else
10875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10876 $as_echo_n "checking for non-GNU ld... " >&6; }
10877 fi
10878 if ${lt_cv_path_LD+:} false; then :
10879   $as_echo_n "(cached) " >&6
10880 else
10881   if test -z "$LD"; then
10882   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10883   for ac_dir in $PATH; do
10884     IFS="$lt_save_ifs"
10885     test -z "$ac_dir" && ac_dir=.
10886     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10887       lt_cv_path_LD="$ac_dir/$ac_prog"
10888       # Check to see if the program is GNU ld.  I'd rather use --version,
10889       # but apparently some variants of GNU ld only accept -v.
10890       # Break only if it was the GNU/non-GNU ld that we prefer.
10891       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10892       *GNU* | *'with BFD'*)
10893         test "$with_gnu_ld" != no && break
10894         ;;
10895       *)
10896         test "$with_gnu_ld" != yes && break
10897         ;;
10898       esac
10899     fi
10900   done
10901   IFS="$lt_save_ifs"
10902 else
10903   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10904 fi
10905 fi
10906
10907 LD="$lt_cv_path_LD"
10908 if test -n "$LD"; then
10909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10910 $as_echo "$LD" >&6; }
10911 else
10912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; }
10914 fi
10915 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10917 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10918 if ${lt_cv_prog_gnu_ld+:} false; then :
10919   $as_echo_n "(cached) " >&6
10920 else
10921   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10922 case `$LD -v 2>&1 </dev/null` in
10923 *GNU* | *'with BFD'*)
10924   lt_cv_prog_gnu_ld=yes
10925   ;;
10926 *)
10927   lt_cv_prog_gnu_ld=no
10928   ;;
10929 esac
10930 fi
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10932 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10933 with_gnu_ld=$lt_cv_prog_gnu_ld
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10944 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10945 if ${lt_cv_path_NM+:} false; then :
10946   $as_echo_n "(cached) " >&6
10947 else
10948   if test -n "$NM"; then
10949   # Let the user override the test.
10950   lt_cv_path_NM="$NM"
10951 else
10952   lt_nm_to_check="${ac_tool_prefix}nm"
10953   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10954     lt_nm_to_check="$lt_nm_to_check nm"
10955   fi
10956   for lt_tmp_nm in $lt_nm_to_check; do
10957     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10958     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10959       IFS="$lt_save_ifs"
10960       test -z "$ac_dir" && ac_dir=.
10961       tmp_nm="$ac_dir/$lt_tmp_nm"
10962       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10963         # Check to see if the nm accepts a BSD-compat flag.
10964         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10965         #   nm: unknown option "B" ignored
10966         # Tru64's nm complains that /dev/null is an invalid object file
10967         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10968         */dev/null* | *'Invalid file or object type'*)
10969           lt_cv_path_NM="$tmp_nm -B"
10970           break
10971           ;;
10972         *)
10973           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10974           */dev/null*)
10975             lt_cv_path_NM="$tmp_nm -p"
10976             break
10977             ;;
10978           *)
10979             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10980             continue # so that we can try to find one that supports BSD flags
10981             ;;
10982           esac
10983           ;;
10984         esac
10985       fi
10986     done
10987     IFS="$lt_save_ifs"
10988   done
10989   : ${lt_cv_path_NM=no}
10990 fi
10991 fi
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10993 $as_echo "$lt_cv_path_NM" >&6; }
10994 if test "$lt_cv_path_NM" != "no"; then
10995   NM="$lt_cv_path_NM"
10996 else
10997   # Didn't find any BSD compatible name lister, look for dumpbin.
10998   if test -n "$DUMPBIN"; then :
10999     # Let the user override the test.
11000   else
11001     if test -n "$ac_tool_prefix"; then
11002   for ac_prog in dumpbin "link -dump"
11003   do
11004     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11007 $as_echo_n "checking for $ac_word... " >&6; }
11008 if ${ac_cv_prog_DUMPBIN+:} false; then :
11009   $as_echo_n "(cached) " >&6
11010 else
11011   if test -n "$DUMPBIN"; then
11012   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11013 else
11014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015 for as_dir in $PATH
11016 do
11017   IFS=$as_save_IFS
11018   test -z "$as_dir" && as_dir=.
11019     for ac_exec_ext in '' $ac_executable_extensions; do
11020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11021     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11023     break 2
11024   fi
11025 done
11026   done
11027 IFS=$as_save_IFS
11028
11029 fi
11030 fi
11031 DUMPBIN=$ac_cv_prog_DUMPBIN
11032 if test -n "$DUMPBIN"; then
11033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11034 $as_echo "$DUMPBIN" >&6; }
11035 else
11036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11038 fi
11039
11040
11041     test -n "$DUMPBIN" && break
11042   done
11043 fi
11044 if test -z "$DUMPBIN"; then
11045   ac_ct_DUMPBIN=$DUMPBIN
11046   for ac_prog in dumpbin "link -dump"
11047 do
11048   # Extract the first word of "$ac_prog", so it can be a program name with args.
11049 set dummy $ac_prog; ac_word=$2
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11051 $as_echo_n "checking for $ac_word... " >&6; }
11052 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11053   $as_echo_n "(cached) " >&6
11054 else
11055   if test -n "$ac_ct_DUMPBIN"; then
11056   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11057 else
11058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11059 for as_dir in $PATH
11060 do
11061   IFS=$as_save_IFS
11062   test -z "$as_dir" && as_dir=.
11063     for ac_exec_ext in '' $ac_executable_extensions; do
11064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11065     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11067     break 2
11068   fi
11069 done
11070   done
11071 IFS=$as_save_IFS
11072
11073 fi
11074 fi
11075 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11076 if test -n "$ac_ct_DUMPBIN"; then
11077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11078 $as_echo "$ac_ct_DUMPBIN" >&6; }
11079 else
11080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 $as_echo "no" >&6; }
11082 fi
11083
11084
11085   test -n "$ac_ct_DUMPBIN" && break
11086 done
11087
11088   if test "x$ac_ct_DUMPBIN" = x; then
11089     DUMPBIN=":"
11090   else
11091     case $cross_compiling:$ac_tool_warned in
11092 yes:)
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11095 ac_tool_warned=yes ;;
11096 esac
11097     DUMPBIN=$ac_ct_DUMPBIN
11098   fi
11099 fi
11100
11101     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11102     *COFF*)
11103       DUMPBIN="$DUMPBIN -symbols"
11104       ;;
11105     *)
11106       DUMPBIN=:
11107       ;;
11108     esac
11109   fi
11110
11111   if test "$DUMPBIN" != ":"; then
11112     NM="$DUMPBIN"
11113   fi
11114 fi
11115 test -z "$NM" && NM=nm
11116
11117
11118
11119
11120
11121
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11123 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11124 if ${lt_cv_nm_interface+:} false; then :
11125   $as_echo_n "(cached) " >&6
11126 else
11127   lt_cv_nm_interface="BSD nm"
11128   echo "int some_variable = 0;" > conftest.$ac_ext
11129   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11130   (eval "$ac_compile" 2>conftest.err)
11131   cat conftest.err >&5
11132   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11133   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11134   cat conftest.err >&5
11135   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11136   cat conftest.out >&5
11137   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11138     lt_cv_nm_interface="MS dumpbin"
11139   fi
11140   rm -f conftest*
11141 fi
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11143 $as_echo "$lt_cv_nm_interface" >&6; }
11144
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11146 $as_echo_n "checking whether ln -s works... " >&6; }
11147 LN_S=$as_ln_s
11148 if test "$LN_S" = "ln -s"; then
11149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11150 $as_echo "yes" >&6; }
11151 else
11152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11153 $as_echo "no, using $LN_S" >&6; }
11154 fi
11155
11156 # find the maximum length of command line arguments
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11158 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11159 if ${lt_cv_sys_max_cmd_len+:} false; then :
11160   $as_echo_n "(cached) " >&6
11161 else
11162     i=0
11163   teststring="ABCD"
11164
11165   case $build_os in
11166   msdosdjgpp*)
11167     # On DJGPP, this test can blow up pretty badly due to problems in libc
11168     # (any single argument exceeding 2000 bytes causes a buffer overrun
11169     # during glob expansion).  Even if it were fixed, the result of this
11170     # check would be larger than it should be.
11171     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11172     ;;
11173
11174   gnu*)
11175     # Under GNU Hurd, this test is not required because there is
11176     # no limit to the length of command line arguments.
11177     # Libtool will interpret -1 as no limit whatsoever
11178     lt_cv_sys_max_cmd_len=-1;
11179     ;;
11180
11181   cygwin* | mingw* | cegcc*)
11182     # On Win9x/ME, this test blows up -- it succeeds, but takes
11183     # about 5 minutes as the teststring grows exponentially.
11184     # Worse, since 9x/ME are not pre-emptively multitasking,
11185     # you end up with a "frozen" computer, even though with patience
11186     # the test eventually succeeds (with a max line length of 256k).
11187     # Instead, let's just punt: use the minimum linelength reported by
11188     # all of the supported platforms: 8192 (on NT/2K/XP).
11189     lt_cv_sys_max_cmd_len=8192;
11190     ;;
11191
11192   mint*)
11193     # On MiNT this can take a long time and run out of memory.
11194     lt_cv_sys_max_cmd_len=8192;
11195     ;;
11196
11197   amigaos*)
11198     # On AmigaOS with pdksh, this test takes hours, literally.
11199     # So we just punt and use a minimum line length of 8192.
11200     lt_cv_sys_max_cmd_len=8192;
11201     ;;
11202
11203   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11204     # This has been around since 386BSD, at least.  Likely further.
11205     if test -x /sbin/sysctl; then
11206       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11207     elif test -x /usr/sbin/sysctl; then
11208       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11209     else
11210       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
11211     fi
11212     # And add a safety zone
11213     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11214     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11215     ;;
11216
11217   interix*)
11218     # We know the value 262144 and hardcode it with a safety zone (like BSD)
11219     lt_cv_sys_max_cmd_len=196608
11220     ;;
11221
11222   os2*)
11223     # The test takes a long time on OS/2.
11224     lt_cv_sys_max_cmd_len=8192
11225     ;;
11226
11227   osf*)
11228     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11229     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11230     # nice to cause kernel panics so lets avoid the loop below.
11231     # First set a reasonable default.
11232     lt_cv_sys_max_cmd_len=16384
11233     #
11234     if test -x /sbin/sysconfig; then
11235       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11236         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11237       esac
11238     fi
11239     ;;
11240   sco3.2v5*)
11241     lt_cv_sys_max_cmd_len=102400
11242     ;;
11243   sysv5* | sco5v6* | sysv4.2uw2*)
11244     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11245     if test -n "$kargmax"; then
11246       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
11247     else
11248       lt_cv_sys_max_cmd_len=32768
11249     fi
11250     ;;
11251   *)
11252     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11253     if test -n "$lt_cv_sys_max_cmd_len"; then
11254       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11255       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11256     else
11257       # Make teststring a little bigger before we do anything with it.
11258       # a 1K string should be a reasonable start.
11259       for i in 1 2 3 4 5 6 7 8 ; do
11260         teststring=$teststring$teststring
11261       done
11262       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11263       # If test is not a shell built-in, we'll probably end up computing a
11264       # maximum length that is only half of the actual maximum length, but
11265       # we can't tell.
11266       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11267                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11268               test $i != 17 # 1/2 MB should be enough
11269       do
11270         i=`expr $i + 1`
11271         teststring=$teststring$teststring
11272       done
11273       # Only check the string length outside the loop.
11274       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11275       teststring=
11276       # Add a significant safety factor because C++ compilers can tack on
11277       # massive amounts of additional arguments before passing them to the
11278       # linker.  It appears as though 1/2 is a usable value.
11279       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11280     fi
11281     ;;
11282   esac
11283
11284 fi
11285
11286 if test -n $lt_cv_sys_max_cmd_len ; then
11287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11288 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11289 else
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11291 $as_echo "none" >&6; }
11292 fi
11293 max_cmd_len=$lt_cv_sys_max_cmd_len
11294
11295
11296
11297
11298
11299
11300 : ${CP="cp -f"}
11301 : ${MV="mv -f"}
11302 : ${RM="rm -f"}
11303
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11305 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11306 # Try some XSI features
11307 xsi_shell=no
11308 ( _lt_dummy="a/b/c"
11309   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11310       = c,a/b,b/c, \
11311     && eval 'test $(( 1 + 1 )) -eq 2 \
11312     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11313   && xsi_shell=yes
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11315 $as_echo "$xsi_shell" >&6; }
11316
11317
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11319 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11320 lt_shell_append=no
11321 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11322     >/dev/null 2>&1 \
11323   && lt_shell_append=yes
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11325 $as_echo "$lt_shell_append" >&6; }
11326
11327
11328 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11329   lt_unset=unset
11330 else
11331   lt_unset=false
11332 fi
11333
11334
11335
11336
11337
11338 # test EBCDIC or ASCII
11339 case `echo X|tr X '\101'` in
11340  A) # ASCII based system
11341     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11342   lt_SP2NL='tr \040 \012'
11343   lt_NL2SP='tr \015\012 \040\040'
11344   ;;
11345  *) # EBCDIC based system
11346   lt_SP2NL='tr \100 \n'
11347   lt_NL2SP='tr \r\n \100\100'
11348   ;;
11349 esac
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11360 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11361 if ${lt_cv_to_host_file_cmd+:} false; then :
11362   $as_echo_n "(cached) " >&6
11363 else
11364   case $host in
11365   *-*-mingw* )
11366     case $build in
11367       *-*-mingw* ) # actually msys
11368         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11369         ;;
11370       *-*-cygwin* )
11371         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11372         ;;
11373       * ) # otherwise, assume *nix
11374         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11375         ;;
11376     esac
11377     ;;
11378   *-*-cygwin* )
11379     case $build in
11380       *-*-mingw* ) # actually msys
11381         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11382         ;;
11383       *-*-cygwin* )
11384         lt_cv_to_host_file_cmd=func_convert_file_noop
11385         ;;
11386       * ) # otherwise, assume *nix
11387         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11388         ;;
11389     esac
11390     ;;
11391   * ) # unhandled hosts (and "normal" native builds)
11392     lt_cv_to_host_file_cmd=func_convert_file_noop
11393     ;;
11394 esac
11395
11396 fi
11397
11398 to_host_file_cmd=$lt_cv_to_host_file_cmd
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11400 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11401
11402
11403
11404
11405
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11407 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11408 if ${lt_cv_to_tool_file_cmd+:} false; then :
11409   $as_echo_n "(cached) " >&6
11410 else
11411   #assume ordinary cross tools, or native build.
11412 lt_cv_to_tool_file_cmd=func_convert_file_noop
11413 case $host in
11414   *-*-mingw* )
11415     case $build in
11416       *-*-mingw* ) # actually msys
11417         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11418         ;;
11419     esac
11420     ;;
11421 esac
11422
11423 fi
11424
11425 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11427 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11428
11429
11430
11431
11432
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11434 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11435 if ${lt_cv_ld_reload_flag+:} false; then :
11436   $as_echo_n "(cached) " >&6
11437 else
11438   lt_cv_ld_reload_flag='-r'
11439 fi
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11441 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11442 reload_flag=$lt_cv_ld_reload_flag
11443 case $reload_flag in
11444 "" | " "*) ;;
11445 *) reload_flag=" $reload_flag" ;;
11446 esac
11447 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11448 case $host_os in
11449   cygwin* | mingw* | pw32* | cegcc*)
11450     if test "$GCC" != yes; then
11451       reload_cmds=false
11452     fi
11453     ;;
11454   darwin*)
11455     if test "$GCC" = yes; then
11456       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11457     else
11458       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11459     fi
11460     ;;
11461 esac
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471 if test -n "$ac_tool_prefix"; then
11472   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11473 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11475 $as_echo_n "checking for $ac_word... " >&6; }
11476 if ${ac_cv_prog_OBJDUMP+:} false; then :
11477   $as_echo_n "(cached) " >&6
11478 else
11479   if test -n "$OBJDUMP"; then
11480   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11481 else
11482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483 for as_dir in $PATH
11484 do
11485   IFS=$as_save_IFS
11486   test -z "$as_dir" && as_dir=.
11487     for ac_exec_ext in '' $ac_executable_extensions; do
11488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11489     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11491     break 2
11492   fi
11493 done
11494   done
11495 IFS=$as_save_IFS
11496
11497 fi
11498 fi
11499 OBJDUMP=$ac_cv_prog_OBJDUMP
11500 if test -n "$OBJDUMP"; then
11501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11502 $as_echo "$OBJDUMP" >&6; }
11503 else
11504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 $as_echo "no" >&6; }
11506 fi
11507
11508
11509 fi
11510 if test -z "$ac_cv_prog_OBJDUMP"; then
11511   ac_ct_OBJDUMP=$OBJDUMP
11512   # Extract the first word of "objdump", so it can be a program name with args.
11513 set dummy objdump; ac_word=$2
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515 $as_echo_n "checking for $ac_word... " >&6; }
11516 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11517   $as_echo_n "(cached) " >&6
11518 else
11519   if test -n "$ac_ct_OBJDUMP"; then
11520   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11521 else
11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523 for as_dir in $PATH
11524 do
11525   IFS=$as_save_IFS
11526   test -z "$as_dir" && as_dir=.
11527     for ac_exec_ext in '' $ac_executable_extensions; do
11528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11529     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531     break 2
11532   fi
11533 done
11534   done
11535 IFS=$as_save_IFS
11536
11537 fi
11538 fi
11539 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11540 if test -n "$ac_ct_OBJDUMP"; then
11541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11542 $as_echo "$ac_ct_OBJDUMP" >&6; }
11543 else
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11546 fi
11547
11548   if test "x$ac_ct_OBJDUMP" = x; then
11549     OBJDUMP="false"
11550   else
11551     case $cross_compiling:$ac_tool_warned in
11552 yes:)
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11555 ac_tool_warned=yes ;;
11556 esac
11557     OBJDUMP=$ac_ct_OBJDUMP
11558   fi
11559 else
11560   OBJDUMP="$ac_cv_prog_OBJDUMP"
11561 fi
11562
11563 test -z "$OBJDUMP" && OBJDUMP=objdump
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11574 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11575 if ${lt_cv_deplibs_check_method+:} false; then :
11576   $as_echo_n "(cached) " >&6
11577 else
11578   lt_cv_file_magic_cmd='$MAGIC_CMD'
11579 lt_cv_file_magic_test_file=
11580 lt_cv_deplibs_check_method='unknown'
11581 # Need to set the preceding variable on all platforms that support
11582 # interlibrary dependencies.
11583 # 'none' -- dependencies not supported.
11584 # `unknown' -- same as none, but documents that we really don't know.
11585 # 'pass_all' -- all dependencies passed with no checks.
11586 # 'test_compile' -- check by making test program.
11587 # 'file_magic [[regex]]' -- check by looking for files in library path
11588 # which responds to the $file_magic_cmd with a given extended regex.
11589 # If you have `file' or equivalent on your system and you're not sure
11590 # whether `pass_all' will *always* work, you probably want this one.
11591
11592 case $host_os in
11593 aix[4-9]*)
11594   lt_cv_deplibs_check_method=pass_all
11595   ;;
11596
11597 beos*)
11598   lt_cv_deplibs_check_method=pass_all
11599   ;;
11600
11601 bsdi[45]*)
11602   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11603   lt_cv_file_magic_cmd='/usr/bin/file -L'
11604   lt_cv_file_magic_test_file=/shlib/libc.so
11605   ;;
11606
11607 cygwin*)
11608   # func_win32_libid is a shell function defined in ltmain.sh
11609   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11610   lt_cv_file_magic_cmd='func_win32_libid'
11611   ;;
11612
11613 mingw* | pw32*)
11614   # Base MSYS/MinGW do not provide the 'file' command needed by
11615   # func_win32_libid shell function, so use a weaker test based on 'objdump',
11616   # unless we find 'file', for example because we are cross-compiling.
11617   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11618   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11619     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11620     lt_cv_file_magic_cmd='func_win32_libid'
11621   else
11622     # Keep this pattern in sync with the one in func_win32_libid.
11623     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11624     lt_cv_file_magic_cmd='$OBJDUMP -f'
11625   fi
11626   ;;
11627
11628 cegcc*)
11629   # use the weaker test based on 'objdump'. See mingw*.
11630   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11631   lt_cv_file_magic_cmd='$OBJDUMP -f'
11632   ;;
11633
11634 darwin* | rhapsody*)
11635   lt_cv_deplibs_check_method=pass_all
11636   ;;
11637
11638 freebsd* | dragonfly*)
11639   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11640     case $host_cpu in
11641     i*86 )
11642       # Not sure whether the presence of OpenBSD here was a mistake.
11643       # Let's accept both of them until this is cleared up.
11644       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11645       lt_cv_file_magic_cmd=/usr/bin/file
11646       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11647       ;;
11648     esac
11649   else
11650     lt_cv_deplibs_check_method=pass_all
11651   fi
11652   ;;
11653
11654 gnu*)
11655   lt_cv_deplibs_check_method=pass_all
11656   ;;
11657
11658 haiku*)
11659   lt_cv_deplibs_check_method=pass_all
11660   ;;
11661
11662 hpux10.20* | hpux11*)
11663   lt_cv_file_magic_cmd=/usr/bin/file
11664   case $host_cpu in
11665   ia64*)
11666     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11667     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11668     ;;
11669   hppa*64*)
11670     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]'
11671     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11672     ;;
11673   *)
11674     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11675     lt_cv_file_magic_test_file=/usr/lib/libc.sl
11676     ;;
11677   esac
11678   ;;
11679
11680 interix[3-9]*)
11681   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11682   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11683   ;;
11684
11685 irix5* | irix6* | nonstopux*)
11686   case $LD in
11687   *-32|*"-32 ") libmagic=32-bit;;
11688   *-n32|*"-n32 ") libmagic=N32;;
11689   *-64|*"-64 ") libmagic=64-bit;;
11690   *) libmagic=never-match;;
11691   esac
11692   lt_cv_deplibs_check_method=pass_all
11693   ;;
11694
11695 # This must be glibc/ELF.
11696 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11697   lt_cv_deplibs_check_method=pass_all
11698   ;;
11699
11700 netbsd*)
11701   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11702     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11703   else
11704     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11705   fi
11706   ;;
11707
11708 newos6*)
11709   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11710   lt_cv_file_magic_cmd=/usr/bin/file
11711   lt_cv_file_magic_test_file=/usr/lib/libnls.so
11712   ;;
11713
11714 *nto* | *qnx*)
11715   lt_cv_deplibs_check_method=pass_all
11716   ;;
11717
11718 openbsd*)
11719   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11720     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11721   else
11722     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11723   fi
11724   ;;
11725
11726 osf3* | osf4* | osf5*)
11727   lt_cv_deplibs_check_method=pass_all
11728   ;;
11729
11730 rdos*)
11731   lt_cv_deplibs_check_method=pass_all
11732   ;;
11733
11734 solaris*)
11735   lt_cv_deplibs_check_method=pass_all
11736   ;;
11737
11738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11739   lt_cv_deplibs_check_method=pass_all
11740   ;;
11741
11742 sysv4 | sysv4.3*)
11743   case $host_vendor in
11744   motorola)
11745     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]'
11746     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11747     ;;
11748   ncr)
11749     lt_cv_deplibs_check_method=pass_all
11750     ;;
11751   sequent)
11752     lt_cv_file_magic_cmd='/bin/file'
11753     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11754     ;;
11755   sni)
11756     lt_cv_file_magic_cmd='/bin/file'
11757     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11758     lt_cv_file_magic_test_file=/lib/libc.so
11759     ;;
11760   siemens)
11761     lt_cv_deplibs_check_method=pass_all
11762     ;;
11763   pc)
11764     lt_cv_deplibs_check_method=pass_all
11765     ;;
11766   esac
11767   ;;
11768
11769 tpf*)
11770   lt_cv_deplibs_check_method=pass_all
11771   ;;
11772 esac
11773
11774 fi
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11776 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11777
11778 file_magic_glob=
11779 want_nocaseglob=no
11780 if test "$build" = "$host"; then
11781   case $host_os in
11782   mingw* | pw32*)
11783     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11784       want_nocaseglob=yes
11785     else
11786       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11787     fi
11788     ;;
11789   esac
11790 fi
11791
11792 file_magic_cmd=$lt_cv_file_magic_cmd
11793 deplibs_check_method=$lt_cv_deplibs_check_method
11794 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817 if test -n "$ac_tool_prefix"; then
11818   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11819 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if ${ac_cv_prog_DLLTOOL+:} false; then :
11823   $as_echo_n "(cached) " >&6
11824 else
11825   if test -n "$DLLTOOL"; then
11826   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11827 else
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11830 do
11831   IFS=$as_save_IFS
11832   test -z "$as_dir" && as_dir=.
11833     for ac_exec_ext in '' $ac_executable_extensions; do
11834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11835     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837     break 2
11838   fi
11839 done
11840   done
11841 IFS=$as_save_IFS
11842
11843 fi
11844 fi
11845 DLLTOOL=$ac_cv_prog_DLLTOOL
11846 if test -n "$DLLTOOL"; then
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11848 $as_echo "$DLLTOOL" >&6; }
11849 else
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11852 fi
11853
11854
11855 fi
11856 if test -z "$ac_cv_prog_DLLTOOL"; then
11857   ac_ct_DLLTOOL=$DLLTOOL
11858   # Extract the first word of "dlltool", so it can be a program name with args.
11859 set dummy dlltool; ac_word=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11863   $as_echo_n "(cached) " >&6
11864 else
11865   if test -n "$ac_ct_DLLTOOL"; then
11866   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11867 else
11868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869 for as_dir in $PATH
11870 do
11871   IFS=$as_save_IFS
11872   test -z "$as_dir" && as_dir=.
11873     for ac_exec_ext in '' $ac_executable_extensions; do
11874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11875     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11877     break 2
11878   fi
11879 done
11880   done
11881 IFS=$as_save_IFS
11882
11883 fi
11884 fi
11885 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11886 if test -n "$ac_ct_DLLTOOL"; then
11887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11888 $as_echo "$ac_ct_DLLTOOL" >&6; }
11889 else
11890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11892 fi
11893
11894   if test "x$ac_ct_DLLTOOL" = x; then
11895     DLLTOOL="false"
11896   else
11897     case $cross_compiling:$ac_tool_warned in
11898 yes:)
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11901 ac_tool_warned=yes ;;
11902 esac
11903     DLLTOOL=$ac_ct_DLLTOOL
11904   fi
11905 else
11906   DLLTOOL="$ac_cv_prog_DLLTOOL"
11907 fi
11908
11909 test -z "$DLLTOOL" && DLLTOOL=dlltool
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11921 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11922 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11923   $as_echo_n "(cached) " >&6
11924 else
11925   lt_cv_sharedlib_from_linklib_cmd='unknown'
11926
11927 case $host_os in
11928 cygwin* | mingw* | pw32* | cegcc*)
11929   # two different shell functions defined in ltmain.sh
11930   # decide which to use based on capabilities of $DLLTOOL
11931   case `$DLLTOOL --help 2>&1` in
11932   *--identify-strict*)
11933     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11934     ;;
11935   *)
11936     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11937     ;;
11938   esac
11939   ;;
11940 *)
11941   # fallback: assume linklib IS sharedlib
11942   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11943   ;;
11944 esac
11945
11946 fi
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11948 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11949 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11950 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11951
11952
11953
11954
11955
11956
11957
11958 if test -n "$ac_tool_prefix"; then
11959   for ac_prog in ar
11960   do
11961     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11962 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11964 $as_echo_n "checking for $ac_word... " >&6; }
11965 if ${ac_cv_prog_AR+:} false; then :
11966   $as_echo_n "(cached) " >&6
11967 else
11968   if test -n "$AR"; then
11969   ac_cv_prog_AR="$AR" # Let the user override the test.
11970 else
11971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972 for as_dir in $PATH
11973 do
11974   IFS=$as_save_IFS
11975   test -z "$as_dir" && as_dir=.
11976     for ac_exec_ext in '' $ac_executable_extensions; do
11977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11978     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11980     break 2
11981   fi
11982 done
11983   done
11984 IFS=$as_save_IFS
11985
11986 fi
11987 fi
11988 AR=$ac_cv_prog_AR
11989 if test -n "$AR"; then
11990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11991 $as_echo "$AR" >&6; }
11992 else
11993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
11995 fi
11996
11997
11998     test -n "$AR" && break
11999   done
12000 fi
12001 if test -z "$AR"; then
12002   ac_ct_AR=$AR
12003   for ac_prog in ar
12004 do
12005   # Extract the first word of "$ac_prog", so it can be a program name with args.
12006 set dummy $ac_prog; ac_word=$2
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008 $as_echo_n "checking for $ac_word... " >&6; }
12009 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12010   $as_echo_n "(cached) " >&6
12011 else
12012   if test -n "$ac_ct_AR"; then
12013   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12014 else
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH
12017 do
12018   IFS=$as_save_IFS
12019   test -z "$as_dir" && as_dir=.
12020     for ac_exec_ext in '' $ac_executable_extensions; do
12021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12022     ac_cv_prog_ac_ct_AR="$ac_prog"
12023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024     break 2
12025   fi
12026 done
12027   done
12028 IFS=$as_save_IFS
12029
12030 fi
12031 fi
12032 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12033 if test -n "$ac_ct_AR"; then
12034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12035 $as_echo "$ac_ct_AR" >&6; }
12036 else
12037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12039 fi
12040
12041
12042   test -n "$ac_ct_AR" && break
12043 done
12044
12045   if test "x$ac_ct_AR" = x; then
12046     AR="false"
12047   else
12048     case $cross_compiling:$ac_tool_warned in
12049 yes:)
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12052 ac_tool_warned=yes ;;
12053 esac
12054     AR=$ac_ct_AR
12055   fi
12056 fi
12057
12058 : ${AR=ar}
12059 : ${AR_FLAGS=cru}
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12072 $as_echo_n "checking for archiver @FILE support... " >&6; }
12073 if ${lt_cv_ar_at_file+:} false; then :
12074   $as_echo_n "(cached) " >&6
12075 else
12076   lt_cv_ar_at_file=no
12077    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h.  */
12079
12080 int
12081 main ()
12082 {
12083
12084   ;
12085   return 0;
12086 }
12087 _ACEOF
12088 if ac_fn_c_try_compile "$LINENO"; then :
12089   echo conftest.$ac_objext > conftest.lst
12090       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12091       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12092   (eval $lt_ar_try) 2>&5
12093   ac_status=$?
12094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12095   test $ac_status = 0; }
12096       if test "$ac_status" -eq 0; then
12097         # Ensure the archiver fails upon bogus file names.
12098         rm -f conftest.$ac_objext libconftest.a
12099         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12100   (eval $lt_ar_try) 2>&5
12101   ac_status=$?
12102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12103   test $ac_status = 0; }
12104         if test "$ac_status" -ne 0; then
12105           lt_cv_ar_at_file=@
12106         fi
12107       fi
12108       rm -f conftest.* libconftest.a
12109
12110 fi
12111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112
12113 fi
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12115 $as_echo "$lt_cv_ar_at_file" >&6; }
12116
12117 if test "x$lt_cv_ar_at_file" = xno; then
12118   archiver_list_spec=
12119 else
12120   archiver_list_spec=$lt_cv_ar_at_file
12121 fi
12122
12123
12124
12125
12126
12127
12128
12129 if test -n "$ac_tool_prefix"; then
12130   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12131 set dummy ${ac_tool_prefix}strip; ac_word=$2
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133 $as_echo_n "checking for $ac_word... " >&6; }
12134 if ${ac_cv_prog_STRIP+:} false; then :
12135   $as_echo_n "(cached) " >&6
12136 else
12137   if test -n "$STRIP"; then
12138   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12139 else
12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141 for as_dir in $PATH
12142 do
12143   IFS=$as_save_IFS
12144   test -z "$as_dir" && as_dir=.
12145     for ac_exec_ext in '' $ac_executable_extensions; do
12146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12147     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12149     break 2
12150   fi
12151 done
12152   done
12153 IFS=$as_save_IFS
12154
12155 fi
12156 fi
12157 STRIP=$ac_cv_prog_STRIP
12158 if test -n "$STRIP"; then
12159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12160 $as_echo "$STRIP" >&6; }
12161 else
12162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12164 fi
12165
12166
12167 fi
12168 if test -z "$ac_cv_prog_STRIP"; then
12169   ac_ct_STRIP=$STRIP
12170   # Extract the first word of "strip", so it can be a program name with args.
12171 set dummy strip; ac_word=$2
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173 $as_echo_n "checking for $ac_word... " >&6; }
12174 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12175   $as_echo_n "(cached) " >&6
12176 else
12177   if test -n "$ac_ct_STRIP"; then
12178   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12179 else
12180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181 for as_dir in $PATH
12182 do
12183   IFS=$as_save_IFS
12184   test -z "$as_dir" && as_dir=.
12185     for ac_exec_ext in '' $ac_executable_extensions; do
12186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12187     ac_cv_prog_ac_ct_STRIP="strip"
12188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189     break 2
12190   fi
12191 done
12192   done
12193 IFS=$as_save_IFS
12194
12195 fi
12196 fi
12197 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12198 if test -n "$ac_ct_STRIP"; then
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12200 $as_echo "$ac_ct_STRIP" >&6; }
12201 else
12202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203 $as_echo "no" >&6; }
12204 fi
12205
12206   if test "x$ac_ct_STRIP" = x; then
12207     STRIP=":"
12208   else
12209     case $cross_compiling:$ac_tool_warned in
12210 yes:)
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12213 ac_tool_warned=yes ;;
12214 esac
12215     STRIP=$ac_ct_STRIP
12216   fi
12217 else
12218   STRIP="$ac_cv_prog_STRIP"
12219 fi
12220
12221 test -z "$STRIP" && STRIP=:
12222
12223
12224
12225
12226
12227
12228 if test -n "$ac_tool_prefix"; then
12229   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12230 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if ${ac_cv_prog_RANLIB+:} false; then :
12234   $as_echo_n "(cached) " >&6
12235 else
12236   if test -n "$RANLIB"; then
12237   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12238 else
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12241 do
12242   IFS=$as_save_IFS
12243   test -z "$as_dir" && as_dir=.
12244     for ac_exec_ext in '' $ac_executable_extensions; do
12245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248     break 2
12249   fi
12250 done
12251   done
12252 IFS=$as_save_IFS
12253
12254 fi
12255 fi
12256 RANLIB=$ac_cv_prog_RANLIB
12257 if test -n "$RANLIB"; then
12258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12259 $as_echo "$RANLIB" >&6; }
12260 else
12261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12263 fi
12264
12265
12266 fi
12267 if test -z "$ac_cv_prog_RANLIB"; then
12268   ac_ct_RANLIB=$RANLIB
12269   # Extract the first word of "ranlib", so it can be a program name with args.
12270 set dummy ranlib; ac_word=$2
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272 $as_echo_n "checking for $ac_word... " >&6; }
12273 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12274   $as_echo_n "(cached) " >&6
12275 else
12276   if test -n "$ac_ct_RANLIB"; then
12277   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12278 else
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12281 do
12282   IFS=$as_save_IFS
12283   test -z "$as_dir" && as_dir=.
12284     for ac_exec_ext in '' $ac_executable_extensions; do
12285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286     ac_cv_prog_ac_ct_RANLIB="ranlib"
12287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288     break 2
12289   fi
12290 done
12291   done
12292 IFS=$as_save_IFS
12293
12294 fi
12295 fi
12296 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12297 if test -n "$ac_ct_RANLIB"; then
12298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12299 $as_echo "$ac_ct_RANLIB" >&6; }
12300 else
12301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302 $as_echo "no" >&6; }
12303 fi
12304
12305   if test "x$ac_ct_RANLIB" = x; then
12306     RANLIB=":"
12307   else
12308     case $cross_compiling:$ac_tool_warned in
12309 yes:)
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12312 ac_tool_warned=yes ;;
12313 esac
12314     RANLIB=$ac_ct_RANLIB
12315   fi
12316 else
12317   RANLIB="$ac_cv_prog_RANLIB"
12318 fi
12319
12320 test -z "$RANLIB" && RANLIB=:
12321
12322
12323
12324
12325
12326
12327 # Determine commands to create old-style static archives.
12328 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12329 old_postinstall_cmds='chmod 644 $oldlib'
12330 old_postuninstall_cmds=
12331
12332 if test -n "$RANLIB"; then
12333   case $host_os in
12334   openbsd*)
12335     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12336     ;;
12337   *)
12338     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12339     ;;
12340   esac
12341   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12342 fi
12343
12344 case $host_os in
12345   darwin*)
12346     lock_old_archive_extraction=yes ;;
12347   *)
12348     lock_old_archive_extraction=no ;;
12349 esac
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389 # If no C compiler was specified, use CC.
12390 LTCC=${LTCC-"$CC"}
12391
12392 # If no C compiler flags were specified, use CFLAGS.
12393 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12394
12395 # Allow CC to be a program name with arguments.
12396 compiler=$CC
12397
12398
12399 # Check for command to grab the raw symbol name followed by C symbol from nm.
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12401 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12402 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12403   $as_echo_n "(cached) " >&6
12404 else
12405
12406 # These are sane defaults that work on at least a few old systems.
12407 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12408
12409 # Character class describing NM global symbol codes.
12410 symcode='[BCDEGRST]'
12411
12412 # Regexp to match symbols that can be accessed directly from C.
12413 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12414
12415 # Define system-specific variables.
12416 case $host_os in
12417 aix*)
12418   symcode='[BCDT]'
12419   ;;
12420 cygwin* | mingw* | pw32* | cegcc*)
12421   symcode='[ABCDGISTW]'
12422   ;;
12423 hpux*)
12424   if test "$host_cpu" = ia64; then
12425     symcode='[ABCDEGRST]'
12426   fi
12427   ;;
12428 irix* | nonstopux*)
12429   symcode='[BCDEGRST]'
12430   ;;
12431 osf*)
12432   symcode='[BCDEGQRST]'
12433   ;;
12434 solaris*)
12435   symcode='[BDRT]'
12436   ;;
12437 sco3.2v5*)
12438   symcode='[DT]'
12439   ;;
12440 sysv4.2uw2*)
12441   symcode='[DT]'
12442   ;;
12443 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12444   symcode='[ABDT]'
12445   ;;
12446 sysv4)
12447   symcode='[DFNSTU]'
12448   ;;
12449 esac
12450
12451 # If we're using GNU nm, then use its standard symbol codes.
12452 case `$NM -V 2>&1` in
12453 *GNU* | *'with BFD'*)
12454   symcode='[ABCDGIRSTW]' ;;
12455 esac
12456
12457 # Transform an extracted symbol line into a proper C declaration.
12458 # Some systems (esp. on ia64) link data and code symbols differently,
12459 # so use this general approach.
12460 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12461
12462 # Transform an extracted symbol line into symbol name and symbol address
12463 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12464 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'"
12465
12466 # Handle CRLF in mingw tool chain
12467 opt_cr=
12468 case $build_os in
12469 mingw*)
12470   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12471   ;;
12472 esac
12473
12474 # Try without a prefix underscore, then with it.
12475 for ac_symprfx in "" "_"; do
12476
12477   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12478   symxfrm="\\1 $ac_symprfx\\2 \\2"
12479
12480   # Write the raw and C identifiers.
12481   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12482     # Fake it for dumpbin and say T for any non-static function
12483     # and D for any global variable.
12484     # Also find C++ and __fastcall symbols from MSVC++,
12485     # which start with @ or ?.
12486     lt_cv_sys_global_symbol_pipe="$AWK '"\
12487 "     {last_section=section; section=\$ 3};"\
12488 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12489 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12490 "     \$ 0!~/External *\|/{next};"\
12491 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12492 "     {if(hide[section]) next};"\
12493 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12494 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12495 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12496 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12497 "     ' prfx=^$ac_symprfx"
12498   else
12499     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12500   fi
12501   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12502
12503   # Check to see that the pipe works correctly.
12504   pipe_works=no
12505
12506   rm -f conftest*
12507   cat > conftest.$ac_ext <<_LT_EOF
12508 #ifdef __cplusplus
12509 extern "C" {
12510 #endif
12511 char nm_test_var;
12512 void nm_test_func(void);
12513 void nm_test_func(void){}
12514 #ifdef __cplusplus
12515 }
12516 #endif
12517 int main(){nm_test_var='a';nm_test_func();return(0);}
12518 _LT_EOF
12519
12520   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12521   (eval $ac_compile) 2>&5
12522   ac_status=$?
12523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12524   test $ac_status = 0; }; then
12525     # Now try to grab the symbols.
12526     nlist=conftest.nm
12527     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12528   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12529   ac_status=$?
12530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12531   test $ac_status = 0; } && test -s "$nlist"; then
12532       # Try sorting and uniquifying the output.
12533       if sort "$nlist" | uniq > "$nlist"T; then
12534         mv -f "$nlist"T "$nlist"
12535       else
12536         rm -f "$nlist"T
12537       fi
12538
12539       # Make sure that we snagged all the symbols we need.
12540       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12541         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12542           cat <<_LT_EOF > conftest.$ac_ext
12543 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12544 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12545 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12546    relocations are performed -- see ld's documentation on pseudo-relocs.  */
12547 # define LT_DLSYM_CONST
12548 #elif defined(__osf__)
12549 /* This system does not cope well with relocations in const data.  */
12550 # define LT_DLSYM_CONST
12551 #else
12552 # define LT_DLSYM_CONST const
12553 #endif
12554
12555 #ifdef __cplusplus
12556 extern "C" {
12557 #endif
12558
12559 _LT_EOF
12560           # Now generate the symbol file.
12561           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12562
12563           cat <<_LT_EOF >> conftest.$ac_ext
12564
12565 /* The mapping between symbol names and symbols.  */
12566 LT_DLSYM_CONST struct {
12567   const char *name;
12568   void       *address;
12569 }
12570 lt__PROGRAM__LTX_preloaded_symbols[] =
12571 {
12572   { "@PROGRAM@", (void *) 0 },
12573 _LT_EOF
12574           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12575           cat <<\_LT_EOF >> conftest.$ac_ext
12576   {0, (void *) 0}
12577 };
12578
12579 /* This works around a problem in FreeBSD linker */
12580 #ifdef FREEBSD_WORKAROUND
12581 static const void *lt_preloaded_setup() {
12582   return lt__PROGRAM__LTX_preloaded_symbols;
12583 }
12584 #endif
12585
12586 #ifdef __cplusplus
12587 }
12588 #endif
12589 _LT_EOF
12590           # Now try linking the two files.
12591           mv conftest.$ac_objext conftstm.$ac_objext
12592           lt_globsym_save_LIBS=$LIBS
12593           lt_globsym_save_CFLAGS=$CFLAGS
12594           LIBS="conftstm.$ac_objext"
12595           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12596           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12597   (eval $ac_link) 2>&5
12598   ac_status=$?
12599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12600   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12601             pipe_works=yes
12602           fi
12603           LIBS=$lt_globsym_save_LIBS
12604           CFLAGS=$lt_globsym_save_CFLAGS
12605         else
12606           echo "cannot find nm_test_func in $nlist" >&5
12607         fi
12608       else
12609         echo "cannot find nm_test_var in $nlist" >&5
12610       fi
12611     else
12612       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12613     fi
12614   else
12615     echo "$progname: failed program was:" >&5
12616     cat conftest.$ac_ext >&5
12617   fi
12618   rm -rf conftest* conftst*
12619
12620   # Do not use the global_symbol_pipe unless it works.
12621   if test "$pipe_works" = yes; then
12622     break
12623   else
12624     lt_cv_sys_global_symbol_pipe=
12625   fi
12626 done
12627
12628 fi
12629
12630 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12631   lt_cv_sys_global_symbol_to_cdecl=
12632 fi
12633 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12635 $as_echo "failed" >&6; }
12636 else
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12638 $as_echo "ok" >&6; }
12639 fi
12640
12641 # Response file support.
12642 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12643   nm_file_list_spec='@'
12644 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12645   nm_file_list_spec='@'
12646 fi
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12675 $as_echo_n "checking for sysroot... " >&6; }
12676
12677 # Check whether --with-sysroot was given.
12678 if test "${with_sysroot+set}" = set; then :
12679   withval=$with_sysroot;
12680 else
12681   with_sysroot=no
12682 fi
12683
12684
12685 lt_sysroot=
12686 case ${with_sysroot} in #(
12687  yes)
12688    if test "$GCC" = yes; then
12689      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12690    fi
12691    ;; #(
12692  /*)
12693    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12694    ;; #(
12695  no|'')
12696    ;; #(
12697  *)
12698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12699 $as_echo "${with_sysroot}" >&6; }
12700    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12701    ;;
12702 esac
12703
12704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12705 $as_echo "${lt_sysroot:-no}" >&6; }
12706
12707
12708
12709
12710
12711 # Check whether --enable-libtool-lock was given.
12712 if test "${enable_libtool_lock+set}" = set; then :
12713   enableval=$enable_libtool_lock;
12714 fi
12715
12716 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12717
12718 # Some flags need to be propagated to the compiler or linker for good
12719 # libtool support.
12720 case $host in
12721 ia64-*-hpux*)
12722   # Find out which ABI we are using.
12723   echo 'int i;' > conftest.$ac_ext
12724   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12725   (eval $ac_compile) 2>&5
12726   ac_status=$?
12727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12728   test $ac_status = 0; }; then
12729     case `/usr/bin/file conftest.$ac_objext` in
12730       *ELF-32*)
12731         HPUX_IA64_MODE="32"
12732         ;;
12733       *ELF-64*)
12734         HPUX_IA64_MODE="64"
12735         ;;
12736     esac
12737   fi
12738   rm -rf conftest*
12739   ;;
12740 *-*-irix6*)
12741   # Find out which ABI we are using.
12742   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12743   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12744   (eval $ac_compile) 2>&5
12745   ac_status=$?
12746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12747   test $ac_status = 0; }; then
12748     if test "$lt_cv_prog_gnu_ld" = yes; then
12749       case `/usr/bin/file conftest.$ac_objext` in
12750         *32-bit*)
12751           LD="${LD-ld} -melf32bsmip"
12752           ;;
12753         *N32*)
12754           LD="${LD-ld} -melf32bmipn32"
12755           ;;
12756         *64-bit*)
12757           LD="${LD-ld} -melf64bmip"
12758         ;;
12759       esac
12760     else
12761       case `/usr/bin/file conftest.$ac_objext` in
12762         *32-bit*)
12763           LD="${LD-ld} -32"
12764           ;;
12765         *N32*)
12766           LD="${LD-ld} -n32"
12767           ;;
12768         *64-bit*)
12769           LD="${LD-ld} -64"
12770           ;;
12771       esac
12772     fi
12773   fi
12774   rm -rf conftest*
12775   ;;
12776
12777 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12778 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12779   # Find out which ABI we are using.
12780   echo 'int i;' > conftest.$ac_ext
12781   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12782   (eval $ac_compile) 2>&5
12783   ac_status=$?
12784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12785   test $ac_status = 0; }; then
12786     case `/usr/bin/file conftest.o` in
12787       *32-bit*)
12788         case $host in
12789           x86_64-*kfreebsd*-gnu)
12790             LD="${LD-ld} -m elf_i386_fbsd"
12791             ;;
12792           x86_64-*linux*)
12793             LD="${LD-ld} -m elf_i386"
12794             ;;
12795           ppc64-*linux*|powerpc64-*linux*)
12796             LD="${LD-ld} -m elf32ppclinux"
12797             ;;
12798           s390x-*linux*)
12799             LD="${LD-ld} -m elf_s390"
12800             ;;
12801           sparc64-*linux*)
12802             LD="${LD-ld} -m elf32_sparc"
12803             ;;
12804         esac
12805         ;;
12806       *64-bit*)
12807         case $host in
12808           x86_64-*kfreebsd*-gnu)
12809             LD="${LD-ld} -m elf_x86_64_fbsd"
12810             ;;
12811           x86_64-*linux*)
12812             LD="${LD-ld} -m elf_x86_64"
12813             ;;
12814           ppc*-*linux*|powerpc*-*linux*)
12815             LD="${LD-ld} -m elf64ppc"
12816             ;;
12817           s390*-*linux*|s390*-*tpf*)
12818             LD="${LD-ld} -m elf64_s390"
12819             ;;
12820           sparc*-*linux*)
12821             LD="${LD-ld} -m elf64_sparc"
12822             ;;
12823         esac
12824         ;;
12825     esac
12826   fi
12827   rm -rf conftest*
12828   ;;
12829
12830 *-*-sco3.2v5*)
12831   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12832   SAVE_CFLAGS="$CFLAGS"
12833   CFLAGS="$CFLAGS -belf"
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12835 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12836 if ${lt_cv_cc_needs_belf+:} false; then :
12837   $as_echo_n "(cached) " >&6
12838 else
12839   ac_ext=c
12840 ac_cpp='$CPP $CPPFLAGS'
12841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12844
12845      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h.  */
12847
12848 int
12849 main ()
12850 {
12851
12852   ;
12853   return 0;
12854 }
12855 _ACEOF
12856 if ac_fn_c_try_link "$LINENO"; then :
12857   lt_cv_cc_needs_belf=yes
12858 else
12859   lt_cv_cc_needs_belf=no
12860 fi
12861 rm -f core conftest.err conftest.$ac_objext \
12862     conftest$ac_exeext conftest.$ac_ext
12863      ac_ext=c
12864 ac_cpp='$CPP $CPPFLAGS'
12865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12868
12869 fi
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12871 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12872   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12873     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12874     CFLAGS="$SAVE_CFLAGS"
12875   fi
12876   ;;
12877 *-*solaris*)
12878   # Find out which ABI we are using.
12879   echo 'int i;' > conftest.$ac_ext
12880   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12881   (eval $ac_compile) 2>&5
12882   ac_status=$?
12883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12884   test $ac_status = 0; }; then
12885     case `/usr/bin/file conftest.o` in
12886     *64-bit*)
12887       case $lt_cv_prog_gnu_ld in
12888       yes*)
12889         case $host in
12890         i?86-*-solaris*)
12891           LD="${LD-ld} -m elf_x86_64"
12892           ;;
12893         sparc*-*-solaris*)
12894           LD="${LD-ld} -m elf64_sparc"
12895           ;;
12896         esac
12897         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12898         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12899           LD="${LD-ld}_sol2"
12900         fi
12901         ;;
12902       *)
12903         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12904           LD="${LD-ld} -64"
12905         fi
12906         ;;
12907       esac
12908       ;;
12909     esac
12910   fi
12911   rm -rf conftest*
12912   ;;
12913 esac
12914
12915 need_locks="$enable_libtool_lock"
12916
12917 if test -n "$ac_tool_prefix"; then
12918   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12919 set dummy ${ac_tool_prefix}mt; ac_word=$2
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921 $as_echo_n "checking for $ac_word... " >&6; }
12922 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12923   $as_echo_n "(cached) " >&6
12924 else
12925   if test -n "$MANIFEST_TOOL"; then
12926   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12927 else
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $PATH
12930 do
12931   IFS=$as_save_IFS
12932   test -z "$as_dir" && as_dir=.
12933     for ac_exec_ext in '' $ac_executable_extensions; do
12934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12935     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12937     break 2
12938   fi
12939 done
12940   done
12941 IFS=$as_save_IFS
12942
12943 fi
12944 fi
12945 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12946 if test -n "$MANIFEST_TOOL"; then
12947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12948 $as_echo "$MANIFEST_TOOL" >&6; }
12949 else
12950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12952 fi
12953
12954
12955 fi
12956 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12957   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12958   # Extract the first word of "mt", so it can be a program name with args.
12959 set dummy mt; ac_word=$2
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 $as_echo_n "checking for $ac_word... " >&6; }
12962 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12963   $as_echo_n "(cached) " >&6
12964 else
12965   if test -n "$ac_ct_MANIFEST_TOOL"; then
12966   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12967 else
12968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969 for as_dir in $PATH
12970 do
12971   IFS=$as_save_IFS
12972   test -z "$as_dir" && as_dir=.
12973     for ac_exec_ext in '' $ac_executable_extensions; do
12974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12975     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12977     break 2
12978   fi
12979 done
12980   done
12981 IFS=$as_save_IFS
12982
12983 fi
12984 fi
12985 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12986 if test -n "$ac_ct_MANIFEST_TOOL"; then
12987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12988 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12989 else
12990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 $as_echo "no" >&6; }
12992 fi
12993
12994   if test "x$ac_ct_MANIFEST_TOOL" = x; then
12995     MANIFEST_TOOL=":"
12996   else
12997     case $cross_compiling:$ac_tool_warned in
12998 yes:)
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13001 ac_tool_warned=yes ;;
13002 esac
13003     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13004   fi
13005 else
13006   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13007 fi
13008
13009 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13011 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13012 if ${lt_cv_path_mainfest_tool+:} false; then :
13013   $as_echo_n "(cached) " >&6
13014 else
13015   lt_cv_path_mainfest_tool=no
13016   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13017   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13018   cat conftest.err >&5
13019   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13020     lt_cv_path_mainfest_tool=yes
13021   fi
13022   rm -f conftest*
13023 fi
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13025 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13026 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13027   MANIFEST_TOOL=:
13028 fi
13029
13030
13031
13032
13033
13034
13035   case $host_os in
13036     rhapsody* | darwin*)
13037     if test -n "$ac_tool_prefix"; then
13038   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13039 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13041 $as_echo_n "checking for $ac_word... " >&6; }
13042 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13043   $as_echo_n "(cached) " >&6
13044 else
13045   if test -n "$DSYMUTIL"; then
13046   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13047 else
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $PATH
13050 do
13051   IFS=$as_save_IFS
13052   test -z "$as_dir" && as_dir=.
13053     for ac_exec_ext in '' $ac_executable_extensions; do
13054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13055     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13057     break 2
13058   fi
13059 done
13060   done
13061 IFS=$as_save_IFS
13062
13063 fi
13064 fi
13065 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13066 if test -n "$DSYMUTIL"; then
13067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13068 $as_echo "$DSYMUTIL" >&6; }
13069 else
13070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13072 fi
13073
13074
13075 fi
13076 if test -z "$ac_cv_prog_DSYMUTIL"; then
13077   ac_ct_DSYMUTIL=$DSYMUTIL
13078   # Extract the first word of "dsymutil", so it can be a program name with args.
13079 set dummy dsymutil; ac_word=$2
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081 $as_echo_n "checking for $ac_word... " >&6; }
13082 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13083   $as_echo_n "(cached) " >&6
13084 else
13085   if test -n "$ac_ct_DSYMUTIL"; then
13086   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13087 else
13088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13090 do
13091   IFS=$as_save_IFS
13092   test -z "$as_dir" && as_dir=.
13093     for ac_exec_ext in '' $ac_executable_extensions; do
13094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13095     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097     break 2
13098   fi
13099 done
13100   done
13101 IFS=$as_save_IFS
13102
13103 fi
13104 fi
13105 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13106 if test -n "$ac_ct_DSYMUTIL"; then
13107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13108 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13109 else
13110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111 $as_echo "no" >&6; }
13112 fi
13113
13114   if test "x$ac_ct_DSYMUTIL" = x; then
13115     DSYMUTIL=":"
13116   else
13117     case $cross_compiling:$ac_tool_warned in
13118 yes:)
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13121 ac_tool_warned=yes ;;
13122 esac
13123     DSYMUTIL=$ac_ct_DSYMUTIL
13124   fi
13125 else
13126   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13127 fi
13128
13129     if test -n "$ac_tool_prefix"; then
13130   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13131 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if ${ac_cv_prog_NMEDIT+:} false; then :
13135   $as_echo_n "(cached) " >&6
13136 else
13137   if test -n "$NMEDIT"; then
13138   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13139 else
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13142 do
13143   IFS=$as_save_IFS
13144   test -z "$as_dir" && as_dir=.
13145     for ac_exec_ext in '' $ac_executable_extensions; do
13146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13147     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149     break 2
13150   fi
13151 done
13152   done
13153 IFS=$as_save_IFS
13154
13155 fi
13156 fi
13157 NMEDIT=$ac_cv_prog_NMEDIT
13158 if test -n "$NMEDIT"; then
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13160 $as_echo "$NMEDIT" >&6; }
13161 else
13162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13164 fi
13165
13166
13167 fi
13168 if test -z "$ac_cv_prog_NMEDIT"; then
13169   ac_ct_NMEDIT=$NMEDIT
13170   # Extract the first word of "nmedit", so it can be a program name with args.
13171 set dummy nmedit; ac_word=$2
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13173 $as_echo_n "checking for $ac_word... " >&6; }
13174 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13175   $as_echo_n "(cached) " >&6
13176 else
13177   if test -n "$ac_ct_NMEDIT"; then
13178   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13179 else
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 for as_dir in $PATH
13182 do
13183   IFS=$as_save_IFS
13184   test -z "$as_dir" && as_dir=.
13185     for ac_exec_ext in '' $ac_executable_extensions; do
13186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13187     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13189     break 2
13190   fi
13191 done
13192   done
13193 IFS=$as_save_IFS
13194
13195 fi
13196 fi
13197 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13198 if test -n "$ac_ct_NMEDIT"; then
13199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13200 $as_echo "$ac_ct_NMEDIT" >&6; }
13201 else
13202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203 $as_echo "no" >&6; }
13204 fi
13205
13206   if test "x$ac_ct_NMEDIT" = x; then
13207     NMEDIT=":"
13208   else
13209     case $cross_compiling:$ac_tool_warned in
13210 yes:)
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13213 ac_tool_warned=yes ;;
13214 esac
13215     NMEDIT=$ac_ct_NMEDIT
13216   fi
13217 else
13218   NMEDIT="$ac_cv_prog_NMEDIT"
13219 fi
13220
13221     if test -n "$ac_tool_prefix"; then
13222   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13223 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if ${ac_cv_prog_LIPO+:} false; then :
13227   $as_echo_n "(cached) " >&6
13228 else
13229   if test -n "$LIPO"; then
13230   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13231 else
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13234 do
13235   IFS=$as_save_IFS
13236   test -z "$as_dir" && as_dir=.
13237     for ac_exec_ext in '' $ac_executable_extensions; do
13238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13239     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241     break 2
13242   fi
13243 done
13244   done
13245 IFS=$as_save_IFS
13246
13247 fi
13248 fi
13249 LIPO=$ac_cv_prog_LIPO
13250 if test -n "$LIPO"; then
13251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13252 $as_echo "$LIPO" >&6; }
13253 else
13254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13256 fi
13257
13258
13259 fi
13260 if test -z "$ac_cv_prog_LIPO"; then
13261   ac_ct_LIPO=$LIPO
13262   # Extract the first word of "lipo", so it can be a program name with args.
13263 set dummy lipo; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265 $as_echo_n "checking for $ac_word... " >&6; }
13266 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13267   $as_echo_n "(cached) " >&6
13268 else
13269   if test -n "$ac_ct_LIPO"; then
13270   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13271 else
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13274 do
13275   IFS=$as_save_IFS
13276   test -z "$as_dir" && as_dir=.
13277     for ac_exec_ext in '' $ac_executable_extensions; do
13278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13279     ac_cv_prog_ac_ct_LIPO="lipo"
13280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281     break 2
13282   fi
13283 done
13284   done
13285 IFS=$as_save_IFS
13286
13287 fi
13288 fi
13289 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13290 if test -n "$ac_ct_LIPO"; then
13291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13292 $as_echo "$ac_ct_LIPO" >&6; }
13293 else
13294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13296 fi
13297
13298   if test "x$ac_ct_LIPO" = x; then
13299     LIPO=":"
13300   else
13301     case $cross_compiling:$ac_tool_warned in
13302 yes:)
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13305 ac_tool_warned=yes ;;
13306 esac
13307     LIPO=$ac_ct_LIPO
13308   fi
13309 else
13310   LIPO="$ac_cv_prog_LIPO"
13311 fi
13312
13313     if test -n "$ac_tool_prefix"; then
13314   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13315 set dummy ${ac_tool_prefix}otool; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if ${ac_cv_prog_OTOOL+:} false; then :
13319   $as_echo_n "(cached) " >&6
13320 else
13321   if test -n "$OTOOL"; then
13322   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13323 else
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13326 do
13327   IFS=$as_save_IFS
13328   test -z "$as_dir" && as_dir=.
13329     for ac_exec_ext in '' $ac_executable_extensions; do
13330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13331     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333     break 2
13334   fi
13335 done
13336   done
13337 IFS=$as_save_IFS
13338
13339 fi
13340 fi
13341 OTOOL=$ac_cv_prog_OTOOL
13342 if test -n "$OTOOL"; then
13343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13344 $as_echo "$OTOOL" >&6; }
13345 else
13346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13348 fi
13349
13350
13351 fi
13352 if test -z "$ac_cv_prog_OTOOL"; then
13353   ac_ct_OTOOL=$OTOOL
13354   # Extract the first word of "otool", so it can be a program name with args.
13355 set dummy otool; ac_word=$2
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357 $as_echo_n "checking for $ac_word... " >&6; }
13358 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13359   $as_echo_n "(cached) " >&6
13360 else
13361   if test -n "$ac_ct_OTOOL"; then
13362   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13363 else
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13366 do
13367   IFS=$as_save_IFS
13368   test -z "$as_dir" && as_dir=.
13369     for ac_exec_ext in '' $ac_executable_extensions; do
13370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13371     ac_cv_prog_ac_ct_OTOOL="otool"
13372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373     break 2
13374   fi
13375 done
13376   done
13377 IFS=$as_save_IFS
13378
13379 fi
13380 fi
13381 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13382 if test -n "$ac_ct_OTOOL"; then
13383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13384 $as_echo "$ac_ct_OTOOL" >&6; }
13385 else
13386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13388 fi
13389
13390   if test "x$ac_ct_OTOOL" = x; then
13391     OTOOL=":"
13392   else
13393     case $cross_compiling:$ac_tool_warned in
13394 yes:)
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13397 ac_tool_warned=yes ;;
13398 esac
13399     OTOOL=$ac_ct_OTOOL
13400   fi
13401 else
13402   OTOOL="$ac_cv_prog_OTOOL"
13403 fi
13404
13405     if test -n "$ac_tool_prefix"; then
13406   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13407 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13409 $as_echo_n "checking for $ac_word... " >&6; }
13410 if ${ac_cv_prog_OTOOL64+:} false; then :
13411   $as_echo_n "(cached) " >&6
13412 else
13413   if test -n "$OTOOL64"; then
13414   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13415 else
13416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417 for as_dir in $PATH
13418 do
13419   IFS=$as_save_IFS
13420   test -z "$as_dir" && as_dir=.
13421     for ac_exec_ext in '' $ac_executable_extensions; do
13422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13423     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13425     break 2
13426   fi
13427 done
13428   done
13429 IFS=$as_save_IFS
13430
13431 fi
13432 fi
13433 OTOOL64=$ac_cv_prog_OTOOL64
13434 if test -n "$OTOOL64"; then
13435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13436 $as_echo "$OTOOL64" >&6; }
13437 else
13438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439 $as_echo "no" >&6; }
13440 fi
13441
13442
13443 fi
13444 if test -z "$ac_cv_prog_OTOOL64"; then
13445   ac_ct_OTOOL64=$OTOOL64
13446   # Extract the first word of "otool64", so it can be a program name with args.
13447 set dummy otool64; ac_word=$2
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449 $as_echo_n "checking for $ac_word... " >&6; }
13450 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13451   $as_echo_n "(cached) " >&6
13452 else
13453   if test -n "$ac_ct_OTOOL64"; then
13454   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13455 else
13456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457 for as_dir in $PATH
13458 do
13459   IFS=$as_save_IFS
13460   test -z "$as_dir" && as_dir=.
13461     for ac_exec_ext in '' $ac_executable_extensions; do
13462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13463     ac_cv_prog_ac_ct_OTOOL64="otool64"
13464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13465     break 2
13466   fi
13467 done
13468   done
13469 IFS=$as_save_IFS
13470
13471 fi
13472 fi
13473 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13474 if test -n "$ac_ct_OTOOL64"; then
13475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13476 $as_echo "$ac_ct_OTOOL64" >&6; }
13477 else
13478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 $as_echo "no" >&6; }
13480 fi
13481
13482   if test "x$ac_ct_OTOOL64" = x; then
13483     OTOOL64=":"
13484   else
13485     case $cross_compiling:$ac_tool_warned in
13486 yes:)
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13489 ac_tool_warned=yes ;;
13490 esac
13491     OTOOL64=$ac_ct_OTOOL64
13492   fi
13493 else
13494   OTOOL64="$ac_cv_prog_OTOOL64"
13495 fi
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13524 $as_echo_n "checking for -single_module linker flag... " >&6; }
13525 if ${lt_cv_apple_cc_single_mod+:} false; then :
13526   $as_echo_n "(cached) " >&6
13527 else
13528   lt_cv_apple_cc_single_mod=no
13529       if test -z "${LT_MULTI_MODULE}"; then
13530         # By default we will add the -single_module flag. You can override
13531         # by either setting the environment variable LT_MULTI_MODULE
13532         # non-empty at configure time, or by adding -multi_module to the
13533         # link flags.
13534         rm -rf libconftest.dylib*
13535         echo "int foo(void){return 1;}" > conftest.c
13536         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13537 -dynamiclib -Wl,-single_module conftest.c" >&5
13538         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13539           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13540         _lt_result=$?
13541         # If there is a non-empty error log, and "single_module"
13542         # appears in it, assume the flag caused a linker warning
13543         if test -s conftest.err && $GREP single_module conftest.err; then
13544           cat conftest.err >&5
13545         # Otherwise, if the output was created with a 0 exit code from
13546         # the compiler, it worked.
13547         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13548           lt_cv_apple_cc_single_mod=yes
13549         else
13550           cat conftest.err >&5
13551         fi
13552         rm -rf libconftest.dylib*
13553         rm -f conftest.*
13554       fi
13555 fi
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13557 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13558
13559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13560 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13561 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13562   $as_echo_n "(cached) " >&6
13563 else
13564   lt_cv_ld_exported_symbols_list=no
13565       save_LDFLAGS=$LDFLAGS
13566       echo "_main" > conftest.sym
13567       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13568       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h.  */
13570
13571 int
13572 main ()
13573 {
13574
13575   ;
13576   return 0;
13577 }
13578 _ACEOF
13579 if ac_fn_c_try_link "$LINENO"; then :
13580   lt_cv_ld_exported_symbols_list=yes
13581 else
13582   lt_cv_ld_exported_symbols_list=no
13583 fi
13584 rm -f core conftest.err conftest.$ac_objext \
13585     conftest$ac_exeext conftest.$ac_ext
13586         LDFLAGS="$save_LDFLAGS"
13587
13588 fi
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13590 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13591
13592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13593 $as_echo_n "checking for -force_load linker flag... " >&6; }
13594 if ${lt_cv_ld_force_load+:} false; then :
13595   $as_echo_n "(cached) " >&6
13596 else
13597   lt_cv_ld_force_load=no
13598       cat > conftest.c << _LT_EOF
13599 int forced_loaded() { return 2;}
13600 _LT_EOF
13601       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13602       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13603       echo "$AR cru libconftest.a conftest.o" >&5
13604       $AR cru libconftest.a conftest.o 2>&5
13605       echo "$RANLIB libconftest.a" >&5
13606       $RANLIB libconftest.a 2>&5
13607       cat > conftest.c << _LT_EOF
13608 int main() { return 0;}
13609 _LT_EOF
13610       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13611       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13612       _lt_result=$?
13613       if test -s conftest.err && $GREP force_load conftest.err; then
13614         cat conftest.err >&5
13615       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13616         lt_cv_ld_force_load=yes
13617       else
13618         cat conftest.err >&5
13619       fi
13620         rm -f conftest.err libconftest.a conftest conftest.c
13621         rm -rf conftest.dSYM
13622
13623 fi
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13625 $as_echo "$lt_cv_ld_force_load" >&6; }
13626     case $host_os in
13627     rhapsody* | darwin1.[012])
13628       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13629     darwin1.*)
13630       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13631     darwin*) # darwin 5.x on
13632       # if running on 10.5 or later, the deployment target defaults
13633       # to the OS version, if on x86, and 10.4, the deployment
13634       # target defaults to 10.4. Don't you love it?
13635       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13636         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13637           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13638         10.[012]*)
13639           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13640         10.*)
13641           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13642       esac
13643     ;;
13644   esac
13645     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13646       _lt_dar_single_mod='$single_module'
13647     fi
13648     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13649       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13650     else
13651       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13652     fi
13653     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13654       _lt_dsymutil='~$DSYMUTIL $lib || :'
13655     else
13656       _lt_dsymutil=
13657     fi
13658     ;;
13659   esac
13660
13661 for ac_header in dlfcn.h
13662 do :
13663   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13664 "
13665 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13666   cat >>confdefs.h <<_ACEOF
13667 #define HAVE_DLFCN_H 1
13668 _ACEOF
13669
13670 fi
13671
13672 done
13673
13674
13675
13676
13677
13678 # Set options
13679
13680
13681
13682         enable_dlopen=no
13683
13684
13685   enable_win32_dll=no
13686
13687
13688             # Check whether --enable-shared was given.
13689 if test "${enable_shared+set}" = set; then :
13690   enableval=$enable_shared; p=${PACKAGE-default}
13691     case $enableval in
13692     yes) enable_shared=yes ;;
13693     no) enable_shared=no ;;
13694     *)
13695       enable_shared=no
13696       # Look at the argument we got.  We use all the common list separators.
13697       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13698       for pkg in $enableval; do
13699         IFS="$lt_save_ifs"
13700         if test "X$pkg" = "X$p"; then
13701           enable_shared=yes
13702         fi
13703       done
13704       IFS="$lt_save_ifs"
13705       ;;
13706     esac
13707 else
13708   enable_shared=yes
13709 fi
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721 # Check whether --with-pic was given.
13722 if test "${with_pic+set}" = set; then :
13723   withval=$with_pic; lt_p=${PACKAGE-default}
13724     case $withval in
13725     yes|no) pic_mode=$withval ;;
13726     *)
13727       pic_mode=default
13728       # Look at the argument we got.  We use all the common list separators.
13729       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13730       for lt_pkg in $withval; do
13731         IFS="$lt_save_ifs"
13732         if test "X$lt_pkg" = "X$lt_p"; then
13733           pic_mode=yes
13734         fi
13735       done
13736       IFS="$lt_save_ifs"
13737       ;;
13738     esac
13739 else
13740   pic_mode=default
13741 fi
13742
13743
13744 test -z "$pic_mode" && pic_mode=default
13745
13746
13747
13748
13749
13750
13751
13752   # Check whether --enable-fast-install was given.
13753 if test "${enable_fast_install+set}" = set; then :
13754   enableval=$enable_fast_install; p=${PACKAGE-default}
13755     case $enableval in
13756     yes) enable_fast_install=yes ;;
13757     no) enable_fast_install=no ;;
13758     *)
13759       enable_fast_install=no
13760       # Look at the argument we got.  We use all the common list separators.
13761       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13762       for pkg in $enableval; do
13763         IFS="$lt_save_ifs"
13764         if test "X$pkg" = "X$p"; then
13765           enable_fast_install=yes
13766         fi
13767       done
13768       IFS="$lt_save_ifs"
13769       ;;
13770     esac
13771 else
13772   enable_fast_install=yes
13773 fi
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785 # This can be used to rebuild libtool when needed
13786 LIBTOOL_DEPS="$ltmain"
13787
13788 # Always use our own libtool.
13789 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820 test -z "$LN_S" && LN_S="ln -s"
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835 if test -n "${ZSH_VERSION+set}" ; then
13836    setopt NO_GLOB_SUBST
13837 fi
13838
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13840 $as_echo_n "checking for objdir... " >&6; }
13841 if ${lt_cv_objdir+:} false; then :
13842   $as_echo_n "(cached) " >&6
13843 else
13844   rm -f .libs 2>/dev/null
13845 mkdir .libs 2>/dev/null
13846 if test -d .libs; then
13847   lt_cv_objdir=.libs
13848 else
13849   # MS-DOS does not allow filenames that begin with a dot.
13850   lt_cv_objdir=_libs
13851 fi
13852 rmdir .libs 2>/dev/null
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13855 $as_echo "$lt_cv_objdir" >&6; }
13856 objdir=$lt_cv_objdir
13857
13858
13859
13860
13861
13862 cat >>confdefs.h <<_ACEOF
13863 #define LT_OBJDIR "$lt_cv_objdir/"
13864 _ACEOF
13865
13866
13867
13868
13869 case $host_os in
13870 aix3*)
13871   # AIX sometimes has problems with the GCC collect2 program.  For some
13872   # reason, if we set the COLLECT_NAMES environment variable, the problems
13873   # vanish in a puff of smoke.
13874   if test "X${COLLECT_NAMES+set}" != Xset; then
13875     COLLECT_NAMES=
13876     export COLLECT_NAMES
13877   fi
13878   ;;
13879 esac
13880
13881 # Global variables:
13882 ofile=libtool
13883 can_build_shared=yes
13884
13885 # All known linkers require a `.a' archive for static linking (except MSVC,
13886 # which needs '.lib').
13887 libext=a
13888
13889 with_gnu_ld="$lt_cv_prog_gnu_ld"
13890
13891 old_CC="$CC"
13892 old_CFLAGS="$CFLAGS"
13893
13894 # Set sane defaults for various variables
13895 test -z "$CC" && CC=cc
13896 test -z "$LTCC" && LTCC=$CC
13897 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13898 test -z "$LD" && LD=ld
13899 test -z "$ac_objext" && ac_objext=o
13900
13901 for cc_temp in $compiler""; do
13902   case $cc_temp in
13903     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13904     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13905     \-*) ;;
13906     *) break;;
13907   esac
13908 done
13909 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13910
13911
13912 # Only perform the check for file, if the check method requires it
13913 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13914 case $deplibs_check_method in
13915 file_magic*)
13916   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13918 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13919 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13920   $as_echo_n "(cached) " >&6
13921 else
13922   case $MAGIC_CMD in
13923 [\\/*] |  ?:[\\/]*)
13924   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13925   ;;
13926 *)
13927   lt_save_MAGIC_CMD="$MAGIC_CMD"
13928   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13929   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13930   for ac_dir in $ac_dummy; do
13931     IFS="$lt_save_ifs"
13932     test -z "$ac_dir" && ac_dir=.
13933     if test -f $ac_dir/${ac_tool_prefix}file; then
13934       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13935       if test -n "$file_magic_test_file"; then
13936         case $deplibs_check_method in
13937         "file_magic "*)
13938           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13939           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13940           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13941             $EGREP "$file_magic_regex" > /dev/null; then
13942             :
13943           else
13944             cat <<_LT_EOF 1>&2
13945
13946 *** Warning: the command libtool uses to detect shared libraries,
13947 *** $file_magic_cmd, produces output that libtool cannot recognize.
13948 *** The result is that libtool may fail to recognize shared libraries
13949 *** as such.  This will affect the creation of libtool libraries that
13950 *** depend on shared libraries, but programs linked with such libtool
13951 *** libraries will work regardless of this problem.  Nevertheless, you
13952 *** may want to report the problem to your system manager and/or to
13953 *** bug-libtool@gnu.org
13954
13955 _LT_EOF
13956           fi ;;
13957         esac
13958       fi
13959       break
13960     fi
13961   done
13962   IFS="$lt_save_ifs"
13963   MAGIC_CMD="$lt_save_MAGIC_CMD"
13964   ;;
13965 esac
13966 fi
13967
13968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13969 if test -n "$MAGIC_CMD"; then
13970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13971 $as_echo "$MAGIC_CMD" >&6; }
13972 else
13973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13974 $as_echo "no" >&6; }
13975 fi
13976
13977
13978
13979
13980
13981 if test -z "$lt_cv_path_MAGIC_CMD"; then
13982   if test -n "$ac_tool_prefix"; then
13983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13984 $as_echo_n "checking for file... " >&6; }
13985 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13986   $as_echo_n "(cached) " >&6
13987 else
13988   case $MAGIC_CMD in
13989 [\\/*] |  ?:[\\/]*)
13990   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13991   ;;
13992 *)
13993   lt_save_MAGIC_CMD="$MAGIC_CMD"
13994   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13995   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13996   for ac_dir in $ac_dummy; do
13997     IFS="$lt_save_ifs"
13998     test -z "$ac_dir" && ac_dir=.
13999     if test -f $ac_dir/file; then
14000       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14001       if test -n "$file_magic_test_file"; then
14002         case $deplibs_check_method in
14003         "file_magic "*)
14004           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14005           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14006           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14007             $EGREP "$file_magic_regex" > /dev/null; then
14008             :
14009           else
14010             cat <<_LT_EOF 1>&2
14011
14012 *** Warning: the command libtool uses to detect shared libraries,
14013 *** $file_magic_cmd, produces output that libtool cannot recognize.
14014 *** The result is that libtool may fail to recognize shared libraries
14015 *** as such.  This will affect the creation of libtool libraries that
14016 *** depend on shared libraries, but programs linked with such libtool
14017 *** libraries will work regardless of this problem.  Nevertheless, you
14018 *** may want to report the problem to your system manager and/or to
14019 *** bug-libtool@gnu.org
14020
14021 _LT_EOF
14022           fi ;;
14023         esac
14024       fi
14025       break
14026     fi
14027   done
14028   IFS="$lt_save_ifs"
14029   MAGIC_CMD="$lt_save_MAGIC_CMD"
14030   ;;
14031 esac
14032 fi
14033
14034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14035 if test -n "$MAGIC_CMD"; then
14036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14037 $as_echo "$MAGIC_CMD" >&6; }
14038 else
14039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040 $as_echo "no" >&6; }
14041 fi
14042
14043
14044   else
14045     MAGIC_CMD=:
14046   fi
14047 fi
14048
14049   fi
14050   ;;
14051 esac
14052
14053 # Use C for the default configuration in the libtool script
14054
14055 lt_save_CC="$CC"
14056 ac_ext=c
14057 ac_cpp='$CPP $CPPFLAGS'
14058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14061
14062
14063 # Source file extension for C test sources.
14064 ac_ext=c
14065
14066 # Object file extension for compiled C test sources.
14067 objext=o
14068 objext=$objext
14069
14070 # Code to be used in simple compile tests
14071 lt_simple_compile_test_code="int some_variable = 0;"
14072
14073 # Code to be used in simple link tests
14074 lt_simple_link_test_code='int main(){return(0);}'
14075
14076
14077
14078
14079
14080
14081
14082 # If no C compiler was specified, use CC.
14083 LTCC=${LTCC-"$CC"}
14084
14085 # If no C compiler flags were specified, use CFLAGS.
14086 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14087
14088 # Allow CC to be a program name with arguments.
14089 compiler=$CC
14090
14091 # Save the default compiler, since it gets overwritten when the other
14092 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14093 compiler_DEFAULT=$CC
14094
14095 # save warnings/boilerplate of simple test code
14096 ac_outfile=conftest.$ac_objext
14097 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14098 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14099 _lt_compiler_boilerplate=`cat conftest.err`
14100 $RM conftest*
14101
14102 ac_outfile=conftest.$ac_objext
14103 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14104 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14105 _lt_linker_boilerplate=`cat conftest.err`
14106 $RM -r conftest*
14107
14108
14109 if test -n "$compiler"; then
14110
14111 lt_prog_compiler_no_builtin_flag=
14112
14113 if test "$GCC" = yes; then
14114   case $cc_basename in
14115   nvcc*)
14116     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14117   *)
14118     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14119   esac
14120
14121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14122 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14123 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14124   $as_echo_n "(cached) " >&6
14125 else
14126   lt_cv_prog_compiler_rtti_exceptions=no
14127    ac_outfile=conftest.$ac_objext
14128    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14129    lt_compiler_flag="-fno-rtti -fno-exceptions"
14130    # Insert the option either (1) after the last *FLAGS variable, or
14131    # (2) before a word containing "conftest.", or (3) at the end.
14132    # Note that $ac_compile itself does not contain backslashes and begins
14133    # with a dollar sign (not a hyphen), so the echo should work correctly.
14134    # The option is referenced via a variable to avoid confusing sed.
14135    lt_compile=`echo "$ac_compile" | $SED \
14136    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14138    -e 's:$: $lt_compiler_flag:'`
14139    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14140    (eval "$lt_compile" 2>conftest.err)
14141    ac_status=$?
14142    cat conftest.err >&5
14143    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144    if (exit $ac_status) && test -s "$ac_outfile"; then
14145      # The compiler can only warn and ignore the option if not recognized
14146      # So say no if there are warnings other than the usual output.
14147      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14148      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14149      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14150        lt_cv_prog_compiler_rtti_exceptions=yes
14151      fi
14152    fi
14153    $RM conftest*
14154
14155 fi
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14157 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14158
14159 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14160     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14161 else
14162     :
14163 fi
14164
14165 fi
14166
14167
14168
14169
14170
14171
14172   lt_prog_compiler_wl=
14173 lt_prog_compiler_pic=
14174 lt_prog_compiler_static=
14175
14176
14177   if test "$GCC" = yes; then
14178     lt_prog_compiler_wl='-Wl,'
14179     lt_prog_compiler_static='-static'
14180
14181     case $host_os in
14182       aix*)
14183       # All AIX code is PIC.
14184       if test "$host_cpu" = ia64; then
14185         # AIX 5 now supports IA64 processor
14186         lt_prog_compiler_static='-Bstatic'
14187       fi
14188       ;;
14189
14190     amigaos*)
14191       case $host_cpu in
14192       powerpc)
14193             # see comment about AmigaOS4 .so support
14194             lt_prog_compiler_pic='-fPIC'
14195         ;;
14196       m68k)
14197             # FIXME: we need at least 68020 code to build shared libraries, but
14198             # adding the `-m68020' flag to GCC prevents building anything better,
14199             # like `-m68040'.
14200             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14201         ;;
14202       esac
14203       ;;
14204
14205     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14206       # PIC is the default for these OSes.
14207       ;;
14208
14209     mingw* | cygwin* | pw32* | os2* | cegcc*)
14210       # This hack is so that the source file can tell whether it is being
14211       # built for inclusion in a dll (and should export symbols for example).
14212       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14213       # (--disable-auto-import) libraries
14214       lt_prog_compiler_pic='-DDLL_EXPORT'
14215       ;;
14216
14217     darwin* | rhapsody*)
14218       # PIC is the default on this platform
14219       # Common symbols not allowed in MH_DYLIB files
14220       lt_prog_compiler_pic='-fno-common'
14221       ;;
14222
14223     haiku*)
14224       # PIC is the default for Haiku.
14225       # The "-static" flag exists, but is broken.
14226       lt_prog_compiler_static=
14227       ;;
14228
14229     hpux*)
14230       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14231       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14232       # sets the default TLS model and affects inlining.
14233       case $host_cpu in
14234       hppa*64*)
14235         # +Z the default
14236         ;;
14237       *)
14238         lt_prog_compiler_pic='-fPIC'
14239         ;;
14240       esac
14241       ;;
14242
14243     interix[3-9]*)
14244       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14245       # Instead, we relocate shared libraries at runtime.
14246       ;;
14247
14248     msdosdjgpp*)
14249       # Just because we use GCC doesn't mean we suddenly get shared libraries
14250       # on systems that don't support them.
14251       lt_prog_compiler_can_build_shared=no
14252       enable_shared=no
14253       ;;
14254
14255     *nto* | *qnx*)
14256       # QNX uses GNU C++, but need to define -shared option too, otherwise
14257       # it will coredump.
14258       lt_prog_compiler_pic='-fPIC -shared'
14259       ;;
14260
14261     sysv4*MP*)
14262       if test -d /usr/nec; then
14263         lt_prog_compiler_pic=-Kconform_pic
14264       fi
14265       ;;
14266
14267     *)
14268       lt_prog_compiler_pic='-fPIC'
14269       ;;
14270     esac
14271
14272     case $cc_basename in
14273     nvcc*) # Cuda Compiler Driver 2.2
14274       lt_prog_compiler_wl='-Xlinker '
14275       if test -n "$lt_prog_compiler_pic"; then
14276         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14277       fi
14278       ;;
14279     esac
14280   else
14281     # PORTME Check for flag to pass linker flags through the system compiler.
14282     case $host_os in
14283     aix*)
14284       lt_prog_compiler_wl='-Wl,'
14285       if test "$host_cpu" = ia64; then
14286         # AIX 5 now supports IA64 processor
14287         lt_prog_compiler_static='-Bstatic'
14288       else
14289         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14290       fi
14291       ;;
14292
14293     mingw* | cygwin* | pw32* | os2* | cegcc*)
14294       # This hack is so that the source file can tell whether it is being
14295       # built for inclusion in a dll (and should export symbols for example).
14296       lt_prog_compiler_pic='-DDLL_EXPORT'
14297       ;;
14298
14299     hpux9* | hpux10* | hpux11*)
14300       lt_prog_compiler_wl='-Wl,'
14301       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14302       # not for PA HP-UX.
14303       case $host_cpu in
14304       hppa*64*|ia64*)
14305         # +Z the default
14306         ;;
14307       *)
14308         lt_prog_compiler_pic='+Z'
14309         ;;
14310       esac
14311       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14312       lt_prog_compiler_static='${wl}-a ${wl}archive'
14313       ;;
14314
14315     irix5* | irix6* | nonstopux*)
14316       lt_prog_compiler_wl='-Wl,'
14317       # PIC (with -KPIC) is the default.
14318       lt_prog_compiler_static='-non_shared'
14319       ;;
14320
14321     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14322       case $cc_basename in
14323       # old Intel for x86_64 which still supported -KPIC.
14324       ecc*)
14325         lt_prog_compiler_wl='-Wl,'
14326         lt_prog_compiler_pic='-KPIC'
14327         lt_prog_compiler_static='-static'
14328         ;;
14329       # icc used to be incompatible with GCC.
14330       # ICC 10 doesn't accept -KPIC any more.
14331       icc* | ifort*)
14332         lt_prog_compiler_wl='-Wl,'
14333         lt_prog_compiler_pic='-fPIC'
14334         lt_prog_compiler_static='-static'
14335         ;;
14336       # Lahey Fortran 8.1.
14337       lf95*)
14338         lt_prog_compiler_wl='-Wl,'
14339         lt_prog_compiler_pic='--shared'
14340         lt_prog_compiler_static='--static'
14341         ;;
14342       nagfor*)
14343         # NAG Fortran compiler
14344         lt_prog_compiler_wl='-Wl,-Wl,,'
14345         lt_prog_compiler_pic='-PIC'
14346         lt_prog_compiler_static='-Bstatic'
14347         ;;
14348       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14349         # Portland Group compilers (*not* the Pentium gcc compiler,
14350         # which looks to be a dead project)
14351         lt_prog_compiler_wl='-Wl,'
14352         lt_prog_compiler_pic='-fpic'
14353         lt_prog_compiler_static='-Bstatic'
14354         ;;
14355       ccc*)
14356         lt_prog_compiler_wl='-Wl,'
14357         # All Alpha code is PIC.
14358         lt_prog_compiler_static='-non_shared'
14359         ;;
14360       xl* | bgxl* | bgf* | mpixl*)
14361         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14362         lt_prog_compiler_wl='-Wl,'
14363         lt_prog_compiler_pic='-qpic'
14364         lt_prog_compiler_static='-qstaticlink'
14365         ;;
14366       *)
14367         case `$CC -V 2>&1 | sed 5q` in
14368         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14369           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14370           lt_prog_compiler_pic='-KPIC'
14371           lt_prog_compiler_static='-Bstatic'
14372           lt_prog_compiler_wl=''
14373           ;;
14374         *Sun\ F* | *Sun*Fortran*)
14375           lt_prog_compiler_pic='-KPIC'
14376           lt_prog_compiler_static='-Bstatic'
14377           lt_prog_compiler_wl='-Qoption ld '
14378           ;;
14379         *Sun\ C*)
14380           # Sun C 5.9
14381           lt_prog_compiler_pic='-KPIC'
14382           lt_prog_compiler_static='-Bstatic'
14383           lt_prog_compiler_wl='-Wl,'
14384           ;;
14385         *Intel*\ [CF]*Compiler*)
14386           lt_prog_compiler_wl='-Wl,'
14387           lt_prog_compiler_pic='-fPIC'
14388           lt_prog_compiler_static='-static'
14389           ;;
14390         *Portland\ Group*)
14391           lt_prog_compiler_wl='-Wl,'
14392           lt_prog_compiler_pic='-fpic'
14393           lt_prog_compiler_static='-Bstatic'
14394           ;;
14395         esac
14396         ;;
14397       esac
14398       ;;
14399
14400     newsos6)
14401       lt_prog_compiler_pic='-KPIC'
14402       lt_prog_compiler_static='-Bstatic'
14403       ;;
14404
14405     *nto* | *qnx*)
14406       # QNX uses GNU C++, but need to define -shared option too, otherwise
14407       # it will coredump.
14408       lt_prog_compiler_pic='-fPIC -shared'
14409       ;;
14410
14411     osf3* | osf4* | osf5*)
14412       lt_prog_compiler_wl='-Wl,'
14413       # All OSF/1 code is PIC.
14414       lt_prog_compiler_static='-non_shared'
14415       ;;
14416
14417     rdos*)
14418       lt_prog_compiler_static='-non_shared'
14419       ;;
14420
14421     solaris*)
14422       lt_prog_compiler_pic='-KPIC'
14423       lt_prog_compiler_static='-Bstatic'
14424       case $cc_basename in
14425       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14426         lt_prog_compiler_wl='-Qoption ld ';;
14427       *)
14428         lt_prog_compiler_wl='-Wl,';;
14429       esac
14430       ;;
14431
14432     sunos4*)
14433       lt_prog_compiler_wl='-Qoption ld '
14434       lt_prog_compiler_pic='-PIC'
14435       lt_prog_compiler_static='-Bstatic'
14436       ;;
14437
14438     sysv4 | sysv4.2uw2* | sysv4.3*)
14439       lt_prog_compiler_wl='-Wl,'
14440       lt_prog_compiler_pic='-KPIC'
14441       lt_prog_compiler_static='-Bstatic'
14442       ;;
14443
14444     sysv4*MP*)
14445       if test -d /usr/nec ;then
14446         lt_prog_compiler_pic='-Kconform_pic'
14447         lt_prog_compiler_static='-Bstatic'
14448       fi
14449       ;;
14450
14451     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14452       lt_prog_compiler_wl='-Wl,'
14453       lt_prog_compiler_pic='-KPIC'
14454       lt_prog_compiler_static='-Bstatic'
14455       ;;
14456
14457     unicos*)
14458       lt_prog_compiler_wl='-Wl,'
14459       lt_prog_compiler_can_build_shared=no
14460       ;;
14461
14462     uts4*)
14463       lt_prog_compiler_pic='-pic'
14464       lt_prog_compiler_static='-Bstatic'
14465       ;;
14466
14467     *)
14468       lt_prog_compiler_can_build_shared=no
14469       ;;
14470     esac
14471   fi
14472
14473 case $host_os in
14474   # For platforms which do not support PIC, -DPIC is meaningless:
14475   *djgpp*)
14476     lt_prog_compiler_pic=
14477     ;;
14478   *)
14479     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14480     ;;
14481 esac
14482
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14484 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14485 if ${lt_cv_prog_compiler_pic+:} false; then :
14486   $as_echo_n "(cached) " >&6
14487 else
14488   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14489 fi
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14491 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14492 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14493
14494 #
14495 # Check to make sure the PIC flag actually works.
14496 #
14497 if test -n "$lt_prog_compiler_pic"; then
14498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14499 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14500 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14501   $as_echo_n "(cached) " >&6
14502 else
14503   lt_cv_prog_compiler_pic_works=no
14504    ac_outfile=conftest.$ac_objext
14505    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14506    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14507    # Insert the option either (1) after the last *FLAGS variable, or
14508    # (2) before a word containing "conftest.", or (3) at the end.
14509    # Note that $ac_compile itself does not contain backslashes and begins
14510    # with a dollar sign (not a hyphen), so the echo should work correctly.
14511    # The option is referenced via a variable to avoid confusing sed.
14512    lt_compile=`echo "$ac_compile" | $SED \
14513    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14514    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14515    -e 's:$: $lt_compiler_flag:'`
14516    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14517    (eval "$lt_compile" 2>conftest.err)
14518    ac_status=$?
14519    cat conftest.err >&5
14520    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521    if (exit $ac_status) && test -s "$ac_outfile"; then
14522      # The compiler can only warn and ignore the option if not recognized
14523      # So say no if there are warnings other than the usual output.
14524      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14525      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14526      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14527        lt_cv_prog_compiler_pic_works=yes
14528      fi
14529    fi
14530    $RM conftest*
14531
14532 fi
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14534 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14535
14536 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14537     case $lt_prog_compiler_pic in
14538      "" | " "*) ;;
14539      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14540      esac
14541 else
14542     lt_prog_compiler_pic=
14543      lt_prog_compiler_can_build_shared=no
14544 fi
14545
14546 fi
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558 #
14559 # Check to make sure the static flag actually works.
14560 #
14561 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14563 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14564 if ${lt_cv_prog_compiler_static_works+:} false; then :
14565   $as_echo_n "(cached) " >&6
14566 else
14567   lt_cv_prog_compiler_static_works=no
14568    save_LDFLAGS="$LDFLAGS"
14569    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14570    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14571    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14572      # The linker can only warn and ignore the option if not recognized
14573      # So say no if there are warnings
14574      if test -s conftest.err; then
14575        # Append any errors to the config.log.
14576        cat conftest.err 1>&5
14577        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14578        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14579        if diff conftest.exp conftest.er2 >/dev/null; then
14580          lt_cv_prog_compiler_static_works=yes
14581        fi
14582      else
14583        lt_cv_prog_compiler_static_works=yes
14584      fi
14585    fi
14586    $RM -r conftest*
14587    LDFLAGS="$save_LDFLAGS"
14588
14589 fi
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14591 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14592
14593 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14594     :
14595 else
14596     lt_prog_compiler_static=
14597 fi
14598
14599
14600
14601
14602
14603
14604
14605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14606 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14607 if ${lt_cv_prog_compiler_c_o+:} false; then :
14608   $as_echo_n "(cached) " >&6
14609 else
14610   lt_cv_prog_compiler_c_o=no
14611    $RM -r conftest 2>/dev/null
14612    mkdir conftest
14613    cd conftest
14614    mkdir out
14615    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14616
14617    lt_compiler_flag="-o out/conftest2.$ac_objext"
14618    # Insert the option either (1) after the last *FLAGS variable, or
14619    # (2) before a word containing "conftest.", or (3) at the end.
14620    # Note that $ac_compile itself does not contain backslashes and begins
14621    # with a dollar sign (not a hyphen), so the echo should work correctly.
14622    lt_compile=`echo "$ac_compile" | $SED \
14623    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14624    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14625    -e 's:$: $lt_compiler_flag:'`
14626    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14627    (eval "$lt_compile" 2>out/conftest.err)
14628    ac_status=$?
14629    cat out/conftest.err >&5
14630    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14632    then
14633      # The compiler can only warn and ignore the option if not recognized
14634      # So say no if there are warnings
14635      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14636      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14637      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14638        lt_cv_prog_compiler_c_o=yes
14639      fi
14640    fi
14641    chmod u+w . 2>&5
14642    $RM conftest*
14643    # SGI C++ compiler will create directory out/ii_files/ for
14644    # template instantiation
14645    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14646    $RM out/* && rmdir out
14647    cd ..
14648    $RM -r conftest
14649    $RM conftest*
14650
14651 fi
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14653 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14654
14655
14656
14657
14658
14659
14660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14661 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14662 if ${lt_cv_prog_compiler_c_o+:} false; then :
14663   $as_echo_n "(cached) " >&6
14664 else
14665   lt_cv_prog_compiler_c_o=no
14666    $RM -r conftest 2>/dev/null
14667    mkdir conftest
14668    cd conftest
14669    mkdir out
14670    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14671
14672    lt_compiler_flag="-o out/conftest2.$ac_objext"
14673    # Insert the option either (1) after the last *FLAGS variable, or
14674    # (2) before a word containing "conftest.", or (3) at the end.
14675    # Note that $ac_compile itself does not contain backslashes and begins
14676    # with a dollar sign (not a hyphen), so the echo should work correctly.
14677    lt_compile=`echo "$ac_compile" | $SED \
14678    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14679    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14680    -e 's:$: $lt_compiler_flag:'`
14681    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14682    (eval "$lt_compile" 2>out/conftest.err)
14683    ac_status=$?
14684    cat out/conftest.err >&5
14685    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14687    then
14688      # The compiler can only warn and ignore the option if not recognized
14689      # So say no if there are warnings
14690      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14691      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14692      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14693        lt_cv_prog_compiler_c_o=yes
14694      fi
14695    fi
14696    chmod u+w . 2>&5
14697    $RM conftest*
14698    # SGI C++ compiler will create directory out/ii_files/ for
14699    # template instantiation
14700    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14701    $RM out/* && rmdir out
14702    cd ..
14703    $RM -r conftest
14704    $RM conftest*
14705
14706 fi
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14708 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14709
14710
14711
14712
14713 hard_links="nottested"
14714 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14715   # do not overwrite the value of need_locks provided by the user
14716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14717 $as_echo_n "checking if we can lock with hard links... " >&6; }
14718   hard_links=yes
14719   $RM conftest*
14720   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14721   touch conftest.a
14722   ln conftest.a conftest.b 2>&5 || hard_links=no
14723   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14725 $as_echo "$hard_links" >&6; }
14726   if test "$hard_links" = no; then
14727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14728 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14729     need_locks=warn
14730   fi
14731 else
14732   need_locks=no
14733 fi
14734
14735
14736
14737
14738
14739
14740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14741 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14742
14743   runpath_var=
14744   allow_undefined_flag=
14745   always_export_symbols=no
14746   archive_cmds=
14747   archive_expsym_cmds=
14748   compiler_needs_object=no
14749   enable_shared_with_static_runtimes=no
14750   export_dynamic_flag_spec=
14751   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14752   hardcode_automatic=no
14753   hardcode_direct=no
14754   hardcode_direct_absolute=no
14755   hardcode_libdir_flag_spec=
14756   hardcode_libdir_separator=
14757   hardcode_minus_L=no
14758   hardcode_shlibpath_var=unsupported
14759   inherit_rpath=no
14760   link_all_deplibs=unknown
14761   module_cmds=
14762   module_expsym_cmds=
14763   old_archive_from_new_cmds=
14764   old_archive_from_expsyms_cmds=
14765   thread_safe_flag_spec=
14766   whole_archive_flag_spec=
14767   # include_expsyms should be a list of space-separated symbols to be *always*
14768   # included in the symbol list
14769   include_expsyms=
14770   # exclude_expsyms can be an extended regexp of symbols to exclude
14771   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14772   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14773   # as well as any symbol that contains `d'.
14774   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14775   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14776   # platforms (ab)use it in PIC code, but their linkers get confused if
14777   # the symbol is explicitly referenced.  Since portable code cannot
14778   # rely on this symbol name, it's probably fine to never include it in
14779   # preloaded symbol tables.
14780   # Exclude shared library initialization/finalization symbols.
14781   extract_expsyms_cmds=
14782
14783   case $host_os in
14784   cygwin* | mingw* | pw32* | cegcc*)
14785     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14786     # When not using gcc, we currently assume that we are using
14787     # Microsoft Visual C++.
14788     if test "$GCC" != yes; then
14789       with_gnu_ld=no
14790     fi
14791     ;;
14792   interix*)
14793     # we just hope/assume this is gcc and not c89 (= MSVC++)
14794     with_gnu_ld=yes
14795     ;;
14796   openbsd*)
14797     with_gnu_ld=no
14798     ;;
14799   esac
14800
14801   ld_shlibs=yes
14802
14803   # On some targets, GNU ld is compatible enough with the native linker
14804   # that we're better off using the native interface for both.
14805   lt_use_gnu_ld_interface=no
14806   if test "$with_gnu_ld" = yes; then
14807     case $host_os in
14808       aix*)
14809         # The AIX port of GNU ld has always aspired to compatibility
14810         # with the native linker.  However, as the warning in the GNU ld
14811         # block says, versions before 2.19.5* couldn't really create working
14812         # shared libraries, regardless of the interface used.
14813         case `$LD -v 2>&1` in
14814           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14815           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14816           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14817           *)
14818             lt_use_gnu_ld_interface=yes
14819             ;;
14820         esac
14821         ;;
14822       *)
14823         lt_use_gnu_ld_interface=yes
14824         ;;
14825     esac
14826   fi
14827
14828   if test "$lt_use_gnu_ld_interface" = yes; then
14829     # If archive_cmds runs LD, not CC, wlarc should be empty
14830     wlarc='${wl}'
14831
14832     # Set some defaults for GNU ld with shared library support. These
14833     # are reset later if shared libraries are not supported. Putting them
14834     # here allows them to be overridden if necessary.
14835     runpath_var=LD_RUN_PATH
14836     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14837     export_dynamic_flag_spec='${wl}--export-dynamic'
14838     # ancient GNU ld didn't support --whole-archive et. al.
14839     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14840       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14841     else
14842       whole_archive_flag_spec=
14843     fi
14844     supports_anon_versioning=no
14845     case `$LD -v 2>&1` in
14846       *GNU\ gold*) supports_anon_versioning=yes ;;
14847       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14848       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14849       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14850       *\ 2.11.*) ;; # other 2.11 versions
14851       *) supports_anon_versioning=yes ;;
14852     esac
14853
14854     # See if GNU ld supports shared libraries.
14855     case $host_os in
14856     aix[3-9]*)
14857       # On AIX/PPC, the GNU linker is very broken
14858       if test "$host_cpu" != ia64; then
14859         ld_shlibs=no
14860         cat <<_LT_EOF 1>&2
14861
14862 *** Warning: the GNU linker, at least up to release 2.19, is reported
14863 *** to be unable to reliably create shared libraries on AIX.
14864 *** Therefore, libtool is disabling shared libraries support.  If you
14865 *** really care for shared libraries, you may want to install binutils
14866 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14867 *** You will then need to restart the configuration process.
14868
14869 _LT_EOF
14870       fi
14871       ;;
14872
14873     amigaos*)
14874       case $host_cpu in
14875       powerpc)
14876             # see comment about AmigaOS4 .so support
14877             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14878             archive_expsym_cmds=''
14879         ;;
14880       m68k)
14881             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)'
14882             hardcode_libdir_flag_spec='-L$libdir'
14883             hardcode_minus_L=yes
14884         ;;
14885       esac
14886       ;;
14887
14888     beos*)
14889       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14890         allow_undefined_flag=unsupported
14891         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14892         # support --undefined.  This deserves some investigation.  FIXME
14893         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14894       else
14895         ld_shlibs=no
14896       fi
14897       ;;
14898
14899     cygwin* | mingw* | pw32* | cegcc*)
14900       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14901       # as there is no search path for DLLs.
14902       hardcode_libdir_flag_spec='-L$libdir'
14903       export_dynamic_flag_spec='${wl}--export-all-symbols'
14904       allow_undefined_flag=unsupported
14905       always_export_symbols=no
14906       enable_shared_with_static_runtimes=yes
14907       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'
14908       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14909
14910       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14911         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14912         # If the export-symbols file already is a .def file (1st line
14913         # is EXPORTS), use it as is; otherwise, prepend...
14914         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14915           cp $export_symbols $output_objdir/$soname.def;
14916         else
14917           echo EXPORTS > $output_objdir/$soname.def;
14918           cat $export_symbols >> $output_objdir/$soname.def;
14919         fi~
14920         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14921       else
14922         ld_shlibs=no
14923       fi
14924       ;;
14925
14926     haiku*)
14927       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14928       link_all_deplibs=yes
14929       ;;
14930
14931     interix[3-9]*)
14932       hardcode_direct=no
14933       hardcode_shlibpath_var=no
14934       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14935       export_dynamic_flag_spec='${wl}-E'
14936       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14937       # Instead, shared libraries are loaded at an image base (0x10000000 by
14938       # default) and relocated if they conflict, which is a slow very memory
14939       # consuming and fragmenting process.  To avoid this, we pick a random,
14940       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14941       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14942       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14943       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'
14944       ;;
14945
14946     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14947       tmp_diet=no
14948       if test "$host_os" = linux-dietlibc; then
14949         case $cc_basename in
14950           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
14951         esac
14952       fi
14953       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14954          && test "$tmp_diet" = no
14955       then
14956         tmp_addflag=' $pic_flag'
14957         tmp_sharedflag='-shared'
14958         case $cc_basename,$host_cpu in
14959         pgcc*)                          # Portland Group C compiler
14960           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'
14961           tmp_addflag=' $pic_flag'
14962           ;;
14963         pgf77* | pgf90* | pgf95* | pgfortran*)
14964                                         # Portland Group f77 and f90 compilers
14965           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'
14966           tmp_addflag=' $pic_flag -Mnomain' ;;
14967         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
14968           tmp_addflag=' -i_dynamic' ;;
14969         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14970           tmp_addflag=' -i_dynamic -nofor_main' ;;
14971         ifc* | ifort*)                  # Intel Fortran compiler
14972           tmp_addflag=' -nofor_main' ;;
14973         lf95*)                          # Lahey Fortran 8.1
14974           whole_archive_flag_spec=
14975           tmp_sharedflag='--shared' ;;
14976         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14977           tmp_sharedflag='-qmkshrobj'
14978           tmp_addflag= ;;
14979         nvcc*)  # Cuda Compiler Driver 2.2
14980           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'
14981           compiler_needs_object=yes
14982           ;;
14983         esac
14984         case `$CC -V 2>&1 | sed 5q` in
14985         *Sun\ C*)                       # Sun C 5.9
14986           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'
14987           compiler_needs_object=yes
14988           tmp_sharedflag='-G' ;;
14989         *Sun\ F*)                       # Sun Fortran 8.3
14990           tmp_sharedflag='-G' ;;
14991         esac
14992         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14993
14994         if test "x$supports_anon_versioning" = xyes; then
14995           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14996             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14997             echo "local: *; };" >> $output_objdir/$libname.ver~
14998             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14999         fi
15000
15001         case $cc_basename in
15002         xlf* | bgf* | bgxlf* | mpixlf*)
15003           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15004           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15005           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15006           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15007           if test "x$supports_anon_versioning" = xyes; then
15008             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15009               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15010               echo "local: *; };" >> $output_objdir/$libname.ver~
15011               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15012           fi
15013           ;;
15014         esac
15015       else
15016         ld_shlibs=no
15017       fi
15018       ;;
15019
15020     netbsd*)
15021       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15022         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15023         wlarc=
15024       else
15025         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15026         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15027       fi
15028       ;;
15029
15030     solaris*)
15031       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15032         ld_shlibs=no
15033         cat <<_LT_EOF 1>&2
15034
15035 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15036 *** create shared libraries on Solaris systems.  Therefore, libtool
15037 *** is disabling shared libraries support.  We urge you to upgrade GNU
15038 *** binutils to release 2.9.1 or newer.  Another option is to modify
15039 *** your PATH or compiler configuration so that the native linker is
15040 *** used, and then restart.
15041
15042 _LT_EOF
15043       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15044         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15045         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15046       else
15047         ld_shlibs=no
15048       fi
15049       ;;
15050
15051     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15052       case `$LD -v 2>&1` in
15053         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15054         ld_shlibs=no
15055         cat <<_LT_EOF 1>&2
15056
15057 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15058 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15059 *** is disabling shared libraries support.  We urge you to upgrade GNU
15060 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15061 *** your PATH or compiler configuration so that the native linker is
15062 *** used, and then restart.
15063
15064 _LT_EOF
15065         ;;
15066         *)
15067           # For security reasons, it is highly recommended that you always
15068           # use absolute paths for naming shared libraries, and exclude the
15069           # DT_RUNPATH tag from executables and libraries.  But doing so
15070           # requires that you compile everything twice, which is a pain.
15071           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15072             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15073             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15074             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15075           else
15076             ld_shlibs=no
15077           fi
15078         ;;
15079       esac
15080       ;;
15081
15082     sunos4*)
15083       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15084       wlarc=
15085       hardcode_direct=yes
15086       hardcode_shlibpath_var=no
15087       ;;
15088
15089     *)
15090       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15091         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15093       else
15094         ld_shlibs=no
15095       fi
15096       ;;
15097     esac
15098
15099     if test "$ld_shlibs" = no; then
15100       runpath_var=
15101       hardcode_libdir_flag_spec=
15102       export_dynamic_flag_spec=
15103       whole_archive_flag_spec=
15104     fi
15105   else
15106     # PORTME fill in a description of your system's linker (not GNU ld)
15107     case $host_os in
15108     aix3*)
15109       allow_undefined_flag=unsupported
15110       always_export_symbols=yes
15111       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'
15112       # Note: this linker hardcodes the directories in LIBPATH if there
15113       # are no directories specified by -L.
15114       hardcode_minus_L=yes
15115       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15116         # Neither direct hardcoding nor static linking is supported with a
15117         # broken collect2.
15118         hardcode_direct=unsupported
15119       fi
15120       ;;
15121
15122     aix[4-9]*)
15123       if test "$host_cpu" = ia64; then
15124         # On IA64, the linker does run time linking by default, so we don't
15125         # have to do anything special.
15126         aix_use_runtimelinking=no
15127         exp_sym_flag='-Bexport'
15128         no_entry_flag=""
15129       else
15130         # If we're using GNU nm, then we don't want the "-C" option.
15131         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15132         # Also, AIX nm treats weak defined symbols like other global
15133         # defined symbols, whereas GNU nm marks them as "W".
15134         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15135           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'
15136         else
15137           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'
15138         fi
15139         aix_use_runtimelinking=no
15140
15141         # Test if we are trying to use run time linking or normal
15142         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15143         # need to do runtime linking.
15144         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15145           for ld_flag in $LDFLAGS; do
15146           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15147             aix_use_runtimelinking=yes
15148             break
15149           fi
15150           done
15151           ;;
15152         esac
15153
15154         exp_sym_flag='-bexport'
15155         no_entry_flag='-bnoentry'
15156       fi
15157
15158       # When large executables or shared objects are built, AIX ld can
15159       # have problems creating the table of contents.  If linking a library
15160       # or program results in "error TOC overflow" add -mminimal-toc to
15161       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15162       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15163
15164       archive_cmds=''
15165       hardcode_direct=yes
15166       hardcode_direct_absolute=yes
15167       hardcode_libdir_separator=':'
15168       link_all_deplibs=yes
15169       file_list_spec='${wl}-f,'
15170
15171       if test "$GCC" = yes; then
15172         case $host_os in aix4.[012]|aix4.[012].*)
15173         # We only want to do this on AIX 4.2 and lower, the check
15174         # below for broken collect2 doesn't work under 4.3+
15175           collect2name=`${CC} -print-prog-name=collect2`
15176           if test -f "$collect2name" &&
15177            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15178           then
15179           # We have reworked collect2
15180           :
15181           else
15182           # We have old collect2
15183           hardcode_direct=unsupported
15184           # It fails to find uninstalled libraries when the uninstalled
15185           # path is not listed in the libpath.  Setting hardcode_minus_L
15186           # to unsupported forces relinking
15187           hardcode_minus_L=yes
15188           hardcode_libdir_flag_spec='-L$libdir'
15189           hardcode_libdir_separator=
15190           fi
15191           ;;
15192         esac
15193         shared_flag='-shared'
15194         if test "$aix_use_runtimelinking" = yes; then
15195           shared_flag="$shared_flag "'${wl}-G'
15196         fi
15197       else
15198         # not using gcc
15199         if test "$host_cpu" = ia64; then
15200         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15201         # chokes on -Wl,-G. The following line is correct:
15202           shared_flag='-G'
15203         else
15204           if test "$aix_use_runtimelinking" = yes; then
15205             shared_flag='${wl}-G'
15206           else
15207             shared_flag='${wl}-bM:SRE'
15208           fi
15209         fi
15210       fi
15211
15212       export_dynamic_flag_spec='${wl}-bexpall'
15213       # It seems that -bexpall does not export symbols beginning with
15214       # underscore (_), so it is better to generate a list of symbols to export.
15215       always_export_symbols=yes
15216       if test "$aix_use_runtimelinking" = yes; then
15217         # Warning - without using the other runtime loading flags (-brtl),
15218         # -berok will link without error, but may produce a broken library.
15219         allow_undefined_flag='-berok'
15220         # Determine the default libpath from the value encoded in an
15221         # empty executable.
15222         if test "${lt_cv_aix_libpath+set}" = set; then
15223   aix_libpath=$lt_cv_aix_libpath
15224 else
15225   if ${lt_cv_aix_libpath_+:} false; then :
15226   $as_echo_n "(cached) " >&6
15227 else
15228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h.  */
15230
15231 int
15232 main ()
15233 {
15234
15235   ;
15236   return 0;
15237 }
15238 _ACEOF
15239 if ac_fn_c_try_link "$LINENO"; then :
15240
15241   lt_aix_libpath_sed='
15242       /Import File Strings/,/^$/ {
15243           /^0/ {
15244               s/^0  *\([^ ]*\) *$/\1/
15245               p
15246           }
15247       }'
15248   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15249   # Check for a 64-bit object if we didn't find anything.
15250   if test -z "$lt_cv_aix_libpath_"; then
15251     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15252   fi
15253 fi
15254 rm -f core conftest.err conftest.$ac_objext \
15255     conftest$ac_exeext conftest.$ac_ext
15256   if test -z "$lt_cv_aix_libpath_"; then
15257     lt_cv_aix_libpath_="/usr/lib:/lib"
15258   fi
15259
15260 fi
15261
15262   aix_libpath=$lt_cv_aix_libpath_
15263 fi
15264
15265         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15266         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"
15267       else
15268         if test "$host_cpu" = ia64; then
15269           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15270           allow_undefined_flag="-z nodefs"
15271           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"
15272         else
15273          # Determine the default libpath from the value encoded in an
15274          # empty executable.
15275          if test "${lt_cv_aix_libpath+set}" = set; then
15276   aix_libpath=$lt_cv_aix_libpath
15277 else
15278   if ${lt_cv_aix_libpath_+:} false; then :
15279   $as_echo_n "(cached) " >&6
15280 else
15281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h.  */
15283
15284 int
15285 main ()
15286 {
15287
15288   ;
15289   return 0;
15290 }
15291 _ACEOF
15292 if ac_fn_c_try_link "$LINENO"; then :
15293
15294   lt_aix_libpath_sed='
15295       /Import File Strings/,/^$/ {
15296           /^0/ {
15297               s/^0  *\([^ ]*\) *$/\1/
15298               p
15299           }
15300       }'
15301   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15302   # Check for a 64-bit object if we didn't find anything.
15303   if test -z "$lt_cv_aix_libpath_"; then
15304     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15305   fi
15306 fi
15307 rm -f core conftest.err conftest.$ac_objext \
15308     conftest$ac_exeext conftest.$ac_ext
15309   if test -z "$lt_cv_aix_libpath_"; then
15310     lt_cv_aix_libpath_="/usr/lib:/lib"
15311   fi
15312
15313 fi
15314
15315   aix_libpath=$lt_cv_aix_libpath_
15316 fi
15317
15318          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15319           # Warning - without using the other run time loading flags,
15320           # -berok will link without error, but may produce a broken library.
15321           no_undefined_flag=' ${wl}-bernotok'
15322           allow_undefined_flag=' ${wl}-berok'
15323           if test "$with_gnu_ld" = yes; then
15324             # We only use this code for GNU lds that support --whole-archive.
15325             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15326           else
15327             # Exported symbols can be pulled into shared objects from archives
15328             whole_archive_flag_spec='$convenience'
15329           fi
15330           archive_cmds_need_lc=yes
15331           # This is similar to how AIX traditionally builds its shared libraries.
15332           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'
15333         fi
15334       fi
15335       ;;
15336
15337     amigaos*)
15338       case $host_cpu in
15339       powerpc)
15340             # see comment about AmigaOS4 .so support
15341             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15342             archive_expsym_cmds=''
15343         ;;
15344       m68k)
15345             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)'
15346             hardcode_libdir_flag_spec='-L$libdir'
15347             hardcode_minus_L=yes
15348         ;;
15349       esac
15350       ;;
15351
15352     bsdi[45]*)
15353       export_dynamic_flag_spec=-rdynamic
15354       ;;
15355
15356     cygwin* | mingw* | pw32* | cegcc*)
15357       # When not using gcc, we currently assume that we are using
15358       # Microsoft Visual C++.
15359       # hardcode_libdir_flag_spec is actually meaningless, as there is
15360       # no search path for DLLs.
15361       case $cc_basename in
15362       cl*)
15363         # Native MSVC
15364         hardcode_libdir_flag_spec=' '
15365         allow_undefined_flag=unsupported
15366         always_export_symbols=yes
15367         file_list_spec='@'
15368         # Tell ltmain to make .lib files, not .a files.
15369         libext=lib
15370         # Tell ltmain to make .dll files, not .so files.
15371         shrext_cmds=".dll"
15372         # FIXME: Setting linknames here is a bad hack.
15373         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15374         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15375             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15376           else
15377             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15378           fi~
15379           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15380           linknames='
15381         # The linker will not automatically build a static lib if we build a DLL.
15382         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15383         enable_shared_with_static_runtimes=yes
15384         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15385         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15386         # Don't use ranlib
15387         old_postinstall_cmds='chmod 644 $oldlib'
15388         postlink_cmds='lt_outputfile="@OUTPUT@"~
15389           lt_tool_outputfile="@TOOL_OUTPUT@"~
15390           case $lt_outputfile in
15391             *.exe|*.EXE) ;;
15392             *)
15393               lt_outputfile="$lt_outputfile.exe"
15394               lt_tool_outputfile="$lt_tool_outputfile.exe"
15395               ;;
15396           esac~
15397           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15398             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15399             $RM "$lt_outputfile.manifest";
15400           fi'
15401         ;;
15402       *)
15403         # Assume MSVC wrapper
15404         hardcode_libdir_flag_spec=' '
15405         allow_undefined_flag=unsupported
15406         # Tell ltmain to make .lib files, not .a files.
15407         libext=lib
15408         # Tell ltmain to make .dll files, not .so files.
15409         shrext_cmds=".dll"
15410         # FIXME: Setting linknames here is a bad hack.
15411         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15412         # The linker will automatically build a .lib file if we build a DLL.
15413         old_archive_from_new_cmds='true'
15414         # FIXME: Should let the user specify the lib program.
15415         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15416         enable_shared_with_static_runtimes=yes
15417         ;;
15418       esac
15419       ;;
15420
15421     darwin* | rhapsody*)
15422
15423
15424   archive_cmds_need_lc=no
15425   hardcode_direct=no
15426   hardcode_automatic=yes
15427   hardcode_shlibpath_var=unsupported
15428   if test "$lt_cv_ld_force_load" = "yes"; then
15429     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\"`'
15430
15431   else
15432     whole_archive_flag_spec=''
15433   fi
15434   link_all_deplibs=yes
15435   allow_undefined_flag="$_lt_dar_allow_undefined"
15436   case $cc_basename in
15437      ifort*) _lt_dar_can_shared=yes ;;
15438      *) _lt_dar_can_shared=$GCC ;;
15439   esac
15440   if test "$_lt_dar_can_shared" = "yes"; then
15441     output_verbose_link_cmd=func_echo_all
15442     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15443     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15444     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}"
15445     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}"
15446
15447   else
15448   ld_shlibs=no
15449   fi
15450
15451       ;;
15452
15453     dgux*)
15454       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15455       hardcode_libdir_flag_spec='-L$libdir'
15456       hardcode_shlibpath_var=no
15457       ;;
15458
15459     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15460     # support.  Future versions do this automatically, but an explicit c++rt0.o
15461     # does not break anything, and helps significantly (at the cost of a little
15462     # extra space).
15463     freebsd2.2*)
15464       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15465       hardcode_libdir_flag_spec='-R$libdir'
15466       hardcode_direct=yes
15467       hardcode_shlibpath_var=no
15468       ;;
15469
15470     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15471     freebsd2.*)
15472       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15473       hardcode_direct=yes
15474       hardcode_minus_L=yes
15475       hardcode_shlibpath_var=no
15476       ;;
15477
15478     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15479     freebsd* | dragonfly*)
15480       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15481       hardcode_libdir_flag_spec='-R$libdir'
15482       hardcode_direct=yes
15483       hardcode_shlibpath_var=no
15484       ;;
15485
15486     hpux9*)
15487       if test "$GCC" = yes; then
15488         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'
15489       else
15490         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'
15491       fi
15492       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15493       hardcode_libdir_separator=:
15494       hardcode_direct=yes
15495
15496       # hardcode_minus_L: Not really in the search PATH,
15497       # but as the default location of the library.
15498       hardcode_minus_L=yes
15499       export_dynamic_flag_spec='${wl}-E'
15500       ;;
15501
15502     hpux10*)
15503       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15504         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15505       else
15506         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15507       fi
15508       if test "$with_gnu_ld" = no; then
15509         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15510         hardcode_libdir_separator=:
15511         hardcode_direct=yes
15512         hardcode_direct_absolute=yes
15513         export_dynamic_flag_spec='${wl}-E'
15514         # hardcode_minus_L: Not really in the search PATH,
15515         # but as the default location of the library.
15516         hardcode_minus_L=yes
15517       fi
15518       ;;
15519
15520     hpux11*)
15521       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15522         case $host_cpu in
15523         hppa*64*)
15524           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15525           ;;
15526         ia64*)
15527           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15528           ;;
15529         *)
15530           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15531           ;;
15532         esac
15533       else
15534         case $host_cpu in
15535         hppa*64*)
15536           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15537           ;;
15538         ia64*)
15539           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15540           ;;
15541         *)
15542
15543           # Older versions of the 11.00 compiler do not understand -b yet
15544           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15545           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15546 $as_echo_n "checking if $CC understands -b... " >&6; }
15547 if ${lt_cv_prog_compiler__b+:} false; then :
15548   $as_echo_n "(cached) " >&6
15549 else
15550   lt_cv_prog_compiler__b=no
15551    save_LDFLAGS="$LDFLAGS"
15552    LDFLAGS="$LDFLAGS -b"
15553    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15554    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15555      # The linker can only warn and ignore the option if not recognized
15556      # So say no if there are warnings
15557      if test -s conftest.err; then
15558        # Append any errors to the config.log.
15559        cat conftest.err 1>&5
15560        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15561        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15562        if diff conftest.exp conftest.er2 >/dev/null; then
15563          lt_cv_prog_compiler__b=yes
15564        fi
15565      else
15566        lt_cv_prog_compiler__b=yes
15567      fi
15568    fi
15569    $RM -r conftest*
15570    LDFLAGS="$save_LDFLAGS"
15571
15572 fi
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15574 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15575
15576 if test x"$lt_cv_prog_compiler__b" = xyes; then
15577     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15578 else
15579     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15580 fi
15581
15582           ;;
15583         esac
15584       fi
15585       if test "$with_gnu_ld" = no; then
15586         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15587         hardcode_libdir_separator=:
15588
15589         case $host_cpu in
15590         hppa*64*|ia64*)
15591           hardcode_direct=no
15592           hardcode_shlibpath_var=no
15593           ;;
15594         *)
15595           hardcode_direct=yes
15596           hardcode_direct_absolute=yes
15597           export_dynamic_flag_spec='${wl}-E'
15598
15599           # hardcode_minus_L: Not really in the search PATH,
15600           # but as the default location of the library.
15601           hardcode_minus_L=yes
15602           ;;
15603         esac
15604       fi
15605       ;;
15606
15607     irix5* | irix6* | nonstopux*)
15608       if test "$GCC" = yes; then
15609         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'
15610         # Try to use the -exported_symbol ld option, if it does not
15611         # work, assume that -exports_file does not work either and
15612         # implicitly export all symbols.
15613         # This should be the same for all languages, so no per-tag cache variable.
15614         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15615 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15616 if ${lt_cv_irix_exported_symbol+:} false; then :
15617   $as_echo_n "(cached) " >&6
15618 else
15619   save_LDFLAGS="$LDFLAGS"
15620            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15621            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h.  */
15623 int foo (void) { return 0; }
15624 _ACEOF
15625 if ac_fn_c_try_link "$LINENO"; then :
15626   lt_cv_irix_exported_symbol=yes
15627 else
15628   lt_cv_irix_exported_symbol=no
15629 fi
15630 rm -f core conftest.err conftest.$ac_objext \
15631     conftest$ac_exeext conftest.$ac_ext
15632            LDFLAGS="$save_LDFLAGS"
15633 fi
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15635 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15636         if test "$lt_cv_irix_exported_symbol" = yes; then
15637           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'
15638         fi
15639       else
15640         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'
15641         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'
15642       fi
15643       archive_cmds_need_lc='no'
15644       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15645       hardcode_libdir_separator=:
15646       inherit_rpath=yes
15647       link_all_deplibs=yes
15648       ;;
15649
15650     netbsd*)
15651       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15652         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15653       else
15654         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15655       fi
15656       hardcode_libdir_flag_spec='-R$libdir'
15657       hardcode_direct=yes
15658       hardcode_shlibpath_var=no
15659       ;;
15660
15661     newsos6)
15662       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15663       hardcode_direct=yes
15664       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15665       hardcode_libdir_separator=:
15666       hardcode_shlibpath_var=no
15667       ;;
15668
15669     *nto* | *qnx*)
15670       ;;
15671
15672     openbsd*)
15673       if test -f /usr/libexec/ld.so; then
15674         hardcode_direct=yes
15675         hardcode_shlibpath_var=no
15676         hardcode_direct_absolute=yes
15677         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15678           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15679           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15680           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15681           export_dynamic_flag_spec='${wl}-E'
15682         else
15683           case $host_os in
15684            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15685              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15686              hardcode_libdir_flag_spec='-R$libdir'
15687              ;;
15688            *)
15689              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15690              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15691              ;;
15692           esac
15693         fi
15694       else
15695         ld_shlibs=no
15696       fi
15697       ;;
15698
15699     os2*)
15700       hardcode_libdir_flag_spec='-L$libdir'
15701       hardcode_minus_L=yes
15702       allow_undefined_flag=unsupported
15703       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'
15704       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15705       ;;
15706
15707     osf3*)
15708       if test "$GCC" = yes; then
15709         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15710         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'
15711       else
15712         allow_undefined_flag=' -expect_unresolved \*'
15713         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'
15714       fi
15715       archive_cmds_need_lc='no'
15716       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15717       hardcode_libdir_separator=:
15718       ;;
15719
15720     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15721       if test "$GCC" = yes; then
15722         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15723         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'
15724         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15725       else
15726         allow_undefined_flag=' -expect_unresolved \*'
15727         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'
15728         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~
15729         $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'
15730
15731         # Both c and cxx compiler support -rpath directly
15732         hardcode_libdir_flag_spec='-rpath $libdir'
15733       fi
15734       archive_cmds_need_lc='no'
15735       hardcode_libdir_separator=:
15736       ;;
15737
15738     solaris*)
15739       no_undefined_flag=' -z defs'
15740       if test "$GCC" = yes; then
15741         wlarc='${wl}'
15742         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15743         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15744           $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'
15745       else
15746         case `$CC -V 2>&1` in
15747         *"Compilers 5.0"*)
15748           wlarc=''
15749           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15750           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15751           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15752           ;;
15753         *)
15754           wlarc='${wl}'
15755           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15756           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15757           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15758           ;;
15759         esac
15760       fi
15761       hardcode_libdir_flag_spec='-R$libdir'
15762       hardcode_shlibpath_var=no
15763       case $host_os in
15764       solaris2.[0-5] | solaris2.[0-5].*) ;;
15765       *)
15766         # The compiler driver will combine and reorder linker options,
15767         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15768         # but is careful enough not to reorder.
15769         # Supported since Solaris 2.6 (maybe 2.5.1?)
15770         if test "$GCC" = yes; then
15771           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15772         else
15773           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15774         fi
15775         ;;
15776       esac
15777       link_all_deplibs=yes
15778       ;;
15779
15780     sunos4*)
15781       if test "x$host_vendor" = xsequent; then
15782         # Use $CC to link under sequent, because it throws in some extra .o
15783         # files that make .init and .fini sections work.
15784         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15785       else
15786         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15787       fi
15788       hardcode_libdir_flag_spec='-L$libdir'
15789       hardcode_direct=yes
15790       hardcode_minus_L=yes
15791       hardcode_shlibpath_var=no
15792       ;;
15793
15794     sysv4)
15795       case $host_vendor in
15796         sni)
15797           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15798           hardcode_direct=yes # is this really true???
15799         ;;
15800         siemens)
15801           ## LD is ld it makes a PLAMLIB
15802           ## CC just makes a GrossModule.
15803           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15804           reload_cmds='$CC -r -o $output$reload_objs'
15805           hardcode_direct=no
15806         ;;
15807         motorola)
15808           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15810         ;;
15811       esac
15812       runpath_var='LD_RUN_PATH'
15813       hardcode_shlibpath_var=no
15814       ;;
15815
15816     sysv4.3*)
15817       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818       hardcode_shlibpath_var=no
15819       export_dynamic_flag_spec='-Bexport'
15820       ;;
15821
15822     sysv4*MP*)
15823       if test -d /usr/nec; then
15824         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15825         hardcode_shlibpath_var=no
15826         runpath_var=LD_RUN_PATH
15827         hardcode_runpath_var=yes
15828         ld_shlibs=yes
15829       fi
15830       ;;
15831
15832     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15833       no_undefined_flag='${wl}-z,text'
15834       archive_cmds_need_lc=no
15835       hardcode_shlibpath_var=no
15836       runpath_var='LD_RUN_PATH'
15837
15838       if test "$GCC" = yes; then
15839         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15840         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15841       else
15842         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15843         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15844       fi
15845       ;;
15846
15847     sysv5* | sco3.2v5* | sco5v6*)
15848       # Note: We can NOT use -z defs as we might desire, because we do not
15849       # link with -lc, and that would cause any symbols used from libc to
15850       # always be unresolved, which means just about no library would
15851       # ever link correctly.  If we're not using GNU ld we use -z text
15852       # though, which does catch some bad symbols but isn't as heavy-handed
15853       # as -z defs.
15854       no_undefined_flag='${wl}-z,text'
15855       allow_undefined_flag='${wl}-z,nodefs'
15856       archive_cmds_need_lc=no
15857       hardcode_shlibpath_var=no
15858       hardcode_libdir_flag_spec='${wl}-R,$libdir'
15859       hardcode_libdir_separator=':'
15860       link_all_deplibs=yes
15861       export_dynamic_flag_spec='${wl}-Bexport'
15862       runpath_var='LD_RUN_PATH'
15863
15864       if test "$GCC" = yes; then
15865         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15866         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15867       else
15868         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15869         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15870       fi
15871       ;;
15872
15873     uts4*)
15874       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15875       hardcode_libdir_flag_spec='-L$libdir'
15876       hardcode_shlibpath_var=no
15877       ;;
15878
15879     *)
15880       ld_shlibs=no
15881       ;;
15882     esac
15883
15884     if test x$host_vendor = xsni; then
15885       case $host in
15886       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15887         export_dynamic_flag_spec='${wl}-Blargedynsym'
15888         ;;
15889       esac
15890     fi
15891   fi
15892
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15894 $as_echo "$ld_shlibs" >&6; }
15895 test "$ld_shlibs" = no && can_build_shared=no
15896
15897 with_gnu_ld=$with_gnu_ld
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913 #
15914 # Do we need to explicitly link libc?
15915 #
15916 case "x$archive_cmds_need_lc" in
15917 x|xyes)
15918   # Assume -lc should be added
15919   archive_cmds_need_lc=yes
15920
15921   if test "$enable_shared" = yes && test "$GCC" = yes; then
15922     case $archive_cmds in
15923     *'~'*)
15924       # FIXME: we may have to deal with multi-command sequences.
15925       ;;
15926     '$CC '*)
15927       # Test whether the compiler implicitly links with -lc since on some
15928       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15929       # to ld, don't add -lc before -lgcc.
15930       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15931 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15932 if ${lt_cv_archive_cmds_need_lc+:} false; then :
15933   $as_echo_n "(cached) " >&6
15934 else
15935   $RM conftest*
15936         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15937
15938         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15939   (eval $ac_compile) 2>&5
15940   ac_status=$?
15941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15942   test $ac_status = 0; } 2>conftest.err; then
15943           soname=conftest
15944           lib=conftest
15945           libobjs=conftest.$ac_objext
15946           deplibs=
15947           wl=$lt_prog_compiler_wl
15948           pic_flag=$lt_prog_compiler_pic
15949           compiler_flags=-v
15950           linker_flags=-v
15951           verstring=
15952           output_objdir=.
15953           libname=conftest
15954           lt_save_allow_undefined_flag=$allow_undefined_flag
15955           allow_undefined_flag=
15956           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15957   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15958   ac_status=$?
15959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15960   test $ac_status = 0; }
15961           then
15962             lt_cv_archive_cmds_need_lc=no
15963           else
15964             lt_cv_archive_cmds_need_lc=yes
15965           fi
15966           allow_undefined_flag=$lt_save_allow_undefined_flag
15967         else
15968           cat conftest.err 1>&5
15969         fi
15970         $RM conftest*
15971
15972 fi
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15974 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15975       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15976       ;;
15977     esac
15978   fi
15979   ;;
15980 esac
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16134 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16135
16136 if test "$GCC" = yes; then
16137   case $host_os in
16138     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16139     *) lt_awk_arg="/^libraries:/" ;;
16140   esac
16141   case $host_os in
16142     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16143     *) lt_sed_strip_eq="s,=/,/,g" ;;
16144   esac
16145   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16146   case $lt_search_path_spec in
16147   *\;*)
16148     # if the path contains ";" then we assume it to be the separator
16149     # otherwise default to the standard path separator (i.e. ":") - it is
16150     # assumed that no part of a normal pathname contains ";" but that should
16151     # okay in the real world where ";" in dirpaths is itself problematic.
16152     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16153     ;;
16154   *)
16155     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16156     ;;
16157   esac
16158   # Ok, now we have the path, separated by spaces, we can step through it
16159   # and add multilib dir if necessary.
16160   lt_tmp_lt_search_path_spec=
16161   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16162   for lt_sys_path in $lt_search_path_spec; do
16163     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16164       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16165     else
16166       test -d "$lt_sys_path" && \
16167         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16168     fi
16169   done
16170   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16171 BEGIN {RS=" "; FS="/|\n";} {
16172   lt_foo="";
16173   lt_count=0;
16174   for (lt_i = NF; lt_i > 0; lt_i--) {
16175     if ($lt_i != "" && $lt_i != ".") {
16176       if ($lt_i == "..") {
16177         lt_count++;
16178       } else {
16179         if (lt_count == 0) {
16180           lt_foo="/" $lt_i lt_foo;
16181         } else {
16182           lt_count--;
16183         }
16184       }
16185     }
16186   }
16187   if (lt_foo != "") { lt_freq[lt_foo]++; }
16188   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16189 }'`
16190   # AWK program above erroneously prepends '/' to C:/dos/paths
16191   # for these hosts.
16192   case $host_os in
16193     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16194       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16195   esac
16196   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16197 else
16198   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16199 fi
16200 library_names_spec=
16201 libname_spec='lib$name'
16202 soname_spec=
16203 shrext_cmds=".so"
16204 postinstall_cmds=
16205 postuninstall_cmds=
16206 finish_cmds=
16207 finish_eval=
16208 shlibpath_var=
16209 shlibpath_overrides_runpath=unknown
16210 version_type=none
16211 dynamic_linker="$host_os ld.so"
16212 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16213 need_lib_prefix=unknown
16214 hardcode_into_libs=no
16215
16216 # when you set need_version to no, make sure it does not cause -set_version
16217 # flags to be left without arguments
16218 need_version=unknown
16219
16220 case $host_os in
16221 aix3*)
16222   version_type=linux # correct to gnu/linux during the next big refactor
16223   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16224   shlibpath_var=LIBPATH
16225
16226   # AIX 3 has no versioning support, so we append a major version to the name.
16227   soname_spec='${libname}${release}${shared_ext}$major'
16228   ;;
16229
16230 aix[4-9]*)
16231   version_type=linux # correct to gnu/linux during the next big refactor
16232   need_lib_prefix=no
16233   need_version=no
16234   hardcode_into_libs=yes
16235   if test "$host_cpu" = ia64; then
16236     # AIX 5 supports IA64
16237     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16238     shlibpath_var=LD_LIBRARY_PATH
16239   else
16240     # With GCC up to 2.95.x, collect2 would create an import file
16241     # for dependence libraries.  The import file would start with
16242     # the line `#! .'.  This would cause the generated library to
16243     # depend on `.', always an invalid library.  This was fixed in
16244     # development snapshots of GCC prior to 3.0.
16245     case $host_os in
16246       aix4 | aix4.[01] | aix4.[01].*)
16247       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16248            echo ' yes '
16249            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16250         :
16251       else
16252         can_build_shared=no
16253       fi
16254       ;;
16255     esac
16256     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16257     # soname into executable. Probably we can add versioning support to
16258     # collect2, so additional links can be useful in future.
16259     if test "$aix_use_runtimelinking" = yes; then
16260       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16261       # instead of lib<name>.a to let people know that these are not
16262       # typical AIX shared libraries.
16263       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264     else
16265       # We preserve .a as extension for shared libraries through AIX4.2
16266       # and later when we are not doing run time linking.
16267       library_names_spec='${libname}${release}.a $libname.a'
16268       soname_spec='${libname}${release}${shared_ext}$major'
16269     fi
16270     shlibpath_var=LIBPATH
16271   fi
16272   ;;
16273
16274 amigaos*)
16275   case $host_cpu in
16276   powerpc)
16277     # Since July 2007 AmigaOS4 officially supports .so libraries.
16278     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16279     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280     ;;
16281   m68k)
16282     library_names_spec='$libname.ixlibrary $libname.a'
16283     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16284     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'
16285     ;;
16286   esac
16287   ;;
16288
16289 beos*)
16290   library_names_spec='${libname}${shared_ext}'
16291   dynamic_linker="$host_os ld.so"
16292   shlibpath_var=LIBRARY_PATH
16293   ;;
16294
16295 bsdi[45]*)
16296   version_type=linux # correct to gnu/linux during the next big refactor
16297   need_version=no
16298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299   soname_spec='${libname}${release}${shared_ext}$major'
16300   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16301   shlibpath_var=LD_LIBRARY_PATH
16302   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16303   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16304   # the default ld.so.conf also contains /usr/contrib/lib and
16305   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16306   # libtool to hard-code these into programs
16307   ;;
16308
16309 cygwin* | mingw* | pw32* | cegcc*)
16310   version_type=windows
16311   shrext_cmds=".dll"
16312   need_version=no
16313   need_lib_prefix=no
16314
16315   case $GCC,$cc_basename in
16316   yes,*)
16317     # gcc
16318     library_names_spec='$libname.dll.a'
16319     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16320     postinstall_cmds='base_file=`basename \${file}`~
16321       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16322       dldir=$destdir/`dirname \$dlpath`~
16323       test -d \$dldir || mkdir -p \$dldir~
16324       $install_prog $dir/$dlname \$dldir/$dlname~
16325       chmod a+x \$dldir/$dlname~
16326       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16327         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16328       fi'
16329     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16330       dlpath=$dir/\$dldll~
16331        $RM \$dlpath'
16332     shlibpath_overrides_runpath=yes
16333
16334     case $host_os in
16335     cygwin*)
16336       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16337       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16338
16339       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16340       ;;
16341     mingw* | cegcc*)
16342       # MinGW DLLs use traditional 'lib' prefix
16343       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16344       ;;
16345     pw32*)
16346       # pw32 DLLs use 'pw' prefix rather than 'lib'
16347       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16348       ;;
16349     esac
16350     dynamic_linker='Win32 ld.exe'
16351     ;;
16352
16353   *,cl*)
16354     # Native MSVC
16355     libname_spec='$name'
16356     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16357     library_names_spec='${libname}.dll.lib'
16358
16359     case $build_os in
16360     mingw*)
16361       sys_lib_search_path_spec=
16362       lt_save_ifs=$IFS
16363       IFS=';'
16364       for lt_path in $LIB
16365       do
16366         IFS=$lt_save_ifs
16367         # Let DOS variable expansion print the short 8.3 style file name.
16368         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16369         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16370       done
16371       IFS=$lt_save_ifs
16372       # Convert to MSYS style.
16373       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16374       ;;
16375     cygwin*)
16376       # Convert to unix form, then to dos form, then back to unix form
16377       # but this time dos style (no spaces!) so that the unix form looks
16378       # like /cygdrive/c/PROGRA~1:/cygdr...
16379       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16380       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16381       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16382       ;;
16383     *)
16384       sys_lib_search_path_spec="$LIB"
16385       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16386         # It is most probably a Windows format PATH.
16387         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16388       else
16389         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16390       fi
16391       # FIXME: find the short name or the path components, as spaces are
16392       # common. (e.g. "Program Files" -> "PROGRA~1")
16393       ;;
16394     esac
16395
16396     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16397     postinstall_cmds='base_file=`basename \${file}`~
16398       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16399       dldir=$destdir/`dirname \$dlpath`~
16400       test -d \$dldir || mkdir -p \$dldir~
16401       $install_prog $dir/$dlname \$dldir/$dlname'
16402     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16403       dlpath=$dir/\$dldll~
16404        $RM \$dlpath'
16405     shlibpath_overrides_runpath=yes
16406     dynamic_linker='Win32 link.exe'
16407     ;;
16408
16409   *)
16410     # Assume MSVC wrapper
16411     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16412     dynamic_linker='Win32 ld.exe'
16413     ;;
16414   esac
16415   # FIXME: first we should search . and the directory the executable is in
16416   shlibpath_var=PATH
16417   ;;
16418
16419 darwin* | rhapsody*)
16420   dynamic_linker="$host_os dyld"
16421   version_type=darwin
16422   need_lib_prefix=no
16423   need_version=no
16424   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16425   soname_spec='${libname}${release}${major}$shared_ext'
16426   shlibpath_overrides_runpath=yes
16427   shlibpath_var=DYLD_LIBRARY_PATH
16428   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16429
16430   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16431   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16432   ;;
16433
16434 dgux*)
16435   version_type=linux # correct to gnu/linux during the next big refactor
16436   need_lib_prefix=no
16437   need_version=no
16438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16439   soname_spec='${libname}${release}${shared_ext}$major'
16440   shlibpath_var=LD_LIBRARY_PATH
16441   ;;
16442
16443 freebsd* | dragonfly*)
16444   # DragonFly does not have aout.  When/if they implement a new
16445   # versioning mechanism, adjust this.
16446   if test -x /usr/bin/objformat; then
16447     objformat=`/usr/bin/objformat`
16448   else
16449     case $host_os in
16450     freebsd[23].*) objformat=aout ;;
16451     *) objformat=elf ;;
16452     esac
16453   fi
16454   version_type=freebsd-$objformat
16455   case $version_type in
16456     freebsd-elf*)
16457       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16458       need_version=no
16459       need_lib_prefix=no
16460       ;;
16461     freebsd-*)
16462       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16463       need_version=yes
16464       ;;
16465   esac
16466   shlibpath_var=LD_LIBRARY_PATH
16467   case $host_os in
16468   freebsd2.*)
16469     shlibpath_overrides_runpath=yes
16470     ;;
16471   freebsd3.[01]* | freebsdelf3.[01]*)
16472     shlibpath_overrides_runpath=yes
16473     hardcode_into_libs=yes
16474     ;;
16475   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16476   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16477     shlibpath_overrides_runpath=no
16478     hardcode_into_libs=yes
16479     ;;
16480   *) # from 4.6 on, and DragonFly
16481     shlibpath_overrides_runpath=yes
16482     hardcode_into_libs=yes
16483     ;;
16484   esac
16485   ;;
16486
16487 gnu*)
16488   version_type=linux # correct to gnu/linux during the next big refactor
16489   need_lib_prefix=no
16490   need_version=no
16491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16492   soname_spec='${libname}${release}${shared_ext}$major'
16493   shlibpath_var=LD_LIBRARY_PATH
16494   shlibpath_overrides_runpath=no
16495   hardcode_into_libs=yes
16496   ;;
16497
16498 haiku*)
16499   version_type=linux # correct to gnu/linux during the next big refactor
16500   need_lib_prefix=no
16501   need_version=no
16502   dynamic_linker="$host_os runtime_loader"
16503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16504   soname_spec='${libname}${release}${shared_ext}$major'
16505   shlibpath_var=LIBRARY_PATH
16506   shlibpath_overrides_runpath=yes
16507   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16508   hardcode_into_libs=yes
16509   ;;
16510
16511 hpux9* | hpux10* | hpux11*)
16512   # Give a soname corresponding to the major version so that dld.sl refuses to
16513   # link against other versions.
16514   version_type=sunos
16515   need_lib_prefix=no
16516   need_version=no
16517   case $host_cpu in
16518   ia64*)
16519     shrext_cmds='.so'
16520     hardcode_into_libs=yes
16521     dynamic_linker="$host_os dld.so"
16522     shlibpath_var=LD_LIBRARY_PATH
16523     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16525     soname_spec='${libname}${release}${shared_ext}$major'
16526     if test "X$HPUX_IA64_MODE" = X32; then
16527       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16528     else
16529       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16530     fi
16531     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16532     ;;
16533   hppa*64*)
16534     shrext_cmds='.sl'
16535     hardcode_into_libs=yes
16536     dynamic_linker="$host_os dld.sl"
16537     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16538     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540     soname_spec='${libname}${release}${shared_ext}$major'
16541     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16542     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16543     ;;
16544   *)
16545     shrext_cmds='.sl'
16546     dynamic_linker="$host_os dld.sl"
16547     shlibpath_var=SHLIB_PATH
16548     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16549     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16550     soname_spec='${libname}${release}${shared_ext}$major'
16551     ;;
16552   esac
16553   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16554   postinstall_cmds='chmod 555 $lib'
16555   # or fails outright, so override atomically:
16556   install_override_mode=555
16557   ;;
16558
16559 interix[3-9]*)
16560   version_type=linux # correct to gnu/linux during the next big refactor
16561   need_lib_prefix=no
16562   need_version=no
16563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16564   soname_spec='${libname}${release}${shared_ext}$major'
16565   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16566   shlibpath_var=LD_LIBRARY_PATH
16567   shlibpath_overrides_runpath=no
16568   hardcode_into_libs=yes
16569   ;;
16570
16571 irix5* | irix6* | nonstopux*)
16572   case $host_os in
16573     nonstopux*) version_type=nonstopux ;;
16574     *)
16575         if test "$lt_cv_prog_gnu_ld" = yes; then
16576                 version_type=linux # correct to gnu/linux during the next big refactor
16577         else
16578                 version_type=irix
16579         fi ;;
16580   esac
16581   need_lib_prefix=no
16582   need_version=no
16583   soname_spec='${libname}${release}${shared_ext}$major'
16584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16585   case $host_os in
16586   irix5* | nonstopux*)
16587     libsuff= shlibsuff=
16588     ;;
16589   *)
16590     case $LD in # libtool.m4 will add one of these switches to LD
16591     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16592       libsuff= shlibsuff= libmagic=32-bit;;
16593     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16594       libsuff=32 shlibsuff=N32 libmagic=N32;;
16595     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16596       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16597     *) libsuff= shlibsuff= libmagic=never-match;;
16598     esac
16599     ;;
16600   esac
16601   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16602   shlibpath_overrides_runpath=no
16603   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16604   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16605   hardcode_into_libs=yes
16606   ;;
16607
16608 # No shared lib support for Linux oldld, aout, or coff.
16609 linux*oldld* | linux*aout* | linux*coff*)
16610   dynamic_linker=no
16611   ;;
16612
16613 # This must be glibc/ELF.
16614 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16615   version_type=linux # correct to gnu/linux during the next big refactor
16616   need_lib_prefix=no
16617   need_version=no
16618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619   soname_spec='${libname}${release}${shared_ext}$major'
16620   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16621   shlibpath_var=LD_LIBRARY_PATH
16622   shlibpath_overrides_runpath=no
16623
16624   # Some binutils ld are patched to set DT_RUNPATH
16625   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16626   $as_echo_n "(cached) " >&6
16627 else
16628   lt_cv_shlibpath_overrides_runpath=no
16629     save_LDFLAGS=$LDFLAGS
16630     save_libdir=$libdir
16631     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16632          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16633     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h.  */
16635
16636 int
16637 main ()
16638 {
16639
16640   ;
16641   return 0;
16642 }
16643 _ACEOF
16644 if ac_fn_c_try_link "$LINENO"; then :
16645   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16646   lt_cv_shlibpath_overrides_runpath=yes
16647 fi
16648 fi
16649 rm -f core conftest.err conftest.$ac_objext \
16650     conftest$ac_exeext conftest.$ac_ext
16651     LDFLAGS=$save_LDFLAGS
16652     libdir=$save_libdir
16653
16654 fi
16655
16656   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16657
16658   # This implies no fast_install, which is unacceptable.
16659   # Some rework will be needed to allow for fast_install
16660   # before this can be enabled.
16661   hardcode_into_libs=yes
16662
16663   # Add ABI-specific directories to the system library path.
16664   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16665
16666   # Append ld.so.conf contents to the search path
16667   if test -f /etc/ld.so.conf; then
16668     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' ' '`
16669     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16670
16671   fi
16672
16673   # We used to test for /lib/ld.so.1 and disable shared libraries on
16674   # powerpc, because MkLinux only supported shared libraries with the
16675   # GNU dynamic linker.  Since this was broken with cross compilers,
16676   # most powerpc-linux boxes support dynamic linking these days and
16677   # people can always --disable-shared, the test was removed, and we
16678   # assume the GNU/Linux dynamic linker is in use.
16679   dynamic_linker='GNU/Linux ld.so'
16680   ;;
16681
16682 netbsd*)
16683   version_type=sunos
16684   need_lib_prefix=no
16685   need_version=no
16686   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16688     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16689     dynamic_linker='NetBSD (a.out) ld.so'
16690   else
16691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16692     soname_spec='${libname}${release}${shared_ext}$major'
16693     dynamic_linker='NetBSD ld.elf_so'
16694   fi
16695   shlibpath_var=LD_LIBRARY_PATH
16696   shlibpath_overrides_runpath=yes
16697   hardcode_into_libs=yes
16698   ;;
16699
16700 newsos6)
16701   version_type=linux # correct to gnu/linux during the next big refactor
16702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703   shlibpath_var=LD_LIBRARY_PATH
16704   shlibpath_overrides_runpath=yes
16705   ;;
16706
16707 *nto* | *qnx*)
16708   version_type=qnx
16709   need_lib_prefix=no
16710   need_version=no
16711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712   soname_spec='${libname}${release}${shared_ext}$major'
16713   shlibpath_var=LD_LIBRARY_PATH
16714   shlibpath_overrides_runpath=no
16715   hardcode_into_libs=yes
16716   dynamic_linker='ldqnx.so'
16717   ;;
16718
16719 openbsd*)
16720   version_type=sunos
16721   sys_lib_dlsearch_path_spec="/usr/lib"
16722   need_lib_prefix=no
16723   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16724   case $host_os in
16725     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16726     *)                          need_version=no  ;;
16727   esac
16728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16729   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16730   shlibpath_var=LD_LIBRARY_PATH
16731   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16732     case $host_os in
16733       openbsd2.[89] | openbsd2.[89].*)
16734         shlibpath_overrides_runpath=no
16735         ;;
16736       *)
16737         shlibpath_overrides_runpath=yes
16738         ;;
16739       esac
16740   else
16741     shlibpath_overrides_runpath=yes
16742   fi
16743   ;;
16744
16745 os2*)
16746   libname_spec='$name'
16747   shrext_cmds=".dll"
16748   need_lib_prefix=no
16749   library_names_spec='$libname${shared_ext} $libname.a'
16750   dynamic_linker='OS/2 ld.exe'
16751   shlibpath_var=LIBPATH
16752   ;;
16753
16754 osf3* | osf4* | osf5*)
16755   version_type=osf
16756   need_lib_prefix=no
16757   need_version=no
16758   soname_spec='${libname}${release}${shared_ext}$major'
16759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16760   shlibpath_var=LD_LIBRARY_PATH
16761   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16762   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16763   ;;
16764
16765 rdos*)
16766   dynamic_linker=no
16767   ;;
16768
16769 solaris*)
16770   version_type=linux # correct to gnu/linux during the next big refactor
16771   need_lib_prefix=no
16772   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
16776   shlibpath_overrides_runpath=yes
16777   hardcode_into_libs=yes
16778   # ldd complains unless libraries are executable
16779   postinstall_cmds='chmod +x $lib'
16780   ;;
16781
16782 sunos4*)
16783   version_type=sunos
16784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16785   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16786   shlibpath_var=LD_LIBRARY_PATH
16787   shlibpath_overrides_runpath=yes
16788   if test "$with_gnu_ld" = yes; then
16789     need_lib_prefix=no
16790   fi
16791   need_version=yes
16792   ;;
16793
16794 sysv4 | sysv4.3*)
16795   version_type=linux # correct to gnu/linux during the next big refactor
16796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797   soname_spec='${libname}${release}${shared_ext}$major'
16798   shlibpath_var=LD_LIBRARY_PATH
16799   case $host_vendor in
16800     sni)
16801       shlibpath_overrides_runpath=no
16802       need_lib_prefix=no
16803       runpath_var=LD_RUN_PATH
16804       ;;
16805     siemens)
16806       need_lib_prefix=no
16807       ;;
16808     motorola)
16809       need_lib_prefix=no
16810       need_version=no
16811       shlibpath_overrides_runpath=no
16812       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16813       ;;
16814   esac
16815   ;;
16816
16817 sysv4*MP*)
16818   if test -d /usr/nec ;then
16819     version_type=linux # correct to gnu/linux during the next big refactor
16820     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16821     soname_spec='$libname${shared_ext}.$major'
16822     shlibpath_var=LD_LIBRARY_PATH
16823   fi
16824   ;;
16825
16826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16827   version_type=freebsd-elf
16828   need_lib_prefix=no
16829   need_version=no
16830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16831   soname_spec='${libname}${release}${shared_ext}$major'
16832   shlibpath_var=LD_LIBRARY_PATH
16833   shlibpath_overrides_runpath=yes
16834   hardcode_into_libs=yes
16835   if test "$with_gnu_ld" = yes; then
16836     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16837   else
16838     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16839     case $host_os in
16840       sco3.2v5*)
16841         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16842         ;;
16843     esac
16844   fi
16845   sys_lib_dlsearch_path_spec='/usr/lib'
16846   ;;
16847
16848 tpf*)
16849   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16850   version_type=linux # correct to gnu/linux during the next big refactor
16851   need_lib_prefix=no
16852   need_version=no
16853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854   shlibpath_var=LD_LIBRARY_PATH
16855   shlibpath_overrides_runpath=no
16856   hardcode_into_libs=yes
16857   ;;
16858
16859 uts4*)
16860   version_type=linux # correct to gnu/linux during the next big refactor
16861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862   soname_spec='${libname}${release}${shared_ext}$major'
16863   shlibpath_var=LD_LIBRARY_PATH
16864   ;;
16865
16866 *)
16867   dynamic_linker=no
16868   ;;
16869 esac
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16871 $as_echo "$dynamic_linker" >&6; }
16872 test "$dynamic_linker" = no && can_build_shared=no
16873
16874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16875 if test "$GCC" = yes; then
16876   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16877 fi
16878
16879 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16880   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16881 fi
16882 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16883   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16884 fi
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16978 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16979 hardcode_action=
16980 if test -n "$hardcode_libdir_flag_spec" ||
16981    test -n "$runpath_var" ||
16982    test "X$hardcode_automatic" = "Xyes" ; then
16983
16984   # We can hardcode non-existent directories.
16985   if test "$hardcode_direct" != no &&
16986      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16987      # have to relink, otherwise we might link with an installed library
16988      # when we should be linking with a yet-to-be-installed one
16989      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16990      test "$hardcode_minus_L" != no; then
16991     # Linking always hardcodes the temporary library directory.
16992     hardcode_action=relink
16993   else
16994     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16995     hardcode_action=immediate
16996   fi
16997 else
16998   # We cannot hardcode anything, or else we can only hardcode existing
16999   # directories.
17000   hardcode_action=unsupported
17001 fi
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17003 $as_echo "$hardcode_action" >&6; }
17004
17005 if test "$hardcode_action" = relink ||
17006    test "$inherit_rpath" = yes; then
17007   # Fast installation is not supported
17008   enable_fast_install=no
17009 elif test "$shlibpath_overrides_runpath" = yes ||
17010      test "$enable_shared" = no; then
17011   # Fast installation is not necessary
17012   enable_fast_install=needless
17013 fi
17014
17015
17016
17017
17018
17019
17020   if test "x$enable_dlopen" != xyes; then
17021   enable_dlopen=unknown
17022   enable_dlopen_self=unknown
17023   enable_dlopen_self_static=unknown
17024 else
17025   lt_cv_dlopen=no
17026   lt_cv_dlopen_libs=
17027
17028   case $host_os in
17029   beos*)
17030     lt_cv_dlopen="load_add_on"
17031     lt_cv_dlopen_libs=
17032     lt_cv_dlopen_self=yes
17033     ;;
17034
17035   mingw* | pw32* | cegcc*)
17036     lt_cv_dlopen="LoadLibrary"
17037     lt_cv_dlopen_libs=
17038     ;;
17039
17040   cygwin*)
17041     lt_cv_dlopen="dlopen"
17042     lt_cv_dlopen_libs=
17043     ;;
17044
17045   darwin*)
17046   # if libdl is installed we need to link against it
17047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17048 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17049 if ${ac_cv_lib_dl_dlopen+:} false; then :
17050   $as_echo_n "(cached) " >&6
17051 else
17052   ac_check_lib_save_LIBS=$LIBS
17053 LIBS="-ldl  $LIBS"
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h.  */
17056
17057 /* Override any GCC internal prototype to avoid an error.
17058    Use char because int might match the return type of a GCC
17059    builtin and then its argument prototype would still apply.  */
17060 #ifdef __cplusplus
17061 extern "C"
17062 #endif
17063 char dlopen ();
17064 int
17065 main ()
17066 {
17067 return dlopen ();
17068   ;
17069   return 0;
17070 }
17071 _ACEOF
17072 if ac_fn_c_try_link "$LINENO"; then :
17073   ac_cv_lib_dl_dlopen=yes
17074 else
17075   ac_cv_lib_dl_dlopen=no
17076 fi
17077 rm -f core conftest.err conftest.$ac_objext \
17078     conftest$ac_exeext conftest.$ac_ext
17079 LIBS=$ac_check_lib_save_LIBS
17080 fi
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17082 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17083 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17084   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17085 else
17086
17087     lt_cv_dlopen="dyld"
17088     lt_cv_dlopen_libs=
17089     lt_cv_dlopen_self=yes
17090
17091 fi
17092
17093     ;;
17094
17095   *)
17096     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17097 if test "x$ac_cv_func_shl_load" = xyes; then :
17098   lt_cv_dlopen="shl_load"
17099 else
17100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17101 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17102 if ${ac_cv_lib_dld_shl_load+:} false; then :
17103   $as_echo_n "(cached) " >&6
17104 else
17105   ac_check_lib_save_LIBS=$LIBS
17106 LIBS="-ldld  $LIBS"
17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108 /* end confdefs.h.  */
17109
17110 /* Override any GCC internal prototype to avoid an error.
17111    Use char because int might match the return type of a GCC
17112    builtin and then its argument prototype would still apply.  */
17113 #ifdef __cplusplus
17114 extern "C"
17115 #endif
17116 char shl_load ();
17117 int
17118 main ()
17119 {
17120 return shl_load ();
17121   ;
17122   return 0;
17123 }
17124 _ACEOF
17125 if ac_fn_c_try_link "$LINENO"; then :
17126   ac_cv_lib_dld_shl_load=yes
17127 else
17128   ac_cv_lib_dld_shl_load=no
17129 fi
17130 rm -f core conftest.err conftest.$ac_objext \
17131     conftest$ac_exeext conftest.$ac_ext
17132 LIBS=$ac_check_lib_save_LIBS
17133 fi
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17135 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17136 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17137   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17138 else
17139   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17140 if test "x$ac_cv_func_dlopen" = xyes; then :
17141   lt_cv_dlopen="dlopen"
17142 else
17143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17144 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17145 if ${ac_cv_lib_dl_dlopen+:} false; then :
17146   $as_echo_n "(cached) " >&6
17147 else
17148   ac_check_lib_save_LIBS=$LIBS
17149 LIBS="-ldl  $LIBS"
17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h.  */
17152
17153 /* Override any GCC internal prototype to avoid an error.
17154    Use char because int might match the return type of a GCC
17155    builtin and then its argument prototype would still apply.  */
17156 #ifdef __cplusplus
17157 extern "C"
17158 #endif
17159 char dlopen ();
17160 int
17161 main ()
17162 {
17163 return dlopen ();
17164   ;
17165   return 0;
17166 }
17167 _ACEOF
17168 if ac_fn_c_try_link "$LINENO"; then :
17169   ac_cv_lib_dl_dlopen=yes
17170 else
17171   ac_cv_lib_dl_dlopen=no
17172 fi
17173 rm -f core conftest.err conftest.$ac_objext \
17174     conftest$ac_exeext conftest.$ac_ext
17175 LIBS=$ac_check_lib_save_LIBS
17176 fi
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17178 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17179 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17180   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17181 else
17182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17183 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17184 if ${ac_cv_lib_svld_dlopen+:} false; then :
17185   $as_echo_n "(cached) " >&6
17186 else
17187   ac_check_lib_save_LIBS=$LIBS
17188 LIBS="-lsvld  $LIBS"
17189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h.  */
17191
17192 /* Override any GCC internal prototype to avoid an error.
17193    Use char because int might match the return type of a GCC
17194    builtin and then its argument prototype would still apply.  */
17195 #ifdef __cplusplus
17196 extern "C"
17197 #endif
17198 char dlopen ();
17199 int
17200 main ()
17201 {
17202 return dlopen ();
17203   ;
17204   return 0;
17205 }
17206 _ACEOF
17207 if ac_fn_c_try_link "$LINENO"; then :
17208   ac_cv_lib_svld_dlopen=yes
17209 else
17210   ac_cv_lib_svld_dlopen=no
17211 fi
17212 rm -f core conftest.err conftest.$ac_objext \
17213     conftest$ac_exeext conftest.$ac_ext
17214 LIBS=$ac_check_lib_save_LIBS
17215 fi
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17217 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17218 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17219   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17220 else
17221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17222 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17223 if ${ac_cv_lib_dld_dld_link+:} false; then :
17224   $as_echo_n "(cached) " >&6
17225 else
17226   ac_check_lib_save_LIBS=$LIBS
17227 LIBS="-ldld  $LIBS"
17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h.  */
17230
17231 /* Override any GCC internal prototype to avoid an error.
17232    Use char because int might match the return type of a GCC
17233    builtin and then its argument prototype would still apply.  */
17234 #ifdef __cplusplus
17235 extern "C"
17236 #endif
17237 char dld_link ();
17238 int
17239 main ()
17240 {
17241 return dld_link ();
17242   ;
17243   return 0;
17244 }
17245 _ACEOF
17246 if ac_fn_c_try_link "$LINENO"; then :
17247   ac_cv_lib_dld_dld_link=yes
17248 else
17249   ac_cv_lib_dld_dld_link=no
17250 fi
17251 rm -f core conftest.err conftest.$ac_objext \
17252     conftest$ac_exeext conftest.$ac_ext
17253 LIBS=$ac_check_lib_save_LIBS
17254 fi
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17256 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17257 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17258   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17259 fi
17260
17261
17262 fi
17263
17264
17265 fi
17266
17267
17268 fi
17269
17270
17271 fi
17272
17273
17274 fi
17275
17276     ;;
17277   esac
17278
17279   if test "x$lt_cv_dlopen" != xno; then
17280     enable_dlopen=yes
17281   else
17282     enable_dlopen=no
17283   fi
17284
17285   case $lt_cv_dlopen in
17286   dlopen)
17287     save_CPPFLAGS="$CPPFLAGS"
17288     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17289
17290     save_LDFLAGS="$LDFLAGS"
17291     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17292
17293     save_LIBS="$LIBS"
17294     LIBS="$lt_cv_dlopen_libs $LIBS"
17295
17296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17297 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17298 if ${lt_cv_dlopen_self+:} false; then :
17299   $as_echo_n "(cached) " >&6
17300 else
17301           if test "$cross_compiling" = yes; then :
17302   lt_cv_dlopen_self=cross
17303 else
17304   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17305   lt_status=$lt_dlunknown
17306   cat > conftest.$ac_ext <<_LT_EOF
17307 #line $LINENO "configure"
17308 #include "confdefs.h"
17309
17310 #if HAVE_DLFCN_H
17311 #include <dlfcn.h>
17312 #endif
17313
17314 #include <stdio.h>
17315
17316 #ifdef RTLD_GLOBAL
17317 #  define LT_DLGLOBAL           RTLD_GLOBAL
17318 #else
17319 #  ifdef DL_GLOBAL
17320 #    define LT_DLGLOBAL         DL_GLOBAL
17321 #  else
17322 #    define LT_DLGLOBAL         0
17323 #  endif
17324 #endif
17325
17326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17327    find out it does not work in some platform. */
17328 #ifndef LT_DLLAZY_OR_NOW
17329 #  ifdef RTLD_LAZY
17330 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17331 #  else
17332 #    ifdef DL_LAZY
17333 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17334 #    else
17335 #      ifdef RTLD_NOW
17336 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17337 #      else
17338 #        ifdef DL_NOW
17339 #          define LT_DLLAZY_OR_NOW      DL_NOW
17340 #        else
17341 #          define LT_DLLAZY_OR_NOW      0
17342 #        endif
17343 #      endif
17344 #    endif
17345 #  endif
17346 #endif
17347
17348 /* When -fvisbility=hidden is used, assume the code has been annotated
17349    correspondingly for the symbols needed.  */
17350 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17351 int fnord () __attribute__((visibility("default")));
17352 #endif
17353
17354 int fnord () { return 42; }
17355 int main ()
17356 {
17357   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17358   int status = $lt_dlunknown;
17359
17360   if (self)
17361     {
17362       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17363       else
17364         {
17365           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17366           else puts (dlerror ());
17367         }
17368       /* dlclose (self); */
17369     }
17370   else
17371     puts (dlerror ());
17372
17373   return status;
17374 }
17375 _LT_EOF
17376   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17377   (eval $ac_link) 2>&5
17378   ac_status=$?
17379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17380   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17381     (./conftest; exit; ) >&5 2>/dev/null
17382     lt_status=$?
17383     case x$lt_status in
17384       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17385       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17386       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17387     esac
17388   else :
17389     # compilation failed
17390     lt_cv_dlopen_self=no
17391   fi
17392 fi
17393 rm -fr conftest*
17394
17395
17396 fi
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17398 $as_echo "$lt_cv_dlopen_self" >&6; }
17399
17400     if test "x$lt_cv_dlopen_self" = xyes; then
17401       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17402       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17403 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17404 if ${lt_cv_dlopen_self_static+:} false; then :
17405   $as_echo_n "(cached) " >&6
17406 else
17407           if test "$cross_compiling" = yes; then :
17408   lt_cv_dlopen_self_static=cross
17409 else
17410   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17411   lt_status=$lt_dlunknown
17412   cat > conftest.$ac_ext <<_LT_EOF
17413 #line $LINENO "configure"
17414 #include "confdefs.h"
17415
17416 #if HAVE_DLFCN_H
17417 #include <dlfcn.h>
17418 #endif
17419
17420 #include <stdio.h>
17421
17422 #ifdef RTLD_GLOBAL
17423 #  define LT_DLGLOBAL           RTLD_GLOBAL
17424 #else
17425 #  ifdef DL_GLOBAL
17426 #    define LT_DLGLOBAL         DL_GLOBAL
17427 #  else
17428 #    define LT_DLGLOBAL         0
17429 #  endif
17430 #endif
17431
17432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17433    find out it does not work in some platform. */
17434 #ifndef LT_DLLAZY_OR_NOW
17435 #  ifdef RTLD_LAZY
17436 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17437 #  else
17438 #    ifdef DL_LAZY
17439 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17440 #    else
17441 #      ifdef RTLD_NOW
17442 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17443 #      else
17444 #        ifdef DL_NOW
17445 #          define LT_DLLAZY_OR_NOW      DL_NOW
17446 #        else
17447 #          define LT_DLLAZY_OR_NOW      0
17448 #        endif
17449 #      endif
17450 #    endif
17451 #  endif
17452 #endif
17453
17454 /* When -fvisbility=hidden is used, assume the code has been annotated
17455    correspondingly for the symbols needed.  */
17456 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17457 int fnord () __attribute__((visibility("default")));
17458 #endif
17459
17460 int fnord () { return 42; }
17461 int main ()
17462 {
17463   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17464   int status = $lt_dlunknown;
17465
17466   if (self)
17467     {
17468       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17469       else
17470         {
17471           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17472           else puts (dlerror ());
17473         }
17474       /* dlclose (self); */
17475     }
17476   else
17477     puts (dlerror ());
17478
17479   return status;
17480 }
17481 _LT_EOF
17482   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17483   (eval $ac_link) 2>&5
17484   ac_status=$?
17485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17486   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17487     (./conftest; exit; ) >&5 2>/dev/null
17488     lt_status=$?
17489     case x$lt_status in
17490       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17491       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17492       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17493     esac
17494   else :
17495     # compilation failed
17496     lt_cv_dlopen_self_static=no
17497   fi
17498 fi
17499 rm -fr conftest*
17500
17501
17502 fi
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17504 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17505     fi
17506
17507     CPPFLAGS="$save_CPPFLAGS"
17508     LDFLAGS="$save_LDFLAGS"
17509     LIBS="$save_LIBS"
17510     ;;
17511   esac
17512
17513   case $lt_cv_dlopen_self in
17514   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17515   *) enable_dlopen_self=unknown ;;
17516   esac
17517
17518   case $lt_cv_dlopen_self_static in
17519   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17520   *) enable_dlopen_self_static=unknown ;;
17521   esac
17522 fi
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540 striplib=
17541 old_striplib=
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17543 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17544 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17545   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17546   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17548 $as_echo "yes" >&6; }
17549 else
17550 # FIXME - insert some real tests, host_os isn't really good enough
17551   case $host_os in
17552   darwin*)
17553     if test -n "$STRIP" ; then
17554       striplib="$STRIP -x"
17555       old_striplib="$STRIP -S"
17556       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17557 $as_echo "yes" >&6; }
17558     else
17559       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17560 $as_echo "no" >&6; }
17561     fi
17562     ;;
17563   *)
17564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17565 $as_echo "no" >&6; }
17566     ;;
17567   esac
17568 fi
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581   # Report which library types will actually be built
17582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17583 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17585 $as_echo "$can_build_shared" >&6; }
17586
17587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17588 $as_echo_n "checking whether to build shared libraries... " >&6; }
17589   test "$can_build_shared" = "no" && enable_shared=no
17590
17591   # On AIX, shared libraries and static libraries use the same namespace, and
17592   # are all built from PIC.
17593   case $host_os in
17594   aix3*)
17595     test "$enable_shared" = yes && enable_static=no
17596     if test -n "$RANLIB"; then
17597       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17598       postinstall_cmds='$RANLIB $lib'
17599     fi
17600     ;;
17601
17602   aix[4-9]*)
17603     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17604       test "$enable_shared" = yes && enable_static=no
17605     fi
17606     ;;
17607   esac
17608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17609 $as_echo "$enable_shared" >&6; }
17610
17611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17612 $as_echo_n "checking whether to build static libraries... " >&6; }
17613   # Make sure either enable_shared or enable_static is yes.
17614   test "$enable_shared" = yes || enable_static=yes
17615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17616 $as_echo "$enable_static" >&6; }
17617
17618
17619
17620
17621 fi
17622 ac_ext=c
17623 ac_cpp='$CPP $CPPFLAGS'
17624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17627
17628 CC="$lt_save_CC"
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644         ac_config_commands="$ac_config_commands libtool"
17645
17646
17647
17648
17649 # Only expand once:
17650
17651
17652
17653
17654
17655 # Define a configure option for an alternate module directory
17656
17657 # Check whether --with-xorg-module-dir was given.
17658 if test "${with_xorg_module_dir+set}" = set; then :
17659   withval=$with_xorg_module_dir;  moduledir="$withval"
17660 else
17661    moduledir="$libdir/xorg/modules"
17662 fi
17663
17664
17665
17666 # Store the list of server defined optional extensions in REQUIRED_MODULES
17667
17668
17669         SAVE_CFLAGS="$CFLAGS"
17670         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17671         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672 /* end confdefs.h.  */
17673
17674 #include "xorg-server.h"
17675 #if !defined RANDR
17676 #error RANDR not defined
17677 #endif
17678
17679 int
17680 main ()
17681 {
17682
17683   ;
17684   return 0;
17685 }
17686 _ACEOF
17687 if ac_fn_c_try_compile "$LINENO"; then :
17688   _EXT_CHECK=yes
17689 else
17690   _EXT_CHECK=no
17691 fi
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693         CFLAGS="$SAVE_CFLAGS"
17694         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17695 $as_echo_n "checking if RANDR is defined... " >&6; }
17696         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17697 $as_echo "$_EXT_CHECK" >&6; }
17698         if test "$_EXT_CHECK" != no; then
17699                 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17700         fi
17701
17702
17703
17704         SAVE_CFLAGS="$CFLAGS"
17705         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17706         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707 /* end confdefs.h.  */
17708
17709 #include "xorg-server.h"
17710 #if !defined RENDER
17711 #error RENDER not defined
17712 #endif
17713
17714 int
17715 main ()
17716 {
17717
17718   ;
17719   return 0;
17720 }
17721 _ACEOF
17722 if ac_fn_c_try_compile "$LINENO"; then :
17723   _EXT_CHECK=yes
17724 else
17725   _EXT_CHECK=no
17726 fi
17727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17728         CFLAGS="$SAVE_CFLAGS"
17729         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17730 $as_echo_n "checking if RENDER is defined... " >&6; }
17731         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17732 $as_echo "$_EXT_CHECK" >&6; }
17733         if test "$_EXT_CHECK" != no; then
17734                 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17735         fi
17736
17737
17738
17739         SAVE_CFLAGS="$CFLAGS"
17740         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17741         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742 /* end confdefs.h.  */
17743
17744 #include "xorg-server.h"
17745 #if !defined DPMSExtension
17746 #error DPMSExtension not defined
17747 #endif
17748
17749 int
17750 main ()
17751 {
17752
17753   ;
17754   return 0;
17755 }
17756 _ACEOF
17757 if ac_fn_c_try_compile "$LINENO"; then :
17758   _EXT_CHECK=yes
17759 else
17760   _EXT_CHECK=no
17761 fi
17762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17763         CFLAGS="$SAVE_CFLAGS"
17764         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17765 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17766         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17767 $as_echo "$_EXT_CHECK" >&6; }
17768         if test "$_EXT_CHECK" != no; then
17769                 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17770         fi
17771
17772
17773 # Obtain compiler/linker options for the driver dependencies
17774
17775 pkg_failed=no
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17777 $as_echo_n "checking for XORG... " >&6; }
17778
17779 if test -n "$XORG_CFLAGS"; then
17780     pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17781  elif test -n "$PKG_CONFIG"; then
17782     if test -n "$PKG_CONFIG" && \
17783     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17784   ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17785   ac_status=$?
17786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17787   test $ac_status = 0; }; then
17788   pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17789 else
17790   pkg_failed=yes
17791 fi
17792  else
17793     pkg_failed=untried
17794 fi
17795 if test -n "$XORG_LIBS"; then
17796     pkg_cv_XORG_LIBS="$XORG_LIBS"
17797  elif test -n "$PKG_CONFIG"; then
17798     if test -n "$PKG_CONFIG" && \
17799     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17800   ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17801   ac_status=$?
17802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17803   test $ac_status = 0; }; then
17804   pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17805 else
17806   pkg_failed=yes
17807 fi
17808  else
17809     pkg_failed=untried
17810 fi
17811
17812
17813
17814 if test $pkg_failed = yes; then
17815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17816 $as_echo "no" >&6; }
17817
17818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17819         _pkg_short_errors_supported=yes
17820 else
17821         _pkg_short_errors_supported=no
17822 fi
17823         if test $_pkg_short_errors_supported = yes; then
17824                 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17825         else
17826                 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17827         fi
17828         # Put the nasty error message in config.log where it belongs
17829         echo "$XORG_PKG_ERRORS" >&5
17830
17831         as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
17832
17833 $XORG_PKG_ERRORS
17834
17835 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17836 installed software in a non-standard prefix.
17837
17838 Alternatively, you may set the environment variables XORG_CFLAGS
17839 and XORG_LIBS to avoid the need to call pkg-config.
17840 See the pkg-config man page for more details." "$LINENO" 5
17841
17842 elif test $pkg_failed = untried; then
17843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17844 $as_echo "no" >&6; }
17845         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17847 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17848 is in your PATH or set the PKG_CONFIG environment variable to the full
17849 path to pkg-config.
17850
17851 Alternatively, you may set the environment variables XORG_CFLAGS
17852 and XORG_LIBS to avoid the need to call pkg-config.
17853 See the pkg-config man page for more details.
17854
17855 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17856 See \`config.log' for more details" "$LINENO" 5; }
17857
17858 else
17859         XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17860         XORG_LIBS=$pkg_cv_XORG_LIBS
17861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17862 $as_echo "yes" >&6; }
17863
17864 fi
17865
17866 pkg_failed=no
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
17868 $as_echo_n "checking for XEXT... " >&6; }
17869
17870 if test -n "$XEXT_CFLAGS"; then
17871     pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
17872  elif test -n "$PKG_CONFIG"; then
17873     if test -n "$PKG_CONFIG" && \
17874     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
17875   ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
17876   ac_status=$?
17877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17878   test $ac_status = 0; }; then
17879   pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
17880 else
17881   pkg_failed=yes
17882 fi
17883  else
17884     pkg_failed=untried
17885 fi
17886 if test -n "$XEXT_LIBS"; then
17887     pkg_cv_XEXT_LIBS="$XEXT_LIBS"
17888  elif test -n "$PKG_CONFIG"; then
17889     if test -n "$PKG_CONFIG" && \
17890     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
17891   ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
17892   ac_status=$?
17893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17894   test $ac_status = 0; }; then
17895   pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
17896 else
17897   pkg_failed=yes
17898 fi
17899  else
17900     pkg_failed=untried
17901 fi
17902
17903
17904
17905 if test $pkg_failed = yes; then
17906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17907 $as_echo "no" >&6; }
17908
17909 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17910         _pkg_short_errors_supported=yes
17911 else
17912         _pkg_short_errors_supported=no
17913 fi
17914         if test $_pkg_short_errors_supported = yes; then
17915                 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
17916         else
17917                 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
17918         fi
17919         # Put the nasty error message in config.log where it belongs
17920         echo "$XEXT_PKG_ERRORS" >&5
17921
17922         HAVE_XEXTPROTO_71="no"
17923 elif test $pkg_failed = untried; then
17924         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17925 $as_echo "no" >&6; }
17926         HAVE_XEXTPROTO_71="no"
17927 else
17928         XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
17929         XEXT_LIBS=$pkg_cv_XEXT_LIBS
17930         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17931 $as_echo "yes" >&6; }
17932         HAVE_XEXTPROTO_71="yes";
17933 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
17934
17935 fi
17936  if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
17937   HAVE_XEXTPROTO_71_TRUE=
17938   HAVE_XEXTPROTO_71_FALSE='#'
17939 else
17940   HAVE_XEXTPROTO_71_TRUE='#'
17941   HAVE_XEXTPROTO_71_FALSE=
17942 fi
17943
17944
17945 save_CFLAGS="$CFLAGS"
17946 CFLAGS="$XORG_CFLAGS"
17947 ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
17948 "
17949 if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
17950
17951 $as_echo "#define HAVE_ISA 1" >>confdefs.h
17952
17953 fi
17954
17955 CFLAGS="$save_CFLAGS"
17956
17957 save_CFLAGS="$CFLAGS"
17958 CFLAGS="$XORG_CFLAGS"
17959 ac_fn_c_check_decl "$LINENO" "VBEReadPanelID" "ac_cv_have_decl_VBEReadPanelID" "#include \"vbe.h\"
17960 "
17961 if test "x$ac_cv_have_decl_VBEReadPanelID" = xyes; then :
17962
17963 $as_echo "#define HAVE_PANELID 1" >>confdefs.h
17964
17965 fi
17966
17967 CFLAGS="$save_CFLAGS"
17968
17969 save_CFLAGS="$CFLAGS"
17970 CFLAGS="$XORG_CFLAGS"
17971 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
17972 "
17973 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
17974   XSERVER_LIBPCIACCESS=yes
17975 else
17976   XSERVER_LIBPCIACCESS=no
17977 fi
17978
17979 CFLAGS="$save_CFLAGS"
17980
17981 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
17982
17983 pkg_failed=no
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
17985 $as_echo_n "checking for PCIACCESS... " >&6; }
17986
17987 if test -n "$PCIACCESS_CFLAGS"; then
17988     pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
17989  elif test -n "$PKG_CONFIG"; then
17990     if test -n "$PKG_CONFIG" && \
17991     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
17992   ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
17993   ac_status=$?
17994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17995   test $ac_status = 0; }; then
17996   pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
17997 else
17998   pkg_failed=yes
17999 fi
18000  else
18001     pkg_failed=untried
18002 fi
18003 if test -n "$PCIACCESS_LIBS"; then
18004     pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18005  elif test -n "$PKG_CONFIG"; then
18006     if test -n "$PKG_CONFIG" && \
18007     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18008   ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18009   ac_status=$?
18010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18011   test $ac_status = 0; }; then
18012   pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
18013 else
18014   pkg_failed=yes
18015 fi
18016  else
18017     pkg_failed=untried
18018 fi
18019
18020
18021
18022 if test $pkg_failed = yes; then
18023         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18024 $as_echo "no" >&6; }
18025
18026 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18027         _pkg_short_errors_supported=yes
18028 else
18029         _pkg_short_errors_supported=no
18030 fi
18031         if test $_pkg_short_errors_supported = yes; then
18032                 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.12.901" 2>&1`
18033         else
18034                 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.12.901" 2>&1`
18035         fi
18036         # Put the nasty error message in config.log where it belongs
18037         echo "$PCIACCESS_PKG_ERRORS" >&5
18038
18039         as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
18040
18041 $PCIACCESS_PKG_ERRORS
18042
18043 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18044 installed software in a non-standard prefix.
18045
18046 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18047 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18048 See the pkg-config man page for more details." "$LINENO" 5
18049
18050 elif test $pkg_failed = untried; then
18051         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18052 $as_echo "no" >&6; }
18053         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18055 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18056 is in your PATH or set the PKG_CONFIG environment variable to the full
18057 path to pkg-config.
18058
18059 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18060 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18061 See the pkg-config man page for more details.
18062
18063 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18064 See \`config.log' for more details" "$LINENO" 5; }
18065
18066 else
18067         PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18068         PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18069         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18070 $as_echo "yes" >&6; }
18071
18072 fi
18073 fi
18074  if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18075   XSERVER_LIBPCIACCESS_TRUE=
18076   XSERVER_LIBPCIACCESS_FALSE='#'
18077 else
18078   XSERVER_LIBPCIACCESS_TRUE='#'
18079   XSERVER_LIBPCIACCESS_FALSE=
18080 fi
18081
18082
18083 # Checks for libraries.
18084
18085 DRIVER_NAME=vesa
18086
18087
18088 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18089
18090 cat >confcache <<\_ACEOF
18091 # This file is a shell script that caches the results of configure
18092 # tests run on this system so they can be shared between configure
18093 # scripts and configure runs, see configure's option --config-cache.
18094 # It is not useful on other systems.  If it contains results you don't
18095 # want to keep, you may remove or edit it.
18096 #
18097 # config.status only pays attention to the cache file if you give it
18098 # the --recheck option to rerun configure.
18099 #
18100 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18101 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18102 # following values.
18103
18104 _ACEOF
18105
18106 # The following way of writing the cache mishandles newlines in values,
18107 # but we know of no workaround that is simple, portable, and efficient.
18108 # So, we kill variables containing newlines.
18109 # Ultrix sh set writes to stderr and can't be redirected directly,
18110 # and sets the high bit in the cache file unless we assign to the vars.
18111 (
18112   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18113     eval ac_val=\$$ac_var
18114     case $ac_val in #(
18115     *${as_nl}*)
18116       case $ac_var in #(
18117       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18118 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18119       esac
18120       case $ac_var in #(
18121       _ | IFS | as_nl) ;; #(
18122       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18123       *) { eval $ac_var=; unset $ac_var;} ;;
18124       esac ;;
18125     esac
18126   done
18127
18128   (set) 2>&1 |
18129     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18130     *${as_nl}ac_space=\ *)
18131       # `set' does not quote correctly, so add quotes: double-quote
18132       # substitution turns \\\\ into \\, and sed turns \\ into \.
18133       sed -n \
18134         "s/'/'\\\\''/g;
18135           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18136       ;; #(
18137     *)
18138       # `set' quotes correctly as required by POSIX, so do not add quotes.
18139       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18140       ;;
18141     esac |
18142     sort
18143 ) |
18144   sed '
18145      /^ac_cv_env_/b end
18146      t clear
18147      :clear
18148      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18149      t end
18150      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18151      :end' >>confcache
18152 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18153   if test -w "$cache_file"; then
18154     if test "x$cache_file" != "x/dev/null"; then
18155       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18156 $as_echo "$as_me: updating cache $cache_file" >&6;}
18157       if test ! -f "$cache_file" || test -h "$cache_file"; then
18158         cat confcache >"$cache_file"
18159       else
18160         case $cache_file in #(
18161         */* | ?:*)
18162           mv -f confcache "$cache_file"$$ &&
18163           mv -f "$cache_file"$$ "$cache_file" ;; #(
18164         *)
18165           mv -f confcache "$cache_file" ;;
18166         esac
18167       fi
18168     fi
18169   else
18170     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18171 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18172   fi
18173 fi
18174 rm -f confcache
18175
18176 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18177 # Let make expand exec_prefix.
18178 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18179
18180 DEFS=-DHAVE_CONFIG_H
18181
18182 ac_libobjs=
18183 ac_ltlibobjs=
18184 U=
18185 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18186   # 1. Remove the extension, and $U if already installed.
18187   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18188   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18189   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18190   #    will be set to the directory where LIBOBJS objects are built.
18191   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18192   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18193 done
18194 LIBOBJS=$ac_libobjs
18195
18196 LTLIBOBJS=$ac_ltlibobjs
18197
18198
18199  if test -n "$EXEEXT"; then
18200   am__EXEEXT_TRUE=
18201   am__EXEEXT_FALSE='#'
18202 else
18203   am__EXEEXT_TRUE='#'
18204   am__EXEEXT_FALSE=
18205 fi
18206
18207 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18208   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18210 fi
18211 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18212   as_fn_error $? "conditional \"AMDEP\" was never defined.
18213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18214 fi
18215 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18216   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18218 fi
18219 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
18220   as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
18221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18222 fi
18223 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18224   as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18226 fi
18227
18228 : "${CONFIG_STATUS=./config.status}"
18229 ac_write_fail=0
18230 ac_clean_files_save=$ac_clean_files
18231 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18233 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18234 as_write_fail=0
18235 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18236 #! $SHELL
18237 # Generated by $as_me.
18238 # Run this file to recreate the current configuration.
18239 # Compiler output produced by configure, useful for debugging
18240 # configure, is in config.log if it exists.
18241
18242 debug=false
18243 ac_cs_recheck=false
18244 ac_cs_silent=false
18245
18246 SHELL=\${CONFIG_SHELL-$SHELL}
18247 export SHELL
18248 _ASEOF
18249 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18250 ## -------------------- ##
18251 ## M4sh Initialization. ##
18252 ## -------------------- ##
18253
18254 # Be more Bourne compatible
18255 DUALCASE=1; export DUALCASE # for MKS sh
18256 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18257   emulate sh
18258   NULLCMD=:
18259   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18260   # is contrary to our usage.  Disable this feature.
18261   alias -g '${1+"$@"}'='"$@"'
18262   setopt NO_GLOB_SUBST
18263 else
18264   case `(set -o) 2>/dev/null` in #(
18265   *posix*) :
18266     set -o posix ;; #(
18267   *) :
18268      ;;
18269 esac
18270 fi
18271
18272
18273 as_nl='
18274 '
18275 export as_nl
18276 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18277 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18278 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18279 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18280 # Prefer a ksh shell builtin over an external printf program on Solaris,
18281 # but without wasting forks for bash or zsh.
18282 if test -z "$BASH_VERSION$ZSH_VERSION" \
18283     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18284   as_echo='print -r --'
18285   as_echo_n='print -rn --'
18286 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18287   as_echo='printf %s\n'
18288   as_echo_n='printf %s'
18289 else
18290   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18291     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18292     as_echo_n='/usr/ucb/echo -n'
18293   else
18294     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18295     as_echo_n_body='eval
18296       arg=$1;
18297       case $arg in #(
18298       *"$as_nl"*)
18299         expr "X$arg" : "X\\(.*\\)$as_nl";
18300         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18301       esac;
18302       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18303     '
18304     export as_echo_n_body
18305     as_echo_n='sh -c $as_echo_n_body as_echo'
18306   fi
18307   export as_echo_body
18308   as_echo='sh -c $as_echo_body as_echo'
18309 fi
18310
18311 # The user is always right.
18312 if test "${PATH_SEPARATOR+set}" != set; then
18313   PATH_SEPARATOR=:
18314   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18315     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18316       PATH_SEPARATOR=';'
18317   }
18318 fi
18319
18320
18321 # IFS
18322 # We need space, tab and new line, in precisely that order.  Quoting is
18323 # there to prevent editors from complaining about space-tab.
18324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18325 # splitting by setting IFS to empty value.)
18326 IFS=" ""        $as_nl"
18327
18328 # Find who we are.  Look in the path if we contain no directory separator.
18329 as_myself=
18330 case $0 in #((
18331   *[\\/]* ) as_myself=$0 ;;
18332   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333 for as_dir in $PATH
18334 do
18335   IFS=$as_save_IFS
18336   test -z "$as_dir" && as_dir=.
18337     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18338   done
18339 IFS=$as_save_IFS
18340
18341      ;;
18342 esac
18343 # We did not find ourselves, most probably we were run as `sh COMMAND'
18344 # in which case we are not to be found in the path.
18345 if test "x$as_myself" = x; then
18346   as_myself=$0
18347 fi
18348 if test ! -f "$as_myself"; then
18349   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18350   exit 1
18351 fi
18352
18353 # Unset variables that we do not need and which cause bugs (e.g. in
18354 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18355 # suppresses any "Segmentation fault" message there.  '((' could
18356 # trigger a bug in pdksh 5.2.14.
18357 for as_var in BASH_ENV ENV MAIL MAILPATH
18358 do eval test x\${$as_var+set} = xset \
18359   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18360 done
18361 PS1='$ '
18362 PS2='> '
18363 PS4='+ '
18364
18365 # NLS nuisances.
18366 LC_ALL=C
18367 export LC_ALL
18368 LANGUAGE=C
18369 export LANGUAGE
18370
18371 # CDPATH.
18372 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18373
18374
18375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18376 # ----------------------------------------
18377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18379 # script with STATUS, using 1 if that was 0.
18380 as_fn_error ()
18381 {
18382   as_status=$1; test $as_status -eq 0 && as_status=1
18383   if test "$4"; then
18384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18386   fi
18387   $as_echo "$as_me: error: $2" >&2
18388   as_fn_exit $as_status
18389 } # as_fn_error
18390
18391
18392 # as_fn_set_status STATUS
18393 # -----------------------
18394 # Set $? to STATUS, without forking.
18395 as_fn_set_status ()
18396 {
18397   return $1
18398 } # as_fn_set_status
18399
18400 # as_fn_exit STATUS
18401 # -----------------
18402 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18403 as_fn_exit ()
18404 {
18405   set +e
18406   as_fn_set_status $1
18407   exit $1
18408 } # as_fn_exit
18409
18410 # as_fn_unset VAR
18411 # ---------------
18412 # Portably unset VAR.
18413 as_fn_unset ()
18414 {
18415   { eval $1=; unset $1;}
18416 }
18417 as_unset=as_fn_unset
18418 # as_fn_append VAR VALUE
18419 # ----------------------
18420 # Append the text in VALUE to the end of the definition contained in VAR. Take
18421 # advantage of any shell optimizations that allow amortized linear growth over
18422 # repeated appends, instead of the typical quadratic growth present in naive
18423 # implementations.
18424 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18425   eval 'as_fn_append ()
18426   {
18427     eval $1+=\$2
18428   }'
18429 else
18430   as_fn_append ()
18431   {
18432     eval $1=\$$1\$2
18433   }
18434 fi # as_fn_append
18435
18436 # as_fn_arith ARG...
18437 # ------------------
18438 # Perform arithmetic evaluation on the ARGs, and store the result in the
18439 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18440 # must be portable across $(()) and expr.
18441 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18442   eval 'as_fn_arith ()
18443   {
18444     as_val=$(( $* ))
18445   }'
18446 else
18447   as_fn_arith ()
18448   {
18449     as_val=`expr "$@" || test $? -eq 1`
18450   }
18451 fi # as_fn_arith
18452
18453
18454 if expr a : '\(a\)' >/dev/null 2>&1 &&
18455    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18456   as_expr=expr
18457 else
18458   as_expr=false
18459 fi
18460
18461 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18462   as_basename=basename
18463 else
18464   as_basename=false
18465 fi
18466
18467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18468   as_dirname=dirname
18469 else
18470   as_dirname=false
18471 fi
18472
18473 as_me=`$as_basename -- "$0" ||
18474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18475          X"$0" : 'X\(//\)$' \| \
18476          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18477 $as_echo X/"$0" |
18478     sed '/^.*\/\([^/][^/]*\)\/*$/{
18479             s//\1/
18480             q
18481           }
18482           /^X\/\(\/\/\)$/{
18483             s//\1/
18484             q
18485           }
18486           /^X\/\(\/\).*/{
18487             s//\1/
18488             q
18489           }
18490           s/.*/./; q'`
18491
18492 # Avoid depending upon Character Ranges.
18493 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18494 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18495 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18496 as_cr_digits='0123456789'
18497 as_cr_alnum=$as_cr_Letters$as_cr_digits
18498
18499 ECHO_C= ECHO_N= ECHO_T=
18500 case `echo -n x` in #(((((
18501 -n*)
18502   case `echo 'xy\c'` in
18503   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18504   xy)  ECHO_C='\c';;
18505   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18506        ECHO_T=' ';;
18507   esac;;
18508 *)
18509   ECHO_N='-n';;
18510 esac
18511
18512 rm -f conf$$ conf$$.exe conf$$.file
18513 if test -d conf$$.dir; then
18514   rm -f conf$$.dir/conf$$.file
18515 else
18516   rm -f conf$$.dir
18517   mkdir conf$$.dir 2>/dev/null
18518 fi
18519 if (echo >conf$$.file) 2>/dev/null; then
18520   if ln -s conf$$.file conf$$ 2>/dev/null; then
18521     as_ln_s='ln -s'
18522     # ... but there are two gotchas:
18523     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18524     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18525     # In both cases, we have to default to `cp -p'.
18526     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18527       as_ln_s='cp -p'
18528   elif ln conf$$.file conf$$ 2>/dev/null; then
18529     as_ln_s=ln
18530   else
18531     as_ln_s='cp -p'
18532   fi
18533 else
18534   as_ln_s='cp -p'
18535 fi
18536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18537 rmdir conf$$.dir 2>/dev/null
18538
18539
18540 # as_fn_mkdir_p
18541 # -------------
18542 # Create "$as_dir" as a directory, including parents if necessary.
18543 as_fn_mkdir_p ()
18544 {
18545
18546   case $as_dir in #(
18547   -*) as_dir=./$as_dir;;
18548   esac
18549   test -d "$as_dir" || eval $as_mkdir_p || {
18550     as_dirs=
18551     while :; do
18552       case $as_dir in #(
18553       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18554       *) as_qdir=$as_dir;;
18555       esac
18556       as_dirs="'$as_qdir' $as_dirs"
18557       as_dir=`$as_dirname -- "$as_dir" ||
18558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18559          X"$as_dir" : 'X\(//\)[^/]' \| \
18560          X"$as_dir" : 'X\(//\)$' \| \
18561          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18562 $as_echo X"$as_dir" |
18563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18564             s//\1/
18565             q
18566           }
18567           /^X\(\/\/\)[^/].*/{
18568             s//\1/
18569             q
18570           }
18571           /^X\(\/\/\)$/{
18572             s//\1/
18573             q
18574           }
18575           /^X\(\/\).*/{
18576             s//\1/
18577             q
18578           }
18579           s/.*/./; q'`
18580       test -d "$as_dir" && break
18581     done
18582     test -z "$as_dirs" || eval "mkdir $as_dirs"
18583   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18584
18585
18586 } # as_fn_mkdir_p
18587 if mkdir -p . 2>/dev/null; then
18588   as_mkdir_p='mkdir -p "$as_dir"'
18589 else
18590   test -d ./-p && rmdir ./-p
18591   as_mkdir_p=false
18592 fi
18593
18594 if test -x / >/dev/null 2>&1; then
18595   as_test_x='test -x'
18596 else
18597   if ls -dL / >/dev/null 2>&1; then
18598     as_ls_L_option=L
18599   else
18600     as_ls_L_option=
18601   fi
18602   as_test_x='
18603     eval sh -c '\''
18604       if test -d "$1"; then
18605         test -d "$1/.";
18606       else
18607         case $1 in #(
18608         -*)set "./$1";;
18609         esac;
18610         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18611         ???[sx]*):;;*)false;;esac;fi
18612     '\'' sh
18613   '
18614 fi
18615 as_executable_p=$as_test_x
18616
18617 # Sed expression to map a string onto a valid CPP name.
18618 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18619
18620 # Sed expression to map a string onto a valid variable name.
18621 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18622
18623
18624 exec 6>&1
18625 ## ----------------------------------- ##
18626 ## Main body of $CONFIG_STATUS script. ##
18627 ## ----------------------------------- ##
18628 _ASEOF
18629 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18630
18631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18632 # Save the log message, to keep $0 and so on meaningful, and to
18633 # report actual input values of CONFIG_FILES etc. instead of their
18634 # values after options handling.
18635 ac_log="
18636 This file was extended by xf86-video-vesa $as_me 2.3.2, which was
18637 generated by GNU Autoconf 2.68.  Invocation command line was
18638
18639   CONFIG_FILES    = $CONFIG_FILES
18640   CONFIG_HEADERS  = $CONFIG_HEADERS
18641   CONFIG_LINKS    = $CONFIG_LINKS
18642   CONFIG_COMMANDS = $CONFIG_COMMANDS
18643   $ $0 $@
18644
18645 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18646 "
18647
18648 _ACEOF
18649
18650 case $ac_config_files in *"
18651 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18652 esac
18653
18654 case $ac_config_headers in *"
18655 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18656 esac
18657
18658
18659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18660 # Files that config.status was made for.
18661 config_files="$ac_config_files"
18662 config_headers="$ac_config_headers"
18663 config_commands="$ac_config_commands"
18664
18665 _ACEOF
18666
18667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18668 ac_cs_usage="\
18669 \`$as_me' instantiates files and other configuration actions
18670 from templates according to the current configuration.  Unless the files
18671 and actions are specified as TAGs, all are instantiated by default.
18672
18673 Usage: $0 [OPTION]... [TAG]...
18674
18675   -h, --help       print this help, then exit
18676   -V, --version    print version number and configuration settings, then exit
18677       --config     print configuration, then exit
18678   -q, --quiet, --silent
18679                    do not print progress messages
18680   -d, --debug      don't remove temporary files
18681       --recheck    update $as_me by reconfiguring in the same conditions
18682       --file=FILE[:TEMPLATE]
18683                    instantiate the configuration file FILE
18684       --header=FILE[:TEMPLATE]
18685                    instantiate the configuration header FILE
18686
18687 Configuration files:
18688 $config_files
18689
18690 Configuration headers:
18691 $config_headers
18692
18693 Configuration commands:
18694 $config_commands
18695
18696 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18697
18698 _ACEOF
18699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18700 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18701 ac_cs_version="\\
18702 xf86-video-vesa config.status 2.3.2
18703 configured by $0, generated by GNU Autoconf 2.68,
18704   with options \\"\$ac_cs_config\\"
18705
18706 Copyright (C) 2010 Free Software Foundation, Inc.
18707 This config.status script is free software; the Free Software Foundation
18708 gives unlimited permission to copy, distribute and modify it."
18709
18710 ac_pwd='$ac_pwd'
18711 srcdir='$srcdir'
18712 INSTALL='$INSTALL'
18713 MKDIR_P='$MKDIR_P'
18714 AWK='$AWK'
18715 test -n "\$AWK" || AWK=awk
18716 _ACEOF
18717
18718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18719 # The default lists apply if the user does not specify any file.
18720 ac_need_defaults=:
18721 while test $# != 0
18722 do
18723   case $1 in
18724   --*=?*)
18725     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18726     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18727     ac_shift=:
18728     ;;
18729   --*=)
18730     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18731     ac_optarg=
18732     ac_shift=:
18733     ;;
18734   *)
18735     ac_option=$1
18736     ac_optarg=$2
18737     ac_shift=shift
18738     ;;
18739   esac
18740
18741   case $ac_option in
18742   # Handling of the options.
18743   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18744     ac_cs_recheck=: ;;
18745   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18746     $as_echo "$ac_cs_version"; exit ;;
18747   --config | --confi | --conf | --con | --co | --c )
18748     $as_echo "$ac_cs_config"; exit ;;
18749   --debug | --debu | --deb | --de | --d | -d )
18750     debug=: ;;
18751   --file | --fil | --fi | --f )
18752     $ac_shift
18753     case $ac_optarg in
18754     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18755     '') as_fn_error $? "missing file argument" ;;
18756     esac
18757     as_fn_append CONFIG_FILES " '$ac_optarg'"
18758     ac_need_defaults=false;;
18759   --header | --heade | --head | --hea )
18760     $ac_shift
18761     case $ac_optarg in
18762     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18763     esac
18764     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18765     ac_need_defaults=false;;
18766   --he | --h)
18767     # Conflict between --help and --header
18768     as_fn_error $? "ambiguous option: \`$1'
18769 Try \`$0 --help' for more information.";;
18770   --help | --hel | -h )
18771     $as_echo "$ac_cs_usage"; exit ;;
18772   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18773   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18774     ac_cs_silent=: ;;
18775
18776   # This is an error.
18777   -*) as_fn_error $? "unrecognized option: \`$1'
18778 Try \`$0 --help' for more information." ;;
18779
18780   *) as_fn_append ac_config_targets " $1"
18781      ac_need_defaults=false ;;
18782
18783   esac
18784   shift
18785 done
18786
18787 ac_configure_extra_args=
18788
18789 if $ac_cs_silent; then
18790   exec 6>/dev/null
18791   ac_configure_extra_args="$ac_configure_extra_args --silent"
18792 fi
18793
18794 _ACEOF
18795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18796 if \$ac_cs_recheck; then
18797   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18798   shift
18799   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18800   CONFIG_SHELL='$SHELL'
18801   export CONFIG_SHELL
18802   exec "\$@"
18803 fi
18804
18805 _ACEOF
18806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18807 exec 5>>config.log
18808 {
18809   echo
18810   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18811 ## Running $as_me. ##
18812 _ASBOX
18813   $as_echo "$ac_log"
18814 } >&5
18815
18816 _ACEOF
18817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18818 #
18819 # INIT-COMMANDS
18820 #
18821 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18822
18823
18824 # The HP-UX ksh and POSIX shell print the target directory to stdout
18825 # if CDPATH is set.
18826 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18827
18828 sed_quote_subst='$sed_quote_subst'
18829 double_quote_subst='$double_quote_subst'
18830 delay_variable_subst='$delay_variable_subst'
18831 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18832 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18833 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18834 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18835 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18836 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18837 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18838 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18839 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18840 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18841 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18842 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18843 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18844 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18845 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18846 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18847 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18848 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18849 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18850 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18851 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18852 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18853 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18854 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18855 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18856 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18857 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18858 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18859 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18860 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18861 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18862 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18863 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18864 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18865 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18866 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18867 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18868 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18869 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18870 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18871 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18872 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18873 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18874 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18875 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18876 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18877 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18878 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18879 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18880 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18881 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18882 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18883 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18884 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18885 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18886 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18887 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"`'
18888 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18889 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18890 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18891 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18892 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18893 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18894 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18895 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18896 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18897 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18898 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18899 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18900 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18901 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18902 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18903 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18904 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18905 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18906 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18907 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18908 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18909 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18910 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18911 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18912 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18913 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18914 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18915 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18916 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18917 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18918 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18919 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18920 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18921 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18922 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18923 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18924 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18925 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18926 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18927 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18928 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18929 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18930 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18931 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18932 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18933 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18934 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18935 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18936 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18937 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18938 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18939 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18940 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18941 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18942 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18943 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18944 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18945 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18946 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18947 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18948 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18949 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18950 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18951 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18952 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18953 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18954 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18955 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18956 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18957 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18958 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18959 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18960 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18961
18962 LTCC='$LTCC'
18963 LTCFLAGS='$LTCFLAGS'
18964 compiler='$compiler_DEFAULT'
18965
18966 # A function that is used when there is no print builtin or printf.
18967 func_fallback_echo ()
18968 {
18969   eval 'cat <<_LTECHO_EOF
18970 \$1
18971 _LTECHO_EOF'
18972 }
18973
18974 # Quote evaled strings.
18975 for var in SHELL \
18976 ECHO \
18977 PATH_SEPARATOR \
18978 SED \
18979 GREP \
18980 EGREP \
18981 FGREP \
18982 LD \
18983 NM \
18984 LN_S \
18985 lt_SP2NL \
18986 lt_NL2SP \
18987 reload_flag \
18988 OBJDUMP \
18989 deplibs_check_method \
18990 file_magic_cmd \
18991 file_magic_glob \
18992 want_nocaseglob \
18993 DLLTOOL \
18994 sharedlib_from_linklib_cmd \
18995 AR \
18996 AR_FLAGS \
18997 archiver_list_spec \
18998 STRIP \
18999 RANLIB \
19000 CC \
19001 CFLAGS \
19002 compiler \
19003 lt_cv_sys_global_symbol_pipe \
19004 lt_cv_sys_global_symbol_to_cdecl \
19005 lt_cv_sys_global_symbol_to_c_name_address \
19006 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19007 nm_file_list_spec \
19008 lt_prog_compiler_no_builtin_flag \
19009 lt_prog_compiler_pic \
19010 lt_prog_compiler_wl \
19011 lt_prog_compiler_static \
19012 lt_cv_prog_compiler_c_o \
19013 need_locks \
19014 MANIFEST_TOOL \
19015 DSYMUTIL \
19016 NMEDIT \
19017 LIPO \
19018 OTOOL \
19019 OTOOL64 \
19020 shrext_cmds \
19021 export_dynamic_flag_spec \
19022 whole_archive_flag_spec \
19023 compiler_needs_object \
19024 with_gnu_ld \
19025 allow_undefined_flag \
19026 no_undefined_flag \
19027 hardcode_libdir_flag_spec \
19028 hardcode_libdir_separator \
19029 exclude_expsyms \
19030 include_expsyms \
19031 file_list_spec \
19032 variables_saved_for_relink \
19033 libname_spec \
19034 library_names_spec \
19035 soname_spec \
19036 install_override_mode \
19037 finish_eval \
19038 old_striplib \
19039 striplib; do
19040     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19041     *[\\\\\\\`\\"\\\$]*)
19042       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19043       ;;
19044     *)
19045       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19046       ;;
19047     esac
19048 done
19049
19050 # Double-quote double-evaled strings.
19051 for var in reload_cmds \
19052 old_postinstall_cmds \
19053 old_postuninstall_cmds \
19054 old_archive_cmds \
19055 extract_expsyms_cmds \
19056 old_archive_from_new_cmds \
19057 old_archive_from_expsyms_cmds \
19058 archive_cmds \
19059 archive_expsym_cmds \
19060 module_cmds \
19061 module_expsym_cmds \
19062 export_symbols_cmds \
19063 prelink_cmds \
19064 postlink_cmds \
19065 postinstall_cmds \
19066 postuninstall_cmds \
19067 finish_cmds \
19068 sys_lib_search_path_spec \
19069 sys_lib_dlsearch_path_spec; do
19070     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19071     *[\\\\\\\`\\"\\\$]*)
19072       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19073       ;;
19074     *)
19075       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19076       ;;
19077     esac
19078 done
19079
19080 ac_aux_dir='$ac_aux_dir'
19081 xsi_shell='$xsi_shell'
19082 lt_shell_append='$lt_shell_append'
19083
19084 # See if we are running on zsh, and set the options which allow our
19085 # commands through without removal of \ escapes INIT.
19086 if test -n "\${ZSH_VERSION+set}" ; then
19087    setopt NO_GLOB_SUBST
19088 fi
19089
19090
19091     PACKAGE='$PACKAGE'
19092     VERSION='$VERSION'
19093     TIMESTAMP='$TIMESTAMP'
19094     RM='$RM'
19095     ofile='$ofile'
19096
19097
19098
19099
19100 _ACEOF
19101
19102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19103
19104 # Handling of arguments.
19105 for ac_config_target in $ac_config_targets
19106 do
19107   case $ac_config_target in
19108     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19109     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19110     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19111     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19112     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19113     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19114
19115   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19116   esac
19117 done
19118
19119
19120 # If the user did not use the arguments to specify the items to instantiate,
19121 # then the envvar interface is used.  Set only those that are not.
19122 # We use the long form for the default assignment because of an extremely
19123 # bizarre bug on SunOS 4.1.3.
19124 if $ac_need_defaults; then
19125   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19126   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19127   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19128 fi
19129
19130 # Have a temporary directory for convenience.  Make it in the build tree
19131 # simply because there is no reason against having it here, and in addition,
19132 # creating and moving files from /tmp can sometimes cause problems.
19133 # Hook for its removal unless debugging.
19134 # Note that there is a small window in which the directory will not be cleaned:
19135 # after its creation but before its name has been assigned to `$tmp'.
19136 $debug ||
19137 {
19138   tmp= ac_tmp=
19139   trap 'exit_status=$?
19140   : "${ac_tmp:=$tmp}"
19141   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19142 ' 0
19143   trap 'as_fn_exit 1' 1 2 13 15
19144 }
19145 # Create a (secure) tmp directory for tmp files.
19146
19147 {
19148   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19149   test -d "$tmp"
19150 }  ||
19151 {
19152   tmp=./conf$$-$RANDOM
19153   (umask 077 && mkdir "$tmp")
19154 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19155 ac_tmp=$tmp
19156
19157 # Set up the scripts for CONFIG_FILES section.
19158 # No need to generate them if there are no CONFIG_FILES.
19159 # This happens for instance with `./config.status config.h'.
19160 if test -n "$CONFIG_FILES"; then
19161
19162
19163 ac_cr=`echo X | tr X '\015'`
19164 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19165 # But we know of no other shell where ac_cr would be empty at this
19166 # point, so we can use a bashism as a fallback.
19167 if test "x$ac_cr" = x; then
19168   eval ac_cr=\$\'\\r\'
19169 fi
19170 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19172   ac_cs_awk_cr='\\r'
19173 else
19174   ac_cs_awk_cr=$ac_cr
19175 fi
19176
19177 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19178 _ACEOF
19179
19180
19181 {
19182   echo "cat >conf$$subs.awk <<_ACEOF" &&
19183   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19184   echo "_ACEOF"
19185 } >conf$$subs.sh ||
19186   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19187 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19188 ac_delim='%!_!# '
19189 for ac_last_try in false false false false false :; do
19190   . ./conf$$subs.sh ||
19191     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19192
19193   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19194   if test $ac_delim_n = $ac_delim_num; then
19195     break
19196   elif $ac_last_try; then
19197     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19198   else
19199     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19200   fi
19201 done
19202 rm -f conf$$subs.sh
19203
19204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19205 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19206 _ACEOF
19207 sed -n '
19208 h
19209 s/^/S["/; s/!.*/"]=/
19210 p
19211 g
19212 s/^[^!]*!//
19213 :repl
19214 t repl
19215 s/'"$ac_delim"'$//
19216 t delim
19217 :nl
19218 h
19219 s/\(.\{148\}\)..*/\1/
19220 t more1
19221 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19222 p
19223 n
19224 b repl
19225 :more1
19226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19227 p
19228 g
19229 s/.\{148\}//
19230 t nl
19231 :delim
19232 h
19233 s/\(.\{148\}\)..*/\1/
19234 t more2
19235 s/["\\]/\\&/g; s/^/"/; s/$/"/
19236 p
19237 b
19238 :more2
19239 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19240 p
19241 g
19242 s/.\{148\}//
19243 t delim
19244 ' <conf$$subs.awk | sed '
19245 /^[^""]/{
19246   N
19247   s/\n//
19248 }
19249 ' >>$CONFIG_STATUS || ac_write_fail=1
19250 rm -f conf$$subs.awk
19251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19252 _ACAWK
19253 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19254   for (key in S) S_is_set[key] = 1
19255   FS = "\a"
19256
19257 }
19258 {
19259   line = $ 0
19260   nfields = split(line, field, "@")
19261   substed = 0
19262   len = length(field[1])
19263   for (i = 2; i < nfields; i++) {
19264     key = field[i]
19265     keylen = length(key)
19266     if (S_is_set[key]) {
19267       value = S[key]
19268       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19269       len += length(value) + length(field[++i])
19270       substed = 1
19271     } else
19272       len += 1 + keylen
19273   }
19274
19275   print line
19276 }
19277
19278 _ACAWK
19279 _ACEOF
19280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19281 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19282   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19283 else
19284   cat
19285 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19286   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19287 _ACEOF
19288
19289 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19290 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19291 # trailing colons and then remove the whole line if VPATH becomes empty
19292 # (actually we leave an empty line to preserve line numbers).
19293 if test "x$srcdir" = x.; then
19294   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19295 h
19296 s///
19297 s/^/:/
19298 s/[      ]*$/:/
19299 s/:\$(srcdir):/:/g
19300 s/:\${srcdir}:/:/g
19301 s/:@srcdir@:/:/g
19302 s/^:*//
19303 s/:*$//
19304 x
19305 s/\(=[   ]*\).*/\1/
19306 G
19307 s/\n//
19308 s/^[^=]*=[       ]*$//
19309 }'
19310 fi
19311
19312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19313 fi # test -n "$CONFIG_FILES"
19314
19315 # Set up the scripts for CONFIG_HEADERS section.
19316 # No need to generate them if there are no CONFIG_HEADERS.
19317 # This happens for instance with `./config.status Makefile'.
19318 if test -n "$CONFIG_HEADERS"; then
19319 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19320 BEGIN {
19321 _ACEOF
19322
19323 # Transform confdefs.h into an awk script `defines.awk', embedded as
19324 # here-document in config.status, that substitutes the proper values into
19325 # config.h.in to produce config.h.
19326
19327 # Create a delimiter string that does not exist in confdefs.h, to ease
19328 # handling of long lines.
19329 ac_delim='%!_!# '
19330 for ac_last_try in false false :; do
19331   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19332   if test -z "$ac_tt"; then
19333     break
19334   elif $ac_last_try; then
19335     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19336   else
19337     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19338   fi
19339 done
19340
19341 # For the awk script, D is an array of macro values keyed by name,
19342 # likewise P contains macro parameters if any.  Preserve backslash
19343 # newline sequences.
19344
19345 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19346 sed -n '
19347 s/.\{148\}/&'"$ac_delim"'/g
19348 t rset
19349 :rset
19350 s/^[     ]*#[    ]*define[       ][      ]*/ /
19351 t def
19352 d
19353 :def
19354 s/\\$//
19355 t bsnl
19356 s/["\\]/\\&/g
19357 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19358 D["\1"]=" \3"/p
19359 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19360 d
19361 :bsnl
19362 s/["\\]/\\&/g
19363 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19364 D["\1"]=" \3\\\\\\n"\\/p
19365 t cont
19366 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19367 t cont
19368 d
19369 :cont
19370 n
19371 s/.\{148\}/&'"$ac_delim"'/g
19372 t clear
19373 :clear
19374 s/\\$//
19375 t bsnlc
19376 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19377 d
19378 :bsnlc
19379 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19380 b cont
19381 ' <confdefs.h | sed '
19382 s/'"$ac_delim"'/"\\\
19383 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19384
19385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19386   for (key in D) D_is_set[key] = 1
19387   FS = "\a"
19388 }
19389 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19390   line = \$ 0
19391   split(line, arg, " ")
19392   if (arg[1] == "#") {
19393     defundef = arg[2]
19394     mac1 = arg[3]
19395   } else {
19396     defundef = substr(arg[1], 2)
19397     mac1 = arg[2]
19398   }
19399   split(mac1, mac2, "(") #)
19400   macro = mac2[1]
19401   prefix = substr(line, 1, index(line, defundef) - 1)
19402   if (D_is_set[macro]) {
19403     # Preserve the white space surrounding the "#".
19404     print prefix "define", macro P[macro] D[macro]
19405     next
19406   } else {
19407     # Replace #undef with comments.  This is necessary, for example,
19408     # in the case of _POSIX_SOURCE, which is predefined and required
19409     # on some systems where configure will not decide to define it.
19410     if (defundef == "undef") {
19411       print "/*", prefix defundef, macro, "*/"
19412       next
19413     }
19414   }
19415 }
19416 { print }
19417 _ACAWK
19418 _ACEOF
19419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19420   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19421 fi # test -n "$CONFIG_HEADERS"
19422
19423
19424 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19425 shift
19426 for ac_tag
19427 do
19428   case $ac_tag in
19429   :[FHLC]) ac_mode=$ac_tag; continue;;
19430   esac
19431   case $ac_mode$ac_tag in
19432   :[FHL]*:*);;
19433   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19434   :[FH]-) ac_tag=-:-;;
19435   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19436   esac
19437   ac_save_IFS=$IFS
19438   IFS=:
19439   set x $ac_tag
19440   IFS=$ac_save_IFS
19441   shift
19442   ac_file=$1
19443   shift
19444
19445   case $ac_mode in
19446   :L) ac_source=$1;;
19447   :[FH])
19448     ac_file_inputs=
19449     for ac_f
19450     do
19451       case $ac_f in
19452       -) ac_f="$ac_tmp/stdin";;
19453       *) # Look for the file first in the build tree, then in the source tree
19454          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19455          # because $ac_f cannot contain `:'.
19456          test -f "$ac_f" ||
19457            case $ac_f in
19458            [\\/$]*) false;;
19459            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19460            esac ||
19461            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19462       esac
19463       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19464       as_fn_append ac_file_inputs " '$ac_f'"
19465     done
19466
19467     # Let's still pretend it is `configure' which instantiates (i.e., don't
19468     # use $as_me), people would be surprised to read:
19469     #    /* config.h.  Generated by config.status.  */
19470     configure_input='Generated from '`
19471           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19472         `' by configure.'
19473     if test x"$ac_file" != x-; then
19474       configure_input="$ac_file.  $configure_input"
19475       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19476 $as_echo "$as_me: creating $ac_file" >&6;}
19477     fi
19478     # Neutralize special characters interpreted by sed in replacement strings.
19479     case $configure_input in #(
19480     *\&* | *\|* | *\\* )
19481        ac_sed_conf_input=`$as_echo "$configure_input" |
19482        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19483     *) ac_sed_conf_input=$configure_input;;
19484     esac
19485
19486     case $ac_tag in
19487     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19488       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19489     esac
19490     ;;
19491   esac
19492
19493   ac_dir=`$as_dirname -- "$ac_file" ||
19494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19495          X"$ac_file" : 'X\(//\)[^/]' \| \
19496          X"$ac_file" : 'X\(//\)$' \| \
19497          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19498 $as_echo X"$ac_file" |
19499     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19500             s//\1/
19501             q
19502           }
19503           /^X\(\/\/\)[^/].*/{
19504             s//\1/
19505             q
19506           }
19507           /^X\(\/\/\)$/{
19508             s//\1/
19509             q
19510           }
19511           /^X\(\/\).*/{
19512             s//\1/
19513             q
19514           }
19515           s/.*/./; q'`
19516   as_dir="$ac_dir"; as_fn_mkdir_p
19517   ac_builddir=.
19518
19519 case "$ac_dir" in
19520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19521 *)
19522   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19523   # A ".." for each directory in $ac_dir_suffix.
19524   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19525   case $ac_top_builddir_sub in
19526   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19527   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19528   esac ;;
19529 esac
19530 ac_abs_top_builddir=$ac_pwd
19531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19532 # for backward compatibility:
19533 ac_top_builddir=$ac_top_build_prefix
19534
19535 case $srcdir in
19536   .)  # We are building in place.
19537     ac_srcdir=.
19538     ac_top_srcdir=$ac_top_builddir_sub
19539     ac_abs_top_srcdir=$ac_pwd ;;
19540   [\\/]* | ?:[\\/]* )  # Absolute name.
19541     ac_srcdir=$srcdir$ac_dir_suffix;
19542     ac_top_srcdir=$srcdir
19543     ac_abs_top_srcdir=$srcdir ;;
19544   *) # Relative name.
19545     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19546     ac_top_srcdir=$ac_top_build_prefix$srcdir
19547     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19548 esac
19549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19550
19551
19552   case $ac_mode in
19553   :F)
19554   #
19555   # CONFIG_FILE
19556   #
19557
19558   case $INSTALL in
19559   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19560   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19561   esac
19562   ac_MKDIR_P=$MKDIR_P
19563   case $MKDIR_P in
19564   [\\/$]* | ?:[\\/]* ) ;;
19565   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19566   esac
19567 _ACEOF
19568
19569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19570 # If the template does not know about datarootdir, expand it.
19571 # FIXME: This hack should be removed a few years after 2.60.
19572 ac_datarootdir_hack=; ac_datarootdir_seen=
19573 ac_sed_dataroot='
19574 /datarootdir/ {
19575   p
19576   q
19577 }
19578 /@datadir@/p
19579 /@docdir@/p
19580 /@infodir@/p
19581 /@localedir@/p
19582 /@mandir@/p'
19583 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19584 *datarootdir*) ac_datarootdir_seen=yes;;
19585 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19586   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19587 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19588 _ACEOF
19589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19590   ac_datarootdir_hack='
19591   s&@datadir@&$datadir&g
19592   s&@docdir@&$docdir&g
19593   s&@infodir@&$infodir&g
19594   s&@localedir@&$localedir&g
19595   s&@mandir@&$mandir&g
19596   s&\\\${datarootdir}&$datarootdir&g' ;;
19597 esac
19598 _ACEOF
19599
19600 # Neutralize VPATH when `$srcdir' = `.'.
19601 # Shell code in configure.ac might set extrasub.
19602 # FIXME: do we really want to maintain this feature?
19603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19604 ac_sed_extra="$ac_vpsub
19605 $extrasub
19606 _ACEOF
19607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19608 :t
19609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19610 s|@configure_input@|$ac_sed_conf_input|;t t
19611 s&@top_builddir@&$ac_top_builddir_sub&;t t
19612 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19613 s&@srcdir@&$ac_srcdir&;t t
19614 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19615 s&@top_srcdir@&$ac_top_srcdir&;t t
19616 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19617 s&@builddir@&$ac_builddir&;t t
19618 s&@abs_builddir@&$ac_abs_builddir&;t t
19619 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19620 s&@INSTALL@&$ac_INSTALL&;t t
19621 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19622 $ac_datarootdir_hack
19623 "
19624 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19625   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19626
19627 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19628   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19629   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19630       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19631   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19632 which seems to be undefined.  Please make sure it is defined" >&5
19633 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19634 which seems to be undefined.  Please make sure it is defined" >&2;}
19635
19636   rm -f "$ac_tmp/stdin"
19637   case $ac_file in
19638   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19639   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19640   esac \
19641   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19642  ;;
19643   :H)
19644   #
19645   # CONFIG_HEADER
19646   #
19647   if test x"$ac_file" != x-; then
19648     {
19649       $as_echo "/* $configure_input  */" \
19650       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19651     } >"$ac_tmp/config.h" \
19652       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19653     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19654       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19655 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19656     else
19657       rm -f "$ac_file"
19658       mv "$ac_tmp/config.h" "$ac_file" \
19659         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19660     fi
19661   else
19662     $as_echo "/* $configure_input  */" \
19663       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19664       || as_fn_error $? "could not create -" "$LINENO" 5
19665   fi
19666 # Compute "$ac_file"'s index in $config_headers.
19667 _am_arg="$ac_file"
19668 _am_stamp_count=1
19669 for _am_header in $config_headers :; do
19670   case $_am_header in
19671     $_am_arg | $_am_arg:* )
19672       break ;;
19673     * )
19674       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19675   esac
19676 done
19677 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19678 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19679          X"$_am_arg" : 'X\(//\)[^/]' \| \
19680          X"$_am_arg" : 'X\(//\)$' \| \
19681          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19682 $as_echo X"$_am_arg" |
19683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19684             s//\1/
19685             q
19686           }
19687           /^X\(\/\/\)[^/].*/{
19688             s//\1/
19689             q
19690           }
19691           /^X\(\/\/\)$/{
19692             s//\1/
19693             q
19694           }
19695           /^X\(\/\).*/{
19696             s//\1/
19697             q
19698           }
19699           s/.*/./; q'`/stamp-h$_am_stamp_count
19700  ;;
19701
19702   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19703 $as_echo "$as_me: executing $ac_file commands" >&6;}
19704  ;;
19705   esac
19706
19707
19708   case $ac_file$ac_mode in
19709     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19710   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19711   # are listed without --file.  Let's play safe and only enable the eval
19712   # if we detect the quoting.
19713   case $CONFIG_FILES in
19714   *\'*) eval set x "$CONFIG_FILES" ;;
19715   *)   set x $CONFIG_FILES ;;
19716   esac
19717   shift
19718   for mf
19719   do
19720     # Strip MF so we end up with the name of the file.
19721     mf=`echo "$mf" | sed -e 's/:.*$//'`
19722     # Check whether this is an Automake generated Makefile or not.
19723     # We used to match only the files named `Makefile.in', but
19724     # some people rename them; so instead we look at the file content.
19725     # Grep'ing the first line is not enough: some people post-process
19726     # each Makefile.in and add a new line on top of each file to say so.
19727     # Grep'ing the whole file is not good either: AIX grep has a line
19728     # limit of 2048, but all sed's we know have understand at least 4000.
19729     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19730       dirpart=`$as_dirname -- "$mf" ||
19731 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19732          X"$mf" : 'X\(//\)[^/]' \| \
19733          X"$mf" : 'X\(//\)$' \| \
19734          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19735 $as_echo X"$mf" |
19736     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19737             s//\1/
19738             q
19739           }
19740           /^X\(\/\/\)[^/].*/{
19741             s//\1/
19742             q
19743           }
19744           /^X\(\/\/\)$/{
19745             s//\1/
19746             q
19747           }
19748           /^X\(\/\).*/{
19749             s//\1/
19750             q
19751           }
19752           s/.*/./; q'`
19753     else
19754       continue
19755     fi
19756     # Extract the definition of DEPDIR, am__include, and am__quote
19757     # from the Makefile without running `make'.
19758     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19759     test -z "$DEPDIR" && continue
19760     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19761     test -z "am__include" && continue
19762     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19763     # When using ansi2knr, U may be empty or an underscore; expand it
19764     U=`sed -n 's/^U = //p' < "$mf"`
19765     # Find all dependency output files, they are included files with
19766     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19767     # simplest approach to changing $(DEPDIR) to its actual value in the
19768     # expansion.
19769     for file in `sed -n "
19770       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19771          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19772       # Make sure the directory exists.
19773       test -f "$dirpart/$file" && continue
19774       fdir=`$as_dirname -- "$file" ||
19775 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19776          X"$file" : 'X\(//\)[^/]' \| \
19777          X"$file" : 'X\(//\)$' \| \
19778          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19779 $as_echo X"$file" |
19780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19781             s//\1/
19782             q
19783           }
19784           /^X\(\/\/\)[^/].*/{
19785             s//\1/
19786             q
19787           }
19788           /^X\(\/\/\)$/{
19789             s//\1/
19790             q
19791           }
19792           /^X\(\/\).*/{
19793             s//\1/
19794             q
19795           }
19796           s/.*/./; q'`
19797       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19798       # echo "creating $dirpart/$file"
19799       echo '# dummy' > "$dirpart/$file"
19800     done
19801   done
19802 }
19803  ;;
19804     "libtool":C)
19805
19806     # See if we are running on zsh, and set the options which allow our
19807     # commands through without removal of \ escapes.
19808     if test -n "${ZSH_VERSION+set}" ; then
19809       setopt NO_GLOB_SUBST
19810     fi
19811
19812     cfgfile="${ofile}T"
19813     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19814     $RM "$cfgfile"
19815
19816     cat <<_LT_EOF >> "$cfgfile"
19817 #! $SHELL
19818
19819 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19820 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19821 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19822 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19823 #
19824 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19825 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19826 #                 Foundation, Inc.
19827 #   Written by Gordon Matzigkeit, 1996
19828 #
19829 #   This file is part of GNU Libtool.
19830 #
19831 # GNU Libtool is free software; you can redistribute it and/or
19832 # modify it under the terms of the GNU General Public License as
19833 # published by the Free Software Foundation; either version 2 of
19834 # the License, or (at your option) any later version.
19835 #
19836 # As a special exception to the GNU General Public License,
19837 # if you distribute this file as part of a program or library that
19838 # is built using GNU Libtool, you may include this file under the
19839 # same distribution terms that you use for the rest of that program.
19840 #
19841 # GNU Libtool is distributed in the hope that it will be useful,
19842 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19843 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19844 # GNU General Public License for more details.
19845 #
19846 # You should have received a copy of the GNU General Public License
19847 # along with GNU Libtool; see the file COPYING.  If not, a copy
19848 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19849 # obtained by writing to the Free Software Foundation, Inc.,
19850 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19851
19852
19853 # The names of the tagged configurations supported by this script.
19854 available_tags=""
19855
19856 # ### BEGIN LIBTOOL CONFIG
19857
19858 # Whether or not to build static libraries.
19859 build_old_libs=$enable_static
19860
19861 # Which release of libtool.m4 was used?
19862 macro_version=$macro_version
19863 macro_revision=$macro_revision
19864
19865 # Whether or not to build shared libraries.
19866 build_libtool_libs=$enable_shared
19867
19868 # What type of objects to build.
19869 pic_mode=$pic_mode
19870
19871 # Whether or not to optimize for fast installation.
19872 fast_install=$enable_fast_install
19873
19874 # Shell to use when invoking shell scripts.
19875 SHELL=$lt_SHELL
19876
19877 # An echo program that protects backslashes.
19878 ECHO=$lt_ECHO
19879
19880 # The PATH separator for the build system.
19881 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19882
19883 # The host system.
19884 host_alias=$host_alias
19885 host=$host
19886 host_os=$host_os
19887
19888 # The build system.
19889 build_alias=$build_alias
19890 build=$build
19891 build_os=$build_os
19892
19893 # A sed program that does not truncate output.
19894 SED=$lt_SED
19895
19896 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19897 Xsed="\$SED -e 1s/^X//"
19898
19899 # A grep program that handles long lines.
19900 GREP=$lt_GREP
19901
19902 # An ERE matcher.
19903 EGREP=$lt_EGREP
19904
19905 # A literal string matcher.
19906 FGREP=$lt_FGREP
19907
19908 # A BSD- or MS-compatible name lister.
19909 NM=$lt_NM
19910
19911 # Whether we need soft or hard links.
19912 LN_S=$lt_LN_S
19913
19914 # What is the maximum length of a command?
19915 max_cmd_len=$max_cmd_len
19916
19917 # Object file suffix (normally "o").
19918 objext=$ac_objext
19919
19920 # Executable file suffix (normally "").
19921 exeext=$exeext
19922
19923 # whether the shell understands "unset".
19924 lt_unset=$lt_unset
19925
19926 # turn spaces into newlines.
19927 SP2NL=$lt_lt_SP2NL
19928
19929 # turn newlines into spaces.
19930 NL2SP=$lt_lt_NL2SP
19931
19932 # convert \$build file names to \$host format.
19933 to_host_file_cmd=$lt_cv_to_host_file_cmd
19934
19935 # convert \$build files to toolchain format.
19936 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19937
19938 # An object symbol dumper.
19939 OBJDUMP=$lt_OBJDUMP
19940
19941 # Method to check whether dependent libraries are shared objects.
19942 deplibs_check_method=$lt_deplibs_check_method
19943
19944 # Command to use when deplibs_check_method = "file_magic".
19945 file_magic_cmd=$lt_file_magic_cmd
19946
19947 # How to find potential files when deplibs_check_method = "file_magic".
19948 file_magic_glob=$lt_file_magic_glob
19949
19950 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19951 want_nocaseglob=$lt_want_nocaseglob
19952
19953 # DLL creation program.
19954 DLLTOOL=$lt_DLLTOOL
19955
19956 # Command to associate shared and link libraries.
19957 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19958
19959 # The archiver.
19960 AR=$lt_AR
19961
19962 # Flags to create an archive.
19963 AR_FLAGS=$lt_AR_FLAGS
19964
19965 # How to feed a file listing to the archiver.
19966 archiver_list_spec=$lt_archiver_list_spec
19967
19968 # A symbol stripping program.
19969 STRIP=$lt_STRIP
19970
19971 # Commands used to install an old-style archive.
19972 RANLIB=$lt_RANLIB
19973 old_postinstall_cmds=$lt_old_postinstall_cmds
19974 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19975
19976 # Whether to use a lock for old archive extraction.
19977 lock_old_archive_extraction=$lock_old_archive_extraction
19978
19979 # A C compiler.
19980 LTCC=$lt_CC
19981
19982 # LTCC compiler flags.
19983 LTCFLAGS=$lt_CFLAGS
19984
19985 # Take the output of nm and produce a listing of raw symbols and C names.
19986 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19987
19988 # Transform the output of nm in a proper C declaration.
19989 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19990
19991 # Transform the output of nm in a C name address pair.
19992 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19993
19994 # Transform the output of nm in a C name address pair when lib prefix is needed.
19995 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19996
19997 # Specify filename containing input files for \$NM.
19998 nm_file_list_spec=$lt_nm_file_list_spec
19999
20000 # The root where to search for dependent libraries,and in which our libraries should be installed.
20001 lt_sysroot=$lt_sysroot
20002
20003 # The name of the directory that contains temporary libtool files.
20004 objdir=$objdir
20005
20006 # Used to examine libraries when file_magic_cmd begins with "file".
20007 MAGIC_CMD=$MAGIC_CMD
20008
20009 # Must we lock files when doing compilation?
20010 need_locks=$lt_need_locks
20011
20012 # Manifest tool.
20013 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20014
20015 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20016 DSYMUTIL=$lt_DSYMUTIL
20017
20018 # Tool to change global to local symbols on Mac OS X.
20019 NMEDIT=$lt_NMEDIT
20020
20021 # Tool to manipulate fat objects and archives on Mac OS X.
20022 LIPO=$lt_LIPO
20023
20024 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20025 OTOOL=$lt_OTOOL
20026
20027 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20028 OTOOL64=$lt_OTOOL64
20029
20030 # Old archive suffix (normally "a").
20031 libext=$libext
20032
20033 # Shared library suffix (normally ".so").
20034 shrext_cmds=$lt_shrext_cmds
20035
20036 # The commands to extract the exported symbol list from a shared archive.
20037 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20038
20039 # Variables whose values should be saved in libtool wrapper scripts and
20040 # restored at link time.
20041 variables_saved_for_relink=$lt_variables_saved_for_relink
20042
20043 # Do we need the "lib" prefix for modules?
20044 need_lib_prefix=$need_lib_prefix
20045
20046 # Do we need a version for libraries?
20047 need_version=$need_version
20048
20049 # Library versioning type.
20050 version_type=$version_type
20051
20052 # Shared library runtime path variable.
20053 runpath_var=$runpath_var
20054
20055 # Shared library path variable.
20056 shlibpath_var=$shlibpath_var
20057
20058 # Is shlibpath searched before the hard-coded library search path?
20059 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20060
20061 # Format of library name prefix.
20062 libname_spec=$lt_libname_spec
20063
20064 # List of archive names.  First name is the real one, the rest are links.
20065 # The last name is the one that the linker finds with -lNAME
20066 library_names_spec=$lt_library_names_spec
20067
20068 # The coded name of the library, if different from the real name.
20069 soname_spec=$lt_soname_spec
20070
20071 # Permission mode override for installation of shared libraries.
20072 install_override_mode=$lt_install_override_mode
20073
20074 # Command to use after installation of a shared archive.
20075 postinstall_cmds=$lt_postinstall_cmds
20076
20077 # Command to use after uninstallation of a shared archive.
20078 postuninstall_cmds=$lt_postuninstall_cmds
20079
20080 # Commands used to finish a libtool library installation in a directory.
20081 finish_cmds=$lt_finish_cmds
20082
20083 # As "finish_cmds", except a single script fragment to be evaled but
20084 # not shown.
20085 finish_eval=$lt_finish_eval
20086
20087 # Whether we should hardcode library paths into libraries.
20088 hardcode_into_libs=$hardcode_into_libs
20089
20090 # Compile-time system search path for libraries.
20091 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20092
20093 # Run-time system search path for libraries.
20094 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20095
20096 # Whether dlopen is supported.
20097 dlopen_support=$enable_dlopen
20098
20099 # Whether dlopen of programs is supported.
20100 dlopen_self=$enable_dlopen_self
20101
20102 # Whether dlopen of statically linked programs is supported.
20103 dlopen_self_static=$enable_dlopen_self_static
20104
20105 # Commands to strip libraries.
20106 old_striplib=$lt_old_striplib
20107 striplib=$lt_striplib
20108
20109
20110 # The linker used to build libraries.
20111 LD=$lt_LD
20112
20113 # How to create reloadable object files.
20114 reload_flag=$lt_reload_flag
20115 reload_cmds=$lt_reload_cmds
20116
20117 # Commands used to build an old-style archive.
20118 old_archive_cmds=$lt_old_archive_cmds
20119
20120 # A language specific compiler.
20121 CC=$lt_compiler
20122
20123 # Is the compiler the GNU compiler?
20124 with_gcc=$GCC
20125
20126 # Compiler flag to turn off builtin functions.
20127 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20128
20129 # Additional compiler flags for building library objects.
20130 pic_flag=$lt_lt_prog_compiler_pic
20131
20132 # How to pass a linker flag through the compiler.
20133 wl=$lt_lt_prog_compiler_wl
20134
20135 # Compiler flag to prevent dynamic linking.
20136 link_static_flag=$lt_lt_prog_compiler_static
20137
20138 # Does compiler simultaneously support -c and -o options?
20139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20140
20141 # Whether or not to add -lc for building shared libraries.
20142 build_libtool_need_lc=$archive_cmds_need_lc
20143
20144 # Whether or not to disallow shared libs when runtime libs are static.
20145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20146
20147 # Compiler flag to allow reflexive dlopens.
20148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20149
20150 # Compiler flag to generate shared objects directly from archives.
20151 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20152
20153 # Whether the compiler copes with passing no objects directly.
20154 compiler_needs_object=$lt_compiler_needs_object
20155
20156 # Create an old-style archive from a shared archive.
20157 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20158
20159 # Create a temporary old-style archive to link instead of a shared archive.
20160 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20161
20162 # Commands used to build a shared archive.
20163 archive_cmds=$lt_archive_cmds
20164 archive_expsym_cmds=$lt_archive_expsym_cmds
20165
20166 # Commands used to build a loadable module if different from building
20167 # a shared archive.
20168 module_cmds=$lt_module_cmds
20169 module_expsym_cmds=$lt_module_expsym_cmds
20170
20171 # Whether we are building with GNU ld or not.
20172 with_gnu_ld=$lt_with_gnu_ld
20173
20174 # Flag that allows shared libraries with undefined symbols to be built.
20175 allow_undefined_flag=$lt_allow_undefined_flag
20176
20177 # Flag that enforces no undefined symbols.
20178 no_undefined_flag=$lt_no_undefined_flag
20179
20180 # Flag to hardcode \$libdir into a binary during linking.
20181 # This must work even if \$libdir does not exist
20182 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20183
20184 # Whether we need a single "-rpath" flag with a separated argument.
20185 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20186
20187 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20188 # DIR into the resulting binary.
20189 hardcode_direct=$hardcode_direct
20190
20191 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20192 # DIR into the resulting binary and the resulting library dependency is
20193 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20194 # library is relocated.
20195 hardcode_direct_absolute=$hardcode_direct_absolute
20196
20197 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20198 # into the resulting binary.
20199 hardcode_minus_L=$hardcode_minus_L
20200
20201 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20202 # into the resulting binary.
20203 hardcode_shlibpath_var=$hardcode_shlibpath_var
20204
20205 # Set to "yes" if building a shared library automatically hardcodes DIR
20206 # into the library and all subsequent libraries and executables linked
20207 # against it.
20208 hardcode_automatic=$hardcode_automatic
20209
20210 # Set to yes if linker adds runtime paths of dependent libraries
20211 # to runtime path list.
20212 inherit_rpath=$inherit_rpath
20213
20214 # Whether libtool must link a program against all its dependency libraries.
20215 link_all_deplibs=$link_all_deplibs
20216
20217 # Set to "yes" if exported symbols are required.
20218 always_export_symbols=$always_export_symbols
20219
20220 # The commands to list exported symbols.
20221 export_symbols_cmds=$lt_export_symbols_cmds
20222
20223 # Symbols that should not be listed in the preloaded symbols.
20224 exclude_expsyms=$lt_exclude_expsyms
20225
20226 # Symbols that must always be exported.
20227 include_expsyms=$lt_include_expsyms
20228
20229 # Commands necessary for linking programs (against libraries) with templates.
20230 prelink_cmds=$lt_prelink_cmds
20231
20232 # Commands necessary for finishing linking programs.
20233 postlink_cmds=$lt_postlink_cmds
20234
20235 # Specify filename containing input files.
20236 file_list_spec=$lt_file_list_spec
20237
20238 # How to hardcode a shared library path into an executable.
20239 hardcode_action=$hardcode_action
20240
20241 # ### END LIBTOOL CONFIG
20242
20243 _LT_EOF
20244
20245   case $host_os in
20246   aix3*)
20247     cat <<\_LT_EOF >> "$cfgfile"
20248 # AIX sometimes has problems with the GCC collect2 program.  For some
20249 # reason, if we set the COLLECT_NAMES environment variable, the problems
20250 # vanish in a puff of smoke.
20251 if test "X${COLLECT_NAMES+set}" != Xset; then
20252   COLLECT_NAMES=
20253   export COLLECT_NAMES
20254 fi
20255 _LT_EOF
20256     ;;
20257   esac
20258
20259
20260 ltmain="$ac_aux_dir/ltmain.sh"
20261
20262
20263   # We use sed instead of cat because bash on DJGPP gets confused if
20264   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20265   # text mode, it properly converts lines to CR/LF.  This bash problem
20266   # is reportedly fixed, but why not run on old versions too?
20267   sed '$q' "$ltmain" >> "$cfgfile" \
20268      || (rm -f "$cfgfile"; exit 1)
20269
20270   if test x"$xsi_shell" = xyes; then
20271   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20272 func_dirname ()\
20273 {\
20274 \    case ${1} in\
20275 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20276 \      *  ) func_dirname_result="${3}" ;;\
20277 \    esac\
20278 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20279   && mv -f "$cfgfile.tmp" "$cfgfile" \
20280     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20281 test 0 -eq $? || _lt_function_replace_fail=:
20282
20283
20284   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20285 func_basename ()\
20286 {\
20287 \    func_basename_result="${1##*/}"\
20288 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20289   && mv -f "$cfgfile.tmp" "$cfgfile" \
20290     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20291 test 0 -eq $? || _lt_function_replace_fail=:
20292
20293
20294   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20295 func_dirname_and_basename ()\
20296 {\
20297 \    case ${1} in\
20298 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20299 \      *  ) func_dirname_result="${3}" ;;\
20300 \    esac\
20301 \    func_basename_result="${1##*/}"\
20302 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20303   && mv -f "$cfgfile.tmp" "$cfgfile" \
20304     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20305 test 0 -eq $? || _lt_function_replace_fail=:
20306
20307
20308   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20309 func_stripname ()\
20310 {\
20311 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20312 \    # positional parameters, so assign one to ordinary parameter first.\
20313 \    func_stripname_result=${3}\
20314 \    func_stripname_result=${func_stripname_result#"${1}"}\
20315 \    func_stripname_result=${func_stripname_result%"${2}"}\
20316 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20317   && mv -f "$cfgfile.tmp" "$cfgfile" \
20318     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20319 test 0 -eq $? || _lt_function_replace_fail=:
20320
20321
20322   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20323 func_split_long_opt ()\
20324 {\
20325 \    func_split_long_opt_name=${1%%=*}\
20326 \    func_split_long_opt_arg=${1#*=}\
20327 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20328   && mv -f "$cfgfile.tmp" "$cfgfile" \
20329     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20330 test 0 -eq $? || _lt_function_replace_fail=:
20331
20332
20333   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20334 func_split_short_opt ()\
20335 {\
20336 \    func_split_short_opt_arg=${1#??}\
20337 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20338 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20339   && mv -f "$cfgfile.tmp" "$cfgfile" \
20340     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20341 test 0 -eq $? || _lt_function_replace_fail=:
20342
20343
20344   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20345 func_lo2o ()\
20346 {\
20347 \    case ${1} in\
20348 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20349 \      *)    func_lo2o_result=${1} ;;\
20350 \    esac\
20351 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20352   && mv -f "$cfgfile.tmp" "$cfgfile" \
20353     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20354 test 0 -eq $? || _lt_function_replace_fail=:
20355
20356
20357   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20358 func_xform ()\
20359 {\
20360     func_xform_result=${1%.*}.lo\
20361 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20362   && mv -f "$cfgfile.tmp" "$cfgfile" \
20363     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20364 test 0 -eq $? || _lt_function_replace_fail=:
20365
20366
20367   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20368 func_arith ()\
20369 {\
20370     func_arith_result=$(( $* ))\
20371 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20372   && mv -f "$cfgfile.tmp" "$cfgfile" \
20373     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20374 test 0 -eq $? || _lt_function_replace_fail=:
20375
20376
20377   sed -e '/^func_len ()$/,/^} # func_len /c\
20378 func_len ()\
20379 {\
20380     func_len_result=${#1}\
20381 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20382   && mv -f "$cfgfile.tmp" "$cfgfile" \
20383     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20384 test 0 -eq $? || _lt_function_replace_fail=:
20385
20386 fi
20387
20388 if test x"$lt_shell_append" = xyes; then
20389   sed -e '/^func_append ()$/,/^} # func_append /c\
20390 func_append ()\
20391 {\
20392     eval "${1}+=\\${2}"\
20393 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20394   && mv -f "$cfgfile.tmp" "$cfgfile" \
20395     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20396 test 0 -eq $? || _lt_function_replace_fail=:
20397
20398
20399   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20400 func_append_quoted ()\
20401 {\
20402 \    func_quote_for_eval "${2}"\
20403 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20404 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20405   && mv -f "$cfgfile.tmp" "$cfgfile" \
20406     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20407 test 0 -eq $? || _lt_function_replace_fail=:
20408
20409
20410   # Save a `func_append' function call where possible by direct use of '+='
20411   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20412     && mv -f "$cfgfile.tmp" "$cfgfile" \
20413       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20414   test 0 -eq $? || _lt_function_replace_fail=:
20415 else
20416   # Save a `func_append' function call even when '+=' is not available
20417   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20418     && mv -f "$cfgfile.tmp" "$cfgfile" \
20419       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20420   test 0 -eq $? || _lt_function_replace_fail=:
20421 fi
20422
20423 if test x"$_lt_function_replace_fail" = x":"; then
20424   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20425 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20426 fi
20427
20428
20429    mv -f "$cfgfile" "$ofile" ||
20430     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20431   chmod +x "$ofile"
20432
20433  ;;
20434
20435   esac
20436 done # for ac_tag
20437
20438
20439 as_fn_exit 0
20440 _ACEOF
20441 ac_clean_files=$ac_clean_files_save
20442
20443 test $ac_write_fail = 0 ||
20444   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20445
20446
20447 # configure is writing to config.log, and then calls config.status.
20448 # config.status does its own redirection, appending to config.log.
20449 # Unfortunately, on DOS this fails, as config.log is still kept open
20450 # by configure, so config.status won't be able to write to it; its
20451 # output is simply discarded.  So we exec the FD to /dev/null,
20452 # effectively closing config.log, so it can be properly (re)opened and
20453 # appended to by config.status.  When coming back to configure, we
20454 # need to make the FD available again.
20455 if test "$no_create" != yes; then
20456   ac_cs_success=:
20457   ac_config_status_args=
20458   test "$silent" = yes &&
20459     ac_config_status_args="$ac_config_status_args --quiet"
20460   exec 5>/dev/null
20461   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20462   exec 5>>config.log
20463   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20464   # would make configure fail if this is the last instruction.
20465   $ac_cs_success || as_fn_exit 1
20466 fi
20467 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20468   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20469 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20470 fi
20471