Tizen 2.0 Release
[framework/uifw/xorg/util/x11-xserver-utils.git] / xmodmap / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xmodmap 1.0.7.
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   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247   fi
248   exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266   { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275   return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283   set +e
284   as_fn_set_status $1
285   exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294   case $as_dir in #(
295   -*) as_dir=./$as_dir;;
296   esac
297   test -d "$as_dir" || eval $as_mkdir_p || {
298     as_dirs=
299     while :; do
300       case $as_dir in #(
301       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302       *) as_qdir=$as_dir;;
303       esac
304       as_dirs="'$as_qdir' $as_dirs"
305       as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307          X"$as_dir" : 'X\(//\)[^/]' \| \
308          X"$as_dir" : 'X\(//\)$' \| \
309          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)[^/].*/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\).*/{
324             s//\1/
325             q
326           }
327           s/.*/./; q'`
328       test -d "$as_dir" && break
329     done
330     test -z "$as_dirs" || eval "mkdir $as_dirs"
331   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342   eval 'as_fn_append ()
343   {
344     eval $1+=\$2
345   }'
346 else
347   as_fn_append ()
348   {
349     eval $1=\$$1\$2
350   }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359   eval 'as_fn_arith ()
360   {
361     as_val=$(( $* ))
362   }'
363 else
364   as_fn_arith ()
365   {
366     as_val=`expr "$@" || test $? -eq 1`
367   }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378   as_status=$1; test $as_status -eq 0 && as_status=1
379   if test "$4"; then
380     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382   fi
383   $as_echo "$as_me: error: $2" >&2
384   as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388    test "X`expr 00001 : '.*\(...\)'`" = X001; then
389   as_expr=expr
390 else
391   as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395   as_basename=basename
396 else
397   as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401   as_dirname=dirname
402 else
403   as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408          X"$0" : 'X\(//\)$' \| \
409          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411     sed '/^.*\/\([^/][^/]*\)\/*$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\/\)$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\).*/{
420             s//\1/
421             q
422           }
423           s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433   as_lineno_1=$LINENO as_lineno_1a=$LINENO
434   as_lineno_2=$LINENO as_lineno_2a=$LINENO
435   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456   # Don't try to exec as it changes $[0], causing all sort of problems
457   # (the dirname of $[0] is not the place where we might find the
458   # original and so on.  Autoconf is especially sensitive to this).
459   . "./$as_me.lineno"
460   # Exit status is that of the last command.
461   exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467   case `echo 'xy\c'` in
468   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
469   xy)  ECHO_C='\c';;
470   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471        ECHO_T=' ';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479   rm -f conf$$.dir/conf$$.file
480 else
481   rm -f conf$$.dir
482   mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485   if ln -s conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s='ln -s'
487     # ... but there are two gotchas:
488     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490     # In both cases, we have to default to `cp -p'.
491     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492       as_ln_s='cp -p'
493   elif ln conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s=ln
495   else
496     as_ln_s='cp -p'
497   fi
498 else
499   as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505   as_mkdir_p='mkdir -p "$as_dir"'
506 else
507   test -d ./-p && rmdir ./-p
508   as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512   as_test_x='test -x'
513 else
514   if ls -dL / >/dev/null 2>&1; then
515     as_ls_L_option=L
516   else
517     as_ls_L_option=
518   fi
519   as_test_x='
520     eval sh -c '\''
521       if test -d "$1"; then
522         test -d "$1/.";
523       else
524         case $1 in #(
525         -*)set "./$1";;
526         esac;
527         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528         ???[sx]*):;;*)false;;esac;fi
529     '\'' sh
530   '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='xmodmap'
563 PACKAGE_TARNAME='xmodmap'
564 PACKAGE_VERSION='1.0.7'
565 PACKAGE_STRING='xmodmap 1.0.7'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 #  include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #  include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 LIBOBJS
610 LINT_FALSE
611 LINT_TRUE
612 LINT_FLAGS
613 LINT
614 XMODMAP_LIBS
615 XMODMAP_CFLAGS
616 AM_BACKSLASH
617 AM_DEFAULT_VERBOSITY
618 MAN_SUBSTS
619 XORG_MAN_PAGE
620 ADMIN_MAN_DIR
621 DRIVER_MAN_DIR
622 MISC_MAN_DIR
623 FILE_MAN_DIR
624 LIB_MAN_DIR
625 APP_MAN_DIR
626 ADMIN_MAN_SUFFIX
627 DRIVER_MAN_SUFFIX
628 MISC_MAN_SUFFIX
629 FILE_MAN_SUFFIX
630 LIB_MAN_SUFFIX
631 APP_MAN_SUFFIX
632 SED
633 host_os
634 host_vendor
635 host_cpu
636 host
637 build_os
638 build_vendor
639 build_cpu
640 build
641 INSTALL_CMD
642 PKG_CONFIG
643 CHANGELOG_CMD
644 STRICT_CFLAGS
645 CWARNFLAGS
646 BASE_CFLAGS
647 MAINT
648 MAINTAINER_MODE_FALSE
649 MAINTAINER_MODE_TRUE
650 am__fastdepCC_FALSE
651 am__fastdepCC_TRUE
652 CCDEPMODE
653 am__nodep
654 AMDEPBACKSLASH
655 AMDEP_FALSE
656 AMDEP_TRUE
657 am__quote
658 am__include
659 DEPDIR
660 am__untar
661 am__tar
662 AMTAR
663 am__leading_dot
664 SET_MAKE
665 AWK
666 mkdir_p
667 MKDIR_P
668 INSTALL_STRIP_PROGRAM
669 STRIP
670 install_sh
671 MAKEINFO
672 AUTOHEADER
673 AUTOMAKE
674 AUTOCONF
675 ACLOCAL
676 VERSION
677 PACKAGE
678 CYGPATH_W
679 am__isrc
680 INSTALL_DATA
681 INSTALL_SCRIPT
682 INSTALL_PROGRAM
683 EGREP
684 GREP
685 CPP
686 OBJEXT
687 EXEEXT
688 ac_ct_CC
689 CPPFLAGS
690 LDFLAGS
691 CFLAGS
692 CC
693 target_alias
694 host_alias
695 build_alias
696 LIBS
697 ECHO_T
698 ECHO_N
699 ECHO_C
700 DEFS
701 mandir
702 localedir
703 libdir
704 psdir
705 pdfdir
706 dvidir
707 htmldir
708 infodir
709 docdir
710 oldincludedir
711 includedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 enable_dependency_tracking
735 enable_maintainer_mode
736 enable_selective_werror
737 enable_strict_compilation
738 enable_silent_rules
739 with_lint
740 '
741       ac_precious_vars='build_alias
742 host_alias
743 target_alias
744 CC
745 CFLAGS
746 LDFLAGS
747 LIBS
748 CPPFLAGS
749 CPP
750 PKG_CONFIG
751 XMODMAP_CFLAGS
752 XMODMAP_LIBS
753 LINT
754 LINT_FLAGS'
755
756
757 # Initialize some variables set by options.
758 ac_init_help=
759 ac_init_version=false
760 ac_unrecognized_opts=
761 ac_unrecognized_sep=
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
778
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
804
805 ac_prev=
806 ac_dashdash=
807 for ac_option
808 do
809   # If the previous option needs an argument, assign it.
810   if test -n "$ac_prev"; then
811     eval $ac_prev=\$ac_option
812     ac_prev=
813     continue
814   fi
815
816   case $ac_option in
817   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818   *=)   ac_optarg= ;;
819   *)    ac_optarg=yes ;;
820   esac
821
822   # Accept the important Cygnus configure options, so we can diagnose typos.
823
824   case $ac_dashdash$ac_option in
825   --)
826     ac_dashdash=yes ;;
827
828   -bindir | --bindir | --bindi | --bind | --bin | --bi)
829     ac_prev=bindir ;;
830   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831     bindir=$ac_optarg ;;
832
833   -build | --build | --buil | --bui | --bu)
834     ac_prev=build_alias ;;
835   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836     build_alias=$ac_optarg ;;
837
838   -cache-file | --cache-file | --cache-fil | --cache-fi \
839   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840     ac_prev=cache_file ;;
841   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843     cache_file=$ac_optarg ;;
844
845   --config-cache | -C)
846     cache_file=config.cache ;;
847
848   -datadir | --datadir | --datadi | --datad)
849     ac_prev=datadir ;;
850   -datadir=* | --datadir=* | --datadi=* | --datad=*)
851     datadir=$ac_optarg ;;
852
853   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854   | --dataroo | --dataro | --datar)
855     ac_prev=datarootdir ;;
856   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858     datarootdir=$ac_optarg ;;
859
860   -disable-* | --disable-*)
861     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862     # Reject names that are not valid shell variable names.
863     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864       as_fn_error $? "invalid feature name: $ac_useropt"
865     ac_useropt_orig=$ac_useropt
866     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867     case $ac_user_opts in
868       *"
869 "enable_$ac_useropt"
870 "*) ;;
871       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872          ac_unrecognized_sep=', ';;
873     esac
874     eval enable_$ac_useropt=no ;;
875
876   -docdir | --docdir | --docdi | --doc | --do)
877     ac_prev=docdir ;;
878   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879     docdir=$ac_optarg ;;
880
881   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882     ac_prev=dvidir ;;
883   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884     dvidir=$ac_optarg ;;
885
886   -enable-* | --enable-*)
887     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888     # Reject names that are not valid shell variable names.
889     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890       as_fn_error $? "invalid feature name: $ac_useropt"
891     ac_useropt_orig=$ac_useropt
892     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893     case $ac_user_opts in
894       *"
895 "enable_$ac_useropt"
896 "*) ;;
897       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898          ac_unrecognized_sep=', ';;
899     esac
900     eval enable_$ac_useropt=\$ac_optarg ;;
901
902   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904   | --exec | --exe | --ex)
905     ac_prev=exec_prefix ;;
906   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908   | --exec=* | --exe=* | --ex=*)
909     exec_prefix=$ac_optarg ;;
910
911   -gas | --gas | --ga | --g)
912     # Obsolete; use --with-gas.
913     with_gas=yes ;;
914
915   -help | --help | --hel | --he | -h)
916     ac_init_help=long ;;
917   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918     ac_init_help=recursive ;;
919   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920     ac_init_help=short ;;
921
922   -host | --host | --hos | --ho)
923     ac_prev=host_alias ;;
924   -host=* | --host=* | --hos=* | --ho=*)
925     host_alias=$ac_optarg ;;
926
927   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928     ac_prev=htmldir ;;
929   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930   | --ht=*)
931     htmldir=$ac_optarg ;;
932
933   -includedir | --includedir | --includedi | --included | --include \
934   | --includ | --inclu | --incl | --inc)
935     ac_prev=includedir ;;
936   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937   | --includ=* | --inclu=* | --incl=* | --inc=*)
938     includedir=$ac_optarg ;;
939
940   -infodir | --infodir | --infodi | --infod | --info | --inf)
941     ac_prev=infodir ;;
942   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943     infodir=$ac_optarg ;;
944
945   -libdir | --libdir | --libdi | --libd)
946     ac_prev=libdir ;;
947   -libdir=* | --libdir=* | --libdi=* | --libd=*)
948     libdir=$ac_optarg ;;
949
950   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951   | --libexe | --libex | --libe)
952     ac_prev=libexecdir ;;
953   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954   | --libexe=* | --libex=* | --libe=*)
955     libexecdir=$ac_optarg ;;
956
957   -localedir | --localedir | --localedi | --localed | --locale)
958     ac_prev=localedir ;;
959   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960     localedir=$ac_optarg ;;
961
962   -localstatedir | --localstatedir | --localstatedi | --localstated \
963   | --localstate | --localstat | --localsta | --localst | --locals)
964     ac_prev=localstatedir ;;
965   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967     localstatedir=$ac_optarg ;;
968
969   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970     ac_prev=mandir ;;
971   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972     mandir=$ac_optarg ;;
973
974   -nfp | --nfp | --nf)
975     # Obsolete; use --without-fp.
976     with_fp=no ;;
977
978   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979   | --no-cr | --no-c | -n)
980     no_create=yes ;;
981
982   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984     no_recursion=yes ;;
985
986   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988   | --oldin | --oldi | --old | --ol | --o)
989     ac_prev=oldincludedir ;;
990   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993     oldincludedir=$ac_optarg ;;
994
995   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996     ac_prev=prefix ;;
997   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998     prefix=$ac_optarg ;;
999
1000   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001   | --program-pre | --program-pr | --program-p)
1002     ac_prev=program_prefix ;;
1003   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005     program_prefix=$ac_optarg ;;
1006
1007   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008   | --program-suf | --program-su | --program-s)
1009     ac_prev=program_suffix ;;
1010   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012     program_suffix=$ac_optarg ;;
1013
1014   -program-transform-name | --program-transform-name \
1015   | --program-transform-nam | --program-transform-na \
1016   | --program-transform-n | --program-transform- \
1017   | --program-transform | --program-transfor \
1018   | --program-transfo | --program-transf \
1019   | --program-trans | --program-tran \
1020   | --progr-tra | --program-tr | --program-t)
1021     ac_prev=program_transform_name ;;
1022   -program-transform-name=* | --program-transform-name=* \
1023   | --program-transform-nam=* | --program-transform-na=* \
1024   | --program-transform-n=* | --program-transform-=* \
1025   | --program-transform=* | --program-transfor=* \
1026   | --program-transfo=* | --program-transf=* \
1027   | --program-trans=* | --program-tran=* \
1028   | --progr-tra=* | --program-tr=* | --program-t=*)
1029     program_transform_name=$ac_optarg ;;
1030
1031   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032     ac_prev=pdfdir ;;
1033   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034     pdfdir=$ac_optarg ;;
1035
1036   -psdir | --psdir | --psdi | --psd | --ps)
1037     ac_prev=psdir ;;
1038   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039     psdir=$ac_optarg ;;
1040
1041   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042   | -silent | --silent | --silen | --sile | --sil)
1043     silent=yes ;;
1044
1045   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046     ac_prev=sbindir ;;
1047   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048   | --sbi=* | --sb=*)
1049     sbindir=$ac_optarg ;;
1050
1051   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053   | --sharedst | --shareds | --shared | --share | --shar \
1054   | --sha | --sh)
1055     ac_prev=sharedstatedir ;;
1056   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059   | --sha=* | --sh=*)
1060     sharedstatedir=$ac_optarg ;;
1061
1062   -site | --site | --sit)
1063     ac_prev=site ;;
1064   -site=* | --site=* | --sit=*)
1065     site=$ac_optarg ;;
1066
1067   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068     ac_prev=srcdir ;;
1069   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070     srcdir=$ac_optarg ;;
1071
1072   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073   | --syscon | --sysco | --sysc | --sys | --sy)
1074     ac_prev=sysconfdir ;;
1075   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077     sysconfdir=$ac_optarg ;;
1078
1079   -target | --target | --targe | --targ | --tar | --ta | --t)
1080     ac_prev=target_alias ;;
1081   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082     target_alias=$ac_optarg ;;
1083
1084   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085     verbose=yes ;;
1086
1087   -version | --version | --versio | --versi | --vers | -V)
1088     ac_init_version=: ;;
1089
1090   -with-* | --with-*)
1091     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094       as_fn_error $? "invalid package name: $ac_useropt"
1095     ac_useropt_orig=$ac_useropt
1096     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097     case $ac_user_opts in
1098       *"
1099 "with_$ac_useropt"
1100 "*) ;;
1101       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102          ac_unrecognized_sep=', ';;
1103     esac
1104     eval with_$ac_useropt=\$ac_optarg ;;
1105
1106   -without-* | --without-*)
1107     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108     # Reject names that are not valid shell variable names.
1109     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110       as_fn_error $? "invalid package name: $ac_useropt"
1111     ac_useropt_orig=$ac_useropt
1112     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113     case $ac_user_opts in
1114       *"
1115 "with_$ac_useropt"
1116 "*) ;;
1117       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118          ac_unrecognized_sep=', ';;
1119     esac
1120     eval with_$ac_useropt=no ;;
1121
1122   --x)
1123     # Obsolete; use --with-x.
1124     with_x=yes ;;
1125
1126   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127   | --x-incl | --x-inc | --x-in | --x-i)
1128     ac_prev=x_includes ;;
1129   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131     x_includes=$ac_optarg ;;
1132
1133   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135     ac_prev=x_libraries ;;
1136   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138     x_libraries=$ac_optarg ;;
1139
1140   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1141 Try \`$0 --help' for more information"
1142     ;;
1143
1144   *=*)
1145     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146     # Reject names that are not valid shell variable names.
1147     case $ac_envvar in #(
1148       '' | [0-9]* | *[!_$as_cr_alnum]* )
1149       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1150     esac
1151     eval $ac_envvar=\$ac_optarg
1152     export $ac_envvar ;;
1153
1154   *)
1155     # FIXME: should be removed in autoconf 3.0.
1156     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1160     ;;
1161
1162   esac
1163 done
1164
1165 if test -n "$ac_prev"; then
1166   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167   as_fn_error $? "missing argument to $ac_option"
1168 fi
1169
1170 if test -n "$ac_unrecognized_opts"; then
1171   case $enable_option_checking in
1172     no) ;;
1173     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175   esac
1176 fi
1177
1178 # Check all directory arguments for consistency.
1179 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180                 datadir sysconfdir sharedstatedir localstatedir includedir \
1181                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182                 libdir localedir mandir
1183 do
1184   eval ac_val=\$$ac_var
1185   # Remove trailing slashes.
1186   case $ac_val in
1187     */ )
1188       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189       eval $ac_var=\$ac_val;;
1190   esac
1191   # Be sure to have absolute directory names.
1192   case $ac_val in
1193     [\\/$]* | ?:[\\/]* )  continue;;
1194     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195   esac
1196   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197 done
1198
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1202 build=$build_alias
1203 host=$host_alias
1204 target=$target_alias
1205
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x; then
1208   if test "x$build_alias" = x; then
1209     cross_compiling=maybe
1210     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1211     If a cross compiler is detected then cross compile mode will be used" >&2
1212   elif test "x$build_alias" != "x$host_alias"; then
1213     cross_compiling=yes
1214   fi
1215 fi
1216
1217 ac_tool_prefix=
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219
1220 test "$silent" = yes && exec 6>/dev/null
1221
1222
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226   as_fn_error $? "working directory cannot be determined"
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228   as_fn_error $? "pwd does not report name of working directory"
1229
1230
1231 # Find the source files, if location was not specified.
1232 if test -z "$srcdir"; then
1233   ac_srcdir_defaulted=yes
1234   # Try the directory containing this script, then the parent directory.
1235   ac_confdir=`$as_dirname -- "$as_myself" ||
1236 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237          X"$as_myself" : 'X\(//\)[^/]' \| \
1238          X"$as_myself" : 'X\(//\)$' \| \
1239          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240 $as_echo X"$as_myself" |
1241     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242             s//\1/
1243             q
1244           }
1245           /^X\(\/\/\)[^/].*/{
1246             s//\1/
1247             q
1248           }
1249           /^X\(\/\/\)$/{
1250             s//\1/
1251             q
1252           }
1253           /^X\(\/\).*/{
1254             s//\1/
1255             q
1256           }
1257           s/.*/./; q'`
1258   srcdir=$ac_confdir
1259   if test ! -r "$srcdir/$ac_unique_file"; then
1260     srcdir=..
1261   fi
1262 else
1263   ac_srcdir_defaulted=no
1264 fi
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1268 fi
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270 ac_abs_confdir=`(
1271         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1272         pwd)`
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275   srcdir=.
1276 fi
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1280 case $srcdir in
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282 esac
1283 for ac_var in $ac_precious_vars; do
1284   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285   eval ac_env_${ac_var}_value=\$${ac_var}
1286   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288 done
1289
1290 #
1291 # Report the --help message.
1292 #
1293 if test "$ac_init_help" = "long"; then
1294   # Omit some internal or obsolete options to make the list less imposing.
1295   # This message is too long to be a string in the A/UX 3.1 sh.
1296   cat <<_ACEOF
1297 \`configure' configures xmodmap 1.0.7 to adapt to many kinds of systems.
1298
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1300
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE.  See below for descriptions of some of the useful variables.
1303
1304 Defaults for the options are specified in brackets.
1305
1306 Configuration:
1307   -h, --help              display this help and exit
1308       --help=short        display options specific to this package
1309       --help=recursive    display the short help of all the included packages
1310   -V, --version           display version information and exit
1311   -q, --quiet, --silent   do not print \`checking ...' messages
1312       --cache-file=FILE   cache test results in FILE [disabled]
1313   -C, --config-cache      alias for \`--cache-file=config.cache'
1314   -n, --no-create         do not create output files
1315       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1316
1317 Installation directories:
1318   --prefix=PREFIX         install architecture-independent files in PREFIX
1319                           [$ac_default_prefix]
1320   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1321                           [PREFIX]
1322
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1327
1328 For better control, use the options below.
1329
1330 Fine tuning of the installation directories:
1331   --bindir=DIR            user executables [EPREFIX/bin]
1332   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1333   --libexecdir=DIR        program executables [EPREFIX/libexec]
1334   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1335   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1336   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1337   --libdir=DIR            object code libraries [EPREFIX/lib]
1338   --includedir=DIR        C header files [PREFIX/include]
1339   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1340   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1341   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1342   --infodir=DIR           info documentation [DATAROOTDIR/info]
1343   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1344   --mandir=DIR            man documentation [DATAROOTDIR/man]
1345   --docdir=DIR            documentation root [DATAROOTDIR/doc/xmodmap]
1346   --htmldir=DIR           html documentation [DOCDIR]
1347   --dvidir=DIR            dvi documentation [DOCDIR]
1348   --pdfdir=DIR            pdf documentation [DOCDIR]
1349   --psdir=DIR             ps documentation [DOCDIR]
1350 _ACEOF
1351
1352   cat <<\_ACEOF
1353
1354 Program names:
1355   --program-prefix=PREFIX            prepend PREFIX to installed program names
1356   --program-suffix=SUFFIX            append SUFFIX to installed program names
1357   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1358
1359 System types:
1360   --build=BUILD     configure for building on BUILD [guessed]
1361   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1362 _ACEOF
1363 fi
1364
1365 if test -n "$ac_init_help"; then
1366   case $ac_init_help in
1367      short | recursive ) echo "Configuration of xmodmap 1.0.7:";;
1368    esac
1369   cat <<\_ACEOF
1370
1371 Optional Features:
1372   --disable-option-checking  ignore unrecognized --enable/--with options
1373   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1374   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1375   --disable-dependency-tracking  speeds up one-time build
1376   --enable-dependency-tracking   do not reject slow dependency extractors
1377   --enable-maintainer-mode  enable make rules and dependencies not useful
1378                           (and sometimes confusing) to the casual installer
1379   --disable-selective-werror
1380                           Turn off selective compiler errors. (default:
1381                           enabled)
1382   --enable-strict-compilation
1383                           Enable all warnings from compiler and make them
1384                           errors (default: disabled)
1385   --enable-silent-rules          less verbose build output (undo: `make V=1')
1386   --disable-silent-rules         verbose build output (undo: `make V=0')
1387
1388 Optional Packages:
1389   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1390   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1391   --with-lint             Use a lint-style source code checker (default:
1392                           disabled)
1393
1394 Some influential environment variables:
1395   CC          C compiler command
1396   CFLAGS      C compiler flags
1397   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1398               nonstandard directory <lib dir>
1399   LIBS        libraries to pass to the linker, e.g. -l<library>
1400   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401               you have headers in a nonstandard directory <include dir>
1402   CPP         C preprocessor
1403   PKG_CONFIG  path to pkg-config utility
1404   XMODMAP_CFLAGS
1405               C compiler flags for XMODMAP, overriding pkg-config
1406   XMODMAP_LIBS
1407               linker flags for XMODMAP, overriding pkg-config
1408   LINT        Path to a lint-style command
1409   LINT_FLAGS  Flags for the lint-style command
1410
1411 Use these variables to override the choices made by `configure' or to help
1412 it to find libraries and programs with nonstandard names/locations.
1413
1414 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1415 _ACEOF
1416 ac_status=$?
1417 fi
1418
1419 if test "$ac_init_help" = "recursive"; then
1420   # If there are subdirs, report their specific --help.
1421   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1422     test -d "$ac_dir" ||
1423       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1424       continue
1425     ac_builddir=.
1426
1427 case "$ac_dir" in
1428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *)
1430   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1431   # A ".." for each directory in $ac_dir_suffix.
1432   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1433   case $ac_top_builddir_sub in
1434   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436   esac ;;
1437 esac
1438 ac_abs_top_builddir=$ac_pwd
1439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440 # for backward compatibility:
1441 ac_top_builddir=$ac_top_build_prefix
1442
1443 case $srcdir in
1444   .)  # We are building in place.
1445     ac_srcdir=.
1446     ac_top_srcdir=$ac_top_builddir_sub
1447     ac_abs_top_srcdir=$ac_pwd ;;
1448   [\\/]* | ?:[\\/]* )  # Absolute name.
1449     ac_srcdir=$srcdir$ac_dir_suffix;
1450     ac_top_srcdir=$srcdir
1451     ac_abs_top_srcdir=$srcdir ;;
1452   *) # Relative name.
1453     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454     ac_top_srcdir=$ac_top_build_prefix$srcdir
1455     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 esac
1457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458
1459     cd "$ac_dir" || { ac_status=$?; continue; }
1460     # Check for guested configure.
1461     if test -f "$ac_srcdir/configure.gnu"; then
1462       echo &&
1463       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464     elif test -f "$ac_srcdir/configure"; then
1465       echo &&
1466       $SHELL "$ac_srcdir/configure" --help=recursive
1467     else
1468       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469     fi || ac_status=$?
1470     cd "$ac_pwd" || { ac_status=$?; break; }
1471   done
1472 fi
1473
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1476   cat <<\_ACEOF
1477 xmodmap configure 1.0.7
1478 generated by GNU Autoconf 2.68
1479
1480 Copyright (C) 2010 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1483 _ACEOF
1484   exit
1485 fi
1486
1487 ## ------------------------ ##
1488 ## Autoconf initialization. ##
1489 ## ------------------------ ##
1490
1491 # ac_fn_c_try_compile LINENO
1492 # --------------------------
1493 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1494 ac_fn_c_try_compile ()
1495 {
1496   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497   rm -f conftest.$ac_objext
1498   if { { ac_try="$ac_compile"
1499 case "(($ac_try" in
1500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501   *) ac_try_echo=$ac_try;;
1502 esac
1503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504 $as_echo "$ac_try_echo"; } >&5
1505   (eval "$ac_compile") 2>conftest.err
1506   ac_status=$?
1507   if test -s conftest.err; then
1508     grep -v '^ *+' conftest.err >conftest.er1
1509     cat conftest.er1 >&5
1510     mv -f conftest.er1 conftest.err
1511   fi
1512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1513   test $ac_status = 0; } && {
1514          test -z "$ac_c_werror_flag" ||
1515          test ! -s conftest.err
1516        } && test -s conftest.$ac_objext; then :
1517   ac_retval=0
1518 else
1519   $as_echo "$as_me: failed program was:" >&5
1520 sed 's/^/| /' conftest.$ac_ext >&5
1521
1522         ac_retval=1
1523 fi
1524   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1525   as_fn_set_status $ac_retval
1526
1527 } # ac_fn_c_try_compile
1528
1529 # ac_fn_c_try_cpp LINENO
1530 # ----------------------
1531 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_cpp ()
1533 {
1534   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535   if { { ac_try="$ac_cpp conftest.$ac_ext"
1536 case "(($ac_try" in
1537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538   *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1543   ac_status=$?
1544   if test -s conftest.err; then
1545     grep -v '^ *+' conftest.err >conftest.er1
1546     cat conftest.er1 >&5
1547     mv -f conftest.er1 conftest.err
1548   fi
1549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550   test $ac_status = 0; } > conftest.i && {
1551          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1552          test ! -s conftest.err
1553        }; then :
1554   ac_retval=0
1555 else
1556   $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1558
1559     ac_retval=1
1560 fi
1561   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562   as_fn_set_status $ac_retval
1563
1564 } # ac_fn_c_try_cpp
1565
1566 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1567 # -------------------------------------------------------
1568 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1569 # the include files in INCLUDES and setting the cache variable VAR
1570 # accordingly.
1571 ac_fn_c_check_header_mongrel ()
1572 {
1573   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574   if eval \${$3+:} false; then :
1575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1576 $as_echo_n "checking for $2... " >&6; }
1577 if eval \${$3+:} false; then :
1578   $as_echo_n "(cached) " >&6
1579 fi
1580 eval ac_res=\$$3
1581                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1582 $as_echo "$ac_res" >&6; }
1583 else
1584   # Is the header compilable?
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1586 $as_echo_n "checking $2 usability... " >&6; }
1587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1588 /* end confdefs.h.  */
1589 $4
1590 #include <$2>
1591 _ACEOF
1592 if ac_fn_c_try_compile "$LINENO"; then :
1593   ac_header_compiler=yes
1594 else
1595   ac_header_compiler=no
1596 fi
1597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1599 $as_echo "$ac_header_compiler" >&6; }
1600
1601 # Is the header present?
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1603 $as_echo_n "checking $2 presence... " >&6; }
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h.  */
1606 #include <$2>
1607 _ACEOF
1608 if ac_fn_c_try_cpp "$LINENO"; then :
1609   ac_header_preproc=yes
1610 else
1611   ac_header_preproc=no
1612 fi
1613 rm -f conftest.err conftest.i conftest.$ac_ext
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1615 $as_echo "$ac_header_preproc" >&6; }
1616
1617 # So?  What about this header?
1618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1619   yes:no: )
1620     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1621 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1622     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1623 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1624     ;;
1625   no:yes:* )
1626     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1627 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1628     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1629 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1630     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1631 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1632     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1633 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1634     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1635 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1636 ( $as_echo "## ---------------------------------------------------------------------- ##
1637 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1638 ## ---------------------------------------------------------------------- ##"
1639      ) | sed "s/^/$as_me: WARNING:     /" >&2
1640     ;;
1641 esac
1642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if eval \${$3+:} false; then :
1645   $as_echo_n "(cached) " >&6
1646 else
1647   eval "$3=\$ac_header_compiler"
1648 fi
1649 eval ac_res=\$$3
1650                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1652 fi
1653   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655 } # ac_fn_c_check_header_mongrel
1656
1657 # ac_fn_c_try_run LINENO
1658 # ----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1660 # that executables *can* be run.
1661 ac_fn_c_try_run ()
1662 {
1663   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664   if { { ac_try="$ac_link"
1665 case "(($ac_try" in
1666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667   *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671   (eval "$ac_link") 2>&5
1672   ac_status=$?
1673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1675   { { case "(($ac_try" in
1676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677   *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681   (eval "$ac_try") 2>&5
1682   ac_status=$?
1683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684   test $ac_status = 0; }; }; then :
1685   ac_retval=0
1686 else
1687   $as_echo "$as_me: program exited with status $ac_status" >&5
1688        $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691        ac_retval=$ac_status
1692 fi
1693   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695   as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_run
1698
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile ()
1704 {
1705   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709   $as_echo_n "(cached) " >&6
1710 else
1711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h.  */
1713 $4
1714 #include <$2>
1715 _ACEOF
1716 if ac_fn_c_try_compile "$LINENO"; then :
1717   eval "$3=yes"
1718 else
1719   eval "$3=no"
1720 fi
1721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722 fi
1723 eval ac_res=\$$3
1724                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727
1728 } # ac_fn_c_check_header_compile
1729
1730 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1731 # ---------------------------------------------
1732 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1733 # accordingly.
1734 ac_fn_c_check_decl ()
1735 {
1736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737   as_decl_name=`echo $2|sed 's/ *(.*//'`
1738   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1740 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1741 if eval \${$3+:} false; then :
1742   $as_echo_n "(cached) " >&6
1743 else
1744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h.  */
1746 $4
1747 int
1748 main ()
1749 {
1750 #ifndef $as_decl_name
1751 #ifdef __cplusplus
1752   (void) $as_decl_use;
1753 #else
1754   (void) $as_decl_name;
1755 #endif
1756 #endif
1757
1758   ;
1759   return 0;
1760 }
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763   eval "$3=yes"
1764 else
1765   eval "$3=no"
1766 fi
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 fi
1769 eval ac_res=\$$3
1770                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773
1774 } # ac_fn_c_check_decl
1775
1776 # ac_fn_c_try_link LINENO
1777 # -----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_link ()
1780 {
1781   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782   rm -f conftest.$ac_objext conftest$ac_exeext
1783   if { { ac_try="$ac_link"
1784 case "(($ac_try" in
1785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786   *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790   (eval "$ac_link") 2>conftest.err
1791   ac_status=$?
1792   if test -s conftest.err; then
1793     grep -v '^ *+' conftest.err >conftest.er1
1794     cat conftest.er1 >&5
1795     mv -f conftest.er1 conftest.err
1796   fi
1797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798   test $ac_status = 0; } && {
1799          test -z "$ac_c_werror_flag" ||
1800          test ! -s conftest.err
1801        } && test -s conftest$ac_exeext && {
1802          test "$cross_compiling" = yes ||
1803          $as_test_x conftest$ac_exeext
1804        }; then :
1805   ac_retval=0
1806 else
1807   $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810         ac_retval=1
1811 fi
1812   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1813   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1814   # interfere with the next link command; also delete a directory that is
1815   # left behind by Apple's compiler.  We do this before executing the actions.
1816   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818   as_fn_set_status $ac_retval
1819
1820 } # ac_fn_c_try_link
1821
1822 # ac_fn_c_check_func LINENO FUNC VAR
1823 # ----------------------------------
1824 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1825 ac_fn_c_check_func ()
1826 {
1827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831   $as_echo_n "(cached) " >&6
1832 else
1833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h.  */
1835 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1837 #define $2 innocuous_$2
1838
1839 /* System header to define __stub macros and hopefully few prototypes,
1840     which can conflict with char $2 (); below.
1841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1842     <limits.h> exists even on freestanding compilers.  */
1843
1844 #ifdef __STDC__
1845 # include <limits.h>
1846 #else
1847 # include <assert.h>
1848 #endif
1849
1850 #undef $2
1851
1852 /* Override any GCC internal prototype to avoid an error.
1853    Use char because int might match the return type of a GCC
1854    builtin and then its argument prototype would still apply.  */
1855 #ifdef __cplusplus
1856 extern "C"
1857 #endif
1858 char $2 ();
1859 /* The GNU C library defines this for functions which it implements
1860     to always fail with ENOSYS.  Some functions are actually named
1861     something starting with __ and the normal name is an alias.  */
1862 #if defined __stub_$2 || defined __stub___$2
1863 choke me
1864 #endif
1865
1866 int
1867 main ()
1868 {
1869 return $2 ();
1870   ;
1871   return 0;
1872 }
1873 _ACEOF
1874 if ac_fn_c_try_link "$LINENO"; then :
1875   eval "$3=yes"
1876 else
1877   eval "$3=no"
1878 fi
1879 rm -f core conftest.err conftest.$ac_objext \
1880     conftest$ac_exeext conftest.$ac_ext
1881 fi
1882 eval ac_res=\$$3
1883                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1885   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
1887 } # ac_fn_c_check_func
1888 cat >config.log <<_ACEOF
1889 This file contains any messages produced by compilers while
1890 running configure, to aid debugging if configure makes a mistake.
1891
1892 It was created by xmodmap $as_me 1.0.7, which was
1893 generated by GNU Autoconf 2.68.  Invocation command line was
1894
1895   $ $0 $@
1896
1897 _ACEOF
1898 exec 5>>config.log
1899 {
1900 cat <<_ASUNAME
1901 ## --------- ##
1902 ## Platform. ##
1903 ## --------- ##
1904
1905 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1906 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1907 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1908 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1909 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1910
1911 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1912 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1913
1914 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1915 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1916 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1917 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1918 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1919 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1920 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1921
1922 _ASUNAME
1923
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927   IFS=$as_save_IFS
1928   test -z "$as_dir" && as_dir=.
1929     $as_echo "PATH: $as_dir"
1930   done
1931 IFS=$as_save_IFS
1932
1933 } >&5
1934
1935 cat >&5 <<_ACEOF
1936
1937
1938 ## ----------- ##
1939 ## Core tests. ##
1940 ## ----------- ##
1941
1942 _ACEOF
1943
1944
1945 # Keep a trace of the command line.
1946 # Strip out --no-create and --no-recursion so they do not pile up.
1947 # Strip out --silent because we don't want to record it for future runs.
1948 # Also quote any args containing shell meta-characters.
1949 # Make two passes to allow for proper duplicate-argument suppression.
1950 ac_configure_args=
1951 ac_configure_args0=
1952 ac_configure_args1=
1953 ac_must_keep_next=false
1954 for ac_pass in 1 2
1955 do
1956   for ac_arg
1957   do
1958     case $ac_arg in
1959     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1960     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1961     | -silent | --silent | --silen | --sile | --sil)
1962       continue ;;
1963     *\'*)
1964       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1965     esac
1966     case $ac_pass in
1967     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1968     2)
1969       as_fn_append ac_configure_args1 " '$ac_arg'"
1970       if test $ac_must_keep_next = true; then
1971         ac_must_keep_next=false # Got value, back to normal.
1972       else
1973         case $ac_arg in
1974           *=* | --config-cache | -C | -disable-* | --disable-* \
1975           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1976           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1977           | -with-* | --with-* | -without-* | --without-* | --x)
1978             case "$ac_configure_args0 " in
1979               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1980             esac
1981             ;;
1982           -* ) ac_must_keep_next=true ;;
1983         esac
1984       fi
1985       as_fn_append ac_configure_args " '$ac_arg'"
1986       ;;
1987     esac
1988   done
1989 done
1990 { ac_configure_args0=; unset ac_configure_args0;}
1991 { ac_configure_args1=; unset ac_configure_args1;}
1992
1993 # When interrupted or exit'd, cleanup temporary files, and complete
1994 # config.log.  We remove comments because anyway the quotes in there
1995 # would cause problems or look ugly.
1996 # WARNING: Use '\'' to represent an apostrophe within the trap.
1997 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1998 trap 'exit_status=$?
1999   # Save into config.log some information that might help in debugging.
2000   {
2001     echo
2002
2003     $as_echo "## ---------------- ##
2004 ## Cache variables. ##
2005 ## ---------------- ##"
2006     echo
2007     # The following way of writing the cache mishandles newlines in values,
2008 (
2009   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2010     eval ac_val=\$$ac_var
2011     case $ac_val in #(
2012     *${as_nl}*)
2013       case $ac_var in #(
2014       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2015 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2016       esac
2017       case $ac_var in #(
2018       _ | IFS | as_nl) ;; #(
2019       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2020       *) { eval $ac_var=; unset $ac_var;} ;;
2021       esac ;;
2022     esac
2023   done
2024   (set) 2>&1 |
2025     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2026     *${as_nl}ac_space=\ *)
2027       sed -n \
2028         "s/'\''/'\''\\\\'\'''\''/g;
2029           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2030       ;; #(
2031     *)
2032       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2033       ;;
2034     esac |
2035     sort
2036 )
2037     echo
2038
2039     $as_echo "## ----------------- ##
2040 ## Output variables. ##
2041 ## ----------------- ##"
2042     echo
2043     for ac_var in $ac_subst_vars
2044     do
2045       eval ac_val=\$$ac_var
2046       case $ac_val in
2047       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048       esac
2049       $as_echo "$ac_var='\''$ac_val'\''"
2050     done | sort
2051     echo
2052
2053     if test -n "$ac_subst_files"; then
2054       $as_echo "## ------------------- ##
2055 ## File substitutions. ##
2056 ## ------------------- ##"
2057       echo
2058       for ac_var in $ac_subst_files
2059       do
2060         eval ac_val=\$$ac_var
2061         case $ac_val in
2062         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063         esac
2064         $as_echo "$ac_var='\''$ac_val'\''"
2065       done | sort
2066       echo
2067     fi
2068
2069     if test -s confdefs.h; then
2070       $as_echo "## ----------- ##
2071 ## confdefs.h. ##
2072 ## ----------- ##"
2073       echo
2074       cat confdefs.h
2075       echo
2076     fi
2077     test "$ac_signal" != 0 &&
2078       $as_echo "$as_me: caught signal $ac_signal"
2079     $as_echo "$as_me: exit $exit_status"
2080   } >&5
2081   rm -f core *.core core.conftest.* &&
2082     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2083     exit $exit_status
2084 ' 0
2085 for ac_signal in 1 2 13 15; do
2086   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2087 done
2088 ac_signal=0
2089
2090 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2091 rm -f -r conftest* confdefs.h
2092
2093 $as_echo "/* confdefs.h */" > confdefs.h
2094
2095 # Predefined preprocessor variables.
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_NAME "$PACKAGE_NAME"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_STRING "$PACKAGE_STRING"
2111 _ACEOF
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2115 _ACEOF
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_URL "$PACKAGE_URL"
2119 _ACEOF
2120
2121
2122 # Let the site file select an alternate cache file if it wants to.
2123 # Prefer an explicitly selected file to automatically selected ones.
2124 ac_site_file1=NONE
2125 ac_site_file2=NONE
2126 if test -n "$CONFIG_SITE"; then
2127   # We do not want a PATH search for config.site.
2128   case $CONFIG_SITE in #((
2129     -*)  ac_site_file1=./$CONFIG_SITE;;
2130     */*) ac_site_file1=$CONFIG_SITE;;
2131     *)   ac_site_file1=./$CONFIG_SITE;;
2132   esac
2133 elif test "x$prefix" != xNONE; then
2134   ac_site_file1=$prefix/share/config.site
2135   ac_site_file2=$prefix/etc/config.site
2136 else
2137   ac_site_file1=$ac_default_prefix/share/config.site
2138   ac_site_file2=$ac_default_prefix/etc/config.site
2139 fi
2140 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2141 do
2142   test "x$ac_site_file" = xNONE && continue
2143   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2144     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2145 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2146     sed 's/^/| /' "$ac_site_file" >&5
2147     . "$ac_site_file" \
2148       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2150 as_fn_error $? "failed to load site script $ac_site_file
2151 See \`config.log' for more details" "$LINENO" 5; }
2152   fi
2153 done
2154
2155 if test -r "$cache_file"; then
2156   # Some versions of bash will fail to source /dev/null (special files
2157   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2158   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2159     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2160 $as_echo "$as_me: loading cache $cache_file" >&6;}
2161     case $cache_file in
2162       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2163       *)                      . "./$cache_file";;
2164     esac
2165   fi
2166 else
2167   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2168 $as_echo "$as_me: creating cache $cache_file" >&6;}
2169   >$cache_file
2170 fi
2171
2172 # Check that the precious variables saved in the cache have kept the same
2173 # value.
2174 ac_cache_corrupted=false
2175 for ac_var in $ac_precious_vars; do
2176   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2177   eval ac_new_set=\$ac_env_${ac_var}_set
2178   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2179   eval ac_new_val=\$ac_env_${ac_var}_value
2180   case $ac_old_set,$ac_new_set in
2181     set,)
2182       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2183 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2184       ac_cache_corrupted=: ;;
2185     ,set)
2186       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2187 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2188       ac_cache_corrupted=: ;;
2189     ,);;
2190     *)
2191       if test "x$ac_old_val" != "x$ac_new_val"; then
2192         # differences in whitespace do not lead to failure.
2193         ac_old_val_w=`echo x $ac_old_val`
2194         ac_new_val_w=`echo x $ac_new_val`
2195         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2196           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2197 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2198           ac_cache_corrupted=:
2199         else
2200           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2201 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2202           eval $ac_var=\$ac_old_val
2203         fi
2204         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2205 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2206         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2207 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2208       fi;;
2209   esac
2210   # Pass precious variables to config.status.
2211   if test "$ac_new_set" = set; then
2212     case $ac_new_val in
2213     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2214     *) ac_arg=$ac_var=$ac_new_val ;;
2215     esac
2216     case " $ac_configure_args " in
2217       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2218       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2219     esac
2220   fi
2221 done
2222 if $ac_cache_corrupted; then
2223   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2225   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2226 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2227   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2228 fi
2229 ## -------------------- ##
2230 ## Main body of script. ##
2231 ## -------------------- ##
2232
2233 ac_ext=c
2234 ac_cpp='$CPP $CPPFLAGS'
2235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238
2239
2240
2241 ac_config_headers="$ac_config_headers config.h"
2242
2243 # Needed for asprintf on GNU libc
2244 ac_ext=c
2245 ac_cpp='$CPP $CPPFLAGS'
2246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2249 if test -n "$ac_tool_prefix"; then
2250   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2251 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2253 $as_echo_n "checking for $ac_word... " >&6; }
2254 if ${ac_cv_prog_CC+:} false; then :
2255   $as_echo_n "(cached) " >&6
2256 else
2257   if test -n "$CC"; then
2258   ac_cv_prog_CC="$CC" # Let the user override the test.
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2262 do
2263   IFS=$as_save_IFS
2264   test -z "$as_dir" && as_dir=.
2265     for ac_exec_ext in '' $ac_executable_extensions; do
2266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2267     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2269     break 2
2270   fi
2271 done
2272   done
2273 IFS=$as_save_IFS
2274
2275 fi
2276 fi
2277 CC=$ac_cv_prog_CC
2278 if test -n "$CC"; then
2279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2280 $as_echo "$CC" >&6; }
2281 else
2282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2283 $as_echo "no" >&6; }
2284 fi
2285
2286
2287 fi
2288 if test -z "$ac_cv_prog_CC"; then
2289   ac_ct_CC=$CC
2290   # Extract the first word of "gcc", so it can be a program name with args.
2291 set dummy gcc; ac_word=$2
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2293 $as_echo_n "checking for $ac_word... " >&6; }
2294 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2295   $as_echo_n "(cached) " >&6
2296 else
2297   if test -n "$ac_ct_CC"; then
2298   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2302 do
2303   IFS=$as_save_IFS
2304   test -z "$as_dir" && as_dir=.
2305     for ac_exec_ext in '' $ac_executable_extensions; do
2306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307     ac_cv_prog_ac_ct_CC="gcc"
2308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2309     break 2
2310   fi
2311 done
2312   done
2313 IFS=$as_save_IFS
2314
2315 fi
2316 fi
2317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2318 if test -n "$ac_ct_CC"; then
2319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2320 $as_echo "$ac_ct_CC" >&6; }
2321 else
2322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2323 $as_echo "no" >&6; }
2324 fi
2325
2326   if test "x$ac_ct_CC" = x; then
2327     CC=""
2328   else
2329     case $cross_compiling:$ac_tool_warned in
2330 yes:)
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2333 ac_tool_warned=yes ;;
2334 esac
2335     CC=$ac_ct_CC
2336   fi
2337 else
2338   CC="$ac_cv_prog_CC"
2339 fi
2340
2341 if test -z "$CC"; then
2342           if test -n "$ac_tool_prefix"; then
2343     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2344 set dummy ${ac_tool_prefix}cc; ac_word=$2
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2346 $as_echo_n "checking for $ac_word... " >&6; }
2347 if ${ac_cv_prog_CC+:} false; then :
2348   $as_echo_n "(cached) " >&6
2349 else
2350   if test -n "$CC"; then
2351   ac_cv_prog_CC="$CC" # Let the user override the test.
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356   IFS=$as_save_IFS
2357   test -z "$as_dir" && as_dir=.
2358     for ac_exec_ext in '' $ac_executable_extensions; do
2359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360     ac_cv_prog_CC="${ac_tool_prefix}cc"
2361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2362     break 2
2363   fi
2364 done
2365   done
2366 IFS=$as_save_IFS
2367
2368 fi
2369 fi
2370 CC=$ac_cv_prog_CC
2371 if test -n "$CC"; then
2372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2373 $as_echo "$CC" >&6; }
2374 else
2375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2376 $as_echo "no" >&6; }
2377 fi
2378
2379
2380   fi
2381 fi
2382 if test -z "$CC"; then
2383   # Extract the first word of "cc", so it can be a program name with args.
2384 set dummy cc; ac_word=$2
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2386 $as_echo_n "checking for $ac_word... " >&6; }
2387 if ${ac_cv_prog_CC+:} false; then :
2388   $as_echo_n "(cached) " >&6
2389 else
2390   if test -n "$CC"; then
2391   ac_cv_prog_CC="$CC" # Let the user override the test.
2392 else
2393   ac_prog_rejected=no
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397   IFS=$as_save_IFS
2398   test -z "$as_dir" && as_dir=.
2399     for ac_exec_ext in '' $ac_executable_extensions; do
2400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2402        ac_prog_rejected=yes
2403        continue
2404      fi
2405     ac_cv_prog_CC="cc"
2406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2407     break 2
2408   fi
2409 done
2410   done
2411 IFS=$as_save_IFS
2412
2413 if test $ac_prog_rejected = yes; then
2414   # We found a bogon in the path, so make sure we never use it.
2415   set dummy $ac_cv_prog_CC
2416   shift
2417   if test $# != 0; then
2418     # We chose a different compiler from the bogus one.
2419     # However, it has the same basename, so the bogon will be chosen
2420     # first if we set CC to just the basename; use the full file name.
2421     shift
2422     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2423   fi
2424 fi
2425 fi
2426 fi
2427 CC=$ac_cv_prog_CC
2428 if test -n "$CC"; then
2429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2430 $as_echo "$CC" >&6; }
2431 else
2432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2433 $as_echo "no" >&6; }
2434 fi
2435
2436
2437 fi
2438 if test -z "$CC"; then
2439   if test -n "$ac_tool_prefix"; then
2440   for ac_prog in cl.exe
2441   do
2442     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if ${ac_cv_prog_CC+:} false; then :
2447   $as_echo_n "(cached) " >&6
2448 else
2449   if test -n "$CC"; then
2450   ac_cv_prog_CC="$CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455   IFS=$as_save_IFS
2456   test -z "$as_dir" && as_dir=.
2457     for ac_exec_ext in '' $ac_executable_extensions; do
2458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2461     break 2
2462   fi
2463 done
2464   done
2465 IFS=$as_save_IFS
2466
2467 fi
2468 fi
2469 CC=$ac_cv_prog_CC
2470 if test -n "$CC"; then
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2472 $as_echo "$CC" >&6; }
2473 else
2474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475 $as_echo "no" >&6; }
2476 fi
2477
2478
2479     test -n "$CC" && break
2480   done
2481 fi
2482 if test -z "$CC"; then
2483   ac_ct_CC=$CC
2484   for ac_prog in cl.exe
2485 do
2486   # Extract the first word of "$ac_prog", so it can be a program name with args.
2487 set dummy $ac_prog; ac_word=$2
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489 $as_echo_n "checking for $ac_word... " >&6; }
2490 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2491   $as_echo_n "(cached) " >&6
2492 else
2493   if test -n "$ac_ct_CC"; then
2494   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2495 else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499   IFS=$as_save_IFS
2500   test -z "$as_dir" && as_dir=.
2501     for ac_exec_ext in '' $ac_executable_extensions; do
2502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503     ac_cv_prog_ac_ct_CC="$ac_prog"
2504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505     break 2
2506   fi
2507 done
2508   done
2509 IFS=$as_save_IFS
2510
2511 fi
2512 fi
2513 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2514 if test -n "$ac_ct_CC"; then
2515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2516 $as_echo "$ac_ct_CC" >&6; }
2517 else
2518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519 $as_echo "no" >&6; }
2520 fi
2521
2522
2523   test -n "$ac_ct_CC" && break
2524 done
2525
2526   if test "x$ac_ct_CC" = x; then
2527     CC=""
2528   else
2529     case $cross_compiling:$ac_tool_warned in
2530 yes:)
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2533 ac_tool_warned=yes ;;
2534 esac
2535     CC=$ac_ct_CC
2536   fi
2537 fi
2538
2539 fi
2540
2541
2542 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544 as_fn_error $? "no acceptable C compiler found in \$PATH
2545 See \`config.log' for more details" "$LINENO" 5; }
2546
2547 # Provide some information about the compiler.
2548 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2549 set X $ac_compile
2550 ac_compiler=$2
2551 for ac_option in --version -v -V -qversion; do
2552   { { ac_try="$ac_compiler $ac_option >&5"
2553 case "(($ac_try" in
2554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555   *) ac_try_echo=$ac_try;;
2556 esac
2557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2558 $as_echo "$ac_try_echo"; } >&5
2559   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2560   ac_status=$?
2561   if test -s conftest.err; then
2562     sed '10a\
2563 ... rest of stderr output deleted ...
2564          10q' conftest.err >conftest.er1
2565     cat conftest.er1 >&5
2566   fi
2567   rm -f conftest.er1 conftest.err
2568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2569   test $ac_status = 0; }
2570 done
2571
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h.  */
2574
2575 int
2576 main ()
2577 {
2578
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 ac_clean_files_save=$ac_clean_files
2584 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2585 # Try to create an executable without -o first, disregard a.out.
2586 # It will help us diagnose broken compilers, and finding out an intuition
2587 # of exeext.
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2589 $as_echo_n "checking whether the C compiler works... " >&6; }
2590 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2591
2592 # The possible output files:
2593 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2594
2595 ac_rmfiles=
2596 for ac_file in $ac_files
2597 do
2598   case $ac_file in
2599     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2600     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2601   esac
2602 done
2603 rm -f $ac_rmfiles
2604
2605 if { { ac_try="$ac_link_default"
2606 case "(($ac_try" in
2607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608   *) ac_try_echo=$ac_try;;
2609 esac
2610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2611 $as_echo "$ac_try_echo"; } >&5
2612   (eval "$ac_link_default") 2>&5
2613   ac_status=$?
2614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2615   test $ac_status = 0; }; then :
2616   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2617 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2618 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2619 # so that the user can short-circuit this test for compilers unknown to
2620 # Autoconf.
2621 for ac_file in $ac_files ''
2622 do
2623   test -f "$ac_file" || continue
2624   case $ac_file in
2625     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2626         ;;
2627     [ab].out )
2628         # We found the default executable, but exeext='' is most
2629         # certainly right.
2630         break;;
2631     *.* )
2632         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2633         then :; else
2634            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2635         fi
2636         # We set ac_cv_exeext here because the later test for it is not
2637         # safe: cross compilers may not add the suffix if given an `-o'
2638         # argument, so we may need to know it at that point already.
2639         # Even if this section looks crufty: it has the advantage of
2640         # actually working.
2641         break;;
2642     * )
2643         break;;
2644   esac
2645 done
2646 test "$ac_cv_exeext" = no && ac_cv_exeext=
2647
2648 else
2649   ac_file=''
2650 fi
2651 if test -z "$ac_file"; then :
2652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2654 $as_echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2656
2657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659 as_fn_error 77 "C compiler cannot create executables
2660 See \`config.log' for more details" "$LINENO" 5; }
2661 else
2662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2664 fi
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2666 $as_echo_n "checking for C compiler default output file name... " >&6; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2668 $as_echo "$ac_file" >&6; }
2669 ac_exeext=$ac_cv_exeext
2670
2671 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2672 ac_clean_files=$ac_clean_files_save
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2674 $as_echo_n "checking for suffix of executables... " >&6; }
2675 if { { ac_try="$ac_link"
2676 case "(($ac_try" in
2677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678   *) ac_try_echo=$ac_try;;
2679 esac
2680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2681 $as_echo "$ac_try_echo"; } >&5
2682   (eval "$ac_link") 2>&5
2683   ac_status=$?
2684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2685   test $ac_status = 0; }; then :
2686   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2687 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2688 # work properly (i.e., refer to `conftest.exe'), while it won't with
2689 # `rm'.
2690 for ac_file in conftest.exe conftest conftest.*; do
2691   test -f "$ac_file" || continue
2692   case $ac_file in
2693     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2694     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2695           break;;
2696     * ) break;;
2697   esac
2698 done
2699 else
2700   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2702 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2703 See \`config.log' for more details" "$LINENO" 5; }
2704 fi
2705 rm -f conftest conftest$ac_cv_exeext
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2707 $as_echo "$ac_cv_exeext" >&6; }
2708
2709 rm -f conftest.$ac_ext
2710 EXEEXT=$ac_cv_exeext
2711 ac_exeext=$EXEEXT
2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h.  */
2714 #include <stdio.h>
2715 int
2716 main ()
2717 {
2718 FILE *f = fopen ("conftest.out", "w");
2719  return ferror (f) || fclose (f) != 0;
2720
2721   ;
2722   return 0;
2723 }
2724 _ACEOF
2725 ac_clean_files="$ac_clean_files conftest.out"
2726 # Check that the compiler produces executables we can run.  If not, either
2727 # the compiler is broken, or we cross compile.
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2729 $as_echo_n "checking whether we are cross compiling... " >&6; }
2730 if test "$cross_compiling" != yes; then
2731   { { ac_try="$ac_link"
2732 case "(($ac_try" in
2733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734   *) ac_try_echo=$ac_try;;
2735 esac
2736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2737 $as_echo "$ac_try_echo"; } >&5
2738   (eval "$ac_link") 2>&5
2739   ac_status=$?
2740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741   test $ac_status = 0; }
2742   if { ac_try='./conftest$ac_cv_exeext'
2743   { { case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2748 $as_echo "$ac_try_echo"; } >&5
2749   (eval "$ac_try") 2>&5
2750   ac_status=$?
2751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2752   test $ac_status = 0; }; }; then
2753     cross_compiling=no
2754   else
2755     if test "$cross_compiling" = maybe; then
2756         cross_compiling=yes
2757     else
2758         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2760 as_fn_error $? "cannot run C compiled programs.
2761 If you meant to cross compile, use \`--host'.
2762 See \`config.log' for more details" "$LINENO" 5; }
2763     fi
2764   fi
2765 fi
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2767 $as_echo "$cross_compiling" >&6; }
2768
2769 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2770 ac_clean_files=$ac_clean_files_save
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2772 $as_echo_n "checking for suffix of object files... " >&6; }
2773 if ${ac_cv_objext+:} false; then :
2774   $as_echo_n "(cached) " >&6
2775 else
2776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h.  */
2778
2779 int
2780 main ()
2781 {
2782
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 rm -f conftest.o conftest.obj
2788 if { { ac_try="$ac_compile"
2789 case "(($ac_try" in
2790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791   *) ac_try_echo=$ac_try;;
2792 esac
2793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2794 $as_echo "$ac_try_echo"; } >&5
2795   (eval "$ac_compile") 2>&5
2796   ac_status=$?
2797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2798   test $ac_status = 0; }; then :
2799   for ac_file in conftest.o conftest.obj conftest.*; do
2800   test -f "$ac_file" || continue;
2801   case $ac_file in
2802     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2803     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2804        break;;
2805   esac
2806 done
2807 else
2808   $as_echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2813 as_fn_error $? "cannot compute suffix of object files: cannot compile
2814 See \`config.log' for more details" "$LINENO" 5; }
2815 fi
2816 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2817 fi
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2819 $as_echo "$ac_cv_objext" >&6; }
2820 OBJEXT=$ac_cv_objext
2821 ac_objext=$OBJEXT
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2823 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2824 if ${ac_cv_c_compiler_gnu+:} false; then :
2825   $as_echo_n "(cached) " >&6
2826 else
2827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828 /* end confdefs.h.  */
2829
2830 int
2831 main ()
2832 {
2833 #ifndef __GNUC__
2834        choke me
2835 #endif
2836
2837   ;
2838   return 0;
2839 }
2840 _ACEOF
2841 if ac_fn_c_try_compile "$LINENO"; then :
2842   ac_compiler_gnu=yes
2843 else
2844   ac_compiler_gnu=no
2845 fi
2846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2848
2849 fi
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2851 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2852 if test $ac_compiler_gnu = yes; then
2853   GCC=yes
2854 else
2855   GCC=
2856 fi
2857 ac_test_CFLAGS=${CFLAGS+set}
2858 ac_save_CFLAGS=$CFLAGS
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2860 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2861 if ${ac_cv_prog_cc_g+:} false; then :
2862   $as_echo_n "(cached) " >&6
2863 else
2864   ac_save_c_werror_flag=$ac_c_werror_flag
2865    ac_c_werror_flag=yes
2866    ac_cv_prog_cc_g=no
2867    CFLAGS="-g"
2868    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h.  */
2870
2871 int
2872 main ()
2873 {
2874
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 if ac_fn_c_try_compile "$LINENO"; then :
2880   ac_cv_prog_cc_g=yes
2881 else
2882   CFLAGS=""
2883       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h.  */
2885
2886 int
2887 main ()
2888 {
2889
2890   ;
2891   return 0;
2892 }
2893 _ACEOF
2894 if ac_fn_c_try_compile "$LINENO"; then :
2895
2896 else
2897   ac_c_werror_flag=$ac_save_c_werror_flag
2898          CFLAGS="-g"
2899          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2900 /* end confdefs.h.  */
2901
2902 int
2903 main ()
2904 {
2905
2906   ;
2907   return 0;
2908 }
2909 _ACEOF
2910 if ac_fn_c_try_compile "$LINENO"; then :
2911   ac_cv_prog_cc_g=yes
2912 fi
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 fi
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916 fi
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918    ac_c_werror_flag=$ac_save_c_werror_flag
2919 fi
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2921 $as_echo "$ac_cv_prog_cc_g" >&6; }
2922 if test "$ac_test_CFLAGS" = set; then
2923   CFLAGS=$ac_save_CFLAGS
2924 elif test $ac_cv_prog_cc_g = yes; then
2925   if test "$GCC" = yes; then
2926     CFLAGS="-g -O2"
2927   else
2928     CFLAGS="-g"
2929   fi
2930 else
2931   if test "$GCC" = yes; then
2932     CFLAGS="-O2"
2933   else
2934     CFLAGS=
2935   fi
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2938 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2939 if ${ac_cv_prog_cc_c89+:} false; then :
2940   $as_echo_n "(cached) " >&6
2941 else
2942   ac_cv_prog_cc_c89=no
2943 ac_save_CC=$CC
2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945 /* end confdefs.h.  */
2946 #include <stdarg.h>
2947 #include <stdio.h>
2948 #include <sys/types.h>
2949 #include <sys/stat.h>
2950 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2951 struct buf { int x; };
2952 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2953 static char *e (p, i)
2954      char **p;
2955      int i;
2956 {
2957   return p[i];
2958 }
2959 static char *f (char * (*g) (char **, int), char **p, ...)
2960 {
2961   char *s;
2962   va_list v;
2963   va_start (v,p);
2964   s = g (p, va_arg (v,int));
2965   va_end (v);
2966   return s;
2967 }
2968
2969 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2970    function prototypes and stuff, but not '\xHH' hex character constants.
2971    These don't provoke an error unfortunately, instead are silently treated
2972    as 'x'.  The following induces an error, until -std is added to get
2973    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2974    array size at least.  It's necessary to write '\x00'==0 to get something
2975    that's true only with -std.  */
2976 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2977
2978 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2979    inside strings and character constants.  */
2980 #define FOO(x) 'x'
2981 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2982
2983 int test (int i, double x);
2984 struct s1 {int (*f) (int a);};
2985 struct s2 {int (*f) (double a);};
2986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2987 int argc;
2988 char **argv;
2989 int
2990 main ()
2991 {
2992 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2993   ;
2994   return 0;
2995 }
2996 _ACEOF
2997 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2998         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2999 do
3000   CC="$ac_save_CC $ac_arg"
3001   if ac_fn_c_try_compile "$LINENO"; then :
3002   ac_cv_prog_cc_c89=$ac_arg
3003 fi
3004 rm -f core conftest.err conftest.$ac_objext
3005   test "x$ac_cv_prog_cc_c89" != "xno" && break
3006 done
3007 rm -f conftest.$ac_ext
3008 CC=$ac_save_CC
3009
3010 fi
3011 # AC_CACHE_VAL
3012 case "x$ac_cv_prog_cc_c89" in
3013   x)
3014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3015 $as_echo "none needed" >&6; } ;;
3016   xno)
3017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3018 $as_echo "unsupported" >&6; } ;;
3019   *)
3020     CC="$CC $ac_cv_prog_cc_c89"
3021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3022 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3023 esac
3024 if test "x$ac_cv_prog_cc_c89" != xno; then :
3025
3026 fi
3027
3028 ac_ext=c
3029 ac_cpp='$CPP $CPPFLAGS'
3030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033
3034
3035 ac_ext=c
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3041 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3042 # On Suns, sometimes $CPP names a directory.
3043 if test -n "$CPP" && test -d "$CPP"; then
3044   CPP=
3045 fi
3046 if test -z "$CPP"; then
3047   if ${ac_cv_prog_CPP+:} false; then :
3048   $as_echo_n "(cached) " >&6
3049 else
3050       # Double quotes because CPP needs to be expanded
3051     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3052     do
3053       ac_preproc_ok=false
3054 for ac_c_preproc_warn_flag in '' yes
3055 do
3056   # Use a header file that comes with gcc, so configuring glibc
3057   # with a fresh cross-compiler works.
3058   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3059   # <limits.h> exists even on freestanding compilers.
3060   # On the NeXT, cc -E runs the code through the compiler's parser,
3061   # not just through cpp. "Syntax error" is here to catch this case.
3062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h.  */
3064 #ifdef __STDC__
3065 # include <limits.h>
3066 #else
3067 # include <assert.h>
3068 #endif
3069                      Syntax error
3070 _ACEOF
3071 if ac_fn_c_try_cpp "$LINENO"; then :
3072
3073 else
3074   # Broken: fails on valid input.
3075 continue
3076 fi
3077 rm -f conftest.err conftest.i conftest.$ac_ext
3078
3079   # OK, works on sane cases.  Now check whether nonexistent headers
3080   # can be detected and how.
3081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h.  */
3083 #include <ac_nonexistent.h>
3084 _ACEOF
3085 if ac_fn_c_try_cpp "$LINENO"; then :
3086   # Broken: success on invalid input.
3087 continue
3088 else
3089   # Passes both tests.
3090 ac_preproc_ok=:
3091 break
3092 fi
3093 rm -f conftest.err conftest.i conftest.$ac_ext
3094
3095 done
3096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3097 rm -f conftest.i conftest.err conftest.$ac_ext
3098 if $ac_preproc_ok; then :
3099   break
3100 fi
3101
3102     done
3103     ac_cv_prog_CPP=$CPP
3104
3105 fi
3106   CPP=$ac_cv_prog_CPP
3107 else
3108   ac_cv_prog_CPP=$CPP
3109 fi
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3111 $as_echo "$CPP" >&6; }
3112 ac_preproc_ok=false
3113 for ac_c_preproc_warn_flag in '' yes
3114 do
3115   # Use a header file that comes with gcc, so configuring glibc
3116   # with a fresh cross-compiler works.
3117   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3118   # <limits.h> exists even on freestanding compilers.
3119   # On the NeXT, cc -E runs the code through the compiler's parser,
3120   # not just through cpp. "Syntax error" is here to catch this case.
3121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h.  */
3123 #ifdef __STDC__
3124 # include <limits.h>
3125 #else
3126 # include <assert.h>
3127 #endif
3128                      Syntax error
3129 _ACEOF
3130 if ac_fn_c_try_cpp "$LINENO"; then :
3131
3132 else
3133   # Broken: fails on valid input.
3134 continue
3135 fi
3136 rm -f conftest.err conftest.i conftest.$ac_ext
3137
3138   # OK, works on sane cases.  Now check whether nonexistent headers
3139   # can be detected and how.
3140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h.  */
3142 #include <ac_nonexistent.h>
3143 _ACEOF
3144 if ac_fn_c_try_cpp "$LINENO"; then :
3145   # Broken: success on invalid input.
3146 continue
3147 else
3148   # Passes both tests.
3149 ac_preproc_ok=:
3150 break
3151 fi
3152 rm -f conftest.err conftest.i conftest.$ac_ext
3153
3154 done
3155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3156 rm -f conftest.i conftest.err conftest.$ac_ext
3157 if $ac_preproc_ok; then :
3158
3159 else
3160   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3163 See \`config.log' for more details" "$LINENO" 5; }
3164 fi
3165
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3174 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3175 if ${ac_cv_path_GREP+:} false; then :
3176   $as_echo_n "(cached) " >&6
3177 else
3178   if test -z "$GREP"; then
3179   ac_path_GREP_found=false
3180   # Loop through the user's path and test for each of PROGNAME-LIST
3181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3183 do
3184   IFS=$as_save_IFS
3185   test -z "$as_dir" && as_dir=.
3186     for ac_prog in grep ggrep; do
3187     for ac_exec_ext in '' $ac_executable_extensions; do
3188       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3189       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3190 # Check for GNU ac_path_GREP and select it if it is found.
3191   # Check for GNU $ac_path_GREP
3192 case `"$ac_path_GREP" --version 2>&1` in
3193 *GNU*)
3194   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3195 *)
3196   ac_count=0
3197   $as_echo_n 0123456789 >"conftest.in"
3198   while :
3199   do
3200     cat "conftest.in" "conftest.in" >"conftest.tmp"
3201     mv "conftest.tmp" "conftest.in"
3202     cp "conftest.in" "conftest.nl"
3203     $as_echo 'GREP' >> "conftest.nl"
3204     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3205     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3206     as_fn_arith $ac_count + 1 && ac_count=$as_val
3207     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3208       # Best one so far, save it but keep looking for a better one
3209       ac_cv_path_GREP="$ac_path_GREP"
3210       ac_path_GREP_max=$ac_count
3211     fi
3212     # 10*(2^10) chars as input seems more than enough
3213     test $ac_count -gt 10 && break
3214   done
3215   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3216 esac
3217
3218       $ac_path_GREP_found && break 3
3219     done
3220   done
3221   done
3222 IFS=$as_save_IFS
3223   if test -z "$ac_cv_path_GREP"; then
3224     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3225   fi
3226 else
3227   ac_cv_path_GREP=$GREP
3228 fi
3229
3230 fi
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3232 $as_echo "$ac_cv_path_GREP" >&6; }
3233  GREP="$ac_cv_path_GREP"
3234
3235
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3237 $as_echo_n "checking for egrep... " >&6; }
3238 if ${ac_cv_path_EGREP+:} false; then :
3239   $as_echo_n "(cached) " >&6
3240 else
3241   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3242    then ac_cv_path_EGREP="$GREP -E"
3243    else
3244      if test -z "$EGREP"; then
3245   ac_path_EGREP_found=false
3246   # Loop through the user's path and test for each of PROGNAME-LIST
3247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252     for ac_prog in egrep; do
3253     for ac_exec_ext in '' $ac_executable_extensions; do
3254       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3255       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3256 # Check for GNU ac_path_EGREP and select it if it is found.
3257   # Check for GNU $ac_path_EGREP
3258 case `"$ac_path_EGREP" --version 2>&1` in
3259 *GNU*)
3260   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3261 *)
3262   ac_count=0
3263   $as_echo_n 0123456789 >"conftest.in"
3264   while :
3265   do
3266     cat "conftest.in" "conftest.in" >"conftest.tmp"
3267     mv "conftest.tmp" "conftest.in"
3268     cp "conftest.in" "conftest.nl"
3269     $as_echo 'EGREP' >> "conftest.nl"
3270     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3271     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3272     as_fn_arith $ac_count + 1 && ac_count=$as_val
3273     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3274       # Best one so far, save it but keep looking for a better one
3275       ac_cv_path_EGREP="$ac_path_EGREP"
3276       ac_path_EGREP_max=$ac_count
3277     fi
3278     # 10*(2^10) chars as input seems more than enough
3279     test $ac_count -gt 10 && break
3280   done
3281   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3282 esac
3283
3284       $ac_path_EGREP_found && break 3
3285     done
3286   done
3287   done
3288 IFS=$as_save_IFS
3289   if test -z "$ac_cv_path_EGREP"; then
3290     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3291   fi
3292 else
3293   ac_cv_path_EGREP=$EGREP
3294 fi
3295
3296    fi
3297 fi
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3299 $as_echo "$ac_cv_path_EGREP" >&6; }
3300  EGREP="$ac_cv_path_EGREP"
3301
3302
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3304 $as_echo_n "checking for ANSI C header files... " >&6; }
3305 if ${ac_cv_header_stdc+:} false; then :
3306   $as_echo_n "(cached) " >&6
3307 else
3308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h.  */
3310 #include <stdlib.h>
3311 #include <stdarg.h>
3312 #include <string.h>
3313 #include <float.h>
3314
3315 int
3316 main ()
3317 {
3318
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324   ac_cv_header_stdc=yes
3325 else
3326   ac_cv_header_stdc=no
3327 fi
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329
3330 if test $ac_cv_header_stdc = yes; then
3331   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h.  */
3334 #include <string.h>
3335
3336 _ACEOF
3337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3338   $EGREP "memchr" >/dev/null 2>&1; then :
3339
3340 else
3341   ac_cv_header_stdc=no
3342 fi
3343 rm -f conftest*
3344
3345 fi
3346
3347 if test $ac_cv_header_stdc = yes; then
3348   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h.  */
3351 #include <stdlib.h>
3352
3353 _ACEOF
3354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3355   $EGREP "free" >/dev/null 2>&1; then :
3356
3357 else
3358   ac_cv_header_stdc=no
3359 fi
3360 rm -f conftest*
3361
3362 fi
3363
3364 if test $ac_cv_header_stdc = yes; then
3365   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3366   if test "$cross_compiling" = yes; then :
3367   :
3368 else
3369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h.  */
3371 #include <ctype.h>
3372 #include <stdlib.h>
3373 #if ((' ' & 0x0FF) == 0x020)
3374 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3375 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3376 #else
3377 # define ISLOWER(c) \
3378                    (('a' <= (c) && (c) <= 'i') \
3379                      || ('j' <= (c) && (c) <= 'r') \
3380                      || ('s' <= (c) && (c) <= 'z'))
3381 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3382 #endif
3383
3384 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3385 int
3386 main ()
3387 {
3388   int i;
3389   for (i = 0; i < 256; i++)
3390     if (XOR (islower (i), ISLOWER (i))
3391         || toupper (i) != TOUPPER (i))
3392       return 2;
3393   return 0;
3394 }
3395 _ACEOF
3396 if ac_fn_c_try_run "$LINENO"; then :
3397
3398 else
3399   ac_cv_header_stdc=no
3400 fi
3401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3402   conftest.$ac_objext conftest.beam conftest.$ac_ext
3403 fi
3404
3405 fi
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3408 $as_echo "$ac_cv_header_stdc" >&6; }
3409 if test $ac_cv_header_stdc = yes; then
3410
3411 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3412
3413 fi
3414
3415 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3416 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3417                   inttypes.h stdint.h unistd.h
3418 do :
3419   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3420 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3421 "
3422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3423   cat >>confdefs.h <<_ACEOF
3424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3425 _ACEOF
3426
3427 fi
3428
3429 done
3430
3431
3432
3433   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3434 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3435   MINIX=yes
3436 else
3437   MINIX=
3438 fi
3439
3440
3441   if test "$MINIX" = yes; then
3442
3443 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3444
3445
3446 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3447
3448
3449 $as_echo "#define _MINIX 1" >>confdefs.h
3450
3451   fi
3452
3453
3454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3455 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3456 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3457   $as_echo_n "(cached) " >&6
3458 else
3459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h.  */
3461
3462 #         define __EXTENSIONS__ 1
3463           $ac_includes_default
3464 int
3465 main ()
3466 {
3467
3468   ;
3469   return 0;
3470 }
3471 _ACEOF
3472 if ac_fn_c_try_compile "$LINENO"; then :
3473   ac_cv_safe_to_define___extensions__=yes
3474 else
3475   ac_cv_safe_to_define___extensions__=no
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 fi
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3480 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3481   test $ac_cv_safe_to_define___extensions__ = yes &&
3482     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3483
3484   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3485
3486   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3487
3488   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3489
3490   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3491
3492
3493
3494 # Initialize Automake
3495 am__api_version='1.11'
3496
3497 ac_aux_dir=
3498 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3499   if test -f "$ac_dir/install-sh"; then
3500     ac_aux_dir=$ac_dir
3501     ac_install_sh="$ac_aux_dir/install-sh -c"
3502     break
3503   elif test -f "$ac_dir/install.sh"; then
3504     ac_aux_dir=$ac_dir
3505     ac_install_sh="$ac_aux_dir/install.sh -c"
3506     break
3507   elif test -f "$ac_dir/shtool"; then
3508     ac_aux_dir=$ac_dir
3509     ac_install_sh="$ac_aux_dir/shtool install -c"
3510     break
3511   fi
3512 done
3513 if test -z "$ac_aux_dir"; then
3514   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3515 fi
3516
3517 # These three variables are undocumented and unsupported,
3518 # and are intended to be withdrawn in a future Autoconf release.
3519 # They can cause serious problems if a builder's source tree is in a directory
3520 # whose full name contains unusual characters.
3521 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3522 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3523 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3524
3525
3526 # Find a good install program.  We prefer a C program (faster),
3527 # so one script is as good as another.  But avoid the broken or
3528 # incompatible versions:
3529 # SysV /etc/install, /usr/sbin/install
3530 # SunOS /usr/etc/install
3531 # IRIX /sbin/install
3532 # AIX /bin/install
3533 # AmigaOS /C/install, which installs bootblocks on floppy discs
3534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3537 # OS/2's system install, which has a completely different semantic
3538 # ./install, which can be erroneously created by make from ./install.sh.
3539 # Reject install programs that cannot install multiple files.
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3541 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3542 if test -z "$INSTALL"; then
3543 if ${ac_cv_path_install+:} false; then :
3544   $as_echo_n "(cached) " >&6
3545 else
3546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551     # Account for people who put trailing slashes in PATH elements.
3552 case $as_dir/ in #((
3553   ./ | .// | /[cC]/* | \
3554   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3555   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3556   /usr/ucb/* ) ;;
3557   *)
3558     # OSF1 and SCO ODT 3.0 have their own names for install.
3559     # Don't use installbsd from OSF since it installs stuff as root
3560     # by default.
3561     for ac_prog in ginstall scoinst install; do
3562       for ac_exec_ext in '' $ac_executable_extensions; do
3563         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3564           if test $ac_prog = install &&
3565             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3566             # AIX install.  It has an incompatible calling convention.
3567             :
3568           elif test $ac_prog = install &&
3569             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3570             # program-specific install script used by HP pwplus--don't use.
3571             :
3572           else
3573             rm -rf conftest.one conftest.two conftest.dir
3574             echo one > conftest.one
3575             echo two > conftest.two
3576             mkdir conftest.dir
3577             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3578               test -s conftest.one && test -s conftest.two &&
3579               test -s conftest.dir/conftest.one &&
3580               test -s conftest.dir/conftest.two
3581             then
3582               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3583               break 3
3584             fi
3585           fi
3586         fi
3587       done
3588     done
3589     ;;
3590 esac
3591
3592   done
3593 IFS=$as_save_IFS
3594
3595 rm -rf conftest.one conftest.two conftest.dir
3596
3597 fi
3598   if test "${ac_cv_path_install+set}" = set; then
3599     INSTALL=$ac_cv_path_install
3600   else
3601     # As a last resort, use the slow shell script.  Don't cache a
3602     # value for INSTALL within a source directory, because that will
3603     # break other packages using the cache if that directory is
3604     # removed, or if the value is a relative name.
3605     INSTALL=$ac_install_sh
3606   fi
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3609 $as_echo "$INSTALL" >&6; }
3610
3611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3612 # It thinks the first close brace ends the variable substitution.
3613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3614
3615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3616
3617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3618
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3620 $as_echo_n "checking whether build environment is sane... " >&6; }
3621 # Just in case
3622 sleep 1
3623 echo timestamp > conftest.file
3624 # Reject unsafe characters in $srcdir or the absolute working directory
3625 # name.  Accept space and tab only in the latter.
3626 am_lf='
3627 '
3628 case `pwd` in
3629   *[\\\"\#\$\&\'\`$am_lf]*)
3630     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3631 esac
3632 case $srcdir in
3633   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3634     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3635 esac
3636
3637 # Do `set' in a subshell so we don't clobber the current shell's
3638 # arguments.  Must try -L first in case configure is actually a
3639 # symlink; some systems play weird games with the mod time of symlinks
3640 # (eg FreeBSD returns the mod time of the symlink's containing
3641 # directory).
3642 if (
3643    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3644    if test "$*" = "X"; then
3645       # -L didn't work.
3646       set X `ls -t "$srcdir/configure" conftest.file`
3647    fi
3648    rm -f conftest.file
3649    if test "$*" != "X $srcdir/configure conftest.file" \
3650       && test "$*" != "X conftest.file $srcdir/configure"; then
3651
3652       # If neither matched, then we have a broken ls.  This can happen
3653       # if, for instance, CONFIG_SHELL is bash and it inherits a
3654       # broken ls alias from the environment.  This has actually
3655       # happened.  Such a system could not be considered "sane".
3656       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3657 alias in your environment" "$LINENO" 5
3658    fi
3659
3660    test "$2" = conftest.file
3661    )
3662 then
3663    # Ok.
3664    :
3665 else
3666    as_fn_error $? "newly created file is older than distributed files!
3667 Check your system clock" "$LINENO" 5
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3671 test "$program_prefix" != NONE &&
3672   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3673 # Use a double $ so make ignores it.
3674 test "$program_suffix" != NONE &&
3675   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3676 # Double any \ or $.
3677 # By default was `s,x,x', remove it if useless.
3678 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3679 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3680
3681 # expand $ac_aux_dir to an absolute path
3682 am_aux_dir=`cd $ac_aux_dir && pwd`
3683
3684 if test x"${MISSING+set}" != xset; then
3685   case $am_aux_dir in
3686   *\ * | *\     *)
3687     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3688   *)
3689     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3690   esac
3691 fi
3692 # Use eval to expand $SHELL
3693 if eval "$MISSING --run true"; then
3694   am_missing_run="$MISSING --run "
3695 else
3696   am_missing_run=
3697   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3698 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3699 fi
3700
3701 if test x"${install_sh}" != xset; then
3702   case $am_aux_dir in
3703   *\ * | *\     *)
3704     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3705   *)
3706     install_sh="\${SHELL} $am_aux_dir/install-sh"
3707   esac
3708 fi
3709
3710 # Installed binaries are usually stripped using `strip' when the user
3711 # run `make install-strip'.  However `strip' might not be the right
3712 # tool to use in cross-compilation environments, therefore Automake
3713 # will honor the `STRIP' environment variable to overrule this program.
3714 if test "$cross_compiling" != no; then
3715   if test -n "$ac_tool_prefix"; then
3716   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3717 set dummy ${ac_tool_prefix}strip; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if ${ac_cv_prog_STRIP+:} false; then :
3721   $as_echo_n "(cached) " >&6
3722 else
3723   if test -n "$STRIP"; then
3724   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731     for ac_exec_ext in '' $ac_executable_extensions; do
3732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735     break 2
3736   fi
3737 done
3738   done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 STRIP=$ac_cv_prog_STRIP
3744 if test -n "$STRIP"; then
3745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3746 $as_echo "$STRIP" >&6; }
3747 else
3748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3750 fi
3751
3752
3753 fi
3754 if test -z "$ac_cv_prog_STRIP"; then
3755   ac_ct_STRIP=$STRIP
3756   # Extract the first word of "strip", so it can be a program name with args.
3757 set dummy strip; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3761   $as_echo_n "(cached) " >&6
3762 else
3763   if test -n "$ac_ct_STRIP"; then
3764   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769   IFS=$as_save_IFS
3770   test -z "$as_dir" && as_dir=.
3771     for ac_exec_ext in '' $ac_executable_extensions; do
3772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3773     ac_cv_prog_ac_ct_STRIP="strip"
3774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775     break 2
3776   fi
3777 done
3778   done
3779 IFS=$as_save_IFS
3780
3781 fi
3782 fi
3783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3784 if test -n "$ac_ct_STRIP"; then
3785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3786 $as_echo "$ac_ct_STRIP" >&6; }
3787 else
3788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3790 fi
3791
3792   if test "x$ac_ct_STRIP" = x; then
3793     STRIP=":"
3794   else
3795     case $cross_compiling:$ac_tool_warned in
3796 yes:)
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3799 ac_tool_warned=yes ;;
3800 esac
3801     STRIP=$ac_ct_STRIP
3802   fi
3803 else
3804   STRIP="$ac_cv_prog_STRIP"
3805 fi
3806
3807 fi
3808 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3809
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3811 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3812 if test -z "$MKDIR_P"; then
3813   if ${ac_cv_path_mkdir+:} false; then :
3814   $as_echo_n "(cached) " >&6
3815 else
3816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3818 do
3819   IFS=$as_save_IFS
3820   test -z "$as_dir" && as_dir=.
3821     for ac_prog in mkdir gmkdir; do
3822          for ac_exec_ext in '' $ac_executable_extensions; do
3823            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3824            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3825              'mkdir (GNU coreutils) '* | \
3826              'mkdir (coreutils) '* | \
3827              'mkdir (fileutils) '4.1*)
3828                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3829                break 3;;
3830            esac
3831          done
3832        done
3833   done
3834 IFS=$as_save_IFS
3835
3836 fi
3837
3838   test -d ./--version && rmdir ./--version
3839   if test "${ac_cv_path_mkdir+set}" = set; then
3840     MKDIR_P="$ac_cv_path_mkdir -p"
3841   else
3842     # As a last resort, use the slow shell script.  Don't cache a
3843     # value for MKDIR_P within a source directory, because that will
3844     # break other packages using the cache if that directory is
3845     # removed, or if the value is a relative name.
3846     MKDIR_P="$ac_install_sh -d"
3847   fi
3848 fi
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3850 $as_echo "$MKDIR_P" >&6; }
3851
3852 mkdir_p="$MKDIR_P"
3853 case $mkdir_p in
3854   [\\/$]* | ?:[\\/]*) ;;
3855   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3856 esac
3857
3858 for ac_prog in gawk mawk nawk awk
3859 do
3860   # Extract the first word of "$ac_prog", so it can be a program name with args.
3861 set dummy $ac_prog; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if ${ac_cv_prog_AWK+:} false; then :
3865   $as_echo_n "(cached) " >&6
3866 else
3867   if test -n "$AWK"; then
3868   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873   IFS=$as_save_IFS
3874   test -z "$as_dir" && as_dir=.
3875     for ac_exec_ext in '' $ac_executable_extensions; do
3876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3877     ac_cv_prog_AWK="$ac_prog"
3878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879     break 2
3880   fi
3881 done
3882   done
3883 IFS=$as_save_IFS
3884
3885 fi
3886 fi
3887 AWK=$ac_cv_prog_AWK
3888 if test -n "$AWK"; then
3889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3890 $as_echo "$AWK" >&6; }
3891 else
3892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3894 fi
3895
3896
3897   test -n "$AWK" && break
3898 done
3899
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3901 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3902 set x ${MAKE-make}
3903 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3904 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3905   $as_echo_n "(cached) " >&6
3906 else
3907   cat >conftest.make <<\_ACEOF
3908 SHELL = /bin/sh
3909 all:
3910         @echo '@@@%%%=$(MAKE)=@@@%%%'
3911 _ACEOF
3912 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3913 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3914   *@@@%%%=?*=@@@%%%*)
3915     eval ac_cv_prog_make_${ac_make}_set=yes;;
3916   *)
3917     eval ac_cv_prog_make_${ac_make}_set=no;;
3918 esac
3919 rm -f conftest.make
3920 fi
3921 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3923 $as_echo "yes" >&6; }
3924   SET_MAKE=
3925 else
3926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3928   SET_MAKE="MAKE=${MAKE-make}"
3929 fi
3930
3931 rm -rf .tst 2>/dev/null
3932 mkdir .tst 2>/dev/null
3933 if test -d .tst; then
3934   am__leading_dot=.
3935 else
3936   am__leading_dot=_
3937 fi
3938 rmdir .tst 2>/dev/null
3939
3940 DEPDIR="${am__leading_dot}deps"
3941
3942 ac_config_commands="$ac_config_commands depfiles"
3943
3944
3945 am_make=${MAKE-make}
3946 cat > confinc << 'END'
3947 am__doit:
3948         @echo this is the am__doit target
3949 .PHONY: am__doit
3950 END
3951 # If we don't find an include directive, just comment out the code.
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3953 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3954 am__include="#"
3955 am__quote=
3956 _am_result=none
3957 # First try GNU make style include.
3958 echo "include confinc" > confmf
3959 # Ignore all kinds of additional output from `make'.
3960 case `$am_make -s -f confmf 2> /dev/null` in #(
3961 *the\ am__doit\ target*)
3962   am__include=include
3963   am__quote=
3964   _am_result=GNU
3965   ;;
3966 esac
3967 # Now try BSD make style include.
3968 if test "$am__include" = "#"; then
3969    echo '.include "confinc"' > confmf
3970    case `$am_make -s -f confmf 2> /dev/null` in #(
3971    *the\ am__doit\ target*)
3972      am__include=.include
3973      am__quote="\""
3974      _am_result=BSD
3975      ;;
3976    esac
3977 fi
3978
3979
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3981 $as_echo "$_am_result" >&6; }
3982 rm -f confinc confmf
3983
3984 # Check whether --enable-dependency-tracking was given.
3985 if test "${enable_dependency_tracking+set}" = set; then :
3986   enableval=$enable_dependency_tracking;
3987 fi
3988
3989 if test "x$enable_dependency_tracking" != xno; then
3990   am_depcomp="$ac_aux_dir/depcomp"
3991   AMDEPBACKSLASH='\'
3992   am__nodep='_no'
3993 fi
3994  if test "x$enable_dependency_tracking" != xno; then
3995   AMDEP_TRUE=
3996   AMDEP_FALSE='#'
3997 else
3998   AMDEP_TRUE='#'
3999   AMDEP_FALSE=
4000 fi
4001
4002
4003 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4004   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4005   # is not polluted with repeated "-I."
4006   am__isrc=' -I$(srcdir)'
4007   # test to see if srcdir already configured
4008   if test -f $srcdir/config.status; then
4009     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4010   fi
4011 fi
4012
4013 # test whether we have cygpath
4014 if test -z "$CYGPATH_W"; then
4015   if (cygpath --version) >/dev/null 2>/dev/null; then
4016     CYGPATH_W='cygpath -w'
4017   else
4018     CYGPATH_W=echo
4019   fi
4020 fi
4021
4022
4023 # Define the identity of the package.
4024  PACKAGE='xmodmap'
4025  VERSION='1.0.7'
4026
4027
4028 cat >>confdefs.h <<_ACEOF
4029 #define PACKAGE "$PACKAGE"
4030 _ACEOF
4031
4032
4033 cat >>confdefs.h <<_ACEOF
4034 #define VERSION "$VERSION"
4035 _ACEOF
4036
4037 # Some tools Automake needs.
4038
4039 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4040
4041
4042 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4043
4044
4045 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4046
4047
4048 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4049
4050
4051 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4052
4053 # We need awk for the "check" target.  The system "awk" is bad on
4054 # some platforms.
4055 # Always define AMTAR for backward compatibility.
4056
4057 AMTAR=${AMTAR-"${am_missing_run}tar"}
4058
4059 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4060
4061
4062
4063
4064 depcc="$CC"   am_compiler_list=
4065
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4067 $as_echo_n "checking dependency style of $depcc... " >&6; }
4068 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4069   $as_echo_n "(cached) " >&6
4070 else
4071   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4072   # We make a subdir and do the tests there.  Otherwise we can end up
4073   # making bogus files that we don't know about and never remove.  For
4074   # instance it was reported that on HP-UX the gcc test will end up
4075   # making a dummy file named `D' -- because `-MD' means `put the output
4076   # in D'.
4077   rm -rf conftest.dir
4078   mkdir conftest.dir
4079   # Copy depcomp to subdir because otherwise we won't find it if we're
4080   # using a relative directory.
4081   cp "$am_depcomp" conftest.dir
4082   cd conftest.dir
4083   # We will build objects and dependencies in a subdirectory because
4084   # it helps to detect inapplicable dependency modes.  For instance
4085   # both Tru64's cc and ICC support -MD to output dependencies as a
4086   # side effect of compilation, but ICC will put the dependencies in
4087   # the current directory while Tru64 will put them in the object
4088   # directory.
4089   mkdir sub
4090
4091   am_cv_CC_dependencies_compiler_type=none
4092   if test "$am_compiler_list" = ""; then
4093      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4094   fi
4095   am__universal=false
4096   case " $depcc " in #(
4097      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4098      esac
4099
4100   for depmode in $am_compiler_list; do
4101     # Setup a source with many dependencies, because some compilers
4102     # like to wrap large dependency lists on column 80 (with \), and
4103     # we should not choose a depcomp mode which is confused by this.
4104     #
4105     # We need to recreate these files for each test, as the compiler may
4106     # overwrite some of them when testing with obscure command lines.
4107     # This happens at least with the AIX C compiler.
4108     : > sub/conftest.c
4109     for i in 1 2 3 4 5 6; do
4110       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4111       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4112       # Solaris 8's {/usr,}/bin/sh.
4113       touch sub/conftst$i.h
4114     done
4115     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4116
4117     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4118     # mode.  It turns out that the SunPro C++ compiler does not properly
4119     # handle `-M -o', and we need to detect this.  Also, some Intel
4120     # versions had trouble with output in subdirs
4121     am__obj=sub/conftest.${OBJEXT-o}
4122     am__minus_obj="-o $am__obj"
4123     case $depmode in
4124     gcc)
4125       # This depmode causes a compiler race in universal mode.
4126       test "$am__universal" = false || continue
4127       ;;
4128     nosideeffect)
4129       # after this tag, mechanisms are not by side-effect, so they'll
4130       # only be used when explicitly requested
4131       if test "x$enable_dependency_tracking" = xyes; then
4132         continue
4133       else
4134         break
4135       fi
4136       ;;
4137     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4138       # This compiler won't grok `-c -o', but also, the minuso test has
4139       # not run yet.  These depmodes are late enough in the game, and
4140       # so weak that their functioning should not be impacted.
4141       am__obj=conftest.${OBJEXT-o}
4142       am__minus_obj=
4143       ;;
4144     none) break ;;
4145     esac
4146     if depmode=$depmode \
4147        source=sub/conftest.c object=$am__obj \
4148        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4149        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4150          >/dev/null 2>conftest.err &&
4151        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4152        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4153        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4154        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4155       # icc doesn't choke on unknown options, it will just issue warnings
4156       # or remarks (even with -Werror).  So we grep stderr for any message
4157       # that says an option was ignored or not supported.
4158       # When given -MP, icc 7.0 and 7.1 complain thusly:
4159       #   icc: Command line warning: ignoring option '-M'; no argument required
4160       # The diagnosis changed in icc 8.0:
4161       #   icc: Command line remark: option '-MP' not supported
4162       if (grep 'ignoring option' conftest.err ||
4163           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4164         am_cv_CC_dependencies_compiler_type=$depmode
4165         break
4166       fi
4167     fi
4168   done
4169
4170   cd ..
4171   rm -rf conftest.dir
4172 else
4173   am_cv_CC_dependencies_compiler_type=none
4174 fi
4175
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4178 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4179 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4180
4181  if
4182   test "x$enable_dependency_tracking" != xno \
4183   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4184   am__fastdepCC_TRUE=
4185   am__fastdepCC_FALSE='#'
4186 else
4187   am__fastdepCC_TRUE='#'
4188   am__fastdepCC_FALSE=
4189 fi
4190
4191
4192
4193
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4195 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4196     # Check whether --enable-maintainer-mode was given.
4197 if test "${enable_maintainer_mode+set}" = set; then :
4198   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4199 else
4200   USE_MAINTAINER_MODE=no
4201 fi
4202
4203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4204 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4205    if test $USE_MAINTAINER_MODE = yes; then
4206   MAINTAINER_MODE_TRUE=
4207   MAINTAINER_MODE_FALSE='#'
4208 else
4209   MAINTAINER_MODE_TRUE='#'
4210   MAINTAINER_MODE_FALSE=
4211 fi
4212
4213   MAINT=$MAINTAINER_MODE_TRUE
4214
4215
4216
4217 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4230 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4231 if ${ac_cv_prog_cc_c99+:} false; then :
4232   $as_echo_n "(cached) " >&6
4233 else
4234   ac_cv_prog_cc_c99=no
4235 ac_save_CC=$CC
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h.  */
4238 #include <stdarg.h>
4239 #include <stdbool.h>
4240 #include <stdlib.h>
4241 #include <wchar.h>
4242 #include <stdio.h>
4243
4244 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4245 #define debug(...) fprintf (stderr, __VA_ARGS__)
4246 #define showlist(...) puts (#__VA_ARGS__)
4247 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4248 static void
4249 test_varargs_macros (void)
4250 {
4251   int x = 1234;
4252   int y = 5678;
4253   debug ("Flag");
4254   debug ("X = %d\n", x);
4255   showlist (The first, second, and third items.);
4256   report (x>y, "x is %d but y is %d", x, y);
4257 }
4258
4259 // Check long long types.
4260 #define BIG64 18446744073709551615ull
4261 #define BIG32 4294967295ul
4262 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4263 #if !BIG_OK
4264   your preprocessor is broken;
4265 #endif
4266 #if BIG_OK
4267 #else
4268   your preprocessor is broken;
4269 #endif
4270 static long long int bignum = -9223372036854775807LL;
4271 static unsigned long long int ubignum = BIG64;
4272
4273 struct incomplete_array
4274 {
4275   int datasize;
4276   double data[];
4277 };
4278
4279 struct named_init {
4280   int number;
4281   const wchar_t *name;
4282   double average;
4283 };
4284
4285 typedef const char *ccp;
4286
4287 static inline int
4288 test_restrict (ccp restrict text)
4289 {
4290   // See if C++-style comments work.
4291   // Iterate through items via the restricted pointer.
4292   // Also check for declarations in for loops.
4293   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4294     continue;
4295   return 0;
4296 }
4297
4298 // Check varargs and va_copy.
4299 static void
4300 test_varargs (const char *format, ...)
4301 {
4302   va_list args;
4303   va_start (args, format);
4304   va_list args_copy;
4305   va_copy (args_copy, args);
4306
4307   const char *str;
4308   int number;
4309   float fnumber;
4310
4311   while (*format)
4312     {
4313       switch (*format++)
4314         {
4315         case 's': // string
4316           str = va_arg (args_copy, const char *);
4317           break;
4318         case 'd': // int
4319           number = va_arg (args_copy, int);
4320           break;
4321         case 'f': // float
4322           fnumber = va_arg (args_copy, double);
4323           break;
4324         default:
4325           break;
4326         }
4327     }
4328   va_end (args_copy);
4329   va_end (args);
4330 }
4331
4332 int
4333 main ()
4334 {
4335
4336   // Check bool.
4337   _Bool success = false;
4338
4339   // Check restrict.
4340   if (test_restrict ("String literal") == 0)
4341     success = true;
4342   char *restrict newvar = "Another string";
4343
4344   // Check varargs.
4345   test_varargs ("s, d' f .", "string", 65, 34.234);
4346   test_varargs_macros ();
4347
4348   // Check flexible array members.
4349   struct incomplete_array *ia =
4350     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4351   ia->datasize = 10;
4352   for (int i = 0; i < ia->datasize; ++i)
4353     ia->data[i] = i * 1.234;
4354
4355   // Check named initializers.
4356   struct named_init ni = {
4357     .number = 34,
4358     .name = L"Test wide string",
4359     .average = 543.34343,
4360   };
4361
4362   ni.number = 58;
4363
4364   int dynamic_array[ni.number];
4365   dynamic_array[ni.number - 1] = 543;
4366
4367   // work around unused variable warnings
4368   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4369           || dynamic_array[ni.number - 1] != 543);
4370
4371   ;
4372   return 0;
4373 }
4374 _ACEOF
4375 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4376 do
4377   CC="$ac_save_CC $ac_arg"
4378   if ac_fn_c_try_compile "$LINENO"; then :
4379   ac_cv_prog_cc_c99=$ac_arg
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext
4382   test "x$ac_cv_prog_cc_c99" != "xno" && break
4383 done
4384 rm -f conftest.$ac_ext
4385 CC=$ac_save_CC
4386
4387 fi
4388 # AC_CACHE_VAL
4389 case "x$ac_cv_prog_cc_c99" in
4390   x)
4391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4392 $as_echo "none needed" >&6; } ;;
4393   xno)
4394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4395 $as_echo "unsupported" >&6; } ;;
4396   *)
4397     CC="$CC $ac_cv_prog_cc_c99"
4398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4399 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4400 esac
4401 if test "x$ac_cv_prog_cc_c99" != xno; then :
4402
4403 fi
4404
4405
4406
4407
4408
4409
4410 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4411 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4412   CLANGCC="yes"
4413 else
4414   CLANGCC="no"
4415 fi
4416
4417 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4418 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4419   INTELCC="yes"
4420 else
4421   INTELCC="no"
4422 fi
4423
4424 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4425 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4426   SUNCC="yes"
4427 else
4428   SUNCC="no"
4429 fi
4430
4431
4432
4433
4434 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4435         if test -n "$ac_tool_prefix"; then
4436   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4441   $as_echo_n "(cached) " >&6
4442 else
4443   case $PKG_CONFIG in
4444   [\\/]* | ?:[\\/]*)
4445   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4446   ;;
4447   *)
4448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453     for ac_exec_ext in '' $ac_executable_extensions; do
4454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460   done
4461 IFS=$as_save_IFS
4462
4463   ;;
4464 esac
4465 fi
4466 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4467 if test -n "$PKG_CONFIG"; then
4468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4469 $as_echo "$PKG_CONFIG" >&6; }
4470 else
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474
4475
4476 fi
4477 if test -z "$ac_cv_path_PKG_CONFIG"; then
4478   ac_pt_PKG_CONFIG=$PKG_CONFIG
4479   # Extract the first word of "pkg-config", so it can be a program name with args.
4480 set dummy pkg-config; ac_word=$2
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482 $as_echo_n "checking for $ac_word... " >&6; }
4483 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4484   $as_echo_n "(cached) " >&6
4485 else
4486   case $ac_pt_PKG_CONFIG in
4487   [\\/]* | ?:[\\/]*)
4488   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4489   ;;
4490   *)
4491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494   IFS=$as_save_IFS
4495   test -z "$as_dir" && as_dir=.
4496     for ac_exec_ext in '' $ac_executable_extensions; do
4497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500     break 2
4501   fi
4502 done
4503   done
4504 IFS=$as_save_IFS
4505
4506   ;;
4507 esac
4508 fi
4509 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4510 if test -n "$ac_pt_PKG_CONFIG"; then
4511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4512 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4513 else
4514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4516 fi
4517
4518   if test "x$ac_pt_PKG_CONFIG" = x; then
4519     PKG_CONFIG=""
4520   else
4521     case $cross_compiling:$ac_tool_warned in
4522 yes:)
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4525 ac_tool_warned=yes ;;
4526 esac
4527     PKG_CONFIG=$ac_pt_PKG_CONFIG
4528   fi
4529 else
4530   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4531 fi
4532
4533 fi
4534 if test -n "$PKG_CONFIG"; then
4535         _pkg_min_version=0.9.0
4536         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4537 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4538         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4539                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540 $as_echo "yes" >&6; }
4541         else
4542                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544                 PKG_CONFIG=""
4545         fi
4546
4547 fi
4548 # Make sure we can run config.sub.
4549 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4550   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4551
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4553 $as_echo_n "checking build system type... " >&6; }
4554 if ${ac_cv_build+:} false; then :
4555   $as_echo_n "(cached) " >&6
4556 else
4557   ac_build_alias=$build_alias
4558 test "x$ac_build_alias" = x &&
4559   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4560 test "x$ac_build_alias" = x &&
4561   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4562 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4563   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4564
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4567 $as_echo "$ac_cv_build" >&6; }
4568 case $ac_cv_build in
4569 *-*-*) ;;
4570 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4571 esac
4572 build=$ac_cv_build
4573 ac_save_IFS=$IFS; IFS='-'
4574 set x $ac_cv_build
4575 shift
4576 build_cpu=$1
4577 build_vendor=$2
4578 shift; shift
4579 # Remember, the first character of IFS is used to create $*,
4580 # except with old shells:
4581 build_os=$*
4582 IFS=$ac_save_IFS
4583 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4584
4585
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4587 $as_echo_n "checking host system type... " >&6; }
4588 if ${ac_cv_host+:} false; then :
4589   $as_echo_n "(cached) " >&6
4590 else
4591   if test "x$host_alias" = x; then
4592   ac_cv_host=$ac_cv_build
4593 else
4594   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4595     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4596 fi
4597
4598 fi
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4600 $as_echo "$ac_cv_host" >&6; }
4601 case $ac_cv_host in
4602 *-*-*) ;;
4603 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4604 esac
4605 host=$ac_cv_host
4606 ac_save_IFS=$IFS; IFS='-'
4607 set x $ac_cv_host
4608 shift
4609 host_cpu=$1
4610 host_vendor=$2
4611 shift; shift
4612 # Remember, the first character of IFS is used to create $*,
4613 # except with old shells:
4614 host_os=$*
4615 IFS=$ac_save_IFS
4616 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4617
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4620 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4621 if ${ac_cv_path_SED+:} false; then :
4622   $as_echo_n "(cached) " >&6
4623 else
4624             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4625      for ac_i in 1 2 3 4 5 6 7; do
4626        ac_script="$ac_script$as_nl$ac_script"
4627      done
4628      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4629      { ac_script=; unset ac_script;}
4630      if test -z "$SED"; then
4631   ac_path_SED_found=false
4632   # Loop through the user's path and test for each of PROGNAME-LIST
4633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4635 do
4636   IFS=$as_save_IFS
4637   test -z "$as_dir" && as_dir=.
4638     for ac_prog in sed gsed; do
4639     for ac_exec_ext in '' $ac_executable_extensions; do
4640       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4641       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4642 # Check for GNU ac_path_SED and select it if it is found.
4643   # Check for GNU $ac_path_SED
4644 case `"$ac_path_SED" --version 2>&1` in
4645 *GNU*)
4646   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4647 *)
4648   ac_count=0
4649   $as_echo_n 0123456789 >"conftest.in"
4650   while :
4651   do
4652     cat "conftest.in" "conftest.in" >"conftest.tmp"
4653     mv "conftest.tmp" "conftest.in"
4654     cp "conftest.in" "conftest.nl"
4655     $as_echo '' >> "conftest.nl"
4656     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4658     as_fn_arith $ac_count + 1 && ac_count=$as_val
4659     if test $ac_count -gt ${ac_path_SED_max-0}; then
4660       # Best one so far, save it but keep looking for a better one
4661       ac_cv_path_SED="$ac_path_SED"
4662       ac_path_SED_max=$ac_count
4663     fi
4664     # 10*(2^10) chars as input seems more than enough
4665     test $ac_count -gt 10 && break
4666   done
4667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4668 esac
4669
4670       $ac_path_SED_found && break 3
4671     done
4672   done
4673   done
4674 IFS=$as_save_IFS
4675   if test -z "$ac_cv_path_SED"; then
4676     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4677   fi
4678 else
4679   ac_cv_path_SED=$SED
4680 fi
4681
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4684 $as_echo "$ac_cv_path_SED" >&6; }
4685  SED="$ac_cv_path_SED"
4686   rm -f conftest.sed
4687
4688
4689
4690
4691
4692
4693 # Check whether --enable-selective-werror was given.
4694 if test "${enable_selective_werror+set}" = set; then :
4695   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4696 else
4697   SELECTIVE_WERROR=yes
4698 fi
4699
4700
4701
4702
4703
4704 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4705 if test "x$SUNCC" = "xyes"; then
4706     BASE_CFLAGS="-v"
4707 else
4708     BASE_CFLAGS=""
4709 fi
4710
4711 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725 xorg_testset_save_CFLAGS="$CFLAGS"
4726
4727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4728         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4729         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4732   $as_echo_n "(cached) " >&6
4733 else
4734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h.  */
4736 int i;
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739   xorg_cv_cc_flag_unknown_warning_option=yes
4740 else
4741   xorg_cv_cc_flag_unknown_warning_option=no
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4747         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4748         CFLAGS="$xorg_testset_save_CFLAGS"
4749 fi
4750
4751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4752         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4753                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4754         fi
4755         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4756         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4759   $as_echo_n "(cached) " >&6
4760 else
4761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h.  */
4763 int i;
4764 _ACEOF
4765 if ac_fn_c_try_compile "$LINENO"; then :
4766   xorg_cv_cc_flag_unused_command_line_argument=yes
4767 else
4768   xorg_cv_cc_flag_unused_command_line_argument=no
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 fi
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4774         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4775         CFLAGS="$xorg_testset_save_CFLAGS"
4776 fi
4777
4778 found="no"
4779
4780         if test $found = "no" ; then
4781                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4782                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4783                 fi
4784
4785                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4786                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4787                 fi
4788
4789                 CFLAGS="$CFLAGS -Wall"
4790
4791                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4792 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4793                 cacheid=xorg_cv_cc_flag__Wall
4794                 if eval \${$cacheid+:} false; then :
4795   $as_echo_n "(cached) " >&6
4796 else
4797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h.  */
4799 int i;
4800 int
4801 main ()
4802 {
4803
4804   ;
4805   return 0;
4806 }
4807 _ACEOF
4808 if ac_fn_c_try_link "$LINENO"; then :
4809   eval $cacheid=yes
4810 else
4811   eval $cacheid=no
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext \
4814     conftest$ac_exeext conftest.$ac_ext
4815 fi
4816
4817
4818                 CFLAGS="$xorg_testset_save_CFLAGS"
4819
4820                 eval supported=\$$cacheid
4821                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4822 $as_echo "$supported" >&6; }
4823                 if test "$supported" = "yes" ; then
4824                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
4825                         found="yes"
4826                 fi
4827         fi
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843 xorg_testset_save_CFLAGS="$CFLAGS"
4844
4845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4846         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4847         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4850   $as_echo_n "(cached) " >&6
4851 else
4852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h.  */
4854 int i;
4855 _ACEOF
4856 if ac_fn_c_try_compile "$LINENO"; then :
4857   xorg_cv_cc_flag_unknown_warning_option=yes
4858 else
4859   xorg_cv_cc_flag_unknown_warning_option=no
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4865         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4866         CFLAGS="$xorg_testset_save_CFLAGS"
4867 fi
4868
4869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4870         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4871                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4872         fi
4873         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4874         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4877   $as_echo_n "(cached) " >&6
4878 else
4879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h.  */
4881 int i;
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884   xorg_cv_cc_flag_unused_command_line_argument=yes
4885 else
4886   xorg_cv_cc_flag_unused_command_line_argument=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 fi
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4892         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4893         CFLAGS="$xorg_testset_save_CFLAGS"
4894 fi
4895
4896 found="no"
4897
4898         if test $found = "no" ; then
4899                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4900                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4901                 fi
4902
4903                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4904                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4905                 fi
4906
4907                 CFLAGS="$CFLAGS -Wpointer-arith"
4908
4909                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4910 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4911                 cacheid=xorg_cv_cc_flag__Wpointer_arith
4912                 if eval \${$cacheid+:} false; then :
4913   $as_echo_n "(cached) " >&6
4914 else
4915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h.  */
4917 int i;
4918 int
4919 main ()
4920 {
4921
4922   ;
4923   return 0;
4924 }
4925 _ACEOF
4926 if ac_fn_c_try_link "$LINENO"; then :
4927   eval $cacheid=yes
4928 else
4929   eval $cacheid=no
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext \
4932     conftest$ac_exeext conftest.$ac_ext
4933 fi
4934
4935
4936                 CFLAGS="$xorg_testset_save_CFLAGS"
4937
4938                 eval supported=\$$cacheid
4939                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4940 $as_echo "$supported" >&6; }
4941                 if test "$supported" = "yes" ; then
4942                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4943                         found="yes"
4944                 fi
4945         fi
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961 xorg_testset_save_CFLAGS="$CFLAGS"
4962
4963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4964         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4965         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4968   $as_echo_n "(cached) " >&6
4969 else
4970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h.  */
4972 int i;
4973 _ACEOF
4974 if ac_fn_c_try_compile "$LINENO"; then :
4975   xorg_cv_cc_flag_unknown_warning_option=yes
4976 else
4977   xorg_cv_cc_flag_unknown_warning_option=no
4978 fi
4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4983         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4984         CFLAGS="$xorg_testset_save_CFLAGS"
4985 fi
4986
4987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4988         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4989                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4990         fi
4991         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4992         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4995   $as_echo_n "(cached) " >&6
4996 else
4997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h.  */
4999 int i;
5000 _ACEOF
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002   xorg_cv_cc_flag_unused_command_line_argument=yes
5003 else
5004   xorg_cv_cc_flag_unused_command_line_argument=no
5005 fi
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 fi
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5010         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5011         CFLAGS="$xorg_testset_save_CFLAGS"
5012 fi
5013
5014 found="no"
5015
5016         if test $found = "no" ; then
5017                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5018                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5019                 fi
5020
5021                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5022                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5023                 fi
5024
5025                 CFLAGS="$CFLAGS -Wmissing-declarations"
5026
5027                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5028 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5029                 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5030                 if eval \${$cacheid+:} false; then :
5031   $as_echo_n "(cached) " >&6
5032 else
5033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h.  */
5035 int i;
5036 int
5037 main ()
5038 {
5039
5040   ;
5041   return 0;
5042 }
5043 _ACEOF
5044 if ac_fn_c_try_link "$LINENO"; then :
5045   eval $cacheid=yes
5046 else
5047   eval $cacheid=no
5048 fi
5049 rm -f core conftest.err conftest.$ac_objext \
5050     conftest$ac_exeext conftest.$ac_ext
5051 fi
5052
5053
5054                 CFLAGS="$xorg_testset_save_CFLAGS"
5055
5056                 eval supported=\$$cacheid
5057                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5058 $as_echo "$supported" >&6; }
5059                 if test "$supported" = "yes" ; then
5060                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5061                         found="yes"
5062                 fi
5063         fi
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079 xorg_testset_save_CFLAGS="$CFLAGS"
5080
5081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5082         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5083         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5086   $as_echo_n "(cached) " >&6
5087 else
5088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h.  */
5090 int i;
5091 _ACEOF
5092 if ac_fn_c_try_compile "$LINENO"; then :
5093   xorg_cv_cc_flag_unknown_warning_option=yes
5094 else
5095   xorg_cv_cc_flag_unknown_warning_option=no
5096 fi
5097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5098 fi
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5101         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5102         CFLAGS="$xorg_testset_save_CFLAGS"
5103 fi
5104
5105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5106         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5107                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5108         fi
5109         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5113   $as_echo_n "(cached) " >&6
5114 else
5115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h.  */
5117 int i;
5118 _ACEOF
5119 if ac_fn_c_try_compile "$LINENO"; then :
5120   xorg_cv_cc_flag_unused_command_line_argument=yes
5121 else
5122   xorg_cv_cc_flag_unused_command_line_argument=no
5123 fi
5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 fi
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5128         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5129         CFLAGS="$xorg_testset_save_CFLAGS"
5130 fi
5131
5132 found="no"
5133
5134         if test $found = "no" ; then
5135                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5136                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5137                 fi
5138
5139                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5140                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5141                 fi
5142
5143                 CFLAGS="$CFLAGS -Wformat=2"
5144
5145                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5146 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5147                 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5148                 if eval \${$cacheid+:} false; then :
5149   $as_echo_n "(cached) " >&6
5150 else
5151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h.  */
5153 int i;
5154 int
5155 main ()
5156 {
5157
5158   ;
5159   return 0;
5160 }
5161 _ACEOF
5162 if ac_fn_c_try_link "$LINENO"; then :
5163   eval $cacheid=yes
5164 else
5165   eval $cacheid=no
5166 fi
5167 rm -f core conftest.err conftest.$ac_objext \
5168     conftest$ac_exeext conftest.$ac_ext
5169 fi
5170
5171
5172                 CFLAGS="$xorg_testset_save_CFLAGS"
5173
5174                 eval supported=\$$cacheid
5175                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5176 $as_echo "$supported" >&6; }
5177                 if test "$supported" = "yes" ; then
5178                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5179                         found="yes"
5180                 fi
5181         fi
5182
5183         if test $found = "no" ; then
5184                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5185                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5186                 fi
5187
5188                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5189                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5190                 fi
5191
5192                 CFLAGS="$CFLAGS -Wformat"
5193
5194                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5195 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5196                 cacheid=xorg_cv_cc_flag__Wformat
5197                 if eval \${$cacheid+:} false; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h.  */
5202 int i;
5203 int
5204 main ()
5205 {
5206
5207   ;
5208   return 0;
5209 }
5210 _ACEOF
5211 if ac_fn_c_try_link "$LINENO"; then :
5212   eval $cacheid=yes
5213 else
5214   eval $cacheid=no
5215 fi
5216 rm -f core conftest.err conftest.$ac_objext \
5217     conftest$ac_exeext conftest.$ac_ext
5218 fi
5219
5220
5221                 CFLAGS="$xorg_testset_save_CFLAGS"
5222
5223                 eval supported=\$$cacheid
5224                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5225 $as_echo "$supported" >&6; }
5226                 if test "$supported" = "yes" ; then
5227                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5228                         found="yes"
5229                 fi
5230         fi
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248 xorg_testset_save_CFLAGS="$CFLAGS"
5249
5250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5251         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5253 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5254 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5255   $as_echo_n "(cached) " >&6
5256 else
5257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h.  */
5259 int i;
5260 _ACEOF
5261 if ac_fn_c_try_compile "$LINENO"; then :
5262   xorg_cv_cc_flag_unknown_warning_option=yes
5263 else
5264   xorg_cv_cc_flag_unknown_warning_option=no
5265 fi
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 fi
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5269 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5270         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5271         CFLAGS="$xorg_testset_save_CFLAGS"
5272 fi
5273
5274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5275         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5276                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5277         fi
5278         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5280 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5281 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286 int i;
5287 _ACEOF
5288 if ac_fn_c_try_compile "$LINENO"; then :
5289   xorg_cv_cc_flag_unused_command_line_argument=yes
5290 else
5291   xorg_cv_cc_flag_unused_command_line_argument=no
5292 fi
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5296 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5297         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5298         CFLAGS="$xorg_testset_save_CFLAGS"
5299 fi
5300
5301 found="no"
5302
5303         if test $found = "no" ; then
5304                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5305                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5306                 fi
5307
5308                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5309                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5310                 fi
5311
5312                 CFLAGS="$CFLAGS -Wstrict-prototypes"
5313
5314                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5315 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5316                 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5317                 if eval \${$cacheid+:} false; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h.  */
5322 int i;
5323 int
5324 main ()
5325 {
5326
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 if ac_fn_c_try_link "$LINENO"; then :
5332   eval $cacheid=yes
5333 else
5334   eval $cacheid=no
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext \
5337     conftest$ac_exeext conftest.$ac_ext
5338 fi
5339
5340
5341                 CFLAGS="$xorg_testset_save_CFLAGS"
5342
5343                 eval supported=\$$cacheid
5344                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5345 $as_echo "$supported" >&6; }
5346                 if test "$supported" = "yes" ; then
5347                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5348                         found="yes"
5349                 fi
5350         fi
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366 xorg_testset_save_CFLAGS="$CFLAGS"
5367
5368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5369         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5371 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5372 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5373   $as_echo_n "(cached) " >&6
5374 else
5375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h.  */
5377 int i;
5378 _ACEOF
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380   xorg_cv_cc_flag_unknown_warning_option=yes
5381 else
5382   xorg_cv_cc_flag_unknown_warning_option=no
5383 fi
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 fi
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5387 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5388         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5389         CFLAGS="$xorg_testset_save_CFLAGS"
5390 fi
5391
5392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5393         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5394                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5395         fi
5396         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5397         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5398 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5399 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5400   $as_echo_n "(cached) " >&6
5401 else
5402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h.  */
5404 int i;
5405 _ACEOF
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407   xorg_cv_cc_flag_unused_command_line_argument=yes
5408 else
5409   xorg_cv_cc_flag_unused_command_line_argument=no
5410 fi
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 fi
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5414 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5415         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5416         CFLAGS="$xorg_testset_save_CFLAGS"
5417 fi
5418
5419 found="no"
5420
5421         if test $found = "no" ; then
5422                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5423                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5424                 fi
5425
5426                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5427                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5428                 fi
5429
5430                 CFLAGS="$CFLAGS -Wmissing-prototypes"
5431
5432                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5433 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5434                 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5435                 if eval \${$cacheid+:} false; then :
5436   $as_echo_n "(cached) " >&6
5437 else
5438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h.  */
5440 int i;
5441 int
5442 main ()
5443 {
5444
5445   ;
5446   return 0;
5447 }
5448 _ACEOF
5449 if ac_fn_c_try_link "$LINENO"; then :
5450   eval $cacheid=yes
5451 else
5452   eval $cacheid=no
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext \
5455     conftest$ac_exeext conftest.$ac_ext
5456 fi
5457
5458
5459                 CFLAGS="$xorg_testset_save_CFLAGS"
5460
5461                 eval supported=\$$cacheid
5462                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5463 $as_echo "$supported" >&6; }
5464                 if test "$supported" = "yes" ; then
5465                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5466                         found="yes"
5467                 fi
5468         fi
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484 xorg_testset_save_CFLAGS="$CFLAGS"
5485
5486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5487         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5490 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h.  */
5495 int i;
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498   xorg_cv_cc_flag_unknown_warning_option=yes
5499 else
5500   xorg_cv_cc_flag_unknown_warning_option=no
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 fi
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5506         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5507         CFLAGS="$xorg_testset_save_CFLAGS"
5508 fi
5509
5510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5511         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5512                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5513         fi
5514         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5515         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5518   $as_echo_n "(cached) " >&6
5519 else
5520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h.  */
5522 int i;
5523 _ACEOF
5524 if ac_fn_c_try_compile "$LINENO"; then :
5525   xorg_cv_cc_flag_unused_command_line_argument=yes
5526 else
5527   xorg_cv_cc_flag_unused_command_line_argument=no
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5533         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5534         CFLAGS="$xorg_testset_save_CFLAGS"
5535 fi
5536
5537 found="no"
5538
5539         if test $found = "no" ; then
5540                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5541                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5542                 fi
5543
5544                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5545                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5546                 fi
5547
5548                 CFLAGS="$CFLAGS -Wnested-externs"
5549
5550                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5551 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5552                 cacheid=xorg_cv_cc_flag__Wnested_externs
5553                 if eval \${$cacheid+:} false; then :
5554   $as_echo_n "(cached) " >&6
5555 else
5556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h.  */
5558 int i;
5559 int
5560 main ()
5561 {
5562
5563   ;
5564   return 0;
5565 }
5566 _ACEOF
5567 if ac_fn_c_try_link "$LINENO"; then :
5568   eval $cacheid=yes
5569 else
5570   eval $cacheid=no
5571 fi
5572 rm -f core conftest.err conftest.$ac_objext \
5573     conftest$ac_exeext conftest.$ac_ext
5574 fi
5575
5576
5577                 CFLAGS="$xorg_testset_save_CFLAGS"
5578
5579                 eval supported=\$$cacheid
5580                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5581 $as_echo "$supported" >&6; }
5582                 if test "$supported" = "yes" ; then
5583                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5584                         found="yes"
5585                 fi
5586         fi
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602 xorg_testset_save_CFLAGS="$CFLAGS"
5603
5604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5605         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5606         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h.  */
5613 int i;
5614 _ACEOF
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616   xorg_cv_cc_flag_unknown_warning_option=yes
5617 else
5618   xorg_cv_cc_flag_unknown_warning_option=no
5619 fi
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5624         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5625         CFLAGS="$xorg_testset_save_CFLAGS"
5626 fi
5627
5628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5629         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5630                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5631         fi
5632         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5633         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h.  */
5640 int i;
5641 _ACEOF
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643   xorg_cv_cc_flag_unused_command_line_argument=yes
5644 else
5645   xorg_cv_cc_flag_unused_command_line_argument=no
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5651         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5652         CFLAGS="$xorg_testset_save_CFLAGS"
5653 fi
5654
5655 found="no"
5656
5657         if test $found = "no" ; then
5658                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5659                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5660                 fi
5661
5662                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5663                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5664                 fi
5665
5666                 CFLAGS="$CFLAGS -Wbad-function-cast"
5667
5668                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5669 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5670                 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5671                 if eval \${$cacheid+:} false; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h.  */
5676 int i;
5677 int
5678 main ()
5679 {
5680
5681   ;
5682   return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_c_try_link "$LINENO"; then :
5686   eval $cacheid=yes
5687 else
5688   eval $cacheid=no
5689 fi
5690 rm -f core conftest.err conftest.$ac_objext \
5691     conftest$ac_exeext conftest.$ac_ext
5692 fi
5693
5694
5695                 CFLAGS="$xorg_testset_save_CFLAGS"
5696
5697                 eval supported=\$$cacheid
5698                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5699 $as_echo "$supported" >&6; }
5700                 if test "$supported" = "yes" ; then
5701                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5702                         found="yes"
5703                 fi
5704         fi
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720 xorg_testset_save_CFLAGS="$CFLAGS"
5721
5722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5723         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5724         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5727   $as_echo_n "(cached) " >&6
5728 else
5729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h.  */
5731 int i;
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"; then :
5734   xorg_cv_cc_flag_unknown_warning_option=yes
5735 else
5736   xorg_cv_cc_flag_unknown_warning_option=no
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 fi
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5742         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5743         CFLAGS="$xorg_testset_save_CFLAGS"
5744 fi
5745
5746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5747         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5748                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5749         fi
5750         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5751         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5754   $as_echo_n "(cached) " >&6
5755 else
5756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h.  */
5758 int i;
5759 _ACEOF
5760 if ac_fn_c_try_compile "$LINENO"; then :
5761   xorg_cv_cc_flag_unused_command_line_argument=yes
5762 else
5763   xorg_cv_cc_flag_unused_command_line_argument=no
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5769         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5770         CFLAGS="$xorg_testset_save_CFLAGS"
5771 fi
5772
5773 found="no"
5774
5775         if test $found = "no" ; then
5776                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5777                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5778                 fi
5779
5780                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5781                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5782                 fi
5783
5784                 CFLAGS="$CFLAGS -Wold-style-definition"
5785
5786                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5787 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5788                 cacheid=xorg_cv_cc_flag__Wold_style_definition
5789                 if eval \${$cacheid+:} false; then :
5790   $as_echo_n "(cached) " >&6
5791 else
5792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h.  */
5794 int i;
5795 int
5796 main ()
5797 {
5798
5799   ;
5800   return 0;
5801 }
5802 _ACEOF
5803 if ac_fn_c_try_link "$LINENO"; then :
5804   eval $cacheid=yes
5805 else
5806   eval $cacheid=no
5807 fi
5808 rm -f core conftest.err conftest.$ac_objext \
5809     conftest$ac_exeext conftest.$ac_ext
5810 fi
5811
5812
5813                 CFLAGS="$xorg_testset_save_CFLAGS"
5814
5815                 eval supported=\$$cacheid
5816                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5817 $as_echo "$supported" >&6; }
5818                 if test "$supported" = "yes" ; then
5819                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5820                         found="yes"
5821                 fi
5822         fi
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838 xorg_testset_save_CFLAGS="$CFLAGS"
5839
5840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5841         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5842         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5844 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5845   $as_echo_n "(cached) " >&6
5846 else
5847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h.  */
5849 int i;
5850 _ACEOF
5851 if ac_fn_c_try_compile "$LINENO"; then :
5852   xorg_cv_cc_flag_unknown_warning_option=yes
5853 else
5854   xorg_cv_cc_flag_unknown_warning_option=no
5855 fi
5856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 fi
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5860         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5861         CFLAGS="$xorg_testset_save_CFLAGS"
5862 fi
5863
5864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5865         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5866                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5867         fi
5868         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5869         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5872   $as_echo_n "(cached) " >&6
5873 else
5874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h.  */
5876 int i;
5877 _ACEOF
5878 if ac_fn_c_try_compile "$LINENO"; then :
5879   xorg_cv_cc_flag_unused_command_line_argument=yes
5880 else
5881   xorg_cv_cc_flag_unused_command_line_argument=no
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 fi
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5887         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5888         CFLAGS="$xorg_testset_save_CFLAGS"
5889 fi
5890
5891 found="no"
5892
5893         if test $found = "no" ; then
5894                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5895                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5896                 fi
5897
5898                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5899                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5900                 fi
5901
5902                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5903
5904                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5905 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5906                 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5907                 if eval \${$cacheid+:} 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 int
5914 main ()
5915 {
5916
5917   ;
5918   return 0;
5919 }
5920 _ACEOF
5921 if ac_fn_c_try_link "$LINENO"; then :
5922   eval $cacheid=yes
5923 else
5924   eval $cacheid=no
5925 fi
5926 rm -f core conftest.err conftest.$ac_objext \
5927     conftest$ac_exeext conftest.$ac_ext
5928 fi
5929
5930
5931                 CFLAGS="$xorg_testset_save_CFLAGS"
5932
5933                 eval supported=\$$cacheid
5934                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5935 $as_echo "$supported" >&6; }
5936                 if test "$supported" = "yes" ; then
5937                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5938                         found="yes"
5939                 fi
5940         fi
5941
5942
5943
5944
5945
5946 # This chunk adds additional warnings that could catch undesired effects.
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960 xorg_testset_save_CFLAGS="$CFLAGS"
5961
5962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5963         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5964         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5967   $as_echo_n "(cached) " >&6
5968 else
5969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h.  */
5971 int i;
5972 _ACEOF
5973 if ac_fn_c_try_compile "$LINENO"; then :
5974   xorg_cv_cc_flag_unknown_warning_option=yes
5975 else
5976   xorg_cv_cc_flag_unknown_warning_option=no
5977 fi
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 fi
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5982         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5983         CFLAGS="$xorg_testset_save_CFLAGS"
5984 fi
5985
5986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5987         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5988                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5989         fi
5990         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5991         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5994   $as_echo_n "(cached) " >&6
5995 else
5996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h.  */
5998 int i;
5999 _ACEOF
6000 if ac_fn_c_try_compile "$LINENO"; then :
6001   xorg_cv_cc_flag_unused_command_line_argument=yes
6002 else
6003   xorg_cv_cc_flag_unused_command_line_argument=no
6004 fi
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 fi
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6009         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6010         CFLAGS="$xorg_testset_save_CFLAGS"
6011 fi
6012
6013 found="no"
6014
6015         if test $found = "no" ; then
6016                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6017                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6018                 fi
6019
6020                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6021                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6022                 fi
6023
6024                 CFLAGS="$CFLAGS -Wunused"
6025
6026                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6027 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6028                 cacheid=xorg_cv_cc_flag__Wunused
6029                 if eval \${$cacheid+:} false; then :
6030   $as_echo_n "(cached) " >&6
6031 else
6032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h.  */
6034 int i;
6035 int
6036 main ()
6037 {
6038
6039   ;
6040   return 0;
6041 }
6042 _ACEOF
6043 if ac_fn_c_try_link "$LINENO"; then :
6044   eval $cacheid=yes
6045 else
6046   eval $cacheid=no
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext \
6049     conftest$ac_exeext conftest.$ac_ext
6050 fi
6051
6052
6053                 CFLAGS="$xorg_testset_save_CFLAGS"
6054
6055                 eval supported=\$$cacheid
6056                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6057 $as_echo "$supported" >&6; }
6058                 if test "$supported" = "yes" ; then
6059                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6060                         found="yes"
6061                 fi
6062         fi
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 xorg_testset_save_CFLAGS="$CFLAGS"
6079
6080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6081         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6085   $as_echo_n "(cached) " >&6
6086 else
6087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h.  */
6089 int i;
6090 _ACEOF
6091 if ac_fn_c_try_compile "$LINENO"; then :
6092   xorg_cv_cc_flag_unknown_warning_option=yes
6093 else
6094   xorg_cv_cc_flag_unknown_warning_option=no
6095 fi
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6100         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6101         CFLAGS="$xorg_testset_save_CFLAGS"
6102 fi
6103
6104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6105         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6106                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6107         fi
6108         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h.  */
6116 int i;
6117 _ACEOF
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119   xorg_cv_cc_flag_unused_command_line_argument=yes
6120 else
6121   xorg_cv_cc_flag_unused_command_line_argument=no
6122 fi
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6127         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6128         CFLAGS="$xorg_testset_save_CFLAGS"
6129 fi
6130
6131 found="no"
6132
6133         if test $found = "no" ; then
6134                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6135                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136                 fi
6137
6138                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6139                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6140                 fi
6141
6142                 CFLAGS="$CFLAGS -Wuninitialized"
6143
6144                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6145 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6146                 cacheid=xorg_cv_cc_flag__Wuninitialized
6147                 if eval \${$cacheid+:} false; then :
6148   $as_echo_n "(cached) " >&6
6149 else
6150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h.  */
6152 int i;
6153 int
6154 main ()
6155 {
6156
6157   ;
6158   return 0;
6159 }
6160 _ACEOF
6161 if ac_fn_c_try_link "$LINENO"; then :
6162   eval $cacheid=yes
6163 else
6164   eval $cacheid=no
6165 fi
6166 rm -f core conftest.err conftest.$ac_objext \
6167     conftest$ac_exeext conftest.$ac_ext
6168 fi
6169
6170
6171                 CFLAGS="$xorg_testset_save_CFLAGS"
6172
6173                 eval supported=\$$cacheid
6174                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6175 $as_echo "$supported" >&6; }
6176                 if test "$supported" = "yes" ; then
6177                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6178                         found="yes"
6179                 fi
6180         fi
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196 xorg_testset_save_CFLAGS="$CFLAGS"
6197
6198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6199         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6203   $as_echo_n "(cached) " >&6
6204 else
6205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h.  */
6207 int i;
6208 _ACEOF
6209 if ac_fn_c_try_compile "$LINENO"; then :
6210   xorg_cv_cc_flag_unknown_warning_option=yes
6211 else
6212   xorg_cv_cc_flag_unknown_warning_option=no
6213 fi
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 fi
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6218         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6219         CFLAGS="$xorg_testset_save_CFLAGS"
6220 fi
6221
6222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6223         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6224                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225         fi
6226         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6230   $as_echo_n "(cached) " >&6
6231 else
6232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h.  */
6234 int i;
6235 _ACEOF
6236 if ac_fn_c_try_compile "$LINENO"; then :
6237   xorg_cv_cc_flag_unused_command_line_argument=yes
6238 else
6239   xorg_cv_cc_flag_unused_command_line_argument=no
6240 fi
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 fi
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6245         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6246         CFLAGS="$xorg_testset_save_CFLAGS"
6247 fi
6248
6249 found="no"
6250
6251         if test $found = "no" ; then
6252                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6253                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254                 fi
6255
6256                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6257                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258                 fi
6259
6260                 CFLAGS="$CFLAGS -Wshadow"
6261
6262                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6263 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6264                 cacheid=xorg_cv_cc_flag__Wshadow
6265                 if eval \${$cacheid+:} false; then :
6266   $as_echo_n "(cached) " >&6
6267 else
6268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h.  */
6270 int i;
6271 int
6272 main ()
6273 {
6274
6275   ;
6276   return 0;
6277 }
6278 _ACEOF
6279 if ac_fn_c_try_link "$LINENO"; then :
6280   eval $cacheid=yes
6281 else
6282   eval $cacheid=no
6283 fi
6284 rm -f core conftest.err conftest.$ac_objext \
6285     conftest$ac_exeext conftest.$ac_ext
6286 fi
6287
6288
6289                 CFLAGS="$xorg_testset_save_CFLAGS"
6290
6291                 eval supported=\$$cacheid
6292                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6293 $as_echo "$supported" >&6; }
6294                 if test "$supported" = "yes" ; then
6295                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6296                         found="yes"
6297                 fi
6298         fi
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314 xorg_testset_save_CFLAGS="$CFLAGS"
6315
6316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6317         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6321   $as_echo_n "(cached) " >&6
6322 else
6323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h.  */
6325 int i;
6326 _ACEOF
6327 if ac_fn_c_try_compile "$LINENO"; then :
6328   xorg_cv_cc_flag_unknown_warning_option=yes
6329 else
6330   xorg_cv_cc_flag_unknown_warning_option=no
6331 fi
6332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6336         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6337         CFLAGS="$xorg_testset_save_CFLAGS"
6338 fi
6339
6340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6341         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6342                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6343         fi
6344         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6345         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6348   $as_echo_n "(cached) " >&6
6349 else
6350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h.  */
6352 int i;
6353 _ACEOF
6354 if ac_fn_c_try_compile "$LINENO"; then :
6355   xorg_cv_cc_flag_unused_command_line_argument=yes
6356 else
6357   xorg_cv_cc_flag_unused_command_line_argument=no
6358 fi
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6363         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6364         CFLAGS="$xorg_testset_save_CFLAGS"
6365 fi
6366
6367 found="no"
6368
6369         if test $found = "no" ; then
6370                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6371                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372                 fi
6373
6374                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6375                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6376                 fi
6377
6378                 CFLAGS="$CFLAGS -Wcast-qual"
6379
6380                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6381 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6382                 cacheid=xorg_cv_cc_flag__Wcast_qual
6383                 if eval \${$cacheid+:} false; then :
6384   $as_echo_n "(cached) " >&6
6385 else
6386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h.  */
6388 int i;
6389 int
6390 main ()
6391 {
6392
6393   ;
6394   return 0;
6395 }
6396 _ACEOF
6397 if ac_fn_c_try_link "$LINENO"; then :
6398   eval $cacheid=yes
6399 else
6400   eval $cacheid=no
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext \
6403     conftest$ac_exeext conftest.$ac_ext
6404 fi
6405
6406
6407                 CFLAGS="$xorg_testset_save_CFLAGS"
6408
6409                 eval supported=\$$cacheid
6410                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6411 $as_echo "$supported" >&6; }
6412                 if test "$supported" = "yes" ; then
6413                         BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6414                         found="yes"
6415                 fi
6416         fi
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432 xorg_testset_save_CFLAGS="$CFLAGS"
6433
6434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6435         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6439   $as_echo_n "(cached) " >&6
6440 else
6441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h.  */
6443 int i;
6444 _ACEOF
6445 if ac_fn_c_try_compile "$LINENO"; then :
6446   xorg_cv_cc_flag_unknown_warning_option=yes
6447 else
6448   xorg_cv_cc_flag_unknown_warning_option=no
6449 fi
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 fi
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6454         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6455         CFLAGS="$xorg_testset_save_CFLAGS"
6456 fi
6457
6458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6459         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6460                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6461         fi
6462         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6463         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6466   $as_echo_n "(cached) " >&6
6467 else
6468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h.  */
6470 int i;
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473   xorg_cv_cc_flag_unused_command_line_argument=yes
6474 else
6475   xorg_cv_cc_flag_unused_command_line_argument=no
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 fi
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6481         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6482         CFLAGS="$xorg_testset_save_CFLAGS"
6483 fi
6484
6485 found="no"
6486
6487         if test $found = "no" ; then
6488                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6489                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6490                 fi
6491
6492                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6493                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6494                 fi
6495
6496                 CFLAGS="$CFLAGS -Wmissing-noreturn"
6497
6498                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6499 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6500                 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6501                 if eval \${$cacheid+:} false; then :
6502   $as_echo_n "(cached) " >&6
6503 else
6504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h.  */
6506 int i;
6507 int
6508 main ()
6509 {
6510
6511   ;
6512   return 0;
6513 }
6514 _ACEOF
6515 if ac_fn_c_try_link "$LINENO"; then :
6516   eval $cacheid=yes
6517 else
6518   eval $cacheid=no
6519 fi
6520 rm -f core conftest.err conftest.$ac_objext \
6521     conftest$ac_exeext conftest.$ac_ext
6522 fi
6523
6524
6525                 CFLAGS="$xorg_testset_save_CFLAGS"
6526
6527                 eval supported=\$$cacheid
6528                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6529 $as_echo "$supported" >&6; }
6530                 if test "$supported" = "yes" ; then
6531                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6532                         found="yes"
6533                 fi
6534         fi
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550 xorg_testset_save_CFLAGS="$CFLAGS"
6551
6552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6553         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6554         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6555 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6556 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6557   $as_echo_n "(cached) " >&6
6558 else
6559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h.  */
6561 int i;
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564   xorg_cv_cc_flag_unknown_warning_option=yes
6565 else
6566   xorg_cv_cc_flag_unknown_warning_option=no
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 fi
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6571 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6572         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6573         CFLAGS="$xorg_testset_save_CFLAGS"
6574 fi
6575
6576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6577         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6578                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6579         fi
6580         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6581         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6582 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6583 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6584   $as_echo_n "(cached) " >&6
6585 else
6586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h.  */
6588 int i;
6589 _ACEOF
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591   xorg_cv_cc_flag_unused_command_line_argument=yes
6592 else
6593   xorg_cv_cc_flag_unused_command_line_argument=no
6594 fi
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 fi
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6598 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6599         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6600         CFLAGS="$xorg_testset_save_CFLAGS"
6601 fi
6602
6603 found="no"
6604
6605         if test $found = "no" ; then
6606                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6607                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6608                 fi
6609
6610                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6611                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6612                 fi
6613
6614                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6615
6616                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6617 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6618                 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6619                 if eval \${$cacheid+:} false; then :
6620   $as_echo_n "(cached) " >&6
6621 else
6622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h.  */
6624 int i;
6625 int
6626 main ()
6627 {
6628
6629   ;
6630   return 0;
6631 }
6632 _ACEOF
6633 if ac_fn_c_try_link "$LINENO"; then :
6634   eval $cacheid=yes
6635 else
6636   eval $cacheid=no
6637 fi
6638 rm -f core conftest.err conftest.$ac_objext \
6639     conftest$ac_exeext conftest.$ac_ext
6640 fi
6641
6642
6643                 CFLAGS="$xorg_testset_save_CFLAGS"
6644
6645                 eval supported=\$$cacheid
6646                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6647 $as_echo "$supported" >&6; }
6648                 if test "$supported" = "yes" ; then
6649                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6650                         found="yes"
6651                 fi
6652         fi
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668 xorg_testset_save_CFLAGS="$CFLAGS"
6669
6670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6671         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6672         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6673 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6674 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6675   $as_echo_n "(cached) " >&6
6676 else
6677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h.  */
6679 int i;
6680 _ACEOF
6681 if ac_fn_c_try_compile "$LINENO"; then :
6682   xorg_cv_cc_flag_unknown_warning_option=yes
6683 else
6684   xorg_cv_cc_flag_unknown_warning_option=no
6685 fi
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 fi
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6689 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6690         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6691         CFLAGS="$xorg_testset_save_CFLAGS"
6692 fi
6693
6694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6695         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6696                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6697         fi
6698         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6699         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6700 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6701 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6702   $as_echo_n "(cached) " >&6
6703 else
6704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h.  */
6706 int i;
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709   xorg_cv_cc_flag_unused_command_line_argument=yes
6710 else
6711   xorg_cv_cc_flag_unused_command_line_argument=no
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6716 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6717         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6718         CFLAGS="$xorg_testset_save_CFLAGS"
6719 fi
6720
6721 found="no"
6722
6723         if test $found = "no" ; then
6724                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6725                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6726                 fi
6727
6728                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6729                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6730                 fi
6731
6732                 CFLAGS="$CFLAGS -Wredundant-decls"
6733
6734                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6735 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6736                 cacheid=xorg_cv_cc_flag__Wredundant_decls
6737                 if eval \${$cacheid+:} false; then :
6738   $as_echo_n "(cached) " >&6
6739 else
6740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h.  */
6742 int i;
6743 int
6744 main ()
6745 {
6746
6747   ;
6748   return 0;
6749 }
6750 _ACEOF
6751 if ac_fn_c_try_link "$LINENO"; then :
6752   eval $cacheid=yes
6753 else
6754   eval $cacheid=no
6755 fi
6756 rm -f core conftest.err conftest.$ac_objext \
6757     conftest$ac_exeext conftest.$ac_ext
6758 fi
6759
6760
6761                 CFLAGS="$xorg_testset_save_CFLAGS"
6762
6763                 eval supported=\$$cacheid
6764                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6765 $as_echo "$supported" >&6; }
6766                 if test "$supported" = "yes" ; then
6767                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6768                         found="yes"
6769                 fi
6770         fi
6771
6772
6773
6774 # These are currently disabled because they are noisy.  They will be enabled
6775 # in the future once the codebase is sufficiently modernized to silence
6776 # them.  For now, I don't want them to drown out the other warnings.
6777 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6778 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6779 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6780
6781 # Turn some warnings into errors, so we don't accidently get successful builds
6782 # when there are problems that should be fixed.
6783
6784 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798 xorg_testset_save_CFLAGS="$CFLAGS"
6799
6800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6801         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6802         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6804 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6805   $as_echo_n "(cached) " >&6
6806 else
6807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h.  */
6809 int i;
6810 _ACEOF
6811 if ac_fn_c_try_compile "$LINENO"; then :
6812   xorg_cv_cc_flag_unknown_warning_option=yes
6813 else
6814   xorg_cv_cc_flag_unknown_warning_option=no
6815 fi
6816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6817 fi
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6820         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6821         CFLAGS="$xorg_testset_save_CFLAGS"
6822 fi
6823
6824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6825         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6826                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6827         fi
6828         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6832   $as_echo_n "(cached) " >&6
6833 else
6834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h.  */
6836 int i;
6837 _ACEOF
6838 if ac_fn_c_try_compile "$LINENO"; then :
6839   xorg_cv_cc_flag_unused_command_line_argument=yes
6840 else
6841   xorg_cv_cc_flag_unused_command_line_argument=no
6842 fi
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 fi
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6847         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6848         CFLAGS="$xorg_testset_save_CFLAGS"
6849 fi
6850
6851 found="no"
6852
6853         if test $found = "no" ; then
6854                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6855                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6856                 fi
6857
6858                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6859                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6860                 fi
6861
6862                 CFLAGS="$CFLAGS -Werror=implicit"
6863
6864                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6865 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6866                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6867                 if eval \${$cacheid+:} false; then :
6868   $as_echo_n "(cached) " >&6
6869 else
6870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h.  */
6872 int i;
6873 int
6874 main ()
6875 {
6876
6877   ;
6878   return 0;
6879 }
6880 _ACEOF
6881 if ac_fn_c_try_link "$LINENO"; then :
6882   eval $cacheid=yes
6883 else
6884   eval $cacheid=no
6885 fi
6886 rm -f core conftest.err conftest.$ac_objext \
6887     conftest$ac_exeext conftest.$ac_ext
6888 fi
6889
6890
6891                 CFLAGS="$xorg_testset_save_CFLAGS"
6892
6893                 eval supported=\$$cacheid
6894                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6895 $as_echo "$supported" >&6; }
6896                 if test "$supported" = "yes" ; then
6897                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6898                         found="yes"
6899                 fi
6900         fi
6901
6902         if test $found = "no" ; then
6903                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6904                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6905                 fi
6906
6907                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6908                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6909                 fi
6910
6911                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6912
6913                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6914 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6915                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6916                 if eval \${$cacheid+:} false; then :
6917   $as_echo_n "(cached) " >&6
6918 else
6919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h.  */
6921 int i;
6922 int
6923 main ()
6924 {
6925
6926   ;
6927   return 0;
6928 }
6929 _ACEOF
6930 if ac_fn_c_try_link "$LINENO"; then :
6931   eval $cacheid=yes
6932 else
6933   eval $cacheid=no
6934 fi
6935 rm -f core conftest.err conftest.$ac_objext \
6936     conftest$ac_exeext conftest.$ac_ext
6937 fi
6938
6939
6940                 CFLAGS="$xorg_testset_save_CFLAGS"
6941
6942                 eval supported=\$$cacheid
6943                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6944 $as_echo "$supported" >&6; }
6945                 if test "$supported" = "yes" ; then
6946                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6947                         found="yes"
6948                 fi
6949         fi
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965 xorg_testset_save_CFLAGS="$CFLAGS"
6966
6967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6968         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6972   $as_echo_n "(cached) " >&6
6973 else
6974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h.  */
6976 int i;
6977 _ACEOF
6978 if ac_fn_c_try_compile "$LINENO"; then :
6979   xorg_cv_cc_flag_unknown_warning_option=yes
6980 else
6981   xorg_cv_cc_flag_unknown_warning_option=no
6982 fi
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 fi
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6987         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6988         CFLAGS="$xorg_testset_save_CFLAGS"
6989 fi
6990
6991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6992         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6993                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6994         fi
6995         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6996         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6999   $as_echo_n "(cached) " >&6
7000 else
7001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h.  */
7003 int i;
7004 _ACEOF
7005 if ac_fn_c_try_compile "$LINENO"; then :
7006   xorg_cv_cc_flag_unused_command_line_argument=yes
7007 else
7008   xorg_cv_cc_flag_unused_command_line_argument=no
7009 fi
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 fi
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7014         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7015         CFLAGS="$xorg_testset_save_CFLAGS"
7016 fi
7017
7018 found="no"
7019
7020         if test $found = "no" ; then
7021                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7022                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7023                 fi
7024
7025                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7026                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027                 fi
7028
7029                 CFLAGS="$CFLAGS -Werror=nonnull"
7030
7031                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7032 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7033                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7034                 if eval \${$cacheid+:} false; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h.  */
7039 int i;
7040 int
7041 main ()
7042 {
7043
7044   ;
7045   return 0;
7046 }
7047 _ACEOF
7048 if ac_fn_c_try_link "$LINENO"; then :
7049   eval $cacheid=yes
7050 else
7051   eval $cacheid=no
7052 fi
7053 rm -f core conftest.err conftest.$ac_objext \
7054     conftest$ac_exeext conftest.$ac_ext
7055 fi
7056
7057
7058                 CFLAGS="$xorg_testset_save_CFLAGS"
7059
7060                 eval supported=\$$cacheid
7061                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7062 $as_echo "$supported" >&6; }
7063                 if test "$supported" = "yes" ; then
7064                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7065                         found="yes"
7066                 fi
7067         fi
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083 xorg_testset_save_CFLAGS="$CFLAGS"
7084
7085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7086         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7090   $as_echo_n "(cached) " >&6
7091 else
7092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h.  */
7094 int i;
7095 _ACEOF
7096 if ac_fn_c_try_compile "$LINENO"; then :
7097   xorg_cv_cc_flag_unknown_warning_option=yes
7098 else
7099   xorg_cv_cc_flag_unknown_warning_option=no
7100 fi
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102 fi
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7105         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7106         CFLAGS="$xorg_testset_save_CFLAGS"
7107 fi
7108
7109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7110         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7111                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112         fi
7113         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h.  */
7121 int i;
7122 _ACEOF
7123 if ac_fn_c_try_compile "$LINENO"; then :
7124   xorg_cv_cc_flag_unused_command_line_argument=yes
7125 else
7126   xorg_cv_cc_flag_unused_command_line_argument=no
7127 fi
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 fi
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7132         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7133         CFLAGS="$xorg_testset_save_CFLAGS"
7134 fi
7135
7136 found="no"
7137
7138         if test $found = "no" ; then
7139                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7140                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7141                 fi
7142
7143                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7144                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7145                 fi
7146
7147                 CFLAGS="$CFLAGS -Werror=init-self"
7148
7149                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7150 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7151                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7152                 if eval \${$cacheid+:} false; then :
7153   $as_echo_n "(cached) " >&6
7154 else
7155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h.  */
7157 int i;
7158 int
7159 main ()
7160 {
7161
7162   ;
7163   return 0;
7164 }
7165 _ACEOF
7166 if ac_fn_c_try_link "$LINENO"; then :
7167   eval $cacheid=yes
7168 else
7169   eval $cacheid=no
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext \
7172     conftest$ac_exeext conftest.$ac_ext
7173 fi
7174
7175
7176                 CFLAGS="$xorg_testset_save_CFLAGS"
7177
7178                 eval supported=\$$cacheid
7179                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7180 $as_echo "$supported" >&6; }
7181                 if test "$supported" = "yes" ; then
7182                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7183                         found="yes"
7184                 fi
7185         fi
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201 xorg_testset_save_CFLAGS="$CFLAGS"
7202
7203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7204         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7205         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7208   $as_echo_n "(cached) " >&6
7209 else
7210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h.  */
7212 int i;
7213 _ACEOF
7214 if ac_fn_c_try_compile "$LINENO"; then :
7215   xorg_cv_cc_flag_unknown_warning_option=yes
7216 else
7217   xorg_cv_cc_flag_unknown_warning_option=no
7218 fi
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 fi
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7223         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7224         CFLAGS="$xorg_testset_save_CFLAGS"
7225 fi
7226
7227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7228         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7229                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7230         fi
7231         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7232         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7235   $as_echo_n "(cached) " >&6
7236 else
7237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h.  */
7239 int i;
7240 _ACEOF
7241 if ac_fn_c_try_compile "$LINENO"; then :
7242   xorg_cv_cc_flag_unused_command_line_argument=yes
7243 else
7244   xorg_cv_cc_flag_unused_command_line_argument=no
7245 fi
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7250         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7251         CFLAGS="$xorg_testset_save_CFLAGS"
7252 fi
7253
7254 found="no"
7255
7256         if test $found = "no" ; then
7257                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7258                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7259                 fi
7260
7261                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7262                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7263                 fi
7264
7265                 CFLAGS="$CFLAGS -Werror=main"
7266
7267                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7268 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7269                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7270                 if eval \${$cacheid+:} false; then :
7271   $as_echo_n "(cached) " >&6
7272 else
7273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h.  */
7275 int i;
7276 int
7277 main ()
7278 {
7279
7280   ;
7281   return 0;
7282 }
7283 _ACEOF
7284 if ac_fn_c_try_link "$LINENO"; then :
7285   eval $cacheid=yes
7286 else
7287   eval $cacheid=no
7288 fi
7289 rm -f core conftest.err conftest.$ac_objext \
7290     conftest$ac_exeext conftest.$ac_ext
7291 fi
7292
7293
7294                 CFLAGS="$xorg_testset_save_CFLAGS"
7295
7296                 eval supported=\$$cacheid
7297                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7298 $as_echo "$supported" >&6; }
7299                 if test "$supported" = "yes" ; then
7300                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7301                         found="yes"
7302                 fi
7303         fi
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319 xorg_testset_save_CFLAGS="$CFLAGS"
7320
7321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7322         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7323         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7326   $as_echo_n "(cached) " >&6
7327 else
7328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h.  */
7330 int i;
7331 _ACEOF
7332 if ac_fn_c_try_compile "$LINENO"; then :
7333   xorg_cv_cc_flag_unknown_warning_option=yes
7334 else
7335   xorg_cv_cc_flag_unknown_warning_option=no
7336 fi
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7341         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7342         CFLAGS="$xorg_testset_save_CFLAGS"
7343 fi
7344
7345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7346         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7347                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7348         fi
7349         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7353   $as_echo_n "(cached) " >&6
7354 else
7355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h.  */
7357 int i;
7358 _ACEOF
7359 if ac_fn_c_try_compile "$LINENO"; then :
7360   xorg_cv_cc_flag_unused_command_line_argument=yes
7361 else
7362   xorg_cv_cc_flag_unused_command_line_argument=no
7363 fi
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 fi
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7368         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7369         CFLAGS="$xorg_testset_save_CFLAGS"
7370 fi
7371
7372 found="no"
7373
7374         if test $found = "no" ; then
7375                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7376                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7377                 fi
7378
7379                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7380                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7381                 fi
7382
7383                 CFLAGS="$CFLAGS -Werror=missing-braces"
7384
7385                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7386 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7387                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7388                 if eval \${$cacheid+:} false; then :
7389   $as_echo_n "(cached) " >&6
7390 else
7391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h.  */
7393 int i;
7394 int
7395 main ()
7396 {
7397
7398   ;
7399   return 0;
7400 }
7401 _ACEOF
7402 if ac_fn_c_try_link "$LINENO"; then :
7403   eval $cacheid=yes
7404 else
7405   eval $cacheid=no
7406 fi
7407 rm -f core conftest.err conftest.$ac_objext \
7408     conftest$ac_exeext conftest.$ac_ext
7409 fi
7410
7411
7412                 CFLAGS="$xorg_testset_save_CFLAGS"
7413
7414                 eval supported=\$$cacheid
7415                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7416 $as_echo "$supported" >&6; }
7417                 if test "$supported" = "yes" ; then
7418                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7419                         found="yes"
7420                 fi
7421         fi
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437 xorg_testset_save_CFLAGS="$CFLAGS"
7438
7439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7440         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7441         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7442 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7443 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h.  */
7448 int i;
7449 _ACEOF
7450 if ac_fn_c_try_compile "$LINENO"; then :
7451   xorg_cv_cc_flag_unknown_warning_option=yes
7452 else
7453   xorg_cv_cc_flag_unknown_warning_option=no
7454 fi
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 fi
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7458 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7459         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7460         CFLAGS="$xorg_testset_save_CFLAGS"
7461 fi
7462
7463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7464         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7465                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7466         fi
7467         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7468         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7469 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7470 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7471   $as_echo_n "(cached) " >&6
7472 else
7473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h.  */
7475 int i;
7476 _ACEOF
7477 if ac_fn_c_try_compile "$LINENO"; then :
7478   xorg_cv_cc_flag_unused_command_line_argument=yes
7479 else
7480   xorg_cv_cc_flag_unused_command_line_argument=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 fi
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7485 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7486         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7487         CFLAGS="$xorg_testset_save_CFLAGS"
7488 fi
7489
7490 found="no"
7491
7492         if test $found = "no" ; then
7493                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7494                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7495                 fi
7496
7497                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7498                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7499                 fi
7500
7501                 CFLAGS="$CFLAGS -Werror=sequence-point"
7502
7503                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7504 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7505                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7506                 if eval \${$cacheid+:} false; then :
7507   $as_echo_n "(cached) " >&6
7508 else
7509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h.  */
7511 int i;
7512 int
7513 main ()
7514 {
7515
7516   ;
7517   return 0;
7518 }
7519 _ACEOF
7520 if ac_fn_c_try_link "$LINENO"; then :
7521   eval $cacheid=yes
7522 else
7523   eval $cacheid=no
7524 fi
7525 rm -f core conftest.err conftest.$ac_objext \
7526     conftest$ac_exeext conftest.$ac_ext
7527 fi
7528
7529
7530                 CFLAGS="$xorg_testset_save_CFLAGS"
7531
7532                 eval supported=\$$cacheid
7533                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7534 $as_echo "$supported" >&6; }
7535                 if test "$supported" = "yes" ; then
7536                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7537                         found="yes"
7538                 fi
7539         fi
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555 xorg_testset_save_CFLAGS="$CFLAGS"
7556
7557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7558         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7559         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7560 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7561 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h.  */
7566 int i;
7567 _ACEOF
7568 if ac_fn_c_try_compile "$LINENO"; then :
7569   xorg_cv_cc_flag_unknown_warning_option=yes
7570 else
7571   xorg_cv_cc_flag_unknown_warning_option=no
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574 fi
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7576 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7577         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7578         CFLAGS="$xorg_testset_save_CFLAGS"
7579 fi
7580
7581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7582         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7583                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7584         fi
7585         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7587 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7588 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7589   $as_echo_n "(cached) " >&6
7590 else
7591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h.  */
7593 int i;
7594 _ACEOF
7595 if ac_fn_c_try_compile "$LINENO"; then :
7596   xorg_cv_cc_flag_unused_command_line_argument=yes
7597 else
7598   xorg_cv_cc_flag_unused_command_line_argument=no
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7603 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7604         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7605         CFLAGS="$xorg_testset_save_CFLAGS"
7606 fi
7607
7608 found="no"
7609
7610         if test $found = "no" ; then
7611                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7612                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7613                 fi
7614
7615                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7616                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7617                 fi
7618
7619                 CFLAGS="$CFLAGS -Werror=return-type"
7620
7621                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7622 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7623                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7624                 if eval \${$cacheid+:} false; then :
7625   $as_echo_n "(cached) " >&6
7626 else
7627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h.  */
7629 int i;
7630 int
7631 main ()
7632 {
7633
7634   ;
7635   return 0;
7636 }
7637 _ACEOF
7638 if ac_fn_c_try_link "$LINENO"; then :
7639   eval $cacheid=yes
7640 else
7641   eval $cacheid=no
7642 fi
7643 rm -f core conftest.err conftest.$ac_objext \
7644     conftest$ac_exeext conftest.$ac_ext
7645 fi
7646
7647
7648                 CFLAGS="$xorg_testset_save_CFLAGS"
7649
7650                 eval supported=\$$cacheid
7651                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7652 $as_echo "$supported" >&6; }
7653                 if test "$supported" = "yes" ; then
7654                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7655                         found="yes"
7656                 fi
7657         fi
7658
7659         if test $found = "no" ; then
7660                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7661                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7662                 fi
7663
7664                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7665                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7666                 fi
7667
7668                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7669
7670                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7671 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7672                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7673                 if eval \${$cacheid+:} false; then :
7674   $as_echo_n "(cached) " >&6
7675 else
7676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h.  */
7678 int i;
7679 int
7680 main ()
7681 {
7682
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 if ac_fn_c_try_link "$LINENO"; then :
7688   eval $cacheid=yes
7689 else
7690   eval $cacheid=no
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext \
7693     conftest$ac_exeext conftest.$ac_ext
7694 fi
7695
7696
7697                 CFLAGS="$xorg_testset_save_CFLAGS"
7698
7699                 eval supported=\$$cacheid
7700                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7701 $as_echo "$supported" >&6; }
7702                 if test "$supported" = "yes" ; then
7703                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7704                         found="yes"
7705                 fi
7706         fi
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722 xorg_testset_save_CFLAGS="$CFLAGS"
7723
7724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7725         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7727 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7728 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7729   $as_echo_n "(cached) " >&6
7730 else
7731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h.  */
7733 int i;
7734 _ACEOF
7735 if ac_fn_c_try_compile "$LINENO"; then :
7736   xorg_cv_cc_flag_unknown_warning_option=yes
7737 else
7738   xorg_cv_cc_flag_unknown_warning_option=no
7739 fi
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741 fi
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7743 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7744         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7745         CFLAGS="$xorg_testset_save_CFLAGS"
7746 fi
7747
7748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7749         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7750                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7751         fi
7752         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7753         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7754 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7755 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7756   $as_echo_n "(cached) " >&6
7757 else
7758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h.  */
7760 int i;
7761 _ACEOF
7762 if ac_fn_c_try_compile "$LINENO"; then :
7763   xorg_cv_cc_flag_unused_command_line_argument=yes
7764 else
7765   xorg_cv_cc_flag_unused_command_line_argument=no
7766 fi
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768 fi
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7770 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7771         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7772         CFLAGS="$xorg_testset_save_CFLAGS"
7773 fi
7774
7775 found="no"
7776
7777         if test $found = "no" ; then
7778                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7779                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7780                 fi
7781
7782                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7783                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7784                 fi
7785
7786                 CFLAGS="$CFLAGS -Werror=trigraphs"
7787
7788                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7789 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7790                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7791                 if eval \${$cacheid+:} false; then :
7792   $as_echo_n "(cached) " >&6
7793 else
7794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h.  */
7796 int i;
7797 int
7798 main ()
7799 {
7800
7801   ;
7802   return 0;
7803 }
7804 _ACEOF
7805 if ac_fn_c_try_link "$LINENO"; then :
7806   eval $cacheid=yes
7807 else
7808   eval $cacheid=no
7809 fi
7810 rm -f core conftest.err conftest.$ac_objext \
7811     conftest$ac_exeext conftest.$ac_ext
7812 fi
7813
7814
7815                 CFLAGS="$xorg_testset_save_CFLAGS"
7816
7817                 eval supported=\$$cacheid
7818                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7819 $as_echo "$supported" >&6; }
7820                 if test "$supported" = "yes" ; then
7821                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7822                         found="yes"
7823                 fi
7824         fi
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840 xorg_testset_save_CFLAGS="$CFLAGS"
7841
7842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7843         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7845 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7846 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7847   $as_echo_n "(cached) " >&6
7848 else
7849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h.  */
7851 int i;
7852 _ACEOF
7853 if ac_fn_c_try_compile "$LINENO"; then :
7854   xorg_cv_cc_flag_unknown_warning_option=yes
7855 else
7856   xorg_cv_cc_flag_unknown_warning_option=no
7857 fi
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859 fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7861 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7862         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7863         CFLAGS="$xorg_testset_save_CFLAGS"
7864 fi
7865
7866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7867         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7868                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869         fi
7870         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7871         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7872 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7873 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7874   $as_echo_n "(cached) " >&6
7875 else
7876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h.  */
7878 int i;
7879 _ACEOF
7880 if ac_fn_c_try_compile "$LINENO"; then :
7881   xorg_cv_cc_flag_unused_command_line_argument=yes
7882 else
7883   xorg_cv_cc_flag_unused_command_line_argument=no
7884 fi
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 fi
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7888 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7889         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7890         CFLAGS="$xorg_testset_save_CFLAGS"
7891 fi
7892
7893 found="no"
7894
7895         if test $found = "no" ; then
7896                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7897                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7898                 fi
7899
7900                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7901                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7902                 fi
7903
7904                 CFLAGS="$CFLAGS -Werror=array-bounds"
7905
7906                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7907 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7908                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7909                 if eval \${$cacheid+:} false; then :
7910   $as_echo_n "(cached) " >&6
7911 else
7912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h.  */
7914 int i;
7915 int
7916 main ()
7917 {
7918
7919   ;
7920   return 0;
7921 }
7922 _ACEOF
7923 if ac_fn_c_try_link "$LINENO"; then :
7924   eval $cacheid=yes
7925 else
7926   eval $cacheid=no
7927 fi
7928 rm -f core conftest.err conftest.$ac_objext \
7929     conftest$ac_exeext conftest.$ac_ext
7930 fi
7931
7932
7933                 CFLAGS="$xorg_testset_save_CFLAGS"
7934
7935                 eval supported=\$$cacheid
7936                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7937 $as_echo "$supported" >&6; }
7938                 if test "$supported" = "yes" ; then
7939                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7940                         found="yes"
7941                 fi
7942         fi
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958 xorg_testset_save_CFLAGS="$CFLAGS"
7959
7960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7961         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7963 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7964 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7965   $as_echo_n "(cached) " >&6
7966 else
7967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h.  */
7969 int i;
7970 _ACEOF
7971 if ac_fn_c_try_compile "$LINENO"; then :
7972   xorg_cv_cc_flag_unknown_warning_option=yes
7973 else
7974   xorg_cv_cc_flag_unknown_warning_option=no
7975 fi
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 fi
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7979 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7980         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7981         CFLAGS="$xorg_testset_save_CFLAGS"
7982 fi
7983
7984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7985         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7986                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7987         fi
7988         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7989         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7990 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7991 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7992   $as_echo_n "(cached) " >&6
7993 else
7994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h.  */
7996 int i;
7997 _ACEOF
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999   xorg_cv_cc_flag_unused_command_line_argument=yes
8000 else
8001   xorg_cv_cc_flag_unused_command_line_argument=no
8002 fi
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 fi
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8006 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8007         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8008         CFLAGS="$xorg_testset_save_CFLAGS"
8009 fi
8010
8011 found="no"
8012
8013         if test $found = "no" ; then
8014                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8015                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8016                 fi
8017
8018                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8019                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8020                 fi
8021
8022                 CFLAGS="$CFLAGS -Werror=write-strings"
8023
8024                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8025 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8026                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8027                 if eval \${$cacheid+:} false; then :
8028   $as_echo_n "(cached) " >&6
8029 else
8030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h.  */
8032 int i;
8033 int
8034 main ()
8035 {
8036
8037   ;
8038   return 0;
8039 }
8040 _ACEOF
8041 if ac_fn_c_try_link "$LINENO"; then :
8042   eval $cacheid=yes
8043 else
8044   eval $cacheid=no
8045 fi
8046 rm -f core conftest.err conftest.$ac_objext \
8047     conftest$ac_exeext conftest.$ac_ext
8048 fi
8049
8050
8051                 CFLAGS="$xorg_testset_save_CFLAGS"
8052
8053                 eval supported=\$$cacheid
8054                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8055 $as_echo "$supported" >&6; }
8056                 if test "$supported" = "yes" ; then
8057                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8058                         found="yes"
8059                 fi
8060         fi
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076 xorg_testset_save_CFLAGS="$CFLAGS"
8077
8078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8079         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8080         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8083   $as_echo_n "(cached) " >&6
8084 else
8085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h.  */
8087 int i;
8088 _ACEOF
8089 if ac_fn_c_try_compile "$LINENO"; then :
8090   xorg_cv_cc_flag_unknown_warning_option=yes
8091 else
8092   xorg_cv_cc_flag_unknown_warning_option=no
8093 fi
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8098         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8099         CFLAGS="$xorg_testset_save_CFLAGS"
8100 fi
8101
8102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8103         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8104                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8105         fi
8106         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8107         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8110   $as_echo_n "(cached) " >&6
8111 else
8112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h.  */
8114 int i;
8115 _ACEOF
8116 if ac_fn_c_try_compile "$LINENO"; then :
8117   xorg_cv_cc_flag_unused_command_line_argument=yes
8118 else
8119   xorg_cv_cc_flag_unused_command_line_argument=no
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 fi
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8125         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8126         CFLAGS="$xorg_testset_save_CFLAGS"
8127 fi
8128
8129 found="no"
8130
8131         if test $found = "no" ; then
8132                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8133                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8134                 fi
8135
8136                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8137                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8138                 fi
8139
8140                 CFLAGS="$CFLAGS -Werror=address"
8141
8142                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8143 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8144                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8145                 if eval \${$cacheid+:} false; then :
8146   $as_echo_n "(cached) " >&6
8147 else
8148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h.  */
8150 int i;
8151 int
8152 main ()
8153 {
8154
8155   ;
8156   return 0;
8157 }
8158 _ACEOF
8159 if ac_fn_c_try_link "$LINENO"; then :
8160   eval $cacheid=yes
8161 else
8162   eval $cacheid=no
8163 fi
8164 rm -f core conftest.err conftest.$ac_objext \
8165     conftest$ac_exeext conftest.$ac_ext
8166 fi
8167
8168
8169                 CFLAGS="$xorg_testset_save_CFLAGS"
8170
8171                 eval supported=\$$cacheid
8172                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8173 $as_echo "$supported" >&6; }
8174                 if test "$supported" = "yes" ; then
8175                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8176                         found="yes"
8177                 fi
8178         fi
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194 xorg_testset_save_CFLAGS="$CFLAGS"
8195
8196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8197         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8198         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8201   $as_echo_n "(cached) " >&6
8202 else
8203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h.  */
8205 int i;
8206 _ACEOF
8207 if ac_fn_c_try_compile "$LINENO"; then :
8208   xorg_cv_cc_flag_unknown_warning_option=yes
8209 else
8210   xorg_cv_cc_flag_unknown_warning_option=no
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8216         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8217         CFLAGS="$xorg_testset_save_CFLAGS"
8218 fi
8219
8220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8221         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8222                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223         fi
8224         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8225         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8228   $as_echo_n "(cached) " >&6
8229 else
8230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h.  */
8232 int i;
8233 _ACEOF
8234 if ac_fn_c_try_compile "$LINENO"; then :
8235   xorg_cv_cc_flag_unused_command_line_argument=yes
8236 else
8237   xorg_cv_cc_flag_unused_command_line_argument=no
8238 fi
8239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8243         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8244         CFLAGS="$xorg_testset_save_CFLAGS"
8245 fi
8246
8247 found="no"
8248
8249         if test $found = "no" ; then
8250                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8251                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8252                 fi
8253
8254                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8255                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8256                 fi
8257
8258                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8259
8260                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8261 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8262                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8263                 if eval \${$cacheid+:} false; then :
8264   $as_echo_n "(cached) " >&6
8265 else
8266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h.  */
8268 int i;
8269 int
8270 main ()
8271 {
8272
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 if ac_fn_c_try_link "$LINENO"; then :
8278   eval $cacheid=yes
8279 else
8280   eval $cacheid=no
8281 fi
8282 rm -f core conftest.err conftest.$ac_objext \
8283     conftest$ac_exeext conftest.$ac_ext
8284 fi
8285
8286
8287                 CFLAGS="$xorg_testset_save_CFLAGS"
8288
8289                 eval supported=\$$cacheid
8290                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8291 $as_echo "$supported" >&6; }
8292                 if test "$supported" = "yes" ; then
8293                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8294                         found="yes"
8295                 fi
8296         fi
8297
8298         if test $found = "no" ; then
8299                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8300                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8301                 fi
8302
8303                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8304                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8305                 fi
8306
8307                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8308
8309                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8310 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8311                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8312                 if eval \${$cacheid+:} false; then :
8313   $as_echo_n "(cached) " >&6
8314 else
8315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h.  */
8317 int i;
8318 int
8319 main ()
8320 {
8321
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 if ac_fn_c_try_link "$LINENO"; then :
8327   eval $cacheid=yes
8328 else
8329   eval $cacheid=no
8330 fi
8331 rm -f core conftest.err conftest.$ac_objext \
8332     conftest$ac_exeext conftest.$ac_ext
8333 fi
8334
8335
8336                 CFLAGS="$xorg_testset_save_CFLAGS"
8337
8338                 eval supported=\$$cacheid
8339                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8340 $as_echo "$supported" >&6; }
8341                 if test "$supported" = "yes" ; then
8342                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8343                         found="yes"
8344                 fi
8345         fi
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361 xorg_testset_save_CFLAGS="$CFLAGS"
8362
8363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8364         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8365         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8366 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8367 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8368   $as_echo_n "(cached) " >&6
8369 else
8370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h.  */
8372 int i;
8373 _ACEOF
8374 if ac_fn_c_try_compile "$LINENO"; then :
8375   xorg_cv_cc_flag_unknown_warning_option=yes
8376 else
8377   xorg_cv_cc_flag_unknown_warning_option=no
8378 fi
8379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 fi
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8382 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8383         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8384         CFLAGS="$xorg_testset_save_CFLAGS"
8385 fi
8386
8387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8388         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8389                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8390         fi
8391         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8392         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8393 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8394 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8395   $as_echo_n "(cached) " >&6
8396 else
8397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h.  */
8399 int i;
8400 _ACEOF
8401 if ac_fn_c_try_compile "$LINENO"; then :
8402   xorg_cv_cc_flag_unused_command_line_argument=yes
8403 else
8404   xorg_cv_cc_flag_unused_command_line_argument=no
8405 fi
8406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8407 fi
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8409 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8410         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8411         CFLAGS="$xorg_testset_save_CFLAGS"
8412 fi
8413
8414 found="no"
8415
8416         if test $found = "no" ; then
8417                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8418                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8419                 fi
8420
8421                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8422                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8423                 fi
8424
8425                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8426
8427                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8428 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8429                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8430                 if eval \${$cacheid+:} false; then :
8431   $as_echo_n "(cached) " >&6
8432 else
8433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h.  */
8435 int i;
8436 int
8437 main ()
8438 {
8439
8440   ;
8441   return 0;
8442 }
8443 _ACEOF
8444 if ac_fn_c_try_link "$LINENO"; then :
8445   eval $cacheid=yes
8446 else
8447   eval $cacheid=no
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext \
8450     conftest$ac_exeext conftest.$ac_ext
8451 fi
8452
8453
8454                 CFLAGS="$xorg_testset_save_CFLAGS"
8455
8456                 eval supported=\$$cacheid
8457                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8458 $as_echo "$supported" >&6; }
8459                 if test "$supported" = "yes" ; then
8460                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8461                         found="yes"
8462                 fi
8463         fi
8464
8465  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8466 else
8467 { $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
8468 $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;}
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482 xorg_testset_save_CFLAGS="$CFLAGS"
8483
8484 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8485         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8486         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8487 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8488 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8489   $as_echo_n "(cached) " >&6
8490 else
8491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h.  */
8493 int i;
8494 _ACEOF
8495 if ac_fn_c_try_compile "$LINENO"; then :
8496   xorg_cv_cc_flag_unknown_warning_option=yes
8497 else
8498   xorg_cv_cc_flag_unknown_warning_option=no
8499 fi
8500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8503 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8504         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8505         CFLAGS="$xorg_testset_save_CFLAGS"
8506 fi
8507
8508 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8509         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8510                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8511         fi
8512         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8514 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8515 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h.  */
8520 int i;
8521 _ACEOF
8522 if ac_fn_c_try_compile "$LINENO"; then :
8523   xorg_cv_cc_flag_unused_command_line_argument=yes
8524 else
8525   xorg_cv_cc_flag_unused_command_line_argument=no
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 fi
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8530 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8531         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8532         CFLAGS="$xorg_testset_save_CFLAGS"
8533 fi
8534
8535 found="no"
8536
8537         if test $found = "no" ; then
8538                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8539                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8540                 fi
8541
8542                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8543                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8544                 fi
8545
8546                 CFLAGS="$CFLAGS -Wimplicit"
8547
8548                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8549 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8550                 cacheid=xorg_cv_cc_flag__Wimplicit
8551                 if eval \${$cacheid+:} false; then :
8552   $as_echo_n "(cached) " >&6
8553 else
8554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h.  */
8556 int i;
8557 int
8558 main ()
8559 {
8560
8561   ;
8562   return 0;
8563 }
8564 _ACEOF
8565 if ac_fn_c_try_link "$LINENO"; then :
8566   eval $cacheid=yes
8567 else
8568   eval $cacheid=no
8569 fi
8570 rm -f core conftest.err conftest.$ac_objext \
8571     conftest$ac_exeext conftest.$ac_ext
8572 fi
8573
8574
8575                 CFLAGS="$xorg_testset_save_CFLAGS"
8576
8577                 eval supported=\$$cacheid
8578                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8579 $as_echo "$supported" >&6; }
8580                 if test "$supported" = "yes" ; then
8581                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8582                         found="yes"
8583                 fi
8584         fi
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600 xorg_testset_save_CFLAGS="$CFLAGS"
8601
8602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8603         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8605 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8606 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8607   $as_echo_n "(cached) " >&6
8608 else
8609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h.  */
8611 int i;
8612 _ACEOF
8613 if ac_fn_c_try_compile "$LINENO"; then :
8614   xorg_cv_cc_flag_unknown_warning_option=yes
8615 else
8616   xorg_cv_cc_flag_unknown_warning_option=no
8617 fi
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 fi
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8621 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8622         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8623         CFLAGS="$xorg_testset_save_CFLAGS"
8624 fi
8625
8626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8627         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8628                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8629         fi
8630         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8631         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8632 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8633 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8634   $as_echo_n "(cached) " >&6
8635 else
8636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h.  */
8638 int i;
8639 _ACEOF
8640 if ac_fn_c_try_compile "$LINENO"; then :
8641   xorg_cv_cc_flag_unused_command_line_argument=yes
8642 else
8643   xorg_cv_cc_flag_unused_command_line_argument=no
8644 fi
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646 fi
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8648 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8649         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8650         CFLAGS="$xorg_testset_save_CFLAGS"
8651 fi
8652
8653 found="no"
8654
8655         if test $found = "no" ; then
8656                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8657                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8658                 fi
8659
8660                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8661                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8662                 fi
8663
8664                 CFLAGS="$CFLAGS -Wnonnull"
8665
8666                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8667 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8668                 cacheid=xorg_cv_cc_flag__Wnonnull
8669                 if eval \${$cacheid+:} false; then :
8670   $as_echo_n "(cached) " >&6
8671 else
8672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673 /* end confdefs.h.  */
8674 int i;
8675 int
8676 main ()
8677 {
8678
8679   ;
8680   return 0;
8681 }
8682 _ACEOF
8683 if ac_fn_c_try_link "$LINENO"; then :
8684   eval $cacheid=yes
8685 else
8686   eval $cacheid=no
8687 fi
8688 rm -f core conftest.err conftest.$ac_objext \
8689     conftest$ac_exeext conftest.$ac_ext
8690 fi
8691
8692
8693                 CFLAGS="$xorg_testset_save_CFLAGS"
8694
8695                 eval supported=\$$cacheid
8696                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8697 $as_echo "$supported" >&6; }
8698                 if test "$supported" = "yes" ; then
8699                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8700                         found="yes"
8701                 fi
8702         fi
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718 xorg_testset_save_CFLAGS="$CFLAGS"
8719
8720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8721         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8723 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8724 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8725   $as_echo_n "(cached) " >&6
8726 else
8727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h.  */
8729 int i;
8730 _ACEOF
8731 if ac_fn_c_try_compile "$LINENO"; then :
8732   xorg_cv_cc_flag_unknown_warning_option=yes
8733 else
8734   xorg_cv_cc_flag_unknown_warning_option=no
8735 fi
8736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 fi
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8739 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8740         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8741         CFLAGS="$xorg_testset_save_CFLAGS"
8742 fi
8743
8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8745         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8746                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8747         fi
8748         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8749         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8750 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8751 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8752   $as_echo_n "(cached) " >&6
8753 else
8754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h.  */
8756 int i;
8757 _ACEOF
8758 if ac_fn_c_try_compile "$LINENO"; then :
8759   xorg_cv_cc_flag_unused_command_line_argument=yes
8760 else
8761   xorg_cv_cc_flag_unused_command_line_argument=no
8762 fi
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 fi
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8766 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8767         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8768         CFLAGS="$xorg_testset_save_CFLAGS"
8769 fi
8770
8771 found="no"
8772
8773         if test $found = "no" ; then
8774                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8775                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776                 fi
8777
8778                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8779                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8780                 fi
8781
8782                 CFLAGS="$CFLAGS -Winit-self"
8783
8784                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8785 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8786                 cacheid=xorg_cv_cc_flag__Winit_self
8787                 if eval \${$cacheid+:} false; then :
8788   $as_echo_n "(cached) " >&6
8789 else
8790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h.  */
8792 int i;
8793 int
8794 main ()
8795 {
8796
8797   ;
8798   return 0;
8799 }
8800 _ACEOF
8801 if ac_fn_c_try_link "$LINENO"; then :
8802   eval $cacheid=yes
8803 else
8804   eval $cacheid=no
8805 fi
8806 rm -f core conftest.err conftest.$ac_objext \
8807     conftest$ac_exeext conftest.$ac_ext
8808 fi
8809
8810
8811                 CFLAGS="$xorg_testset_save_CFLAGS"
8812
8813                 eval supported=\$$cacheid
8814                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8815 $as_echo "$supported" >&6; }
8816                 if test "$supported" = "yes" ; then
8817                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8818                         found="yes"
8819                 fi
8820         fi
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836 xorg_testset_save_CFLAGS="$CFLAGS"
8837
8838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8839         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8841 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8842 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8843   $as_echo_n "(cached) " >&6
8844 else
8845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h.  */
8847 int i;
8848 _ACEOF
8849 if ac_fn_c_try_compile "$LINENO"; then :
8850   xorg_cv_cc_flag_unknown_warning_option=yes
8851 else
8852   xorg_cv_cc_flag_unknown_warning_option=no
8853 fi
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8857 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8858         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8859         CFLAGS="$xorg_testset_save_CFLAGS"
8860 fi
8861
8862 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8863         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8864                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8865         fi
8866         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8867         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8868 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8869 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8870   $as_echo_n "(cached) " >&6
8871 else
8872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h.  */
8874 int i;
8875 _ACEOF
8876 if ac_fn_c_try_compile "$LINENO"; then :
8877   xorg_cv_cc_flag_unused_command_line_argument=yes
8878 else
8879   xorg_cv_cc_flag_unused_command_line_argument=no
8880 fi
8881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 fi
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8884 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8885         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8886         CFLAGS="$xorg_testset_save_CFLAGS"
8887 fi
8888
8889 found="no"
8890
8891         if test $found = "no" ; then
8892                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8893                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894                 fi
8895
8896                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8897                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8898                 fi
8899
8900                 CFLAGS="$CFLAGS -Wmain"
8901
8902                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8903 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8904                 cacheid=xorg_cv_cc_flag__Wmain
8905                 if eval \${$cacheid+:} false; then :
8906   $as_echo_n "(cached) " >&6
8907 else
8908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h.  */
8910 int i;
8911 int
8912 main ()
8913 {
8914
8915   ;
8916   return 0;
8917 }
8918 _ACEOF
8919 if ac_fn_c_try_link "$LINENO"; then :
8920   eval $cacheid=yes
8921 else
8922   eval $cacheid=no
8923 fi
8924 rm -f core conftest.err conftest.$ac_objext \
8925     conftest$ac_exeext conftest.$ac_ext
8926 fi
8927
8928
8929                 CFLAGS="$xorg_testset_save_CFLAGS"
8930
8931                 eval supported=\$$cacheid
8932                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8933 $as_echo "$supported" >&6; }
8934                 if test "$supported" = "yes" ; then
8935                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8936                         found="yes"
8937                 fi
8938         fi
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954 xorg_testset_save_CFLAGS="$CFLAGS"
8955
8956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8957         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8958         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8959 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8960 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8961   $as_echo_n "(cached) " >&6
8962 else
8963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h.  */
8965 int i;
8966 _ACEOF
8967 if ac_fn_c_try_compile "$LINENO"; then :
8968   xorg_cv_cc_flag_unknown_warning_option=yes
8969 else
8970   xorg_cv_cc_flag_unknown_warning_option=no
8971 fi
8972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973 fi
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8975 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8976         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8977         CFLAGS="$xorg_testset_save_CFLAGS"
8978 fi
8979
8980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8981         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8982                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8983         fi
8984         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8985         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8986 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8987 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8988   $as_echo_n "(cached) " >&6
8989 else
8990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h.  */
8992 int i;
8993 _ACEOF
8994 if ac_fn_c_try_compile "$LINENO"; then :
8995   xorg_cv_cc_flag_unused_command_line_argument=yes
8996 else
8997   xorg_cv_cc_flag_unused_command_line_argument=no
8998 fi
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000 fi
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9002 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9003         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9004         CFLAGS="$xorg_testset_save_CFLAGS"
9005 fi
9006
9007 found="no"
9008
9009         if test $found = "no" ; then
9010                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9011                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9012                 fi
9013
9014                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9015                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9016                 fi
9017
9018                 CFLAGS="$CFLAGS -Wmissing-braces"
9019
9020                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9021 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9022                 cacheid=xorg_cv_cc_flag__Wmissing_braces
9023                 if eval \${$cacheid+:} false; then :
9024   $as_echo_n "(cached) " >&6
9025 else
9026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h.  */
9028 int i;
9029 int
9030 main ()
9031 {
9032
9033   ;
9034   return 0;
9035 }
9036 _ACEOF
9037 if ac_fn_c_try_link "$LINENO"; then :
9038   eval $cacheid=yes
9039 else
9040   eval $cacheid=no
9041 fi
9042 rm -f core conftest.err conftest.$ac_objext \
9043     conftest$ac_exeext conftest.$ac_ext
9044 fi
9045
9046
9047                 CFLAGS="$xorg_testset_save_CFLAGS"
9048
9049                 eval supported=\$$cacheid
9050                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9051 $as_echo "$supported" >&6; }
9052                 if test "$supported" = "yes" ; then
9053                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9054                         found="yes"
9055                 fi
9056         fi
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072 xorg_testset_save_CFLAGS="$CFLAGS"
9073
9074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9075         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9077 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9078 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9079   $as_echo_n "(cached) " >&6
9080 else
9081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h.  */
9083 int i;
9084 _ACEOF
9085 if ac_fn_c_try_compile "$LINENO"; then :
9086   xorg_cv_cc_flag_unknown_warning_option=yes
9087 else
9088   xorg_cv_cc_flag_unknown_warning_option=no
9089 fi
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 fi
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9093 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9094         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9095         CFLAGS="$xorg_testset_save_CFLAGS"
9096 fi
9097
9098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9099         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9100                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9101         fi
9102         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9104 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9105 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9106   $as_echo_n "(cached) " >&6
9107 else
9108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h.  */
9110 int i;
9111 _ACEOF
9112 if ac_fn_c_try_compile "$LINENO"; then :
9113   xorg_cv_cc_flag_unused_command_line_argument=yes
9114 else
9115   xorg_cv_cc_flag_unused_command_line_argument=no
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118 fi
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9120 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9121         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9122         CFLAGS="$xorg_testset_save_CFLAGS"
9123 fi
9124
9125 found="no"
9126
9127         if test $found = "no" ; then
9128                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9129                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9130                 fi
9131
9132                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9133                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9134                 fi
9135
9136                 CFLAGS="$CFLAGS -Wsequence-point"
9137
9138                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9139 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9140                 cacheid=xorg_cv_cc_flag__Wsequence_point
9141                 if eval \${$cacheid+:} false; then :
9142   $as_echo_n "(cached) " >&6
9143 else
9144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h.  */
9146 int i;
9147 int
9148 main ()
9149 {
9150
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 if ac_fn_c_try_link "$LINENO"; then :
9156   eval $cacheid=yes
9157 else
9158   eval $cacheid=no
9159 fi
9160 rm -f core conftest.err conftest.$ac_objext \
9161     conftest$ac_exeext conftest.$ac_ext
9162 fi
9163
9164
9165                 CFLAGS="$xorg_testset_save_CFLAGS"
9166
9167                 eval supported=\$$cacheid
9168                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9169 $as_echo "$supported" >&6; }
9170                 if test "$supported" = "yes" ; then
9171                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9172                         found="yes"
9173                 fi
9174         fi
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190 xorg_testset_save_CFLAGS="$CFLAGS"
9191
9192 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9193         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9195 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9196 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9197   $as_echo_n "(cached) " >&6
9198 else
9199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h.  */
9201 int i;
9202 _ACEOF
9203 if ac_fn_c_try_compile "$LINENO"; then :
9204   xorg_cv_cc_flag_unknown_warning_option=yes
9205 else
9206   xorg_cv_cc_flag_unknown_warning_option=no
9207 fi
9208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9211 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9212         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9213         CFLAGS="$xorg_testset_save_CFLAGS"
9214 fi
9215
9216 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9217         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9218                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9219         fi
9220         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9221         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9222 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9223 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9224   $as_echo_n "(cached) " >&6
9225 else
9226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h.  */
9228 int i;
9229 _ACEOF
9230 if ac_fn_c_try_compile "$LINENO"; then :
9231   xorg_cv_cc_flag_unused_command_line_argument=yes
9232 else
9233   xorg_cv_cc_flag_unused_command_line_argument=no
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 fi
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9238 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9239         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9240         CFLAGS="$xorg_testset_save_CFLAGS"
9241 fi
9242
9243 found="no"
9244
9245         if test $found = "no" ; then
9246                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9247                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9248                 fi
9249
9250                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9251                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9252                 fi
9253
9254                 CFLAGS="$CFLAGS -Wreturn-type"
9255
9256                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9257 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9258                 cacheid=xorg_cv_cc_flag__Wreturn_type
9259                 if eval \${$cacheid+:} false; then :
9260   $as_echo_n "(cached) " >&6
9261 else
9262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h.  */
9264 int i;
9265 int
9266 main ()
9267 {
9268
9269   ;
9270   return 0;
9271 }
9272 _ACEOF
9273 if ac_fn_c_try_link "$LINENO"; then :
9274   eval $cacheid=yes
9275 else
9276   eval $cacheid=no
9277 fi
9278 rm -f core conftest.err conftest.$ac_objext \
9279     conftest$ac_exeext conftest.$ac_ext
9280 fi
9281
9282
9283                 CFLAGS="$xorg_testset_save_CFLAGS"
9284
9285                 eval supported=\$$cacheid
9286                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9287 $as_echo "$supported" >&6; }
9288                 if test "$supported" = "yes" ; then
9289                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9290                         found="yes"
9291                 fi
9292         fi
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308 xorg_testset_save_CFLAGS="$CFLAGS"
9309
9310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9311         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9312         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9313 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9314 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9315   $as_echo_n "(cached) " >&6
9316 else
9317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h.  */
9319 int i;
9320 _ACEOF
9321 if ac_fn_c_try_compile "$LINENO"; then :
9322   xorg_cv_cc_flag_unknown_warning_option=yes
9323 else
9324   xorg_cv_cc_flag_unknown_warning_option=no
9325 fi
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327 fi
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9329 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9330         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9331         CFLAGS="$xorg_testset_save_CFLAGS"
9332 fi
9333
9334 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9335         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9336                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9337         fi
9338         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9339         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9340 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9341 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9342   $as_echo_n "(cached) " >&6
9343 else
9344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h.  */
9346 int i;
9347 _ACEOF
9348 if ac_fn_c_try_compile "$LINENO"; then :
9349   xorg_cv_cc_flag_unused_command_line_argument=yes
9350 else
9351   xorg_cv_cc_flag_unused_command_line_argument=no
9352 fi
9353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354 fi
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9356 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9357         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9358         CFLAGS="$xorg_testset_save_CFLAGS"
9359 fi
9360
9361 found="no"
9362
9363         if test $found = "no" ; then
9364                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9365                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366                 fi
9367
9368                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9369                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9370                 fi
9371
9372                 CFLAGS="$CFLAGS -Wtrigraphs"
9373
9374                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9375 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9376                 cacheid=xorg_cv_cc_flag__Wtrigraphs
9377                 if eval \${$cacheid+:} false; then :
9378   $as_echo_n "(cached) " >&6
9379 else
9380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h.  */
9382 int i;
9383 int
9384 main ()
9385 {
9386
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 if ac_fn_c_try_link "$LINENO"; then :
9392   eval $cacheid=yes
9393 else
9394   eval $cacheid=no
9395 fi
9396 rm -f core conftest.err conftest.$ac_objext \
9397     conftest$ac_exeext conftest.$ac_ext
9398 fi
9399
9400
9401                 CFLAGS="$xorg_testset_save_CFLAGS"
9402
9403                 eval supported=\$$cacheid
9404                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9405 $as_echo "$supported" >&6; }
9406                 if test "$supported" = "yes" ; then
9407                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9408                         found="yes"
9409                 fi
9410         fi
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426 xorg_testset_save_CFLAGS="$CFLAGS"
9427
9428 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9429         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9430         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9431 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9432 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9433   $as_echo_n "(cached) " >&6
9434 else
9435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h.  */
9437 int i;
9438 _ACEOF
9439 if ac_fn_c_try_compile "$LINENO"; then :
9440   xorg_cv_cc_flag_unknown_warning_option=yes
9441 else
9442   xorg_cv_cc_flag_unknown_warning_option=no
9443 fi
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445 fi
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9447 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9448         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9449         CFLAGS="$xorg_testset_save_CFLAGS"
9450 fi
9451
9452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9453         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9454                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9455         fi
9456         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9457         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9458 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9459 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9460   $as_echo_n "(cached) " >&6
9461 else
9462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h.  */
9464 int i;
9465 _ACEOF
9466 if ac_fn_c_try_compile "$LINENO"; then :
9467   xorg_cv_cc_flag_unused_command_line_argument=yes
9468 else
9469   xorg_cv_cc_flag_unused_command_line_argument=no
9470 fi
9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 fi
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9474 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9475         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9476         CFLAGS="$xorg_testset_save_CFLAGS"
9477 fi
9478
9479 found="no"
9480
9481         if test $found = "no" ; then
9482                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9483                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9484                 fi
9485
9486                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9487                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9488                 fi
9489
9490                 CFLAGS="$CFLAGS -Warray-bounds"
9491
9492                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9493 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9494                 cacheid=xorg_cv_cc_flag__Warray_bounds
9495                 if eval \${$cacheid+:} false; then :
9496   $as_echo_n "(cached) " >&6
9497 else
9498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h.  */
9500 int i;
9501 int
9502 main ()
9503 {
9504
9505   ;
9506   return 0;
9507 }
9508 _ACEOF
9509 if ac_fn_c_try_link "$LINENO"; then :
9510   eval $cacheid=yes
9511 else
9512   eval $cacheid=no
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext \
9515     conftest$ac_exeext conftest.$ac_ext
9516 fi
9517
9518
9519                 CFLAGS="$xorg_testset_save_CFLAGS"
9520
9521                 eval supported=\$$cacheid
9522                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9523 $as_echo "$supported" >&6; }
9524                 if test "$supported" = "yes" ; then
9525                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9526                         found="yes"
9527                 fi
9528         fi
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544 xorg_testset_save_CFLAGS="$CFLAGS"
9545
9546 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9547         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9549 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9550 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9551   $as_echo_n "(cached) " >&6
9552 else
9553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h.  */
9555 int i;
9556 _ACEOF
9557 if ac_fn_c_try_compile "$LINENO"; then :
9558   xorg_cv_cc_flag_unknown_warning_option=yes
9559 else
9560   xorg_cv_cc_flag_unknown_warning_option=no
9561 fi
9562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563 fi
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9565 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9566         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9567         CFLAGS="$xorg_testset_save_CFLAGS"
9568 fi
9569
9570 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9571         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9572                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9573         fi
9574         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9576 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9577 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9578   $as_echo_n "(cached) " >&6
9579 else
9580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h.  */
9582 int i;
9583 _ACEOF
9584 if ac_fn_c_try_compile "$LINENO"; then :
9585   xorg_cv_cc_flag_unused_command_line_argument=yes
9586 else
9587   xorg_cv_cc_flag_unused_command_line_argument=no
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9590 fi
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9592 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9593         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9594         CFLAGS="$xorg_testset_save_CFLAGS"
9595 fi
9596
9597 found="no"
9598
9599         if test $found = "no" ; then
9600                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9601                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9602                 fi
9603
9604                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9605                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9606                 fi
9607
9608                 CFLAGS="$CFLAGS -Wwrite-strings"
9609
9610                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9611 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9612                 cacheid=xorg_cv_cc_flag__Wwrite_strings
9613                 if eval \${$cacheid+:} false; then :
9614   $as_echo_n "(cached) " >&6
9615 else
9616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h.  */
9618 int i;
9619 int
9620 main ()
9621 {
9622
9623   ;
9624   return 0;
9625 }
9626 _ACEOF
9627 if ac_fn_c_try_link "$LINENO"; then :
9628   eval $cacheid=yes
9629 else
9630   eval $cacheid=no
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext \
9633     conftest$ac_exeext conftest.$ac_ext
9634 fi
9635
9636
9637                 CFLAGS="$xorg_testset_save_CFLAGS"
9638
9639                 eval supported=\$$cacheid
9640                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9641 $as_echo "$supported" >&6; }
9642                 if test "$supported" = "yes" ; then
9643                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9644                         found="yes"
9645                 fi
9646         fi
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662 xorg_testset_save_CFLAGS="$CFLAGS"
9663
9664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9665         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9667 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9668 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9669   $as_echo_n "(cached) " >&6
9670 else
9671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h.  */
9673 int i;
9674 _ACEOF
9675 if ac_fn_c_try_compile "$LINENO"; then :
9676   xorg_cv_cc_flag_unknown_warning_option=yes
9677 else
9678   xorg_cv_cc_flag_unknown_warning_option=no
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9683 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9684         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9685         CFLAGS="$xorg_testset_save_CFLAGS"
9686 fi
9687
9688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9689         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9690                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9691         fi
9692         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9694 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9695 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9696   $as_echo_n "(cached) " >&6
9697 else
9698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h.  */
9700 int i;
9701 _ACEOF
9702 if ac_fn_c_try_compile "$LINENO"; then :
9703   xorg_cv_cc_flag_unused_command_line_argument=yes
9704 else
9705   xorg_cv_cc_flag_unused_command_line_argument=no
9706 fi
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708 fi
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9710 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9711         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9712         CFLAGS="$xorg_testset_save_CFLAGS"
9713 fi
9714
9715 found="no"
9716
9717         if test $found = "no" ; then
9718                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9719                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9720                 fi
9721
9722                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9723                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9724                 fi
9725
9726                 CFLAGS="$CFLAGS -Waddress"
9727
9728                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9729 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9730                 cacheid=xorg_cv_cc_flag__Waddress
9731                 if eval \${$cacheid+:} false; then :
9732   $as_echo_n "(cached) " >&6
9733 else
9734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h.  */
9736 int i;
9737 int
9738 main ()
9739 {
9740
9741   ;
9742   return 0;
9743 }
9744 _ACEOF
9745 if ac_fn_c_try_link "$LINENO"; then :
9746   eval $cacheid=yes
9747 else
9748   eval $cacheid=no
9749 fi
9750 rm -f core conftest.err conftest.$ac_objext \
9751     conftest$ac_exeext conftest.$ac_ext
9752 fi
9753
9754
9755                 CFLAGS="$xorg_testset_save_CFLAGS"
9756
9757                 eval supported=\$$cacheid
9758                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9759 $as_echo "$supported" >&6; }
9760                 if test "$supported" = "yes" ; then
9761                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9762                         found="yes"
9763                 fi
9764         fi
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780 xorg_testset_save_CFLAGS="$CFLAGS"
9781
9782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9783         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9784         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9785 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9786 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9787   $as_echo_n "(cached) " >&6
9788 else
9789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h.  */
9791 int i;
9792 _ACEOF
9793 if ac_fn_c_try_compile "$LINENO"; then :
9794   xorg_cv_cc_flag_unknown_warning_option=yes
9795 else
9796   xorg_cv_cc_flag_unknown_warning_option=no
9797 fi
9798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9799 fi
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9801 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9802         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9803         CFLAGS="$xorg_testset_save_CFLAGS"
9804 fi
9805
9806 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9807         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9808                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9809         fi
9810         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9811         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9812 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9813 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9814   $as_echo_n "(cached) " >&6
9815 else
9816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h.  */
9818 int i;
9819 _ACEOF
9820 if ac_fn_c_try_compile "$LINENO"; then :
9821   xorg_cv_cc_flag_unused_command_line_argument=yes
9822 else
9823   xorg_cv_cc_flag_unused_command_line_argument=no
9824 fi
9825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9826 fi
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9828 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9829         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9830         CFLAGS="$xorg_testset_save_CFLAGS"
9831 fi
9832
9833 found="no"
9834
9835         if test $found = "no" ; then
9836                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9837                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9838                 fi
9839
9840                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9841                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9842                 fi
9843
9844                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9845
9846                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9847 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9848                 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9849                 if eval \${$cacheid+:} false; then :
9850   $as_echo_n "(cached) " >&6
9851 else
9852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h.  */
9854 int i;
9855 int
9856 main ()
9857 {
9858
9859   ;
9860   return 0;
9861 }
9862 _ACEOF
9863 if ac_fn_c_try_link "$LINENO"; then :
9864   eval $cacheid=yes
9865 else
9866   eval $cacheid=no
9867 fi
9868 rm -f core conftest.err conftest.$ac_objext \
9869     conftest$ac_exeext conftest.$ac_ext
9870 fi
9871
9872
9873                 CFLAGS="$xorg_testset_save_CFLAGS"
9874
9875                 eval supported=\$$cacheid
9876                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9877 $as_echo "$supported" >&6; }
9878                 if test "$supported" = "yes" ; then
9879                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9880                         found="yes"
9881                 fi
9882         fi
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898 xorg_testset_save_CFLAGS="$CFLAGS"
9899
9900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9901         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9902         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9903 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9904 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9905   $as_echo_n "(cached) " >&6
9906 else
9907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h.  */
9909 int i;
9910 _ACEOF
9911 if ac_fn_c_try_compile "$LINENO"; then :
9912   xorg_cv_cc_flag_unknown_warning_option=yes
9913 else
9914   xorg_cv_cc_flag_unknown_warning_option=no
9915 fi
9916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917 fi
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9919 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9920         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9921         CFLAGS="$xorg_testset_save_CFLAGS"
9922 fi
9923
9924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9925         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9926                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9927         fi
9928         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9930 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9931 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9932   $as_echo_n "(cached) " >&6
9933 else
9934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h.  */
9936 int i;
9937 _ACEOF
9938 if ac_fn_c_try_compile "$LINENO"; then :
9939   xorg_cv_cc_flag_unused_command_line_argument=yes
9940 else
9941   xorg_cv_cc_flag_unused_command_line_argument=no
9942 fi
9943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9944 fi
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9946 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9947         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9948         CFLAGS="$xorg_testset_save_CFLAGS"
9949 fi
9950
9951 found="no"
9952
9953         if test $found = "no" ; then
9954                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9955                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9956                 fi
9957
9958                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9959                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9960                 fi
9961
9962                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9963
9964                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9965 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9966                 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9967                 if eval \${$cacheid+:} false; then :
9968   $as_echo_n "(cached) " >&6
9969 else
9970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h.  */
9972 int i;
9973 int
9974 main ()
9975 {
9976
9977   ;
9978   return 0;
9979 }
9980 _ACEOF
9981 if ac_fn_c_try_link "$LINENO"; then :
9982   eval $cacheid=yes
9983 else
9984   eval $cacheid=no
9985 fi
9986 rm -f core conftest.err conftest.$ac_objext \
9987     conftest$ac_exeext conftest.$ac_ext
9988 fi
9989
9990
9991                 CFLAGS="$xorg_testset_save_CFLAGS"
9992
9993                 eval supported=\$$cacheid
9994                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9995 $as_echo "$supported" >&6; }
9996                 if test "$supported" = "yes" ; then
9997                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9998                         found="yes"
9999                 fi
10000         fi
10001
10002
10003 fi
10004
10005
10006
10007
10008
10009
10010
10011                 CWARNFLAGS="$BASE_CFLAGS"
10012                 if  test "x$GCC" = xyes ; then
10013                     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10014                 fi
10015
10016
10017
10018
10019
10020
10021
10022
10023 # Check whether --enable-strict-compilation was given.
10024 if test "${enable_strict_compilation+set}" = set; then :
10025   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10026 else
10027   STRICT_COMPILE=no
10028 fi
10029
10030
10031
10032
10033
10034
10035 STRICT_CFLAGS=""
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049 xorg_testset_save_CFLAGS="$CFLAGS"
10050
10051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10052         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10053         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10054 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10055 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10056   $as_echo_n "(cached) " >&6
10057 else
10058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h.  */
10060 int i;
10061 _ACEOF
10062 if ac_fn_c_try_compile "$LINENO"; then :
10063   xorg_cv_cc_flag_unknown_warning_option=yes
10064 else
10065   xorg_cv_cc_flag_unknown_warning_option=no
10066 fi
10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068 fi
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10070 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10071         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10072         CFLAGS="$xorg_testset_save_CFLAGS"
10073 fi
10074
10075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10076         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10077                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10078         fi
10079         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10080         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10081 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10082 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10083   $as_echo_n "(cached) " >&6
10084 else
10085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086 /* end confdefs.h.  */
10087 int i;
10088 _ACEOF
10089 if ac_fn_c_try_compile "$LINENO"; then :
10090   xorg_cv_cc_flag_unused_command_line_argument=yes
10091 else
10092   xorg_cv_cc_flag_unused_command_line_argument=no
10093 fi
10094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10095 fi
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10097 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10098         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10099         CFLAGS="$xorg_testset_save_CFLAGS"
10100 fi
10101
10102 found="no"
10103
10104         if test $found = "no" ; then
10105                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10106                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10107                 fi
10108
10109                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10110                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10111                 fi
10112
10113                 CFLAGS="$CFLAGS -pedantic"
10114
10115                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10116 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10117                 cacheid=xorg_cv_cc_flag__pedantic
10118                 if eval \${$cacheid+:} false; then :
10119   $as_echo_n "(cached) " >&6
10120 else
10121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h.  */
10123 int i;
10124 int
10125 main ()
10126 {
10127
10128   ;
10129   return 0;
10130 }
10131 _ACEOF
10132 if ac_fn_c_try_link "$LINENO"; then :
10133   eval $cacheid=yes
10134 else
10135   eval $cacheid=no
10136 fi
10137 rm -f core conftest.err conftest.$ac_objext \
10138     conftest$ac_exeext conftest.$ac_ext
10139 fi
10140
10141
10142                 CFLAGS="$xorg_testset_save_CFLAGS"
10143
10144                 eval supported=\$$cacheid
10145                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10146 $as_echo "$supported" >&6; }
10147                 if test "$supported" = "yes" ; then
10148                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10149                         found="yes"
10150                 fi
10151         fi
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167 xorg_testset_save_CFLAGS="$CFLAGS"
10168
10169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10170         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10171         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10172 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10173 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10174   $as_echo_n "(cached) " >&6
10175 else
10176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h.  */
10178 int i;
10179 _ACEOF
10180 if ac_fn_c_try_compile "$LINENO"; then :
10181   xorg_cv_cc_flag_unknown_warning_option=yes
10182 else
10183   xorg_cv_cc_flag_unknown_warning_option=no
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10188 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10189         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10190         CFLAGS="$xorg_testset_save_CFLAGS"
10191 fi
10192
10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10194         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10195                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10196         fi
10197         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10198         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10199 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10200 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10201   $as_echo_n "(cached) " >&6
10202 else
10203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h.  */
10205 int i;
10206 _ACEOF
10207 if ac_fn_c_try_compile "$LINENO"; then :
10208   xorg_cv_cc_flag_unused_command_line_argument=yes
10209 else
10210   xorg_cv_cc_flag_unused_command_line_argument=no
10211 fi
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213 fi
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10215 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10216         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10217         CFLAGS="$xorg_testset_save_CFLAGS"
10218 fi
10219
10220 found="no"
10221
10222         if test $found = "no" ; then
10223                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10224                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10225                 fi
10226
10227                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10228                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10229                 fi
10230
10231                 CFLAGS="$CFLAGS -Werror"
10232
10233                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10234 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10235                 cacheid=xorg_cv_cc_flag__Werror
10236                 if eval \${$cacheid+:} false; then :
10237   $as_echo_n "(cached) " >&6
10238 else
10239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h.  */
10241 int i;
10242 int
10243 main ()
10244 {
10245
10246   ;
10247   return 0;
10248 }
10249 _ACEOF
10250 if ac_fn_c_try_link "$LINENO"; then :
10251   eval $cacheid=yes
10252 else
10253   eval $cacheid=no
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext \
10256     conftest$ac_exeext conftest.$ac_ext
10257 fi
10258
10259
10260                 CFLAGS="$xorg_testset_save_CFLAGS"
10261
10262                 eval supported=\$$cacheid
10263                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10264 $as_echo "$supported" >&6; }
10265                 if test "$supported" = "yes" ; then
10266                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10267                         found="yes"
10268                 fi
10269         fi
10270
10271         if test $found = "no" ; then
10272                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10273                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10274                 fi
10275
10276                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10277                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10278                 fi
10279
10280                 CFLAGS="$CFLAGS -errwarn"
10281
10282                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10283 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10284                 cacheid=xorg_cv_cc_flag__errwarn
10285                 if eval \${$cacheid+:} false; then :
10286   $as_echo_n "(cached) " >&6
10287 else
10288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h.  */
10290 int i;
10291 int
10292 main ()
10293 {
10294
10295   ;
10296   return 0;
10297 }
10298 _ACEOF
10299 if ac_fn_c_try_link "$LINENO"; then :
10300   eval $cacheid=yes
10301 else
10302   eval $cacheid=no
10303 fi
10304 rm -f core conftest.err conftest.$ac_objext \
10305     conftest$ac_exeext conftest.$ac_ext
10306 fi
10307
10308
10309                 CFLAGS="$xorg_testset_save_CFLAGS"
10310
10311                 eval supported=\$$cacheid
10312                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10313 $as_echo "$supported" >&6; }
10314                 if test "$supported" = "yes" ; then
10315                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10316                         found="yes"
10317                 fi
10318         fi
10319
10320
10321
10322 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10323 # activate it with -Werror, so we add it here explicitly.
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337 xorg_testset_save_CFLAGS="$CFLAGS"
10338
10339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10340         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10341         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10342 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10343 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10344   $as_echo_n "(cached) " >&6
10345 else
10346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h.  */
10348 int i;
10349 _ACEOF
10350 if ac_fn_c_try_compile "$LINENO"; then :
10351   xorg_cv_cc_flag_unknown_warning_option=yes
10352 else
10353   xorg_cv_cc_flag_unknown_warning_option=no
10354 fi
10355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10356 fi
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10358 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10359         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10360         CFLAGS="$xorg_testset_save_CFLAGS"
10361 fi
10362
10363 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10364         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10365                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10366         fi
10367         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10368         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10369 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10370 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10371   $as_echo_n "(cached) " >&6
10372 else
10373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374 /* end confdefs.h.  */
10375 int i;
10376 _ACEOF
10377 if ac_fn_c_try_compile "$LINENO"; then :
10378   xorg_cv_cc_flag_unused_command_line_argument=yes
10379 else
10380   xorg_cv_cc_flag_unused_command_line_argument=no
10381 fi
10382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10383 fi
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10385 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10386         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10387         CFLAGS="$xorg_testset_save_CFLAGS"
10388 fi
10389
10390 found="no"
10391
10392         if test $found = "no" ; then
10393                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10394                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10395                 fi
10396
10397                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10398                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10399                 fi
10400
10401                 CFLAGS="$CFLAGS -Werror=attributes"
10402
10403                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10404 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10405                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10406                 if eval \${$cacheid+:} false; then :
10407   $as_echo_n "(cached) " >&6
10408 else
10409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h.  */
10411 int i;
10412 int
10413 main ()
10414 {
10415
10416   ;
10417   return 0;
10418 }
10419 _ACEOF
10420 if ac_fn_c_try_link "$LINENO"; then :
10421   eval $cacheid=yes
10422 else
10423   eval $cacheid=no
10424 fi
10425 rm -f core conftest.err conftest.$ac_objext \
10426     conftest$ac_exeext conftest.$ac_ext
10427 fi
10428
10429
10430                 CFLAGS="$xorg_testset_save_CFLAGS"
10431
10432                 eval supported=\$$cacheid
10433                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10434 $as_echo "$supported" >&6; }
10435                 if test "$supported" = "yes" ; then
10436                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10437                         found="yes"
10438                 fi
10439         fi
10440
10441
10442
10443 if test "x$STRICT_COMPILE" = "xyes"; then
10444     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10445     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10446 fi
10447
10448
10449
10450
10451
10452
10453 cat >>confdefs.h <<_ACEOF
10454 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10455 _ACEOF
10456
10457         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10458         if test "x$PVM" = "x"; then
10459                 PVM="0"
10460         fi
10461
10462 cat >>confdefs.h <<_ACEOF
10463 #define PACKAGE_VERSION_MINOR $PVM
10464 _ACEOF
10465
10466         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10467         if test "x$PVP" = "x"; then
10468                 PVP="0"
10469         fi
10470
10471 cat >>confdefs.h <<_ACEOF
10472 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10473 _ACEOF
10474
10475
10476
10477 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10478 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10479 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10480 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10481
10482
10483
10484
10485 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10486 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10487 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10488 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10489 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10490
10491
10492
10493
10494
10495
10496 if test x$APP_MAN_SUFFIX = x    ; then
10497     APP_MAN_SUFFIX=1
10498 fi
10499 if test x$APP_MAN_DIR = x    ; then
10500     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10501 fi
10502
10503 if test x$LIB_MAN_SUFFIX = x    ; then
10504     LIB_MAN_SUFFIX=3
10505 fi
10506 if test x$LIB_MAN_DIR = x    ; then
10507     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10508 fi
10509
10510 if test x$FILE_MAN_SUFFIX = x    ; then
10511     case $host_os in
10512         solaris*)       FILE_MAN_SUFFIX=4  ;;
10513         *)              FILE_MAN_SUFFIX=5  ;;
10514     esac
10515 fi
10516 if test x$FILE_MAN_DIR = x    ; then
10517     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10518 fi
10519
10520 if test x$MISC_MAN_SUFFIX = x    ; then
10521     case $host_os in
10522         solaris*)       MISC_MAN_SUFFIX=5  ;;
10523         *)              MISC_MAN_SUFFIX=7  ;;
10524     esac
10525 fi
10526 if test x$MISC_MAN_DIR = x    ; then
10527     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10528 fi
10529
10530 if test x$DRIVER_MAN_SUFFIX = x    ; then
10531     case $host_os in
10532         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
10533         *)              DRIVER_MAN_SUFFIX=4  ;;
10534     esac
10535 fi
10536 if test x$DRIVER_MAN_DIR = x    ; then
10537     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10538 fi
10539
10540 if test x$ADMIN_MAN_SUFFIX = x    ; then
10541     case $host_os in
10542         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
10543         *)              ADMIN_MAN_SUFFIX=8  ;;
10544     esac
10545 fi
10546 if test x$ADMIN_MAN_DIR = x    ; then
10547     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10548 fi
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564 XORG_MAN_PAGE="X Version 11"
10565
10566 MAN_SUBSTS="\
10567         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10568         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10569         -e 's|__xservername__|Xorg|g' \
10570         -e 's|__xconfigfile__|xorg.conf|g' \
10571         -e 's|__projectroot__|\$(prefix)|g' \
10572         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10573         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10574         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10575         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10576         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10577         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10578         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10579
10580
10581
10582 # Check whether --enable-silent-rules was given.
10583 if test "${enable_silent_rules+set}" = set; then :
10584   enableval=$enable_silent_rules;
10585 fi
10586
10587 case $enable_silent_rules in
10588 yes) AM_DEFAULT_VERBOSITY=0;;
10589 no)  AM_DEFAULT_VERBOSITY=1;;
10590 *)   AM_DEFAULT_VERBOSITY=0;;
10591 esac
10592 AM_BACKSLASH='\'
10593
10594
10595
10596 for ac_func in strncasecmp asprintf
10597 do :
10598   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10599 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10600 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10601   cat >>confdefs.h <<_ACEOF
10602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10603 _ACEOF
10604
10605 fi
10606 done
10607
10608
10609 # Checks for pkg-config packages
10610
10611 pkg_failed=no
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMODMAP" >&5
10613 $as_echo_n "checking for XMODMAP... " >&6; }
10614
10615 if test -n "$XMODMAP_CFLAGS"; then
10616     pkg_cv_XMODMAP_CFLAGS="$XMODMAP_CFLAGS"
10617  elif test -n "$PKG_CONFIG"; then
10618     if test -n "$PKG_CONFIG" && \
10619     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
10620   ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
10621   ac_status=$?
10622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10623   test $ac_status = 0; }; then
10624   pkg_cv_XMODMAP_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
10625 else
10626   pkg_failed=yes
10627 fi
10628  else
10629     pkg_failed=untried
10630 fi
10631 if test -n "$XMODMAP_LIBS"; then
10632     pkg_cv_XMODMAP_LIBS="$XMODMAP_LIBS"
10633  elif test -n "$PKG_CONFIG"; then
10634     if test -n "$PKG_CONFIG" && \
10635     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
10636   ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
10637   ac_status=$?
10638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10639   test $ac_status = 0; }; then
10640   pkg_cv_XMODMAP_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
10641 else
10642   pkg_failed=yes
10643 fi
10644  else
10645     pkg_failed=untried
10646 fi
10647
10648
10649
10650 if test $pkg_failed = yes; then
10651
10652 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10653         _pkg_short_errors_supported=yes
10654 else
10655         _pkg_short_errors_supported=no
10656 fi
10657         if test $_pkg_short_errors_supported = yes; then
10658                 XMODMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xproto >= 7.0.17" 2>&1`
10659         else
10660                 XMODMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xproto >= 7.0.17" 2>&1`
10661         fi
10662         # Put the nasty error message in config.log where it belongs
10663         echo "$XMODMAP_PKG_ERRORS" >&5
10664
10665         as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
10666
10667 $XMODMAP_PKG_ERRORS
10668
10669 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10670 installed software in a non-standard prefix.
10671
10672 Alternatively, you may set the environment variables XMODMAP_CFLAGS
10673 and XMODMAP_LIBS to avoid the need to call pkg-config.
10674 See the pkg-config man page for more details.
10675 " "$LINENO" 5
10676 elif test $pkg_failed = untried; then
10677         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10679 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10680 is in your PATH or set the PKG_CONFIG environment variable to the full
10681 path to pkg-config.
10682
10683 Alternatively, you may set the environment variables XMODMAP_CFLAGS
10684 and XMODMAP_LIBS to avoid the need to call pkg-config.
10685 See the pkg-config man page for more details.
10686
10687 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10688 See \`config.log' for more details" "$LINENO" 5; }
10689 else
10690         XMODMAP_CFLAGS=$pkg_cv_XMODMAP_CFLAGS
10691         XMODMAP_LIBS=$pkg_cv_XMODMAP_LIBS
10692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10693 $as_echo "yes" >&6; }
10694         :
10695 fi
10696
10697
10698
10699
10700
10701
10702 # Check whether --with-lint was given.
10703 if test "${with_lint+set}" = set; then :
10704   withval=$with_lint; use_lint=$withval
10705 else
10706   use_lint=no
10707 fi
10708
10709
10710 # Obtain platform specific info like program name and options
10711 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
10712 case $host_os in
10713   *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
10714         lint_name=splint
10715         lint_options="-badflag"
10716         ;;
10717   *freebsd* | *netbsd*)
10718         lint_name=lint
10719         lint_options="-u -b"
10720         ;;
10721   *solaris*)
10722         lint_name=lint
10723         lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
10724         ;;
10725 esac
10726
10727 # Test for the presence of the program (either guessed by the code or spelled out by the user)
10728 if test "x$use_lint" = x"yes" ; then
10729    # Extract the first word of "$lint_name", so it can be a program name with args.
10730 set dummy $lint_name; ac_word=$2
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10732 $as_echo_n "checking for $ac_word... " >&6; }
10733 if ${ac_cv_path_LINT+:} false; then :
10734   $as_echo_n "(cached) " >&6
10735 else
10736   case $LINT in
10737   [\\/]* | ?:[\\/]*)
10738   ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
10739   ;;
10740   *)
10741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742 for as_dir in $PATH
10743 do
10744   IFS=$as_save_IFS
10745   test -z "$as_dir" && as_dir=.
10746     for ac_exec_ext in '' $ac_executable_extensions; do
10747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10748     ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
10749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10750     break 2
10751   fi
10752 done
10753   done
10754 IFS=$as_save_IFS
10755
10756   ;;
10757 esac
10758 fi
10759 LINT=$ac_cv_path_LINT
10760 if test -n "$LINT"; then
10761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
10762 $as_echo "$LINT" >&6; }
10763 else
10764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; }
10766 fi
10767
10768
10769    if test "x$LINT" = "x"; then
10770         as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
10771    fi
10772 elif test "x$use_lint" = x"no" ; then
10773    if test "x$LINT" != "x"; then
10774       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
10775 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
10776    fi
10777 else
10778    as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
10779 fi
10780
10781 # User supplied flags override default flags
10782 if test "x$LINT_FLAGS" != "x"; then
10783    lint_options=$LINT_FLAGS
10784 fi
10785
10786 LINT_FLAGS=$lint_options
10787
10788  if test "x$LINT" != x; then
10789   LINT_TRUE=
10790   LINT_FALSE='#'
10791 else
10792   LINT_TRUE='#'
10793   LINT_FALSE=
10794 fi
10795
10796
10797
10798
10799 ac_config_files="$ac_config_files Makefile man/Makefile"
10800
10801 cat >confcache <<\_ACEOF
10802 # This file is a shell script that caches the results of configure
10803 # tests run on this system so they can be shared between configure
10804 # scripts and configure runs, see configure's option --config-cache.
10805 # It is not useful on other systems.  If it contains results you don't
10806 # want to keep, you may remove or edit it.
10807 #
10808 # config.status only pays attention to the cache file if you give it
10809 # the --recheck option to rerun configure.
10810 #
10811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10813 # following values.
10814
10815 _ACEOF
10816
10817 # The following way of writing the cache mishandles newlines in values,
10818 # but we know of no workaround that is simple, portable, and efficient.
10819 # So, we kill variables containing newlines.
10820 # Ultrix sh set writes to stderr and can't be redirected directly,
10821 # and sets the high bit in the cache file unless we assign to the vars.
10822 (
10823   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10824     eval ac_val=\$$ac_var
10825     case $ac_val in #(
10826     *${as_nl}*)
10827       case $ac_var in #(
10828       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10829 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10830       esac
10831       case $ac_var in #(
10832       _ | IFS | as_nl) ;; #(
10833       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10834       *) { eval $ac_var=; unset $ac_var;} ;;
10835       esac ;;
10836     esac
10837   done
10838
10839   (set) 2>&1 |
10840     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10841     *${as_nl}ac_space=\ *)
10842       # `set' does not quote correctly, so add quotes: double-quote
10843       # substitution turns \\\\ into \\, and sed turns \\ into \.
10844       sed -n \
10845         "s/'/'\\\\''/g;
10846           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10847       ;; #(
10848     *)
10849       # `set' quotes correctly as required by POSIX, so do not add quotes.
10850       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10851       ;;
10852     esac |
10853     sort
10854 ) |
10855   sed '
10856      /^ac_cv_env_/b end
10857      t clear
10858      :clear
10859      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10860      t end
10861      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10862      :end' >>confcache
10863 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10864   if test -w "$cache_file"; then
10865     if test "x$cache_file" != "x/dev/null"; then
10866       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10867 $as_echo "$as_me: updating cache $cache_file" >&6;}
10868       if test ! -f "$cache_file" || test -h "$cache_file"; then
10869         cat confcache >"$cache_file"
10870       else
10871         case $cache_file in #(
10872         */* | ?:*)
10873           mv -f confcache "$cache_file"$$ &&
10874           mv -f "$cache_file"$$ "$cache_file" ;; #(
10875         *)
10876           mv -f confcache "$cache_file" ;;
10877         esac
10878       fi
10879     fi
10880   else
10881     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10882 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10883   fi
10884 fi
10885 rm -f confcache
10886
10887 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10888 # Let make expand exec_prefix.
10889 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10890
10891 DEFS=-DHAVE_CONFIG_H
10892
10893 ac_libobjs=
10894 ac_ltlibobjs=
10895 U=
10896 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10897   # 1. Remove the extension, and $U if already installed.
10898   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10899   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10900   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10901   #    will be set to the directory where LIBOBJS objects are built.
10902   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10903   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10904 done
10905 LIBOBJS=$ac_libobjs
10906
10907 LTLIBOBJS=$ac_ltlibobjs
10908
10909
10910 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10911   as_fn_error $? "conditional \"AMDEP\" was never defined.
10912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10913 fi
10914 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10915   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10917 fi
10918  if test -n "$EXEEXT"; then
10919   am__EXEEXT_TRUE=
10920   am__EXEEXT_FALSE='#'
10921 else
10922   am__EXEEXT_TRUE='#'
10923   am__EXEEXT_FALSE=
10924 fi
10925
10926 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10927   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10929 fi
10930 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
10931   as_fn_error $? "conditional \"LINT\" was never defined.
10932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10933 fi
10934
10935 : "${CONFIG_STATUS=./config.status}"
10936 ac_write_fail=0
10937 ac_clean_files_save=$ac_clean_files
10938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10940 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10941 as_write_fail=0
10942 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10943 #! $SHELL
10944 # Generated by $as_me.
10945 # Run this file to recreate the current configuration.
10946 # Compiler output produced by configure, useful for debugging
10947 # configure, is in config.log if it exists.
10948
10949 debug=false
10950 ac_cs_recheck=false
10951 ac_cs_silent=false
10952
10953 SHELL=\${CONFIG_SHELL-$SHELL}
10954 export SHELL
10955 _ASEOF
10956 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10957 ## -------------------- ##
10958 ## M4sh Initialization. ##
10959 ## -------------------- ##
10960
10961 # Be more Bourne compatible
10962 DUALCASE=1; export DUALCASE # for MKS sh
10963 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10964   emulate sh
10965   NULLCMD=:
10966   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10967   # is contrary to our usage.  Disable this feature.
10968   alias -g '${1+"$@"}'='"$@"'
10969   setopt NO_GLOB_SUBST
10970 else
10971   case `(set -o) 2>/dev/null` in #(
10972   *posix*) :
10973     set -o posix ;; #(
10974   *) :
10975      ;;
10976 esac
10977 fi
10978
10979
10980 as_nl='
10981 '
10982 export as_nl
10983 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10984 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10985 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10986 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10987 # Prefer a ksh shell builtin over an external printf program on Solaris,
10988 # but without wasting forks for bash or zsh.
10989 if test -z "$BASH_VERSION$ZSH_VERSION" \
10990     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10991   as_echo='print -r --'
10992   as_echo_n='print -rn --'
10993 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10994   as_echo='printf %s\n'
10995   as_echo_n='printf %s'
10996 else
10997   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10998     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10999     as_echo_n='/usr/ucb/echo -n'
11000   else
11001     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11002     as_echo_n_body='eval
11003       arg=$1;
11004       case $arg in #(
11005       *"$as_nl"*)
11006         expr "X$arg" : "X\\(.*\\)$as_nl";
11007         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11008       esac;
11009       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11010     '
11011     export as_echo_n_body
11012     as_echo_n='sh -c $as_echo_n_body as_echo'
11013   fi
11014   export as_echo_body
11015   as_echo='sh -c $as_echo_body as_echo'
11016 fi
11017
11018 # The user is always right.
11019 if test "${PATH_SEPARATOR+set}" != set; then
11020   PATH_SEPARATOR=:
11021   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11022     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11023       PATH_SEPARATOR=';'
11024   }
11025 fi
11026
11027
11028 # IFS
11029 # We need space, tab and new line, in precisely that order.  Quoting is
11030 # there to prevent editors from complaining about space-tab.
11031 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11032 # splitting by setting IFS to empty value.)
11033 IFS=" ""        $as_nl"
11034
11035 # Find who we are.  Look in the path if we contain no directory separator.
11036 as_myself=
11037 case $0 in #((
11038   *[\\/]* ) as_myself=$0 ;;
11039   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040 for as_dir in $PATH
11041 do
11042   IFS=$as_save_IFS
11043   test -z "$as_dir" && as_dir=.
11044     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11045   done
11046 IFS=$as_save_IFS
11047
11048      ;;
11049 esac
11050 # We did not find ourselves, most probably we were run as `sh COMMAND'
11051 # in which case we are not to be found in the path.
11052 if test "x$as_myself" = x; then
11053   as_myself=$0
11054 fi
11055 if test ! -f "$as_myself"; then
11056   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11057   exit 1
11058 fi
11059
11060 # Unset variables that we do not need and which cause bugs (e.g. in
11061 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11062 # suppresses any "Segmentation fault" message there.  '((' could
11063 # trigger a bug in pdksh 5.2.14.
11064 for as_var in BASH_ENV ENV MAIL MAILPATH
11065 do eval test x\${$as_var+set} = xset \
11066   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11067 done
11068 PS1='$ '
11069 PS2='> '
11070 PS4='+ '
11071
11072 # NLS nuisances.
11073 LC_ALL=C
11074 export LC_ALL
11075 LANGUAGE=C
11076 export LANGUAGE
11077
11078 # CDPATH.
11079 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11080
11081
11082 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11083 # ----------------------------------------
11084 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11085 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11086 # script with STATUS, using 1 if that was 0.
11087 as_fn_error ()
11088 {
11089   as_status=$1; test $as_status -eq 0 && as_status=1
11090   if test "$4"; then
11091     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11092     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11093   fi
11094   $as_echo "$as_me: error: $2" >&2
11095   as_fn_exit $as_status
11096 } # as_fn_error
11097
11098
11099 # as_fn_set_status STATUS
11100 # -----------------------
11101 # Set $? to STATUS, without forking.
11102 as_fn_set_status ()
11103 {
11104   return $1
11105 } # as_fn_set_status
11106
11107 # as_fn_exit STATUS
11108 # -----------------
11109 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11110 as_fn_exit ()
11111 {
11112   set +e
11113   as_fn_set_status $1
11114   exit $1
11115 } # as_fn_exit
11116
11117 # as_fn_unset VAR
11118 # ---------------
11119 # Portably unset VAR.
11120 as_fn_unset ()
11121 {
11122   { eval $1=; unset $1;}
11123 }
11124 as_unset=as_fn_unset
11125 # as_fn_append VAR VALUE
11126 # ----------------------
11127 # Append the text in VALUE to the end of the definition contained in VAR. Take
11128 # advantage of any shell optimizations that allow amortized linear growth over
11129 # repeated appends, instead of the typical quadratic growth present in naive
11130 # implementations.
11131 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11132   eval 'as_fn_append ()
11133   {
11134     eval $1+=\$2
11135   }'
11136 else
11137   as_fn_append ()
11138   {
11139     eval $1=\$$1\$2
11140   }
11141 fi # as_fn_append
11142
11143 # as_fn_arith ARG...
11144 # ------------------
11145 # Perform arithmetic evaluation on the ARGs, and store the result in the
11146 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11147 # must be portable across $(()) and expr.
11148 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11149   eval 'as_fn_arith ()
11150   {
11151     as_val=$(( $* ))
11152   }'
11153 else
11154   as_fn_arith ()
11155   {
11156     as_val=`expr "$@" || test $? -eq 1`
11157   }
11158 fi # as_fn_arith
11159
11160
11161 if expr a : '\(a\)' >/dev/null 2>&1 &&
11162    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11163   as_expr=expr
11164 else
11165   as_expr=false
11166 fi
11167
11168 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11169   as_basename=basename
11170 else
11171   as_basename=false
11172 fi
11173
11174 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11175   as_dirname=dirname
11176 else
11177   as_dirname=false
11178 fi
11179
11180 as_me=`$as_basename -- "$0" ||
11181 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11182          X"$0" : 'X\(//\)$' \| \
11183          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11184 $as_echo X/"$0" |
11185     sed '/^.*\/\([^/][^/]*\)\/*$/{
11186             s//\1/
11187             q
11188           }
11189           /^X\/\(\/\/\)$/{
11190             s//\1/
11191             q
11192           }
11193           /^X\/\(\/\).*/{
11194             s//\1/
11195             q
11196           }
11197           s/.*/./; q'`
11198
11199 # Avoid depending upon Character Ranges.
11200 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11201 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11202 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11203 as_cr_digits='0123456789'
11204 as_cr_alnum=$as_cr_Letters$as_cr_digits
11205
11206 ECHO_C= ECHO_N= ECHO_T=
11207 case `echo -n x` in #(((((
11208 -n*)
11209   case `echo 'xy\c'` in
11210   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11211   xy)  ECHO_C='\c';;
11212   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11213        ECHO_T=' ';;
11214   esac;;
11215 *)
11216   ECHO_N='-n';;
11217 esac
11218
11219 rm -f conf$$ conf$$.exe conf$$.file
11220 if test -d conf$$.dir; then
11221   rm -f conf$$.dir/conf$$.file
11222 else
11223   rm -f conf$$.dir
11224   mkdir conf$$.dir 2>/dev/null
11225 fi
11226 if (echo >conf$$.file) 2>/dev/null; then
11227   if ln -s conf$$.file conf$$ 2>/dev/null; then
11228     as_ln_s='ln -s'
11229     # ... but there are two gotchas:
11230     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11231     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11232     # In both cases, we have to default to `cp -p'.
11233     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11234       as_ln_s='cp -p'
11235   elif ln conf$$.file conf$$ 2>/dev/null; then
11236     as_ln_s=ln
11237   else
11238     as_ln_s='cp -p'
11239   fi
11240 else
11241   as_ln_s='cp -p'
11242 fi
11243 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11244 rmdir conf$$.dir 2>/dev/null
11245
11246
11247 # as_fn_mkdir_p
11248 # -------------
11249 # Create "$as_dir" as a directory, including parents if necessary.
11250 as_fn_mkdir_p ()
11251 {
11252
11253   case $as_dir in #(
11254   -*) as_dir=./$as_dir;;
11255   esac
11256   test -d "$as_dir" || eval $as_mkdir_p || {
11257     as_dirs=
11258     while :; do
11259       case $as_dir in #(
11260       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11261       *) as_qdir=$as_dir;;
11262       esac
11263       as_dirs="'$as_qdir' $as_dirs"
11264       as_dir=`$as_dirname -- "$as_dir" ||
11265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11266          X"$as_dir" : 'X\(//\)[^/]' \| \
11267          X"$as_dir" : 'X\(//\)$' \| \
11268          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11269 $as_echo X"$as_dir" |
11270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11271             s//\1/
11272             q
11273           }
11274           /^X\(\/\/\)[^/].*/{
11275             s//\1/
11276             q
11277           }
11278           /^X\(\/\/\)$/{
11279             s//\1/
11280             q
11281           }
11282           /^X\(\/\).*/{
11283             s//\1/
11284             q
11285           }
11286           s/.*/./; q'`
11287       test -d "$as_dir" && break
11288     done
11289     test -z "$as_dirs" || eval "mkdir $as_dirs"
11290   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11291
11292
11293 } # as_fn_mkdir_p
11294 if mkdir -p . 2>/dev/null; then
11295   as_mkdir_p='mkdir -p "$as_dir"'
11296 else
11297   test -d ./-p && rmdir ./-p
11298   as_mkdir_p=false
11299 fi
11300
11301 if test -x / >/dev/null 2>&1; then
11302   as_test_x='test -x'
11303 else
11304   if ls -dL / >/dev/null 2>&1; then
11305     as_ls_L_option=L
11306   else
11307     as_ls_L_option=
11308   fi
11309   as_test_x='
11310     eval sh -c '\''
11311       if test -d "$1"; then
11312         test -d "$1/.";
11313       else
11314         case $1 in #(
11315         -*)set "./$1";;
11316         esac;
11317         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11318         ???[sx]*):;;*)false;;esac;fi
11319     '\'' sh
11320   '
11321 fi
11322 as_executable_p=$as_test_x
11323
11324 # Sed expression to map a string onto a valid CPP name.
11325 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11326
11327 # Sed expression to map a string onto a valid variable name.
11328 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11329
11330
11331 exec 6>&1
11332 ## ----------------------------------- ##
11333 ## Main body of $CONFIG_STATUS script. ##
11334 ## ----------------------------------- ##
11335 _ASEOF
11336 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11337
11338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11339 # Save the log message, to keep $0 and so on meaningful, and to
11340 # report actual input values of CONFIG_FILES etc. instead of their
11341 # values after options handling.
11342 ac_log="
11343 This file was extended by xmodmap $as_me 1.0.7, which was
11344 generated by GNU Autoconf 2.68.  Invocation command line was
11345
11346   CONFIG_FILES    = $CONFIG_FILES
11347   CONFIG_HEADERS  = $CONFIG_HEADERS
11348   CONFIG_LINKS    = $CONFIG_LINKS
11349   CONFIG_COMMANDS = $CONFIG_COMMANDS
11350   $ $0 $@
11351
11352 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11353 "
11354
11355 _ACEOF
11356
11357 case $ac_config_files in *"
11358 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11359 esac
11360
11361 case $ac_config_headers in *"
11362 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11363 esac
11364
11365
11366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11367 # Files that config.status was made for.
11368 config_files="$ac_config_files"
11369 config_headers="$ac_config_headers"
11370 config_commands="$ac_config_commands"
11371
11372 _ACEOF
11373
11374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11375 ac_cs_usage="\
11376 \`$as_me' instantiates files and other configuration actions
11377 from templates according to the current configuration.  Unless the files
11378 and actions are specified as TAGs, all are instantiated by default.
11379
11380 Usage: $0 [OPTION]... [TAG]...
11381
11382   -h, --help       print this help, then exit
11383   -V, --version    print version number and configuration settings, then exit
11384       --config     print configuration, then exit
11385   -q, --quiet, --silent
11386                    do not print progress messages
11387   -d, --debug      don't remove temporary files
11388       --recheck    update $as_me by reconfiguring in the same conditions
11389       --file=FILE[:TEMPLATE]
11390                    instantiate the configuration file FILE
11391       --header=FILE[:TEMPLATE]
11392                    instantiate the configuration header FILE
11393
11394 Configuration files:
11395 $config_files
11396
11397 Configuration headers:
11398 $config_headers
11399
11400 Configuration commands:
11401 $config_commands
11402
11403 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11404
11405 _ACEOF
11406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11407 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11408 ac_cs_version="\\
11409 xmodmap config.status 1.0.7
11410 configured by $0, generated by GNU Autoconf 2.68,
11411   with options \\"\$ac_cs_config\\"
11412
11413 Copyright (C) 2010 Free Software Foundation, Inc.
11414 This config.status script is free software; the Free Software Foundation
11415 gives unlimited permission to copy, distribute and modify it."
11416
11417 ac_pwd='$ac_pwd'
11418 srcdir='$srcdir'
11419 INSTALL='$INSTALL'
11420 MKDIR_P='$MKDIR_P'
11421 AWK='$AWK'
11422 test -n "\$AWK" || AWK=awk
11423 _ACEOF
11424
11425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11426 # The default lists apply if the user does not specify any file.
11427 ac_need_defaults=:
11428 while test $# != 0
11429 do
11430   case $1 in
11431   --*=?*)
11432     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11433     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11434     ac_shift=:
11435     ;;
11436   --*=)
11437     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11438     ac_optarg=
11439     ac_shift=:
11440     ;;
11441   *)
11442     ac_option=$1
11443     ac_optarg=$2
11444     ac_shift=shift
11445     ;;
11446   esac
11447
11448   case $ac_option in
11449   # Handling of the options.
11450   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11451     ac_cs_recheck=: ;;
11452   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11453     $as_echo "$ac_cs_version"; exit ;;
11454   --config | --confi | --conf | --con | --co | --c )
11455     $as_echo "$ac_cs_config"; exit ;;
11456   --debug | --debu | --deb | --de | --d | -d )
11457     debug=: ;;
11458   --file | --fil | --fi | --f )
11459     $ac_shift
11460     case $ac_optarg in
11461     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11462     '') as_fn_error $? "missing file argument" ;;
11463     esac
11464     as_fn_append CONFIG_FILES " '$ac_optarg'"
11465     ac_need_defaults=false;;
11466   --header | --heade | --head | --hea )
11467     $ac_shift
11468     case $ac_optarg in
11469     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11470     esac
11471     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11472     ac_need_defaults=false;;
11473   --he | --h)
11474     # Conflict between --help and --header
11475     as_fn_error $? "ambiguous option: \`$1'
11476 Try \`$0 --help' for more information.";;
11477   --help | --hel | -h )
11478     $as_echo "$ac_cs_usage"; exit ;;
11479   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11480   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11481     ac_cs_silent=: ;;
11482
11483   # This is an error.
11484   -*) as_fn_error $? "unrecognized option: \`$1'
11485 Try \`$0 --help' for more information." ;;
11486
11487   *) as_fn_append ac_config_targets " $1"
11488      ac_need_defaults=false ;;
11489
11490   esac
11491   shift
11492 done
11493
11494 ac_configure_extra_args=
11495
11496 if $ac_cs_silent; then
11497   exec 6>/dev/null
11498   ac_configure_extra_args="$ac_configure_extra_args --silent"
11499 fi
11500
11501 _ACEOF
11502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11503 if \$ac_cs_recheck; then
11504   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11505   shift
11506   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11507   CONFIG_SHELL='$SHELL'
11508   export CONFIG_SHELL
11509   exec "\$@"
11510 fi
11511
11512 _ACEOF
11513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11514 exec 5>>config.log
11515 {
11516   echo
11517   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11518 ## Running $as_me. ##
11519 _ASBOX
11520   $as_echo "$ac_log"
11521 } >&5
11522
11523 _ACEOF
11524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11525 #
11526 # INIT-COMMANDS
11527 #
11528 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11529
11530 _ACEOF
11531
11532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11533
11534 # Handling of arguments.
11535 for ac_config_target in $ac_config_targets
11536 do
11537   case $ac_config_target in
11538     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11539     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11540     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11541     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11542
11543   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11544   esac
11545 done
11546
11547
11548 # If the user did not use the arguments to specify the items to instantiate,
11549 # then the envvar interface is used.  Set only those that are not.
11550 # We use the long form for the default assignment because of an extremely
11551 # bizarre bug on SunOS 4.1.3.
11552 if $ac_need_defaults; then
11553   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11554   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11555   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11556 fi
11557
11558 # Have a temporary directory for convenience.  Make it in the build tree
11559 # simply because there is no reason against having it here, and in addition,
11560 # creating and moving files from /tmp can sometimes cause problems.
11561 # Hook for its removal unless debugging.
11562 # Note that there is a small window in which the directory will not be cleaned:
11563 # after its creation but before its name has been assigned to `$tmp'.
11564 $debug ||
11565 {
11566   tmp= ac_tmp=
11567   trap 'exit_status=$?
11568   : "${ac_tmp:=$tmp}"
11569   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11570 ' 0
11571   trap 'as_fn_exit 1' 1 2 13 15
11572 }
11573 # Create a (secure) tmp directory for tmp files.
11574
11575 {
11576   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11577   test -d "$tmp"
11578 }  ||
11579 {
11580   tmp=./conf$$-$RANDOM
11581   (umask 077 && mkdir "$tmp")
11582 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11583 ac_tmp=$tmp
11584
11585 # Set up the scripts for CONFIG_FILES section.
11586 # No need to generate them if there are no CONFIG_FILES.
11587 # This happens for instance with `./config.status config.h'.
11588 if test -n "$CONFIG_FILES"; then
11589
11590
11591 ac_cr=`echo X | tr X '\015'`
11592 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11593 # But we know of no other shell where ac_cr would be empty at this
11594 # point, so we can use a bashism as a fallback.
11595 if test "x$ac_cr" = x; then
11596   eval ac_cr=\$\'\\r\'
11597 fi
11598 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11599 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11600   ac_cs_awk_cr='\\r'
11601 else
11602   ac_cs_awk_cr=$ac_cr
11603 fi
11604
11605 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11606 _ACEOF
11607
11608
11609 {
11610   echo "cat >conf$$subs.awk <<_ACEOF" &&
11611   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11612   echo "_ACEOF"
11613 } >conf$$subs.sh ||
11614   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11615 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11616 ac_delim='%!_!# '
11617 for ac_last_try in false false false false false :; do
11618   . ./conf$$subs.sh ||
11619     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11620
11621   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11622   if test $ac_delim_n = $ac_delim_num; then
11623     break
11624   elif $ac_last_try; then
11625     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11626   else
11627     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11628   fi
11629 done
11630 rm -f conf$$subs.sh
11631
11632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11633 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11634 _ACEOF
11635 sed -n '
11636 h
11637 s/^/S["/; s/!.*/"]=/
11638 p
11639 g
11640 s/^[^!]*!//
11641 :repl
11642 t repl
11643 s/'"$ac_delim"'$//
11644 t delim
11645 :nl
11646 h
11647 s/\(.\{148\}\)..*/\1/
11648 t more1
11649 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11650 p
11651 n
11652 b repl
11653 :more1
11654 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11655 p
11656 g
11657 s/.\{148\}//
11658 t nl
11659 :delim
11660 h
11661 s/\(.\{148\}\)..*/\1/
11662 t more2
11663 s/["\\]/\\&/g; s/^/"/; s/$/"/
11664 p
11665 b
11666 :more2
11667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11668 p
11669 g
11670 s/.\{148\}//
11671 t delim
11672 ' <conf$$subs.awk | sed '
11673 /^[^""]/{
11674   N
11675   s/\n//
11676 }
11677 ' >>$CONFIG_STATUS || ac_write_fail=1
11678 rm -f conf$$subs.awk
11679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11680 _ACAWK
11681 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11682   for (key in S) S_is_set[key] = 1
11683   FS = "\a"
11684
11685 }
11686 {
11687   line = $ 0
11688   nfields = split(line, field, "@")
11689   substed = 0
11690   len = length(field[1])
11691   for (i = 2; i < nfields; i++) {
11692     key = field[i]
11693     keylen = length(key)
11694     if (S_is_set[key]) {
11695       value = S[key]
11696       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11697       len += length(value) + length(field[++i])
11698       substed = 1
11699     } else
11700       len += 1 + keylen
11701   }
11702
11703   print line
11704 }
11705
11706 _ACAWK
11707 _ACEOF
11708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11709 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11710   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11711 else
11712   cat
11713 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11714   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11715 _ACEOF
11716
11717 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11718 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11719 # trailing colons and then remove the whole line if VPATH becomes empty
11720 # (actually we leave an empty line to preserve line numbers).
11721 if test "x$srcdir" = x.; then
11722   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
11723 h
11724 s///
11725 s/^/:/
11726 s/[      ]*$/:/
11727 s/:\$(srcdir):/:/g
11728 s/:\${srcdir}:/:/g
11729 s/:@srcdir@:/:/g
11730 s/^:*//
11731 s/:*$//
11732 x
11733 s/\(=[   ]*\).*/\1/
11734 G
11735 s/\n//
11736 s/^[^=]*=[       ]*$//
11737 }'
11738 fi
11739
11740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11741 fi # test -n "$CONFIG_FILES"
11742
11743 # Set up the scripts for CONFIG_HEADERS section.
11744 # No need to generate them if there are no CONFIG_HEADERS.
11745 # This happens for instance with `./config.status Makefile'.
11746 if test -n "$CONFIG_HEADERS"; then
11747 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11748 BEGIN {
11749 _ACEOF
11750
11751 # Transform confdefs.h into an awk script `defines.awk', embedded as
11752 # here-document in config.status, that substitutes the proper values into
11753 # config.h.in to produce config.h.
11754
11755 # Create a delimiter string that does not exist in confdefs.h, to ease
11756 # handling of long lines.
11757 ac_delim='%!_!# '
11758 for ac_last_try in false false :; do
11759   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11760   if test -z "$ac_tt"; then
11761     break
11762   elif $ac_last_try; then
11763     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11764   else
11765     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11766   fi
11767 done
11768
11769 # For the awk script, D is an array of macro values keyed by name,
11770 # likewise P contains macro parameters if any.  Preserve backslash
11771 # newline sequences.
11772
11773 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11774 sed -n '
11775 s/.\{148\}/&'"$ac_delim"'/g
11776 t rset
11777 :rset
11778 s/^[     ]*#[    ]*define[       ][      ]*/ /
11779 t def
11780 d
11781 :def
11782 s/\\$//
11783 t bsnl
11784 s/["\\]/\\&/g
11785 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11786 D["\1"]=" \3"/p
11787 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
11788 d
11789 :bsnl
11790 s/["\\]/\\&/g
11791 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11792 D["\1"]=" \3\\\\\\n"\\/p
11793 t cont
11794 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11795 t cont
11796 d
11797 :cont
11798 n
11799 s/.\{148\}/&'"$ac_delim"'/g
11800 t clear
11801 :clear
11802 s/\\$//
11803 t bsnlc
11804 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11805 d
11806 :bsnlc
11807 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11808 b cont
11809 ' <confdefs.h | sed '
11810 s/'"$ac_delim"'/"\\\
11811 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11812
11813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11814   for (key in D) D_is_set[key] = 1
11815   FS = "\a"
11816 }
11817 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11818   line = \$ 0
11819   split(line, arg, " ")
11820   if (arg[1] == "#") {
11821     defundef = arg[2]
11822     mac1 = arg[3]
11823   } else {
11824     defundef = substr(arg[1], 2)
11825     mac1 = arg[2]
11826   }
11827   split(mac1, mac2, "(") #)
11828   macro = mac2[1]
11829   prefix = substr(line, 1, index(line, defundef) - 1)
11830   if (D_is_set[macro]) {
11831     # Preserve the white space surrounding the "#".
11832     print prefix "define", macro P[macro] D[macro]
11833     next
11834   } else {
11835     # Replace #undef with comments.  This is necessary, for example,
11836     # in the case of _POSIX_SOURCE, which is predefined and required
11837     # on some systems where configure will not decide to define it.
11838     if (defundef == "undef") {
11839       print "/*", prefix defundef, macro, "*/"
11840       next
11841     }
11842   }
11843 }
11844 { print }
11845 _ACAWK
11846 _ACEOF
11847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11848   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11849 fi # test -n "$CONFIG_HEADERS"
11850
11851
11852 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11853 shift
11854 for ac_tag
11855 do
11856   case $ac_tag in
11857   :[FHLC]) ac_mode=$ac_tag; continue;;
11858   esac
11859   case $ac_mode$ac_tag in
11860   :[FHL]*:*);;
11861   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11862   :[FH]-) ac_tag=-:-;;
11863   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11864   esac
11865   ac_save_IFS=$IFS
11866   IFS=:
11867   set x $ac_tag
11868   IFS=$ac_save_IFS
11869   shift
11870   ac_file=$1
11871   shift
11872
11873   case $ac_mode in
11874   :L) ac_source=$1;;
11875   :[FH])
11876     ac_file_inputs=
11877     for ac_f
11878     do
11879       case $ac_f in
11880       -) ac_f="$ac_tmp/stdin";;
11881       *) # Look for the file first in the build tree, then in the source tree
11882          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11883          # because $ac_f cannot contain `:'.
11884          test -f "$ac_f" ||
11885            case $ac_f in
11886            [\\/$]*) false;;
11887            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11888            esac ||
11889            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11890       esac
11891       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11892       as_fn_append ac_file_inputs " '$ac_f'"
11893     done
11894
11895     # Let's still pretend it is `configure' which instantiates (i.e., don't
11896     # use $as_me), people would be surprised to read:
11897     #    /* config.h.  Generated by config.status.  */
11898     configure_input='Generated from '`
11899           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11900         `' by configure.'
11901     if test x"$ac_file" != x-; then
11902       configure_input="$ac_file.  $configure_input"
11903       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11904 $as_echo "$as_me: creating $ac_file" >&6;}
11905     fi
11906     # Neutralize special characters interpreted by sed in replacement strings.
11907     case $configure_input in #(
11908     *\&* | *\|* | *\\* )
11909        ac_sed_conf_input=`$as_echo "$configure_input" |
11910        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11911     *) ac_sed_conf_input=$configure_input;;
11912     esac
11913
11914     case $ac_tag in
11915     *:-:* | *:-) cat >"$ac_tmp/stdin" \
11916       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11917     esac
11918     ;;
11919   esac
11920
11921   ac_dir=`$as_dirname -- "$ac_file" ||
11922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11923          X"$ac_file" : 'X\(//\)[^/]' \| \
11924          X"$ac_file" : 'X\(//\)$' \| \
11925          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11926 $as_echo X"$ac_file" |
11927     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11928             s//\1/
11929             q
11930           }
11931           /^X\(\/\/\)[^/].*/{
11932             s//\1/
11933             q
11934           }
11935           /^X\(\/\/\)$/{
11936             s//\1/
11937             q
11938           }
11939           /^X\(\/\).*/{
11940             s//\1/
11941             q
11942           }
11943           s/.*/./; q'`
11944   as_dir="$ac_dir"; as_fn_mkdir_p
11945   ac_builddir=.
11946
11947 case "$ac_dir" in
11948 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11949 *)
11950   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11951   # A ".." for each directory in $ac_dir_suffix.
11952   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11953   case $ac_top_builddir_sub in
11954   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11955   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11956   esac ;;
11957 esac
11958 ac_abs_top_builddir=$ac_pwd
11959 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11960 # for backward compatibility:
11961 ac_top_builddir=$ac_top_build_prefix
11962
11963 case $srcdir in
11964   .)  # We are building in place.
11965     ac_srcdir=.
11966     ac_top_srcdir=$ac_top_builddir_sub
11967     ac_abs_top_srcdir=$ac_pwd ;;
11968   [\\/]* | ?:[\\/]* )  # Absolute name.
11969     ac_srcdir=$srcdir$ac_dir_suffix;
11970     ac_top_srcdir=$srcdir
11971     ac_abs_top_srcdir=$srcdir ;;
11972   *) # Relative name.
11973     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11974     ac_top_srcdir=$ac_top_build_prefix$srcdir
11975     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11976 esac
11977 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11978
11979
11980   case $ac_mode in
11981   :F)
11982   #
11983   # CONFIG_FILE
11984   #
11985
11986   case $INSTALL in
11987   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11988   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11989   esac
11990   ac_MKDIR_P=$MKDIR_P
11991   case $MKDIR_P in
11992   [\\/$]* | ?:[\\/]* ) ;;
11993   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11994   esac
11995 _ACEOF
11996
11997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11998 # If the template does not know about datarootdir, expand it.
11999 # FIXME: This hack should be removed a few years after 2.60.
12000 ac_datarootdir_hack=; ac_datarootdir_seen=
12001 ac_sed_dataroot='
12002 /datarootdir/ {
12003   p
12004   q
12005 }
12006 /@datadir@/p
12007 /@docdir@/p
12008 /@infodir@/p
12009 /@localedir@/p
12010 /@mandir@/p'
12011 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12012 *datarootdir*) ac_datarootdir_seen=yes;;
12013 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12014   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12015 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12016 _ACEOF
12017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12018   ac_datarootdir_hack='
12019   s&@datadir@&$datadir&g
12020   s&@docdir@&$docdir&g
12021   s&@infodir@&$infodir&g
12022   s&@localedir@&$localedir&g
12023   s&@mandir@&$mandir&g
12024   s&\\\${datarootdir}&$datarootdir&g' ;;
12025 esac
12026 _ACEOF
12027
12028 # Neutralize VPATH when `$srcdir' = `.'.
12029 # Shell code in configure.ac might set extrasub.
12030 # FIXME: do we really want to maintain this feature?
12031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12032 ac_sed_extra="$ac_vpsub
12033 $extrasub
12034 _ACEOF
12035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12036 :t
12037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12038 s|@configure_input@|$ac_sed_conf_input|;t t
12039 s&@top_builddir@&$ac_top_builddir_sub&;t t
12040 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12041 s&@srcdir@&$ac_srcdir&;t t
12042 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12043 s&@top_srcdir@&$ac_top_srcdir&;t t
12044 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12045 s&@builddir@&$ac_builddir&;t t
12046 s&@abs_builddir@&$ac_abs_builddir&;t t
12047 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12048 s&@INSTALL@&$ac_INSTALL&;t t
12049 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12050 $ac_datarootdir_hack
12051 "
12052 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12053   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12054
12055 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12056   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12057   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12058       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12059   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12060 which seems to be undefined.  Please make sure it is defined" >&5
12061 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12062 which seems to be undefined.  Please make sure it is defined" >&2;}
12063
12064   rm -f "$ac_tmp/stdin"
12065   case $ac_file in
12066   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12067   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12068   esac \
12069   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12070  ;;
12071   :H)
12072   #
12073   # CONFIG_HEADER
12074   #
12075   if test x"$ac_file" != x-; then
12076     {
12077       $as_echo "/* $configure_input  */" \
12078       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12079     } >"$ac_tmp/config.h" \
12080       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12081     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12082       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12083 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12084     else
12085       rm -f "$ac_file"
12086       mv "$ac_tmp/config.h" "$ac_file" \
12087         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12088     fi
12089   else
12090     $as_echo "/* $configure_input  */" \
12091       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12092       || as_fn_error $? "could not create -" "$LINENO" 5
12093   fi
12094 # Compute "$ac_file"'s index in $config_headers.
12095 _am_arg="$ac_file"
12096 _am_stamp_count=1
12097 for _am_header in $config_headers :; do
12098   case $_am_header in
12099     $_am_arg | $_am_arg:* )
12100       break ;;
12101     * )
12102       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12103   esac
12104 done
12105 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12106 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12107          X"$_am_arg" : 'X\(//\)[^/]' \| \
12108          X"$_am_arg" : 'X\(//\)$' \| \
12109          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12110 $as_echo X"$_am_arg" |
12111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12112             s//\1/
12113             q
12114           }
12115           /^X\(\/\/\)[^/].*/{
12116             s//\1/
12117             q
12118           }
12119           /^X\(\/\/\)$/{
12120             s//\1/
12121             q
12122           }
12123           /^X\(\/\).*/{
12124             s//\1/
12125             q
12126           }
12127           s/.*/./; q'`/stamp-h$_am_stamp_count
12128  ;;
12129
12130   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12131 $as_echo "$as_me: executing $ac_file commands" >&6;}
12132  ;;
12133   esac
12134
12135
12136   case $ac_file$ac_mode in
12137     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12138   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12139   # are listed without --file.  Let's play safe and only enable the eval
12140   # if we detect the quoting.
12141   case $CONFIG_FILES in
12142   *\'*) eval set x "$CONFIG_FILES" ;;
12143   *)   set x $CONFIG_FILES ;;
12144   esac
12145   shift
12146   for mf
12147   do
12148     # Strip MF so we end up with the name of the file.
12149     mf=`echo "$mf" | sed -e 's/:.*$//'`
12150     # Check whether this is an Automake generated Makefile or not.
12151     # We used to match only the files named `Makefile.in', but
12152     # some people rename them; so instead we look at the file content.
12153     # Grep'ing the first line is not enough: some people post-process
12154     # each Makefile.in and add a new line on top of each file to say so.
12155     # Grep'ing the whole file is not good either: AIX grep has a line
12156     # limit of 2048, but all sed's we know have understand at least 4000.
12157     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12158       dirpart=`$as_dirname -- "$mf" ||
12159 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12160          X"$mf" : 'X\(//\)[^/]' \| \
12161          X"$mf" : 'X\(//\)$' \| \
12162          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12163 $as_echo X"$mf" |
12164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12165             s//\1/
12166             q
12167           }
12168           /^X\(\/\/\)[^/].*/{
12169             s//\1/
12170             q
12171           }
12172           /^X\(\/\/\)$/{
12173             s//\1/
12174             q
12175           }
12176           /^X\(\/\).*/{
12177             s//\1/
12178             q
12179           }
12180           s/.*/./; q'`
12181     else
12182       continue
12183     fi
12184     # Extract the definition of DEPDIR, am__include, and am__quote
12185     # from the Makefile without running `make'.
12186     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12187     test -z "$DEPDIR" && continue
12188     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12189     test -z "am__include" && continue
12190     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12191     # When using ansi2knr, U may be empty or an underscore; expand it
12192     U=`sed -n 's/^U = //p' < "$mf"`
12193     # Find all dependency output files, they are included files with
12194     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12195     # simplest approach to changing $(DEPDIR) to its actual value in the
12196     # expansion.
12197     for file in `sed -n "
12198       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12199          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12200       # Make sure the directory exists.
12201       test -f "$dirpart/$file" && continue
12202       fdir=`$as_dirname -- "$file" ||
12203 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12204          X"$file" : 'X\(//\)[^/]' \| \
12205          X"$file" : 'X\(//\)$' \| \
12206          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12207 $as_echo X"$file" |
12208     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12209             s//\1/
12210             q
12211           }
12212           /^X\(\/\/\)[^/].*/{
12213             s//\1/
12214             q
12215           }
12216           /^X\(\/\/\)$/{
12217             s//\1/
12218             q
12219           }
12220           /^X\(\/\).*/{
12221             s//\1/
12222             q
12223           }
12224           s/.*/./; q'`
12225       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12226       # echo "creating $dirpart/$file"
12227       echo '# dummy' > "$dirpart/$file"
12228     done
12229   done
12230 }
12231  ;;
12232
12233   esac
12234 done # for ac_tag
12235
12236
12237 as_fn_exit 0
12238 _ACEOF
12239 ac_clean_files=$ac_clean_files_save
12240
12241 test $ac_write_fail = 0 ||
12242   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12243
12244
12245 # configure is writing to config.log, and then calls config.status.
12246 # config.status does its own redirection, appending to config.log.
12247 # Unfortunately, on DOS this fails, as config.log is still kept open
12248 # by configure, so config.status won't be able to write to it; its
12249 # output is simply discarded.  So we exec the FD to /dev/null,
12250 # effectively closing config.log, so it can be properly (re)opened and
12251 # appended to by config.status.  When coming back to configure, we
12252 # need to make the FD available again.
12253 if test "$no_create" != yes; then
12254   ac_cs_success=:
12255   ac_config_status_args=
12256   test "$silent" = yes &&
12257     ac_config_status_args="$ac_config_status_args --quiet"
12258   exec 5>/dev/null
12259   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12260   exec 5>>config.log
12261   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12262   # would make configure fail if this is the last instruction.
12263   $ac_cs_success || as_fn_exit 1
12264 fi
12265 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12266   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12267 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12268 fi
12269