1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xinput 1.6.4.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinput/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1"
187  if (eval "$as_required") 2>/dev/null
188then :
189  as_have_required=yes
190else $as_nop
191  as_have_required=no
192fi
193  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194then :
195
196else $as_nop
197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198as_found=false
199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200do
201  IFS=$as_save_IFS
202  case $as_dir in #(((
203    '') as_dir=./ ;;
204    */) ;;
205    *) as_dir=$as_dir/ ;;
206  esac
207  as_found=:
208  case $as_dir in #(
209	 /*)
210	   for as_base in sh bash ksh sh5; do
211	     # Try only shells that exist, to save several forks.
212	     as_shell=$as_dir$as_base
213	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215then :
216  CONFIG_SHELL=$as_shell as_have_required=yes
217		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218then :
219  break 2
220fi
221fi
222	   done;;
223       esac
224  as_found=false
225done
226IFS=$as_save_IFS
227if $as_found
228then :
229
230else $as_nop
231  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi
236fi
237
238
239      if test "x$CONFIG_SHELL" != x
240then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno
263then :
264  printf "%s\n" "$0: This script requires a shell more modern than all"
265  printf "%s\n" "$0: the shells that I found on your system."
266  if test ${ZSH_VERSION+y} ; then
267    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269  else
270    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271$0: https://gitlab.freedesktop.org/xorg/app/xinput/issues
272$0: about your system, including any error possibly output
273$0: before this message. Then install a modern shell, or
274$0: manually run the script under such a shell if you do
275$0: have one."
276  fi
277  exit 1
278fi
279fi
280fi
281SHELL=${CONFIG_SHELL-/bin/sh}
282export SHELL
283# Unset more variables known to interfere with behavior of common tools.
284CLICOLOR_FORCE= GREP_OPTIONS=
285unset CLICOLOR_FORCE GREP_OPTIONS
286
287## --------------------- ##
288## M4sh Shell Functions. ##
289## --------------------- ##
290# as_fn_unset VAR
291# ---------------
292# Portably unset VAR.
293as_fn_unset ()
294{
295  { eval $1=; unset $1;}
296}
297as_unset=as_fn_unset
298
299
300# as_fn_set_status STATUS
301# -----------------------
302# Set $? to STATUS, without forking.
303as_fn_set_status ()
304{
305  return $1
306} # as_fn_set_status
307
308# as_fn_exit STATUS
309# -----------------
310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311as_fn_exit ()
312{
313  set +e
314  as_fn_set_status $1
315  exit $1
316} # as_fn_exit
317# as_fn_nop
318# ---------
319# Do nothing but, unlike ":", preserve the value of $?.
320as_fn_nop ()
321{
322  return $?
323}
324as_nop=as_fn_nop
325
326# as_fn_mkdir_p
327# -------------
328# Create "$as_dir" as a directory, including parents if necessary.
329as_fn_mkdir_p ()
330{
331
332  case $as_dir in #(
333  -*) as_dir=./$as_dir;;
334  esac
335  test -d "$as_dir" || eval $as_mkdir_p || {
336    as_dirs=
337    while :; do
338      case $as_dir in #(
339      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340      *) as_qdir=$as_dir;;
341      esac
342      as_dirs="'$as_qdir' $as_dirs"
343      as_dir=`$as_dirname -- "$as_dir" ||
344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345	 X"$as_dir" : 'X\(//\)[^/]' \| \
346	 X"$as_dir" : 'X\(//\)$' \| \
347	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348printf "%s\n" X"$as_dir" |
349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)[^/].*/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\).*/{
362	    s//\1/
363	    q
364	  }
365	  s/.*/./; q'`
366      test -d "$as_dir" && break
367    done
368    test -z "$as_dirs" || eval "mkdir $as_dirs"
369  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372} # as_fn_mkdir_p
373
374# as_fn_executable_p FILE
375# -----------------------
376# Test if FILE is an executable regular file.
377as_fn_executable_p ()
378{
379  test -f "$1" && test -x "$1"
380} # as_fn_executable_p
381# as_fn_append VAR VALUE
382# ----------------------
383# Append the text in VALUE to the end of the definition contained in VAR. Take
384# advantage of any shell optimizations that allow amortized linear growth over
385# repeated appends, instead of the typical quadratic growth present in naive
386# implementations.
387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388then :
389  eval 'as_fn_append ()
390  {
391    eval $1+=\$2
392  }'
393else $as_nop
394  as_fn_append ()
395  {
396    eval $1=\$$1\$2
397  }
398fi # as_fn_append
399
400# as_fn_arith ARG...
401# ------------------
402# Perform arithmetic evaluation on the ARGs, and store the result in the
403# global $as_val. Take advantage of shells that can avoid forks. The arguments
404# must be portable across $(()) and expr.
405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406then :
407  eval 'as_fn_arith ()
408  {
409    as_val=$(( $* ))
410  }'
411else $as_nop
412  as_fn_arith ()
413  {
414    as_val=`expr "$@" || test $? -eq 1`
415  }
416fi # as_fn_arith
417
418# as_fn_nop
419# ---------
420# Do nothing but, unlike ":", preserve the value of $?.
421as_fn_nop ()
422{
423  return $?
424}
425as_nop=as_fn_nop
426
427# as_fn_error STATUS ERROR [LINENO LOG_FD]
428# ----------------------------------------
429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431# script with STATUS, using 1 if that was 0.
432as_fn_error ()
433{
434  as_status=$1; test $as_status -eq 0 && as_status=1
435  if test "$4"; then
436    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438  fi
439  printf "%s\n" "$as_me: error: $2" >&2
440  as_fn_exit $as_status
441} # as_fn_error
442
443if expr a : '\(a\)' >/dev/null 2>&1 &&
444   test "X`expr 00001 : '.*\(...\)'`" = X001; then
445  as_expr=expr
446else
447  as_expr=false
448fi
449
450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451  as_basename=basename
452else
453  as_basename=false
454fi
455
456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457  as_dirname=dirname
458else
459  as_dirname=false
460fi
461
462as_me=`$as_basename -- "$0" ||
463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464	 X"$0" : 'X\(//\)$' \| \
465	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466printf "%s\n" X/"$0" |
467    sed '/^.*\/\([^/][^/]*\)\/*$/{
468	    s//\1/
469	    q
470	  }
471	  /^X\/\(\/\/\)$/{
472	    s//\1/
473	    q
474	  }
475	  /^X\/\(\/\).*/{
476	    s//\1/
477	    q
478	  }
479	  s/.*/./; q'`
480
481# Avoid depending upon Character Ranges.
482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485as_cr_digits='0123456789'
486as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489  as_lineno_1=$LINENO as_lineno_1a=$LINENO
490  as_lineno_2=$LINENO as_lineno_2a=$LINENO
491  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
494  sed -n '
495    p
496    /[$]LINENO/=
497  ' <$as_myself |
498    sed '
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547
548rm -f conf$$ conf$$.exe conf$$.file
549if test -d conf$$.dir; then
550  rm -f conf$$.dir/conf$$.file
551else
552  rm -f conf$$.dir
553  mkdir conf$$.dir 2>/dev/null
554fi
555if (echo >conf$$.file) 2>/dev/null; then
556  if ln -s conf$$.file conf$$ 2>/dev/null; then
557    as_ln_s='ln -s'
558    # ... but there are two gotchas:
559    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561    # In both cases, we have to default to `cp -pR'.
562    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563      as_ln_s='cp -pR'
564  elif ln conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s=ln
566  else
567    as_ln_s='cp -pR'
568  fi
569else
570  as_ln_s='cp -pR'
571fi
572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573rmdir conf$$.dir 2>/dev/null
574
575if mkdir -p . 2>/dev/null; then
576  as_mkdir_p='mkdir -p "$as_dir"'
577else
578  test -d ./-p && rmdir ./-p
579  as_mkdir_p=false
580fi
581
582as_test_x='test -x'
583as_executable_p=as_fn_executable_p
584
585# Sed expression to map a string onto a valid CPP name.
586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588# Sed expression to map a string onto a valid variable name.
589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592test -n "$DJDIR" || exec 7<&0 </dev/null
593exec 6>&1
594
595# Name of the host.
596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597# so uname gets run too.
598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600#
601# Initializations.
602#
603ac_default_prefix=/usr/local
604ac_clean_files=
605ac_config_libobj_dir=.
606LIBOBJS=
607cross_compiling=no
608subdirs=
609MFLAGS=
610MAKEFLAGS=
611
612# Identity of this package.
613PACKAGE_NAME='xinput'
614PACKAGE_TARNAME='xinput'
615PACKAGE_VERSION='1.6.4'
616PACKAGE_STRING='xinput 1.6.4'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xinput/issues'
618PACKAGE_URL=''
619
620ac_unique_file="Makefile.am"
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657XI22_LIBS
658XI22_CFLAGS
659XI21_LIBS
660XI21_CFLAGS
661HAVE_XI2
662HAVE_XI2_FALSE
663HAVE_XI2_TRUE
664XI2_LIBS
665XI2_CFLAGS
666XINPUT_LIBS
667XINPUT_CFLAGS
668MAN_SUBSTS
669XORG_MAN_PAGE
670ADMIN_MAN_DIR
671DRIVER_MAN_DIR
672MISC_MAN_DIR
673FILE_MAN_DIR
674LIB_MAN_DIR
675APP_MAN_DIR
676ADMIN_MAN_SUFFIX
677DRIVER_MAN_SUFFIX
678MISC_MAN_SUFFIX
679FILE_MAN_SUFFIX
680LIB_MAN_SUFFIX
681APP_MAN_SUFFIX
682SED
683host_os
684host_vendor
685host_cpu
686host
687build_os
688build_vendor
689build_cpu
690build
691INSTALL_CMD
692PKG_CONFIG_LIBDIR
693PKG_CONFIG_PATH
694PKG_CONFIG
695CHANGELOG_CMD
696STRICT_CFLAGS
697CWARNFLAGS
698BASE_CFLAGS
699am__fastdepCC_FALSE
700am__fastdepCC_TRUE
701CCDEPMODE
702am__nodep
703AMDEPBACKSLASH
704AMDEP_FALSE
705AMDEP_TRUE
706am__include
707DEPDIR
708OBJEXT
709EXEEXT
710ac_ct_CC
711CPPFLAGS
712LDFLAGS
713CFLAGS
714CC
715AM_BACKSLASH
716AM_DEFAULT_VERBOSITY
717AM_DEFAULT_V
718AM_V
719CSCOPE
720ETAGS
721CTAGS
722am__untar
723am__tar
724AMTAR
725am__leading_dot
726SET_MAKE
727AWK
728mkdir_p
729MKDIR_P
730INSTALL_STRIP_PROGRAM
731STRIP
732install_sh
733MAKEINFO
734AUTOHEADER
735AUTOMAKE
736AUTOCONF
737ACLOCAL
738VERSION
739PACKAGE
740CYGPATH_W
741am__isrc
742INSTALL_DATA
743INSTALL_SCRIPT
744INSTALL_PROGRAM
745target_alias
746host_alias
747build_alias
748LIBS
749ECHO_T
750ECHO_N
751ECHO_C
752DEFS
753mandir
754localedir
755libdir
756psdir
757pdfdir
758dvidir
759htmldir
760infodir
761docdir
762oldincludedir
763includedir
764runstatedir
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
776PACKAGE_URL
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL
784am__quote'
785ac_subst_files=''
786ac_user_opts='
787enable_option_checking
788enable_silent_rules
789enable_dependency_tracking
790enable_selective_werror
791enable_strict_compilation
792'
793      ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799LIBS
800CPPFLAGS
801PKG_CONFIG
802PKG_CONFIG_PATH
803PKG_CONFIG_LIBDIR
804XINPUT_CFLAGS
805XINPUT_LIBS
806XI2_CFLAGS
807XI2_LIBS
808XI21_CFLAGS
809XI21_LIBS
810XI22_CFLAGS
811XI22_LIBS'
812
813
814# Initialize some variables set by options.
815ac_init_help=
816ac_init_version=false
817ac_unrecognized_opts=
818ac_unrecognized_sep=
819# The variables have the same names as the options, with
820# dashes changed to underlines.
821cache_file=/dev/null
822exec_prefix=NONE
823no_create=
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
832verbose=
833x_includes=NONE
834x_libraries=NONE
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
841# (The list follows the same order as the GNU Coding Standards.)
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
850runstatedir='${localstatedir}/run'
851includedir='${prefix}/include'
852oldincludedir='/usr/include'
853docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
862
863ac_prev=
864ac_dashdash=
865for ac_option
866do
867  # If the previous option needs an argument, assign it.
868  if test -n "$ac_prev"; then
869    eval $ac_prev=\$ac_option
870    ac_prev=
871    continue
872  fi
873
874  case $ac_option in
875  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876  *=)   ac_optarg= ;;
877  *)    ac_optarg=yes ;;
878  esac
879
880  case $ac_dashdash$ac_option in
881  --)
882    ac_dashdash=yes ;;
883
884  -bindir | --bindir | --bindi | --bind | --bin | --bi)
885    ac_prev=bindir ;;
886  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887    bindir=$ac_optarg ;;
888
889  -build | --build | --buil | --bui | --bu)
890    ac_prev=build_alias ;;
891  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892    build_alias=$ac_optarg ;;
893
894  -cache-file | --cache-file | --cache-fil | --cache-fi \
895  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896    ac_prev=cache_file ;;
897  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899    cache_file=$ac_optarg ;;
900
901  --config-cache | -C)
902    cache_file=config.cache ;;
903
904  -datadir | --datadir | --datadi | --datad)
905    ac_prev=datadir ;;
906  -datadir=* | --datadir=* | --datadi=* | --datad=*)
907    datadir=$ac_optarg ;;
908
909  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910  | --dataroo | --dataro | --datar)
911    ac_prev=datarootdir ;;
912  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914    datarootdir=$ac_optarg ;;
915
916  -disable-* | --disable-*)
917    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918    # Reject names that are not valid shell variable names.
919    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920      as_fn_error $? "invalid feature name: \`$ac_useropt'"
921    ac_useropt_orig=$ac_useropt
922    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
923    case $ac_user_opts in
924      *"
925"enable_$ac_useropt"
926"*) ;;
927      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928	 ac_unrecognized_sep=', ';;
929    esac
930    eval enable_$ac_useropt=no ;;
931
932  -docdir | --docdir | --docdi | --doc | --do)
933    ac_prev=docdir ;;
934  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935    docdir=$ac_optarg ;;
936
937  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938    ac_prev=dvidir ;;
939  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940    dvidir=$ac_optarg ;;
941
942  -enable-* | --enable-*)
943    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944    # Reject names that are not valid shell variable names.
945    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946      as_fn_error $? "invalid feature name: \`$ac_useropt'"
947    ac_useropt_orig=$ac_useropt
948    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
949    case $ac_user_opts in
950      *"
951"enable_$ac_useropt"
952"*) ;;
953      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954	 ac_unrecognized_sep=', ';;
955    esac
956    eval enable_$ac_useropt=\$ac_optarg ;;
957
958  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960  | --exec | --exe | --ex)
961    ac_prev=exec_prefix ;;
962  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964  | --exec=* | --exe=* | --ex=*)
965    exec_prefix=$ac_optarg ;;
966
967  -gas | --gas | --ga | --g)
968    # Obsolete; use --with-gas.
969    with_gas=yes ;;
970
971  -help | --help | --hel | --he | -h)
972    ac_init_help=long ;;
973  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974    ac_init_help=recursive ;;
975  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976    ac_init_help=short ;;
977
978  -host | --host | --hos | --ho)
979    ac_prev=host_alias ;;
980  -host=* | --host=* | --hos=* | --ho=*)
981    host_alias=$ac_optarg ;;
982
983  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984    ac_prev=htmldir ;;
985  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986  | --ht=*)
987    htmldir=$ac_optarg ;;
988
989  -includedir | --includedir | --includedi | --included | --include \
990  | --includ | --inclu | --incl | --inc)
991    ac_prev=includedir ;;
992  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993  | --includ=* | --inclu=* | --incl=* | --inc=*)
994    includedir=$ac_optarg ;;
995
996  -infodir | --infodir | --infodi | --infod | --info | --inf)
997    ac_prev=infodir ;;
998  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999    infodir=$ac_optarg ;;
1000
1001  -libdir | --libdir | --libdi | --libd)
1002    ac_prev=libdir ;;
1003  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004    libdir=$ac_optarg ;;
1005
1006  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007  | --libexe | --libex | --libe)
1008    ac_prev=libexecdir ;;
1009  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010  | --libexe=* | --libex=* | --libe=*)
1011    libexecdir=$ac_optarg ;;
1012
1013  -localedir | --localedir | --localedi | --localed | --locale)
1014    ac_prev=localedir ;;
1015  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016    localedir=$ac_optarg ;;
1017
1018  -localstatedir | --localstatedir | --localstatedi | --localstated \
1019  | --localstate | --localstat | --localsta | --localst | --locals)
1020    ac_prev=localstatedir ;;
1021  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023    localstatedir=$ac_optarg ;;
1024
1025  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026    ac_prev=mandir ;;
1027  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028    mandir=$ac_optarg ;;
1029
1030  -nfp | --nfp | --nf)
1031    # Obsolete; use --without-fp.
1032    with_fp=no ;;
1033
1034  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035  | --no-cr | --no-c | -n)
1036    no_create=yes ;;
1037
1038  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040    no_recursion=yes ;;
1041
1042  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044  | --oldin | --oldi | --old | --ol | --o)
1045    ac_prev=oldincludedir ;;
1046  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049    oldincludedir=$ac_optarg ;;
1050
1051  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052    ac_prev=prefix ;;
1053  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054    prefix=$ac_optarg ;;
1055
1056  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057  | --program-pre | --program-pr | --program-p)
1058    ac_prev=program_prefix ;;
1059  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061    program_prefix=$ac_optarg ;;
1062
1063  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064  | --program-suf | --program-su | --program-s)
1065    ac_prev=program_suffix ;;
1066  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068    program_suffix=$ac_optarg ;;
1069
1070  -program-transform-name | --program-transform-name \
1071  | --program-transform-nam | --program-transform-na \
1072  | --program-transform-n | --program-transform- \
1073  | --program-transform | --program-transfor \
1074  | --program-transfo | --program-transf \
1075  | --program-trans | --program-tran \
1076  | --progr-tra | --program-tr | --program-t)
1077    ac_prev=program_transform_name ;;
1078  -program-transform-name=* | --program-transform-name=* \
1079  | --program-transform-nam=* | --program-transform-na=* \
1080  | --program-transform-n=* | --program-transform-=* \
1081  | --program-transform=* | --program-transfor=* \
1082  | --program-transfo=* | --program-transf=* \
1083  | --program-trans=* | --program-tran=* \
1084  | --progr-tra=* | --program-tr=* | --program-t=*)
1085    program_transform_name=$ac_optarg ;;
1086
1087  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088    ac_prev=pdfdir ;;
1089  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090    pdfdir=$ac_optarg ;;
1091
1092  -psdir | --psdir | --psdi | --psd | --ps)
1093    ac_prev=psdir ;;
1094  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095    psdir=$ac_optarg ;;
1096
1097  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098  | -silent | --silent | --silen | --sile | --sil)
1099    silent=yes ;;
1100
1101  -runstatedir | --runstatedir | --runstatedi | --runstated \
1102  | --runstate | --runstat | --runsta | --runst | --runs \
1103  | --run | --ru | --r)
1104    ac_prev=runstatedir ;;
1105  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1106  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1107  | --run=* | --ru=* | --r=*)
1108    runstatedir=$ac_optarg ;;
1109
1110  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111    ac_prev=sbindir ;;
1112  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113  | --sbi=* | --sb=*)
1114    sbindir=$ac_optarg ;;
1115
1116  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118  | --sharedst | --shareds | --shared | --share | --shar \
1119  | --sha | --sh)
1120    ac_prev=sharedstatedir ;;
1121  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124  | --sha=* | --sh=*)
1125    sharedstatedir=$ac_optarg ;;
1126
1127  -site | --site | --sit)
1128    ac_prev=site ;;
1129  -site=* | --site=* | --sit=*)
1130    site=$ac_optarg ;;
1131
1132  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133    ac_prev=srcdir ;;
1134  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135    srcdir=$ac_optarg ;;
1136
1137  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138  | --syscon | --sysco | --sysc | --sys | --sy)
1139    ac_prev=sysconfdir ;;
1140  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142    sysconfdir=$ac_optarg ;;
1143
1144  -target | --target | --targe | --targ | --tar | --ta | --t)
1145    ac_prev=target_alias ;;
1146  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147    target_alias=$ac_optarg ;;
1148
1149  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150    verbose=yes ;;
1151
1152  -version | --version | --versio | --versi | --vers | -V)
1153    ac_init_version=: ;;
1154
1155  -with-* | --with-*)
1156    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157    # Reject names that are not valid shell variable names.
1158    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159      as_fn_error $? "invalid package name: \`$ac_useropt'"
1160    ac_useropt_orig=$ac_useropt
1161    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1162    case $ac_user_opts in
1163      *"
1164"with_$ac_useropt"
1165"*) ;;
1166      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167	 ac_unrecognized_sep=', ';;
1168    esac
1169    eval with_$ac_useropt=\$ac_optarg ;;
1170
1171  -without-* | --without-*)
1172    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173    # Reject names that are not valid shell variable names.
1174    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175      as_fn_error $? "invalid package name: \`$ac_useropt'"
1176    ac_useropt_orig=$ac_useropt
1177    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1178    case $ac_user_opts in
1179      *"
1180"with_$ac_useropt"
1181"*) ;;
1182      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183	 ac_unrecognized_sep=', ';;
1184    esac
1185    eval with_$ac_useropt=no ;;
1186
1187  --x)
1188    # Obsolete; use --with-x.
1189    with_x=yes ;;
1190
1191  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192  | --x-incl | --x-inc | --x-in | --x-i)
1193    ac_prev=x_includes ;;
1194  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196    x_includes=$ac_optarg ;;
1197
1198  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200    ac_prev=x_libraries ;;
1201  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203    x_libraries=$ac_optarg ;;
1204
1205  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206Try \`$0 --help' for more information"
1207    ;;
1208
1209  *=*)
1210    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211    # Reject names that are not valid shell variable names.
1212    case $ac_envvar in #(
1213      '' | [0-9]* | *[!_$as_cr_alnum]* )
1214      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215    esac
1216    eval $ac_envvar=\$ac_optarg
1217    export $ac_envvar ;;
1218
1219  *)
1220    # FIXME: should be removed in autoconf 3.0.
1221    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1222    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1224    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225    ;;
1226
1227  esac
1228done
1229
1230if test -n "$ac_prev"; then
1231  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232  as_fn_error $? "missing argument to $ac_option"
1233fi
1234
1235if test -n "$ac_unrecognized_opts"; then
1236  case $enable_option_checking in
1237    no) ;;
1238    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240  esac
1241fi
1242
1243# Check all directory arguments for consistency.
1244for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245		datadir sysconfdir sharedstatedir localstatedir includedir \
1246		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247		libdir localedir mandir runstatedir
1248do
1249  eval ac_val=\$$ac_var
1250  # Remove trailing slashes.
1251  case $ac_val in
1252    */ )
1253      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254      eval $ac_var=\$ac_val;;
1255  esac
1256  # Be sure to have absolute directory names.
1257  case $ac_val in
1258    [\\/$]* | ?:[\\/]* )  continue;;
1259    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260  esac
1261  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262done
1263
1264# There might be people who depend on the old broken behavior: `$host'
1265# used to hold the argument of --host etc.
1266# FIXME: To remove some day.
1267build=$build_alias
1268host=$host_alias
1269target=$target_alias
1270
1271# FIXME: To remove some day.
1272if test "x$host_alias" != x; then
1273  if test "x$build_alias" = x; then
1274    cross_compiling=maybe
1275  elif test "x$build_alias" != "x$host_alias"; then
1276    cross_compiling=yes
1277  fi
1278fi
1279
1280ac_tool_prefix=
1281test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283test "$silent" = yes && exec 6>/dev/null
1284
1285
1286ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287ac_ls_di=`ls -di .` &&
1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289  as_fn_error $? "working directory cannot be determined"
1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291  as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294# Find the source files, if location was not specified.
1295if test -z "$srcdir"; then
1296  ac_srcdir_defaulted=yes
1297  # Try the directory containing this script, then the parent directory.
1298  ac_confdir=`$as_dirname -- "$as_myself" ||
1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300	 X"$as_myself" : 'X\(//\)[^/]' \| \
1301	 X"$as_myself" : 'X\(//\)$' \| \
1302	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303printf "%s\n" X"$as_myself" |
1304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)[^/].*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\/\)$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\).*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  s/.*/./; q'`
1321  srcdir=$ac_confdir
1322  if test ! -r "$srcdir/$ac_unique_file"; then
1323    srcdir=..
1324  fi
1325else
1326  ac_srcdir_defaulted=no
1327fi
1328if test ! -r "$srcdir/$ac_unique_file"; then
1329  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331fi
1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333ac_abs_confdir=`(
1334	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335	pwd)`
1336# When building in place, set srcdir=.
1337if test "$ac_abs_confdir" = "$ac_pwd"; then
1338  srcdir=.
1339fi
1340# Remove unnecessary trailing slashes from srcdir.
1341# Double slashes in file names in object file debugging info
1342# mess up M-x gdb in Emacs.
1343case $srcdir in
1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345esac
1346for ac_var in $ac_precious_vars; do
1347  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_env_${ac_var}_value=\$${ac_var}
1349  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357  # Omit some internal or obsolete options to make the list less imposing.
1358  # This message is too long to be a string in the A/UX 3.1 sh.
1359  cat <<_ACEOF
1360\`configure' configures xinput 1.6.4 to adapt to many kinds of systems.
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370  -h, --help              display this help and exit
1371      --help=short        display options specific to this package
1372      --help=recursive    display the short help of all the included packages
1373  -V, --version           display version information and exit
1374  -q, --quiet, --silent   do not print \`checking ...' messages
1375      --cache-file=FILE   cache test results in FILE [disabled]
1376  -C, --config-cache      alias for \`--cache-file=config.cache'
1377  -n, --no-create         do not create output files
1378      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380Installation directories:
1381  --prefix=PREFIX         install architecture-independent files in PREFIX
1382                          [$ac_default_prefix]
1383  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                          [PREFIX]
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
1394  --bindir=DIR            user executables [EPREFIX/bin]
1395  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396  --libexecdir=DIR        program executables [EPREFIX/libexec]
1397  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1401  --libdir=DIR            object code libraries [EPREFIX/lib]
1402  --includedir=DIR        C header files [PREFIX/include]
1403  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1404  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1405  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1406  --infodir=DIR           info documentation [DATAROOTDIR/info]
1407  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1408  --mandir=DIR            man documentation [DATAROOTDIR/man]
1409  --docdir=DIR            documentation root [DATAROOTDIR/doc/xinput]
1410  --htmldir=DIR           html documentation [DOCDIR]
1411  --dvidir=DIR            dvi documentation [DOCDIR]
1412  --pdfdir=DIR            pdf documentation [DOCDIR]
1413  --psdir=DIR             ps documentation [DOCDIR]
1414_ACEOF
1415
1416  cat <<\_ACEOF
1417
1418Program names:
1419  --program-prefix=PREFIX            prepend PREFIX to installed program names
1420  --program-suffix=SUFFIX            append SUFFIX to installed program names
1421  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1422
1423System types:
1424  --build=BUILD     configure for building on BUILD [guessed]
1425  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1426_ACEOF
1427fi
1428
1429if test -n "$ac_init_help"; then
1430  case $ac_init_help in
1431     short | recursive ) echo "Configuration of xinput 1.6.4:";;
1432   esac
1433  cat <<\_ACEOF
1434
1435Optional Features:
1436  --disable-option-checking  ignore unrecognized --enable/--with options
1437  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1438  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1439  --enable-silent-rules   less verbose build output (undo: "make V=1")
1440  --disable-silent-rules  verbose build output (undo: "make V=0")
1441  --enable-dependency-tracking
1442                          do not reject slow dependency extractors
1443  --disable-dependency-tracking
1444                          speeds up one-time build
1445  --disable-selective-werror
1446                          Turn off selective compiler errors. (default:
1447                          enabled)
1448  --enable-strict-compilation
1449                          Enable all warnings from compiler and make them
1450                          errors (default: disabled)
1451
1452Some influential environment variables:
1453  CC          C compiler command
1454  CFLAGS      C compiler flags
1455  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1456              nonstandard directory <lib dir>
1457  LIBS        libraries to pass to the linker, e.g. -l<library>
1458  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459              you have headers in a nonstandard directory <include dir>
1460  PKG_CONFIG  path to pkg-config utility
1461  PKG_CONFIG_PATH
1462              directories to add to pkg-config's search path
1463  PKG_CONFIG_LIBDIR
1464              path overriding pkg-config's built-in search path
1465  XINPUT_CFLAGS
1466              C compiler flags for XINPUT, overriding pkg-config
1467  XINPUT_LIBS linker flags for XINPUT, overriding pkg-config
1468  XI2_CFLAGS  C compiler flags for XI2, overriding pkg-config
1469  XI2_LIBS    linker flags for XI2, overriding pkg-config
1470  XI21_CFLAGS C compiler flags for XI21, overriding pkg-config
1471  XI21_LIBS   linker flags for XI21, overriding pkg-config
1472  XI22_CFLAGS C compiler flags for XI22, overriding pkg-config
1473  XI22_LIBS   linker flags for XI22, overriding pkg-config
1474
1475Use these variables to override the choices made by `configure' or to help
1476it to find libraries and programs with nonstandard names/locations.
1477
1478Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinput/issues>.
1479_ACEOF
1480ac_status=$?
1481fi
1482
1483if test "$ac_init_help" = "recursive"; then
1484  # If there are subdirs, report their specific --help.
1485  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486    test -d "$ac_dir" ||
1487      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488      continue
1489    ac_builddir=.
1490
1491case "$ac_dir" in
1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493*)
1494  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1495  # A ".." for each directory in $ac_dir_suffix.
1496  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497  case $ac_top_builddir_sub in
1498  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500  esac ;;
1501esac
1502ac_abs_top_builddir=$ac_pwd
1503ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504# for backward compatibility:
1505ac_top_builddir=$ac_top_build_prefix
1506
1507case $srcdir in
1508  .)  # We are building in place.
1509    ac_srcdir=.
1510    ac_top_srcdir=$ac_top_builddir_sub
1511    ac_abs_top_srcdir=$ac_pwd ;;
1512  [\\/]* | ?:[\\/]* )  # Absolute name.
1513    ac_srcdir=$srcdir$ac_dir_suffix;
1514    ac_top_srcdir=$srcdir
1515    ac_abs_top_srcdir=$srcdir ;;
1516  *) # Relative name.
1517    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518    ac_top_srcdir=$ac_top_build_prefix$srcdir
1519    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520esac
1521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523    cd "$ac_dir" || { ac_status=$?; continue; }
1524    # Check for configure.gnu first; this name is used for a wrapper for
1525    # Metaconfig's "Configure" on case-insensitive file systems.
1526    if test -f "$ac_srcdir/configure.gnu"; then
1527      echo &&
1528      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529    elif test -f "$ac_srcdir/configure"; then
1530      echo &&
1531      $SHELL "$ac_srcdir/configure" --help=recursive
1532    else
1533      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534    fi || ac_status=$?
1535    cd "$ac_pwd" || { ac_status=$?; break; }
1536  done
1537fi
1538
1539test -n "$ac_init_help" && exit $ac_status
1540if $ac_init_version; then
1541  cat <<\_ACEOF
1542xinput configure 1.6.4
1543generated by GNU Autoconf 2.71
1544
1545Copyright (C) 2021 Free Software Foundation, Inc.
1546This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it.
1548_ACEOF
1549  exit
1550fi
1551
1552## ------------------------ ##
1553## Autoconf initialization. ##
1554## ------------------------ ##
1555
1556# ac_fn_c_try_compile LINENO
1557# --------------------------
1558# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_compile ()
1560{
1561  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562  rm -f conftest.$ac_objext conftest.beam
1563  if { { ac_try="$ac_compile"
1564case "(($ac_try" in
1565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566  *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569printf "%s\n" "$ac_try_echo"; } >&5
1570  (eval "$ac_compile") 2>conftest.err
1571  ac_status=$?
1572  if test -s conftest.err; then
1573    grep -v '^ *+' conftest.err >conftest.er1
1574    cat conftest.er1 >&5
1575    mv -f conftest.er1 conftest.err
1576  fi
1577  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578  test $ac_status = 0; } && {
1579	 test -z "$ac_c_werror_flag" ||
1580	 test ! -s conftest.err
1581       } && test -s conftest.$ac_objext
1582then :
1583  ac_retval=0
1584else $as_nop
1585  printf "%s\n" "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
1587
1588	ac_retval=1
1589fi
1590  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591  as_fn_set_status $ac_retval
1592
1593} # ac_fn_c_try_compile
1594
1595# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1596# ------------------------------------------------------------------
1597# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1598# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1599ac_fn_check_decl ()
1600{
1601  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602  as_decl_name=`echo $2|sed 's/ *(.*//'`
1603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1604printf %s "checking whether $as_decl_name is declared... " >&6; }
1605if eval test \${$3+y}
1606then :
1607  printf %s "(cached) " >&6
1608else $as_nop
1609  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1610  eval ac_save_FLAGS=\$$6
1611  as_fn_append $6 " $5"
1612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613/* end confdefs.h.  */
1614$4
1615int
1616main (void)
1617{
1618#ifndef $as_decl_name
1619#ifdef __cplusplus
1620  (void) $as_decl_use;
1621#else
1622  (void) $as_decl_name;
1623#endif
1624#endif
1625
1626  ;
1627  return 0;
1628}
1629_ACEOF
1630if ac_fn_c_try_compile "$LINENO"
1631then :
1632  eval "$3=yes"
1633else $as_nop
1634  eval "$3=no"
1635fi
1636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1637  eval $6=\$ac_save_FLAGS
1638
1639fi
1640eval ac_res=\$$3
1641	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642printf "%s\n" "$ac_res" >&6; }
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644
1645} # ac_fn_check_decl
1646
1647# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648# -------------------------------------------------------
1649# Tests whether HEADER exists and can be compiled using the include files in
1650# INCLUDES, setting the cache variable VAR accordingly.
1651ac_fn_c_check_header_compile ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655printf %s "checking for $2... " >&6; }
1656if eval test \${$3+y}
1657then :
1658  printf %s "(cached) " >&6
1659else $as_nop
1660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661/* end confdefs.h.  */
1662$4
1663#include <$2>
1664_ACEOF
1665if ac_fn_c_try_compile "$LINENO"
1666then :
1667  eval "$3=yes"
1668else $as_nop
1669  eval "$3=no"
1670fi
1671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1672fi
1673eval ac_res=\$$3
1674	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675printf "%s\n" "$ac_res" >&6; }
1676  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678} # ac_fn_c_check_header_compile
1679
1680# ac_fn_c_try_link LINENO
1681# -----------------------
1682# Try to link conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_c_try_link ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1687  if { { ac_try="$ac_link"
1688case "(($ac_try" in
1689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690  *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693printf "%s\n" "$ac_try_echo"; } >&5
1694  (eval "$ac_link") 2>conftest.err
1695  ac_status=$?
1696  if test -s conftest.err; then
1697    grep -v '^ *+' conftest.err >conftest.er1
1698    cat conftest.er1 >&5
1699    mv -f conftest.er1 conftest.err
1700  fi
1701  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; } && {
1703	 test -z "$ac_c_werror_flag" ||
1704	 test ! -s conftest.err
1705       } && test -s conftest$ac_exeext && {
1706	 test "$cross_compiling" = yes ||
1707	 test -x conftest$ac_exeext
1708       }
1709then :
1710  ac_retval=0
1711else $as_nop
1712  printf "%s\n" "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715	ac_retval=1
1716fi
1717  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719  # interfere with the next link command; also delete a directory that is
1720  # left behind by Apple's compiler.  We do this before executing the actions.
1721  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723  as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_link
1726ac_configure_args_raw=
1727for ac_arg
1728do
1729  case $ac_arg in
1730  *\'*)
1731    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1732  esac
1733  as_fn_append ac_configure_args_raw " '$ac_arg'"
1734done
1735
1736case $ac_configure_args_raw in
1737  *$as_nl*)
1738    ac_safe_unquote= ;;
1739  *)
1740    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1741    ac_unsafe_a="$ac_unsafe_z#~"
1742    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1743    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1744esac
1745
1746cat >config.log <<_ACEOF
1747This file contains any messages produced by compilers while
1748running configure, to aid debugging if configure makes a mistake.
1749
1750It was created by xinput $as_me 1.6.4, which was
1751generated by GNU Autoconf 2.71.  Invocation command line was
1752
1753  $ $0$ac_configure_args_raw
1754
1755_ACEOF
1756exec 5>>config.log
1757{
1758cat <<_ASUNAME
1759## --------- ##
1760## Platform. ##
1761## --------- ##
1762
1763hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1764uname -m = `(uname -m) 2>/dev/null || echo unknown`
1765uname -r = `(uname -r) 2>/dev/null || echo unknown`
1766uname -s = `(uname -s) 2>/dev/null || echo unknown`
1767uname -v = `(uname -v) 2>/dev/null || echo unknown`
1768
1769/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1770/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1771
1772/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1773/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1774/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1775/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1776/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1777/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1778/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1779
1780_ASUNAME
1781
1782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783for as_dir in $PATH
1784do
1785  IFS=$as_save_IFS
1786  case $as_dir in #(((
1787    '') as_dir=./ ;;
1788    */) ;;
1789    *) as_dir=$as_dir/ ;;
1790  esac
1791    printf "%s\n" "PATH: $as_dir"
1792  done
1793IFS=$as_save_IFS
1794
1795} >&5
1796
1797cat >&5 <<_ACEOF
1798
1799
1800## ----------- ##
1801## Core tests. ##
1802## ----------- ##
1803
1804_ACEOF
1805
1806
1807# Keep a trace of the command line.
1808# Strip out --no-create and --no-recursion so they do not pile up.
1809# Strip out --silent because we don't want to record it for future runs.
1810# Also quote any args containing shell meta-characters.
1811# Make two passes to allow for proper duplicate-argument suppression.
1812ac_configure_args=
1813ac_configure_args0=
1814ac_configure_args1=
1815ac_must_keep_next=false
1816for ac_pass in 1 2
1817do
1818  for ac_arg
1819  do
1820    case $ac_arg in
1821    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1822    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1823    | -silent | --silent | --silen | --sile | --sil)
1824      continue ;;
1825    *\'*)
1826      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1827    esac
1828    case $ac_pass in
1829    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1830    2)
1831      as_fn_append ac_configure_args1 " '$ac_arg'"
1832      if test $ac_must_keep_next = true; then
1833	ac_must_keep_next=false # Got value, back to normal.
1834      else
1835	case $ac_arg in
1836	  *=* | --config-cache | -C | -disable-* | --disable-* \
1837	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1838	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1839	  | -with-* | --with-* | -without-* | --without-* | --x)
1840	    case "$ac_configure_args0 " in
1841	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1842	    esac
1843	    ;;
1844	  -* ) ac_must_keep_next=true ;;
1845	esac
1846      fi
1847      as_fn_append ac_configure_args " '$ac_arg'"
1848      ;;
1849    esac
1850  done
1851done
1852{ ac_configure_args0=; unset ac_configure_args0;}
1853{ ac_configure_args1=; unset ac_configure_args1;}
1854
1855# When interrupted or exit'd, cleanup temporary files, and complete
1856# config.log.  We remove comments because anyway the quotes in there
1857# would cause problems or look ugly.
1858# WARNING: Use '\'' to represent an apostrophe within the trap.
1859# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1860trap 'exit_status=$?
1861  # Sanitize IFS.
1862  IFS=" ""	$as_nl"
1863  # Save into config.log some information that might help in debugging.
1864  {
1865    echo
1866
1867    printf "%s\n" "## ---------------- ##
1868## Cache variables. ##
1869## ---------------- ##"
1870    echo
1871    # The following way of writing the cache mishandles newlines in values,
1872(
1873  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1874    eval ac_val=\$$ac_var
1875    case $ac_val in #(
1876    *${as_nl}*)
1877      case $ac_var in #(
1878      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1879printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1880      esac
1881      case $ac_var in #(
1882      _ | IFS | as_nl) ;; #(
1883      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1884      *) { eval $ac_var=; unset $ac_var;} ;;
1885      esac ;;
1886    esac
1887  done
1888  (set) 2>&1 |
1889    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1890    *${as_nl}ac_space=\ *)
1891      sed -n \
1892	"s/'\''/'\''\\\\'\'''\''/g;
1893	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1894      ;; #(
1895    *)
1896      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1897      ;;
1898    esac |
1899    sort
1900)
1901    echo
1902
1903    printf "%s\n" "## ----------------- ##
1904## Output variables. ##
1905## ----------------- ##"
1906    echo
1907    for ac_var in $ac_subst_vars
1908    do
1909      eval ac_val=\$$ac_var
1910      case $ac_val in
1911      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912      esac
1913      printf "%s\n" "$ac_var='\''$ac_val'\''"
1914    done | sort
1915    echo
1916
1917    if test -n "$ac_subst_files"; then
1918      printf "%s\n" "## ------------------- ##
1919## File substitutions. ##
1920## ------------------- ##"
1921      echo
1922      for ac_var in $ac_subst_files
1923      do
1924	eval ac_val=\$$ac_var
1925	case $ac_val in
1926	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1927	esac
1928	printf "%s\n" "$ac_var='\''$ac_val'\''"
1929      done | sort
1930      echo
1931    fi
1932
1933    if test -s confdefs.h; then
1934      printf "%s\n" "## ----------- ##
1935## confdefs.h. ##
1936## ----------- ##"
1937      echo
1938      cat confdefs.h
1939      echo
1940    fi
1941    test "$ac_signal" != 0 &&
1942      printf "%s\n" "$as_me: caught signal $ac_signal"
1943    printf "%s\n" "$as_me: exit $exit_status"
1944  } >&5
1945  rm -f core *.core core.conftest.* &&
1946    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1947    exit $exit_status
1948' 0
1949for ac_signal in 1 2 13 15; do
1950  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1951done
1952ac_signal=0
1953
1954# confdefs.h avoids OS command line length limits that DEFS can exceed.
1955rm -f -r conftest* confdefs.h
1956
1957printf "%s\n" "/* confdefs.h */" > confdefs.h
1958
1959# Predefined preprocessor variables.
1960
1961printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1962
1963printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1964
1965printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1966
1967printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1968
1969printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1970
1971printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1972
1973
1974# Let the site file select an alternate cache file if it wants to.
1975# Prefer an explicitly selected file to automatically selected ones.
1976if test -n "$CONFIG_SITE"; then
1977  ac_site_files="$CONFIG_SITE"
1978elif test "x$prefix" != xNONE; then
1979  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1980else
1981  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1982fi
1983
1984for ac_site_file in $ac_site_files
1985do
1986  case $ac_site_file in #(
1987  */*) :
1988     ;; #(
1989  *) :
1990    ac_site_file=./$ac_site_file ;;
1991esac
1992  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1993    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1994printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1995    sed 's/^/| /' "$ac_site_file" >&5
1996    . "$ac_site_file" \
1997      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1998printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1999as_fn_error $? "failed to load site script $ac_site_file
2000See \`config.log' for more details" "$LINENO" 5; }
2001  fi
2002done
2003
2004if test -r "$cache_file"; then
2005  # Some versions of bash will fail to source /dev/null (special files
2006  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2007  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2008    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2009printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2010    case $cache_file in
2011      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2012      *)                      . "./$cache_file";;
2013    esac
2014  fi
2015else
2016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2017printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2018  >$cache_file
2019fi
2020
2021# Test code for whether the C compiler supports C89 (global declarations)
2022ac_c_conftest_c89_globals='
2023/* Does the compiler advertise C89 conformance?
2024   Do not test the value of __STDC__, because some compilers set it to 0
2025   while being otherwise adequately conformant. */
2026#if !defined __STDC__
2027# error "Compiler does not advertise C89 conformance"
2028#endif
2029
2030#include <stddef.h>
2031#include <stdarg.h>
2032struct stat;
2033/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2034struct buf { int x; };
2035struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2036static char *e (p, i)
2037     char **p;
2038     int i;
2039{
2040  return p[i];
2041}
2042static char *f (char * (*g) (char **, int), char **p, ...)
2043{
2044  char *s;
2045  va_list v;
2046  va_start (v,p);
2047  s = g (p, va_arg (v,int));
2048  va_end (v);
2049  return s;
2050}
2051
2052/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2053   function prototypes and stuff, but not \xHH hex character constants.
2054   These do not provoke an error unfortunately, instead are silently treated
2055   as an "x".  The following induces an error, until -std is added to get
2056   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2057   array size at least.  It is necessary to write \x00 == 0 to get something
2058   that is true only with -std.  */
2059int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2060
2061/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2062   inside strings and character constants.  */
2063#define FOO(x) '\''x'\''
2064int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2065
2066int test (int i, double x);
2067struct s1 {int (*f) (int a);};
2068struct s2 {int (*f) (double a);};
2069int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2070               int, int);'
2071
2072# Test code for whether the C compiler supports C89 (body of main).
2073ac_c_conftest_c89_main='
2074ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2075'
2076
2077# Test code for whether the C compiler supports C99 (global declarations)
2078ac_c_conftest_c99_globals='
2079// Does the compiler advertise C99 conformance?
2080#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2081# error "Compiler does not advertise C99 conformance"
2082#endif
2083
2084#include <stdbool.h>
2085extern int puts (const char *);
2086extern int printf (const char *, ...);
2087extern int dprintf (int, const char *, ...);
2088extern void *malloc (size_t);
2089
2090// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2091// dprintf is used instead of fprintf to avoid needing to declare
2092// FILE and stderr.
2093#define debug(...) dprintf (2, __VA_ARGS__)
2094#define showlist(...) puts (#__VA_ARGS__)
2095#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2096static void
2097test_varargs_macros (void)
2098{
2099  int x = 1234;
2100  int y = 5678;
2101  debug ("Flag");
2102  debug ("X = %d\n", x);
2103  showlist (The first, second, and third items.);
2104  report (x>y, "x is %d but y is %d", x, y);
2105}
2106
2107// Check long long types.
2108#define BIG64 18446744073709551615ull
2109#define BIG32 4294967295ul
2110#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2111#if !BIG_OK
2112  #error "your preprocessor is broken"
2113#endif
2114#if BIG_OK
2115#else
2116  #error "your preprocessor is broken"
2117#endif
2118static long long int bignum = -9223372036854775807LL;
2119static unsigned long long int ubignum = BIG64;
2120
2121struct incomplete_array
2122{
2123  int datasize;
2124  double data[];
2125};
2126
2127struct named_init {
2128  int number;
2129  const wchar_t *name;
2130  double average;
2131};
2132
2133typedef const char *ccp;
2134
2135static inline int
2136test_restrict (ccp restrict text)
2137{
2138  // See if C++-style comments work.
2139  // Iterate through items via the restricted pointer.
2140  // Also check for declarations in for loops.
2141  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2142    continue;
2143  return 0;
2144}
2145
2146// Check varargs and va_copy.
2147static bool
2148test_varargs (const char *format, ...)
2149{
2150  va_list args;
2151  va_start (args, format);
2152  va_list args_copy;
2153  va_copy (args_copy, args);
2154
2155  const char *str = "";
2156  int number = 0;
2157  float fnumber = 0;
2158
2159  while (*format)
2160    {
2161      switch (*format++)
2162	{
2163	case '\''s'\'': // string
2164	  str = va_arg (args_copy, const char *);
2165	  break;
2166	case '\''d'\'': // int
2167	  number = va_arg (args_copy, int);
2168	  break;
2169	case '\''f'\'': // float
2170	  fnumber = va_arg (args_copy, double);
2171	  break;
2172	default:
2173	  break;
2174	}
2175    }
2176  va_end (args_copy);
2177  va_end (args);
2178
2179  return *str && number && fnumber;
2180}
2181'
2182
2183# Test code for whether the C compiler supports C99 (body of main).
2184ac_c_conftest_c99_main='
2185  // Check bool.
2186  _Bool success = false;
2187  success |= (argc != 0);
2188
2189  // Check restrict.
2190  if (test_restrict ("String literal") == 0)
2191    success = true;
2192  char *restrict newvar = "Another string";
2193
2194  // Check varargs.
2195  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2196  test_varargs_macros ();
2197
2198  // Check flexible array members.
2199  struct incomplete_array *ia =
2200    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2201  ia->datasize = 10;
2202  for (int i = 0; i < ia->datasize; ++i)
2203    ia->data[i] = i * 1.234;
2204
2205  // Check named initializers.
2206  struct named_init ni = {
2207    .number = 34,
2208    .name = L"Test wide string",
2209    .average = 543.34343,
2210  };
2211
2212  ni.number = 58;
2213
2214  int dynamic_array[ni.number];
2215  dynamic_array[0] = argv[0][0];
2216  dynamic_array[ni.number - 1] = 543;
2217
2218  // work around unused variable warnings
2219  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2220	 || dynamic_array[ni.number - 1] != 543);
2221'
2222
2223# Test code for whether the C compiler supports C11 (global declarations)
2224ac_c_conftest_c11_globals='
2225// Does the compiler advertise C11 conformance?
2226#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2227# error "Compiler does not advertise C11 conformance"
2228#endif
2229
2230// Check _Alignas.
2231char _Alignas (double) aligned_as_double;
2232char _Alignas (0) no_special_alignment;
2233extern char aligned_as_int;
2234char _Alignas (0) _Alignas (int) aligned_as_int;
2235
2236// Check _Alignof.
2237enum
2238{
2239  int_alignment = _Alignof (int),
2240  int_array_alignment = _Alignof (int[100]),
2241  char_alignment = _Alignof (char)
2242};
2243_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2244
2245// Check _Noreturn.
2246int _Noreturn does_not_return (void) { for (;;) continue; }
2247
2248// Check _Static_assert.
2249struct test_static_assert
2250{
2251  int x;
2252  _Static_assert (sizeof (int) <= sizeof (long int),
2253                  "_Static_assert does not work in struct");
2254  long int y;
2255};
2256
2257// Check UTF-8 literals.
2258#define u8 syntax error!
2259char const utf8_literal[] = u8"happens to be ASCII" "another string";
2260
2261// Check duplicate typedefs.
2262typedef long *long_ptr;
2263typedef long int *long_ptr;
2264typedef long_ptr long_ptr;
2265
2266// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2267struct anonymous
2268{
2269  union {
2270    struct { int i; int j; };
2271    struct { int k; long int l; } w;
2272  };
2273  int m;
2274} v1;
2275'
2276
2277# Test code for whether the C compiler supports C11 (body of main).
2278ac_c_conftest_c11_main='
2279  _Static_assert ((offsetof (struct anonymous, i)
2280		   == offsetof (struct anonymous, w.k)),
2281		  "Anonymous union alignment botch");
2282  v1.i = 2;
2283  v1.w.k = 5;
2284  ok |= v1.i != 5;
2285'
2286
2287# Test code for whether the C compiler supports C11 (complete).
2288ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2289${ac_c_conftest_c99_globals}
2290${ac_c_conftest_c11_globals}
2291
2292int
2293main (int argc, char **argv)
2294{
2295  int ok = 0;
2296  ${ac_c_conftest_c89_main}
2297  ${ac_c_conftest_c99_main}
2298  ${ac_c_conftest_c11_main}
2299  return ok;
2300}
2301"
2302
2303# Test code for whether the C compiler supports C99 (complete).
2304ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2305${ac_c_conftest_c99_globals}
2306
2307int
2308main (int argc, char **argv)
2309{
2310  int ok = 0;
2311  ${ac_c_conftest_c89_main}
2312  ${ac_c_conftest_c99_main}
2313  return ok;
2314}
2315"
2316
2317# Test code for whether the C compiler supports C89 (complete).
2318ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2319
2320int
2321main (int argc, char **argv)
2322{
2323  int ok = 0;
2324  ${ac_c_conftest_c89_main}
2325  return ok;
2326}
2327"
2328
2329as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2330as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2331as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2332as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2333as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2334as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2335as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2336as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2337as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2338
2339# Auxiliary files required by this configure script.
2340ac_aux_files="config.guess config.sub compile missing install-sh"
2341
2342# Locations in which to look for auxiliary files.
2343ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2344
2345# Search for a directory containing all of the required auxiliary files,
2346# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2347# If we don't find one directory that contains all the files we need,
2348# we report the set of missing files from the *first* directory in
2349# $ac_aux_dir_candidates and give up.
2350ac_missing_aux_files=""
2351ac_first_candidate=:
2352printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354as_found=false
2355for as_dir in $ac_aux_dir_candidates
2356do
2357  IFS=$as_save_IFS
2358  case $as_dir in #(((
2359    '') as_dir=./ ;;
2360    */) ;;
2361    *) as_dir=$as_dir/ ;;
2362  esac
2363  as_found=:
2364
2365  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2366  ac_aux_dir_found=yes
2367  ac_install_sh=
2368  for ac_aux in $ac_aux_files
2369  do
2370    # As a special case, if "install-sh" is required, that requirement
2371    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2372    # and $ac_install_sh is set appropriately for whichever one is found.
2373    if test x"$ac_aux" = x"install-sh"
2374    then
2375      if test -f "${as_dir}install-sh"; then
2376        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2377        ac_install_sh="${as_dir}install-sh -c"
2378      elif test -f "${as_dir}install.sh"; then
2379        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2380        ac_install_sh="${as_dir}install.sh -c"
2381      elif test -f "${as_dir}shtool"; then
2382        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2383        ac_install_sh="${as_dir}shtool install -c"
2384      else
2385        ac_aux_dir_found=no
2386        if $ac_first_candidate; then
2387          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2388        else
2389          break
2390        fi
2391      fi
2392    else
2393      if test -f "${as_dir}${ac_aux}"; then
2394        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2395      else
2396        ac_aux_dir_found=no
2397        if $ac_first_candidate; then
2398          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2399        else
2400          break
2401        fi
2402      fi
2403    fi
2404  done
2405  if test "$ac_aux_dir_found" = yes; then
2406    ac_aux_dir="$as_dir"
2407    break
2408  fi
2409  ac_first_candidate=false
2410
2411  as_found=false
2412done
2413IFS=$as_save_IFS
2414if $as_found
2415then :
2416
2417else $as_nop
2418  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2419fi
2420
2421
2422# These three variables are undocumented and unsupported,
2423# and are intended to be withdrawn in a future Autoconf release.
2424# They can cause serious problems if a builder's source tree is in a directory
2425# whose full name contains unusual characters.
2426if test -f "${ac_aux_dir}config.guess"; then
2427  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2428fi
2429if test -f "${ac_aux_dir}config.sub"; then
2430  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2431fi
2432if test -f "$ac_aux_dir/configure"; then
2433  ac_configure="$SHELL ${ac_aux_dir}configure"
2434fi
2435
2436# Check that the precious variables saved in the cache have kept the same
2437# value.
2438ac_cache_corrupted=false
2439for ac_var in $ac_precious_vars; do
2440  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2441  eval ac_new_set=\$ac_env_${ac_var}_set
2442  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2443  eval ac_new_val=\$ac_env_${ac_var}_value
2444  case $ac_old_set,$ac_new_set in
2445    set,)
2446      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2447printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2448      ac_cache_corrupted=: ;;
2449    ,set)
2450      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2451printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2452      ac_cache_corrupted=: ;;
2453    ,);;
2454    *)
2455      if test "x$ac_old_val" != "x$ac_new_val"; then
2456	# differences in whitespace do not lead to failure.
2457	ac_old_val_w=`echo x $ac_old_val`
2458	ac_new_val_w=`echo x $ac_new_val`
2459	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2460	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2461printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2462	  ac_cache_corrupted=:
2463	else
2464	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2465printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2466	  eval $ac_var=\$ac_old_val
2467	fi
2468	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2469printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2471printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2472      fi;;
2473  esac
2474  # Pass precious variables to config.status.
2475  if test "$ac_new_set" = set; then
2476    case $ac_new_val in
2477    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2478    *) ac_arg=$ac_var=$ac_new_val ;;
2479    esac
2480    case " $ac_configure_args " in
2481      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2482      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2483    esac
2484  fi
2485done
2486if $ac_cache_corrupted; then
2487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2488printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2490printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2491  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2492	    and start over" "$LINENO" 5
2493fi
2494## -------------------- ##
2495## Main body of script. ##
2496## -------------------- ##
2497
2498ac_ext=c
2499ac_cpp='$CPP $CPPFLAGS'
2500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502ac_compiler_gnu=$ac_cv_c_compiler_gnu
2503
2504
2505
2506ac_config_headers="$ac_config_headers config.h"
2507
2508
2509# Initialize Automake
2510am__api_version='1.16'
2511
2512
2513
2514  # Find a good install program.  We prefer a C program (faster),
2515# so one script is as good as another.  But avoid the broken or
2516# incompatible versions:
2517# SysV /etc/install, /usr/sbin/install
2518# SunOS /usr/etc/install
2519# IRIX /sbin/install
2520# AIX /bin/install
2521# AmigaOS /C/install, which installs bootblocks on floppy discs
2522# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2523# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2524# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2525# OS/2's system install, which has a completely different semantic
2526# ./install, which can be erroneously created by make from ./install.sh.
2527# Reject install programs that cannot install multiple files.
2528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2529printf %s "checking for a BSD-compatible install... " >&6; }
2530if test -z "$INSTALL"; then
2531if test ${ac_cv_path_install+y}
2532then :
2533  printf %s "(cached) " >&6
2534else $as_nop
2535  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538  IFS=$as_save_IFS
2539  case $as_dir in #(((
2540    '') as_dir=./ ;;
2541    */) ;;
2542    *) as_dir=$as_dir/ ;;
2543  esac
2544    # Account for fact that we put trailing slashes in our PATH walk.
2545case $as_dir in #((
2546  ./ | /[cC]/* | \
2547  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2548  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2549  /usr/ucb/* ) ;;
2550  *)
2551    # OSF1 and SCO ODT 3.0 have their own names for install.
2552    # Don't use installbsd from OSF since it installs stuff as root
2553    # by default.
2554    for ac_prog in ginstall scoinst install; do
2555      for ac_exec_ext in '' $ac_executable_extensions; do
2556	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2557	  if test $ac_prog = install &&
2558	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559	    # AIX install.  It has an incompatible calling convention.
2560	    :
2561	  elif test $ac_prog = install &&
2562	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563	    # program-specific install script used by HP pwplus--don't use.
2564	    :
2565	  else
2566	    rm -rf conftest.one conftest.two conftest.dir
2567	    echo one > conftest.one
2568	    echo two > conftest.two
2569	    mkdir conftest.dir
2570	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2571	      test -s conftest.one && test -s conftest.two &&
2572	      test -s conftest.dir/conftest.one &&
2573	      test -s conftest.dir/conftest.two
2574	    then
2575	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2576	      break 3
2577	    fi
2578	  fi
2579	fi
2580      done
2581    done
2582    ;;
2583esac
2584
2585  done
2586IFS=$as_save_IFS
2587
2588rm -rf conftest.one conftest.two conftest.dir
2589
2590fi
2591  if test ${ac_cv_path_install+y}; then
2592    INSTALL=$ac_cv_path_install
2593  else
2594    # As a last resort, use the slow shell script.  Don't cache a
2595    # value for INSTALL within a source directory, because that will
2596    # break other packages using the cache if that directory is
2597    # removed, or if the value is a relative name.
2598    INSTALL=$ac_install_sh
2599  fi
2600fi
2601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2602printf "%s\n" "$INSTALL" >&6; }
2603
2604# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2605# It thinks the first close brace ends the variable substitution.
2606test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2607
2608test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2609
2610test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611
2612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2613printf %s "checking whether build environment is sane... " >&6; }
2614# Reject unsafe characters in $srcdir or the absolute working directory
2615# name.  Accept space and tab only in the latter.
2616am_lf='
2617'
2618case `pwd` in
2619  *[\\\"\#\$\&\'\`$am_lf]*)
2620    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2621esac
2622case $srcdir in
2623  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2624    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2625esac
2626
2627# Do 'set' in a subshell so we don't clobber the current shell's
2628# arguments.  Must try -L first in case configure is actually a
2629# symlink; some systems play weird games with the mod time of symlinks
2630# (eg FreeBSD returns the mod time of the symlink's containing
2631# directory).
2632if (
2633   am_has_slept=no
2634   for am_try in 1 2; do
2635     echo "timestamp, slept: $am_has_slept" > conftest.file
2636     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2637     if test "$*" = "X"; then
2638	# -L didn't work.
2639	set X `ls -t "$srcdir/configure" conftest.file`
2640     fi
2641     if test "$*" != "X $srcdir/configure conftest.file" \
2642	&& test "$*" != "X conftest.file $srcdir/configure"; then
2643
2644	# If neither matched, then we have a broken ls.  This can happen
2645	# if, for instance, CONFIG_SHELL is bash and it inherits a
2646	# broken ls alias from the environment.  This has actually
2647	# happened.  Such a system could not be considered "sane".
2648	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2649  alias in your environment" "$LINENO" 5
2650     fi
2651     if test "$2" = conftest.file || test $am_try -eq 2; then
2652       break
2653     fi
2654     # Just in case.
2655     sleep 1
2656     am_has_slept=yes
2657   done
2658   test "$2" = conftest.file
2659   )
2660then
2661   # Ok.
2662   :
2663else
2664   as_fn_error $? "newly created file is older than distributed files!
2665Check your system clock" "$LINENO" 5
2666fi
2667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668printf "%s\n" "yes" >&6; }
2669# If we didn't sleep, we still need to ensure time stamps of config.status and
2670# generated files are strictly newer.
2671am_sleep_pid=
2672if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2673  ( sleep 1 ) &
2674  am_sleep_pid=$!
2675fi
2676
2677rm -f conftest.file
2678
2679test "$program_prefix" != NONE &&
2680  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2681# Use a double $ so make ignores it.
2682test "$program_suffix" != NONE &&
2683  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2684# Double any \ or $.
2685# By default was `s,x,x', remove it if useless.
2686ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2687program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2688
2689
2690# Expand $ac_aux_dir to an absolute path.
2691am_aux_dir=`cd "$ac_aux_dir" && pwd`
2692
2693
2694  if test x"${MISSING+set}" != xset; then
2695  MISSING="\${SHELL} '$am_aux_dir/missing'"
2696fi
2697# Use eval to expand $SHELL
2698if eval "$MISSING --is-lightweight"; then
2699  am_missing_run="$MISSING "
2700else
2701  am_missing_run=
2702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2703printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2704fi
2705
2706if test x"${install_sh+set}" != xset; then
2707  case $am_aux_dir in
2708  *\ * | *\	*)
2709    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2710  *)
2711    install_sh="\${SHELL} $am_aux_dir/install-sh"
2712  esac
2713fi
2714
2715# Installed binaries are usually stripped using 'strip' when the user
2716# run "make install-strip".  However 'strip' might not be the right
2717# tool to use in cross-compilation environments, therefore Automake
2718# will honor the 'STRIP' environment variable to overrule this program.
2719if test "$cross_compiling" != no; then
2720  if test -n "$ac_tool_prefix"; then
2721  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2722set dummy ${ac_tool_prefix}strip; ac_word=$2
2723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724printf %s "checking for $ac_word... " >&6; }
2725if test ${ac_cv_prog_STRIP+y}
2726then :
2727  printf %s "(cached) " >&6
2728else $as_nop
2729  if test -n "$STRIP"; then
2730  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2731else
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735  IFS=$as_save_IFS
2736  case $as_dir in #(((
2737    '') as_dir=./ ;;
2738    */) ;;
2739    *) as_dir=$as_dir/ ;;
2740  esac
2741    for ac_exec_ext in '' $ac_executable_extensions; do
2742  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2743    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2744    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2745    break 2
2746  fi
2747done
2748  done
2749IFS=$as_save_IFS
2750
2751fi
2752fi
2753STRIP=$ac_cv_prog_STRIP
2754if test -n "$STRIP"; then
2755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2756printf "%s\n" "$STRIP" >&6; }
2757else
2758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759printf "%s\n" "no" >&6; }
2760fi
2761
2762
2763fi
2764if test -z "$ac_cv_prog_STRIP"; then
2765  ac_ct_STRIP=$STRIP
2766  # Extract the first word of "strip", so it can be a program name with args.
2767set dummy strip; ac_word=$2
2768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769printf %s "checking for $ac_word... " >&6; }
2770if test ${ac_cv_prog_ac_ct_STRIP+y}
2771then :
2772  printf %s "(cached) " >&6
2773else $as_nop
2774  if test -n "$ac_ct_STRIP"; then
2775  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780  IFS=$as_save_IFS
2781  case $as_dir in #(((
2782    '') as_dir=./ ;;
2783    */) ;;
2784    *) as_dir=$as_dir/ ;;
2785  esac
2786    for ac_exec_ext in '' $ac_executable_extensions; do
2787  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2788    ac_cv_prog_ac_ct_STRIP="strip"
2789    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2790    break 2
2791  fi
2792done
2793  done
2794IFS=$as_save_IFS
2795
2796fi
2797fi
2798ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2799if test -n "$ac_ct_STRIP"; then
2800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2801printf "%s\n" "$ac_ct_STRIP" >&6; }
2802else
2803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804printf "%s\n" "no" >&6; }
2805fi
2806
2807  if test "x$ac_ct_STRIP" = x; then
2808    STRIP=":"
2809  else
2810    case $cross_compiling:$ac_tool_warned in
2811yes:)
2812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814ac_tool_warned=yes ;;
2815esac
2816    STRIP=$ac_ct_STRIP
2817  fi
2818else
2819  STRIP="$ac_cv_prog_STRIP"
2820fi
2821
2822fi
2823INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2824
2825
2826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2827printf %s "checking for a race-free mkdir -p... " >&6; }
2828if test -z "$MKDIR_P"; then
2829  if test ${ac_cv_path_mkdir+y}
2830then :
2831  printf %s "(cached) " >&6
2832else $as_nop
2833  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2835do
2836  IFS=$as_save_IFS
2837  case $as_dir in #(((
2838    '') as_dir=./ ;;
2839    */) ;;
2840    *) as_dir=$as_dir/ ;;
2841  esac
2842    for ac_prog in mkdir gmkdir; do
2843	 for ac_exec_ext in '' $ac_executable_extensions; do
2844	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2845	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2846	     'mkdir ('*'coreutils) '* | \
2847	     'BusyBox '* | \
2848	     'mkdir (fileutils) '4.1*)
2849	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2850	       break 3;;
2851	   esac
2852	 done
2853       done
2854  done
2855IFS=$as_save_IFS
2856
2857fi
2858
2859  test -d ./--version && rmdir ./--version
2860  if test ${ac_cv_path_mkdir+y}; then
2861    MKDIR_P="$ac_cv_path_mkdir -p"
2862  else
2863    # As a last resort, use the slow shell script.  Don't cache a
2864    # value for MKDIR_P within a source directory, because that will
2865    # break other packages using the cache if that directory is
2866    # removed, or if the value is a relative name.
2867    MKDIR_P="$ac_install_sh -d"
2868  fi
2869fi
2870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2871printf "%s\n" "$MKDIR_P" >&6; }
2872
2873for ac_prog in gawk mawk nawk awk
2874do
2875  # Extract the first word of "$ac_prog", so it can be a program name with args.
2876set dummy $ac_prog; ac_word=$2
2877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878printf %s "checking for $ac_word... " >&6; }
2879if test ${ac_cv_prog_AWK+y}
2880then :
2881  printf %s "(cached) " >&6
2882else $as_nop
2883  if test -n "$AWK"; then
2884  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2885else
2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889  IFS=$as_save_IFS
2890  case $as_dir in #(((
2891    '') as_dir=./ ;;
2892    */) ;;
2893    *) as_dir=$as_dir/ ;;
2894  esac
2895    for ac_exec_ext in '' $ac_executable_extensions; do
2896  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2897    ac_cv_prog_AWK="$ac_prog"
2898    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2899    break 2
2900  fi
2901done
2902  done
2903IFS=$as_save_IFS
2904
2905fi
2906fi
2907AWK=$ac_cv_prog_AWK
2908if test -n "$AWK"; then
2909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2910printf "%s\n" "$AWK" >&6; }
2911else
2912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913printf "%s\n" "no" >&6; }
2914fi
2915
2916
2917  test -n "$AWK" && break
2918done
2919
2920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2921printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2922set x ${MAKE-make}
2923ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2924if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2925then :
2926  printf %s "(cached) " >&6
2927else $as_nop
2928  cat >conftest.make <<\_ACEOF
2929SHELL = /bin/sh
2930all:
2931	@echo '@@@%%%=$(MAKE)=@@@%%%'
2932_ACEOF
2933# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2934case `${MAKE-make} -f conftest.make 2>/dev/null` in
2935  *@@@%%%=?*=@@@%%%*)
2936    eval ac_cv_prog_make_${ac_make}_set=yes;;
2937  *)
2938    eval ac_cv_prog_make_${ac_make}_set=no;;
2939esac
2940rm -f conftest.make
2941fi
2942if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2944printf "%s\n" "yes" >&6; }
2945  SET_MAKE=
2946else
2947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948printf "%s\n" "no" >&6; }
2949  SET_MAKE="MAKE=${MAKE-make}"
2950fi
2951
2952rm -rf .tst 2>/dev/null
2953mkdir .tst 2>/dev/null
2954if test -d .tst; then
2955  am__leading_dot=.
2956else
2957  am__leading_dot=_
2958fi
2959rmdir .tst 2>/dev/null
2960
2961# Check whether --enable-silent-rules was given.
2962if test ${enable_silent_rules+y}
2963then :
2964  enableval=$enable_silent_rules;
2965fi
2966
2967case $enable_silent_rules in # (((
2968  yes) AM_DEFAULT_VERBOSITY=0;;
2969   no) AM_DEFAULT_VERBOSITY=1;;
2970    *) AM_DEFAULT_VERBOSITY=1;;
2971esac
2972am_make=${MAKE-make}
2973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2974printf %s "checking whether $am_make supports nested variables... " >&6; }
2975if test ${am_cv_make_support_nested_variables+y}
2976then :
2977  printf %s "(cached) " >&6
2978else $as_nop
2979  if printf "%s\n" 'TRUE=$(BAR$(V))
2980BAR0=false
2981BAR1=true
2982V=1
2983am__doit:
2984	@$(TRUE)
2985.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2986  am_cv_make_support_nested_variables=yes
2987else
2988  am_cv_make_support_nested_variables=no
2989fi
2990fi
2991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2992printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2993if test $am_cv_make_support_nested_variables = yes; then
2994    AM_V='$(V)'
2995  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2996else
2997  AM_V=$AM_DEFAULT_VERBOSITY
2998  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2999fi
3000AM_BACKSLASH='\'
3001
3002if test "`cd $srcdir && pwd`" != "`pwd`"; then
3003  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3004  # is not polluted with repeated "-I."
3005  am__isrc=' -I$(srcdir)'
3006  # test to see if srcdir already configured
3007  if test -f $srcdir/config.status; then
3008    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3009  fi
3010fi
3011
3012# test whether we have cygpath
3013if test -z "$CYGPATH_W"; then
3014  if (cygpath --version) >/dev/null 2>/dev/null; then
3015    CYGPATH_W='cygpath -w'
3016  else
3017    CYGPATH_W=echo
3018  fi
3019fi
3020
3021
3022# Define the identity of the package.
3023 PACKAGE='xinput'
3024 VERSION='1.6.4'
3025
3026
3027printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3028
3029
3030printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3031
3032# Some tools Automake needs.
3033
3034ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3035
3036
3037AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3038
3039
3040AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3041
3042
3043AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3044
3045
3046MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3047
3048# For better backward compatibility.  To be removed once Automake 1.9.x
3049# dies out for good.  For more background, see:
3050# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3051# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3052mkdir_p='$(MKDIR_P)'
3053
3054# We need awk for the "check" target (and possibly the TAP driver).  The
3055# system "awk" is bad on some platforms.
3056# Always define AMTAR for backward compatibility.  Yes, it's still used
3057# in the wild :-(  We should find a proper way to deprecate it ...
3058AMTAR='$${TAR-tar}'
3059
3060
3061# We'll loop over all known methods to create a tar archive until one works.
3062_am_tools='gnutar  pax cpio none'
3063
3064am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3065
3066
3067
3068
3069
3070# Variables for tags utilities; see am/tags.am
3071if test -z "$CTAGS"; then
3072  CTAGS=ctags
3073fi
3074
3075if test -z "$ETAGS"; then
3076  ETAGS=etags
3077fi
3078
3079if test -z "$CSCOPE"; then
3080  CSCOPE=cscope
3081fi
3082
3083
3084
3085# POSIX will say in a future version that running "rm -f" with no argument
3086# is OK; and we want to be able to make that assumption in our Makefile
3087# recipes.  So use an aggressive probe to check that the usage we want is
3088# actually supported "in the wild" to an acceptable degree.
3089# See automake bug#10828.
3090# To make any issue more visible, cause the running configure to be aborted
3091# by default if the 'rm' program in use doesn't match our expectations; the
3092# user can still override this though.
3093if rm -f && rm -fr && rm -rf; then : OK; else
3094  cat >&2 <<'END'
3095Oops!
3096
3097Your 'rm' program seems unable to run without file operands specified
3098on the command line, even when the '-f' option is present.  This is contrary
3099to the behaviour of most rm programs out there, and not conforming with
3100the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3101
3102Please tell bug-automake@gnu.org about your system, including the value
3103of your $PATH and any error possibly output before this message.  This
3104can help us improve future automake versions.
3105
3106END
3107  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3108    echo 'Configuration will proceed anyway, since you have set the' >&2
3109    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3110    echo >&2
3111  else
3112    cat >&2 <<'END'
3113Aborting the configuration process, to ensure you take notice of the issue.
3114
3115You can download and install GNU coreutils to get an 'rm' implementation
3116that behaves properly: <https://www.gnu.org/software/coreutils/>.
3117
3118If you want to complete the configuration process using your problematic
3119'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3120to "yes", and re-run configure.
3121
3122END
3123    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3124  fi
3125fi
3126
3127
3128# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149DEPDIR="${am__leading_dot}deps"
3150
3151ac_config_commands="$ac_config_commands depfiles"
3152
3153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3154printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3155cat > confinc.mk << 'END'
3156am__doit:
3157	@echo this is the am__doit target >confinc.out
3158.PHONY: am__doit
3159END
3160am__include="#"
3161am__quote=
3162# BSD make does it like this.
3163echo '.include "confinc.mk" # ignored' > confmf.BSD
3164# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3165echo 'include confinc.mk # ignored' > confmf.GNU
3166_am_result=no
3167for s in GNU BSD; do
3168  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3169   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3170   ac_status=$?
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); }
3173  case $?:`cat confinc.out 2>/dev/null` in #(
3174  '0:this is the am__doit target') :
3175    case $s in #(
3176  BSD) :
3177    am__include='.include' am__quote='"' ;; #(
3178  *) :
3179    am__include='include' am__quote='' ;;
3180esac ;; #(
3181  *) :
3182     ;;
3183esac
3184  if test "$am__include" != "#"; then
3185    _am_result="yes ($s style)"
3186    break
3187  fi
3188done
3189rm -f confinc.* confmf.*
3190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3191printf "%s\n" "${_am_result}" >&6; }
3192
3193# Check whether --enable-dependency-tracking was given.
3194if test ${enable_dependency_tracking+y}
3195then :
3196  enableval=$enable_dependency_tracking;
3197fi
3198
3199if test "x$enable_dependency_tracking" != xno; then
3200  am_depcomp="$ac_aux_dir/depcomp"
3201  AMDEPBACKSLASH='\'
3202  am__nodep='_no'
3203fi
3204 if test "x$enable_dependency_tracking" != xno; then
3205  AMDEP_TRUE=
3206  AMDEP_FALSE='#'
3207else
3208  AMDEP_TRUE='#'
3209  AMDEP_FALSE=
3210fi
3211
3212
3213ac_ext=c
3214ac_cpp='$CPP $CPPFLAGS'
3215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218if test -n "$ac_tool_prefix"; then
3219  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3220set dummy ${ac_tool_prefix}gcc; ac_word=$2
3221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222printf %s "checking for $ac_word... " >&6; }
3223if test ${ac_cv_prog_CC+y}
3224then :
3225  printf %s "(cached) " >&6
3226else $as_nop
3227  if test -n "$CC"; then
3228  ac_cv_prog_CC="$CC" # Let the user override the test.
3229else
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233  IFS=$as_save_IFS
3234  case $as_dir in #(((
3235    '') as_dir=./ ;;
3236    */) ;;
3237    *) as_dir=$as_dir/ ;;
3238  esac
3239    for ac_exec_ext in '' $ac_executable_extensions; do
3240  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3241    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3242    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3243    break 2
3244  fi
3245done
3246  done
3247IFS=$as_save_IFS
3248
3249fi
3250fi
3251CC=$ac_cv_prog_CC
3252if test -n "$CC"; then
3253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254printf "%s\n" "$CC" >&6; }
3255else
3256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257printf "%s\n" "no" >&6; }
3258fi
3259
3260
3261fi
3262if test -z "$ac_cv_prog_CC"; then
3263  ac_ct_CC=$CC
3264  # Extract the first word of "gcc", so it can be a program name with args.
3265set dummy gcc; ac_word=$2
3266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267printf %s "checking for $ac_word... " >&6; }
3268if test ${ac_cv_prog_ac_ct_CC+y}
3269then :
3270  printf %s "(cached) " >&6
3271else $as_nop
3272  if test -n "$ac_ct_CC"; then
3273  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3274else
3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH
3277do
3278  IFS=$as_save_IFS
3279  case $as_dir in #(((
3280    '') as_dir=./ ;;
3281    */) ;;
3282    *) as_dir=$as_dir/ ;;
3283  esac
3284    for ac_exec_ext in '' $ac_executable_extensions; do
3285  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3286    ac_cv_prog_ac_ct_CC="gcc"
3287    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3288    break 2
3289  fi
3290done
3291  done
3292IFS=$as_save_IFS
3293
3294fi
3295fi
3296ac_ct_CC=$ac_cv_prog_ac_ct_CC
3297if test -n "$ac_ct_CC"; then
3298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3299printf "%s\n" "$ac_ct_CC" >&6; }
3300else
3301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302printf "%s\n" "no" >&6; }
3303fi
3304
3305  if test "x$ac_ct_CC" = x; then
3306    CC=""
3307  else
3308    case $cross_compiling:$ac_tool_warned in
3309yes:)
3310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3311printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3312ac_tool_warned=yes ;;
3313esac
3314    CC=$ac_ct_CC
3315  fi
3316else
3317  CC="$ac_cv_prog_CC"
3318fi
3319
3320if test -z "$CC"; then
3321          if test -n "$ac_tool_prefix"; then
3322    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3323set dummy ${ac_tool_prefix}cc; ac_word=$2
3324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325printf %s "checking for $ac_word... " >&6; }
3326if test ${ac_cv_prog_CC+y}
3327then :
3328  printf %s "(cached) " >&6
3329else $as_nop
3330  if test -n "$CC"; then
3331  ac_cv_prog_CC="$CC" # Let the user override the test.
3332else
3333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334for as_dir in $PATH
3335do
3336  IFS=$as_save_IFS
3337  case $as_dir in #(((
3338    '') as_dir=./ ;;
3339    */) ;;
3340    *) as_dir=$as_dir/ ;;
3341  esac
3342    for ac_exec_ext in '' $ac_executable_extensions; do
3343  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3344    ac_cv_prog_CC="${ac_tool_prefix}cc"
3345    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3346    break 2
3347  fi
3348done
3349  done
3350IFS=$as_save_IFS
3351
3352fi
3353fi
3354CC=$ac_cv_prog_CC
3355if test -n "$CC"; then
3356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357printf "%s\n" "$CC" >&6; }
3358else
3359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360printf "%s\n" "no" >&6; }
3361fi
3362
3363
3364  fi
3365fi
3366if test -z "$CC"; then
3367  # Extract the first word of "cc", so it can be a program name with args.
3368set dummy cc; ac_word=$2
3369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370printf %s "checking for $ac_word... " >&6; }
3371if test ${ac_cv_prog_CC+y}
3372then :
3373  printf %s "(cached) " >&6
3374else $as_nop
3375  if test -n "$CC"; then
3376  ac_cv_prog_CC="$CC" # Let the user override the test.
3377else
3378  ac_prog_rejected=no
3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380for as_dir in $PATH
3381do
3382  IFS=$as_save_IFS
3383  case $as_dir in #(((
3384    '') as_dir=./ ;;
3385    */) ;;
3386    *) as_dir=$as_dir/ ;;
3387  esac
3388    for ac_exec_ext in '' $ac_executable_extensions; do
3389  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3390    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3391       ac_prog_rejected=yes
3392       continue
3393     fi
3394    ac_cv_prog_CC="cc"
3395    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3396    break 2
3397  fi
3398done
3399  done
3400IFS=$as_save_IFS
3401
3402if test $ac_prog_rejected = yes; then
3403  # We found a bogon in the path, so make sure we never use it.
3404  set dummy $ac_cv_prog_CC
3405  shift
3406  if test $# != 0; then
3407    # We chose a different compiler from the bogus one.
3408    # However, it has the same basename, so the bogon will be chosen
3409    # first if we set CC to just the basename; use the full file name.
3410    shift
3411    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3412  fi
3413fi
3414fi
3415fi
3416CC=$ac_cv_prog_CC
3417if test -n "$CC"; then
3418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3419printf "%s\n" "$CC" >&6; }
3420else
3421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422printf "%s\n" "no" >&6; }
3423fi
3424
3425
3426fi
3427if test -z "$CC"; then
3428  if test -n "$ac_tool_prefix"; then
3429  for ac_prog in cl.exe
3430  do
3431    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3432set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434printf %s "checking for $ac_word... " >&6; }
3435if test ${ac_cv_prog_CC+y}
3436then :
3437  printf %s "(cached) " >&6
3438else $as_nop
3439  if test -n "$CC"; then
3440  ac_cv_prog_CC="$CC" # Let the user override the test.
3441else
3442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443for as_dir in $PATH
3444do
3445  IFS=$as_save_IFS
3446  case $as_dir in #(((
3447    '') as_dir=./ ;;
3448    */) ;;
3449    *) as_dir=$as_dir/ ;;
3450  esac
3451    for ac_exec_ext in '' $ac_executable_extensions; do
3452  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3453    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3454    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3455    break 2
3456  fi
3457done
3458  done
3459IFS=$as_save_IFS
3460
3461fi
3462fi
3463CC=$ac_cv_prog_CC
3464if test -n "$CC"; then
3465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3466printf "%s\n" "$CC" >&6; }
3467else
3468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469printf "%s\n" "no" >&6; }
3470fi
3471
3472
3473    test -n "$CC" && break
3474  done
3475fi
3476if test -z "$CC"; then
3477  ac_ct_CC=$CC
3478  for ac_prog in cl.exe
3479do
3480  # Extract the first word of "$ac_prog", so it can be a program name with args.
3481set dummy $ac_prog; ac_word=$2
3482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483printf %s "checking for $ac_word... " >&6; }
3484if test ${ac_cv_prog_ac_ct_CC+y}
3485then :
3486  printf %s "(cached) " >&6
3487else $as_nop
3488  if test -n "$ac_ct_CC"; then
3489  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3490else
3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in $PATH
3493do
3494  IFS=$as_save_IFS
3495  case $as_dir in #(((
3496    '') as_dir=./ ;;
3497    */) ;;
3498    *) as_dir=$as_dir/ ;;
3499  esac
3500    for ac_exec_ext in '' $ac_executable_extensions; do
3501  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3502    ac_cv_prog_ac_ct_CC="$ac_prog"
3503    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3504    break 2
3505  fi
3506done
3507  done
3508IFS=$as_save_IFS
3509
3510fi
3511fi
3512ac_ct_CC=$ac_cv_prog_ac_ct_CC
3513if test -n "$ac_ct_CC"; then
3514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3515printf "%s\n" "$ac_ct_CC" >&6; }
3516else
3517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518printf "%s\n" "no" >&6; }
3519fi
3520
3521
3522  test -n "$ac_ct_CC" && break
3523done
3524
3525  if test "x$ac_ct_CC" = x; then
3526    CC=""
3527  else
3528    case $cross_compiling:$ac_tool_warned in
3529yes:)
3530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3531printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3532ac_tool_warned=yes ;;
3533esac
3534    CC=$ac_ct_CC
3535  fi
3536fi
3537
3538fi
3539if test -z "$CC"; then
3540  if test -n "$ac_tool_prefix"; then
3541  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3542set dummy ${ac_tool_prefix}clang; ac_word=$2
3543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544printf %s "checking for $ac_word... " >&6; }
3545if test ${ac_cv_prog_CC+y}
3546then :
3547  printf %s "(cached) " >&6
3548else $as_nop
3549  if test -n "$CC"; then
3550  ac_cv_prog_CC="$CC" # Let the user override the test.
3551else
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH
3554do
3555  IFS=$as_save_IFS
3556  case $as_dir in #(((
3557    '') as_dir=./ ;;
3558    */) ;;
3559    *) as_dir=$as_dir/ ;;
3560  esac
3561    for ac_exec_ext in '' $ac_executable_extensions; do
3562  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3563    ac_cv_prog_CC="${ac_tool_prefix}clang"
3564    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3565    break 2
3566  fi
3567done
3568  done
3569IFS=$as_save_IFS
3570
3571fi
3572fi
3573CC=$ac_cv_prog_CC
3574if test -n "$CC"; then
3575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576printf "%s\n" "$CC" >&6; }
3577else
3578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579printf "%s\n" "no" >&6; }
3580fi
3581
3582
3583fi
3584if test -z "$ac_cv_prog_CC"; then
3585  ac_ct_CC=$CC
3586  # Extract the first word of "clang", so it can be a program name with args.
3587set dummy clang; ac_word=$2
3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589printf %s "checking for $ac_word... " >&6; }
3590if test ${ac_cv_prog_ac_ct_CC+y}
3591then :
3592  printf %s "(cached) " >&6
3593else $as_nop
3594  if test -n "$ac_ct_CC"; then
3595  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3596else
3597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598for as_dir in $PATH
3599do
3600  IFS=$as_save_IFS
3601  case $as_dir in #(((
3602    '') as_dir=./ ;;
3603    */) ;;
3604    *) as_dir=$as_dir/ ;;
3605  esac
3606    for ac_exec_ext in '' $ac_executable_extensions; do
3607  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3608    ac_cv_prog_ac_ct_CC="clang"
3609    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3610    break 2
3611  fi
3612done
3613  done
3614IFS=$as_save_IFS
3615
3616fi
3617fi
3618ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619if test -n "$ac_ct_CC"; then
3620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3621printf "%s\n" "$ac_ct_CC" >&6; }
3622else
3623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624printf "%s\n" "no" >&6; }
3625fi
3626
3627  if test "x$ac_ct_CC" = x; then
3628    CC=""
3629  else
3630    case $cross_compiling:$ac_tool_warned in
3631yes:)
3632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3633printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3634ac_tool_warned=yes ;;
3635esac
3636    CC=$ac_ct_CC
3637  fi
3638else
3639  CC="$ac_cv_prog_CC"
3640fi
3641
3642fi
3643
3644
3645test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3647as_fn_error $? "no acceptable C compiler found in \$PATH
3648See \`config.log' for more details" "$LINENO" 5; }
3649
3650# Provide some information about the compiler.
3651printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3652set X $ac_compile
3653ac_compiler=$2
3654for ac_option in --version -v -V -qversion -version; do
3655  { { ac_try="$ac_compiler $ac_option >&5"
3656case "(($ac_try" in
3657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658  *) ac_try_echo=$ac_try;;
3659esac
3660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3661printf "%s\n" "$ac_try_echo"; } >&5
3662  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3663  ac_status=$?
3664  if test -s conftest.err; then
3665    sed '10a\
3666... rest of stderr output deleted ...
3667         10q' conftest.err >conftest.er1
3668    cat conftest.er1 >&5
3669  fi
3670  rm -f conftest.er1 conftest.err
3671  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672  test $ac_status = 0; }
3673done
3674
3675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676/* end confdefs.h.  */
3677
3678int
3679main (void)
3680{
3681
3682  ;
3683  return 0;
3684}
3685_ACEOF
3686ac_clean_files_save=$ac_clean_files
3687ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3688# Try to create an executable without -o first, disregard a.out.
3689# It will help us diagnose broken compilers, and finding out an intuition
3690# of exeext.
3691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3692printf %s "checking whether the C compiler works... " >&6; }
3693ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3694
3695# The possible output files:
3696ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3697
3698ac_rmfiles=
3699for ac_file in $ac_files
3700do
3701  case $ac_file in
3702    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3703    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3704  esac
3705done
3706rm -f $ac_rmfiles
3707
3708if { { ac_try="$ac_link_default"
3709case "(($ac_try" in
3710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711  *) ac_try_echo=$ac_try;;
3712esac
3713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714printf "%s\n" "$ac_try_echo"; } >&5
3715  (eval "$ac_link_default") 2>&5
3716  ac_status=$?
3717  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718  test $ac_status = 0; }
3719then :
3720  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3721# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3722# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3723# so that the user can short-circuit this test for compilers unknown to
3724# Autoconf.
3725for ac_file in $ac_files ''
3726do
3727  test -f "$ac_file" || continue
3728  case $ac_file in
3729    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3730	;;
3731    [ab].out )
3732	# We found the default executable, but exeext='' is most
3733	# certainly right.
3734	break;;
3735    *.* )
3736	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3737	then :; else
3738	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3739	fi
3740	# We set ac_cv_exeext here because the later test for it is not
3741	# safe: cross compilers may not add the suffix if given an `-o'
3742	# argument, so we may need to know it at that point already.
3743	# Even if this section looks crufty: it has the advantage of
3744	# actually working.
3745	break;;
3746    * )
3747	break;;
3748  esac
3749done
3750test "$ac_cv_exeext" = no && ac_cv_exeext=
3751
3752else $as_nop
3753  ac_file=''
3754fi
3755if test -z "$ac_file"
3756then :
3757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758printf "%s\n" "no" >&6; }
3759printf "%s\n" "$as_me: failed program was:" >&5
3760sed 's/^/| /' conftest.$ac_ext >&5
3761
3762{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3764as_fn_error 77 "C compiler cannot create executables
3765See \`config.log' for more details" "$LINENO" 5; }
3766else $as_nop
3767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3768printf "%s\n" "yes" >&6; }
3769fi
3770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3771printf %s "checking for C compiler default output file name... " >&6; }
3772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3773printf "%s\n" "$ac_file" >&6; }
3774ac_exeext=$ac_cv_exeext
3775
3776rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3777ac_clean_files=$ac_clean_files_save
3778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3779printf %s "checking for suffix of executables... " >&6; }
3780if { { ac_try="$ac_link"
3781case "(($ac_try" in
3782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783  *) ac_try_echo=$ac_try;;
3784esac
3785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786printf "%s\n" "$ac_try_echo"; } >&5
3787  (eval "$ac_link") 2>&5
3788  ac_status=$?
3789  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790  test $ac_status = 0; }
3791then :
3792  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3793# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3794# work properly (i.e., refer to `conftest.exe'), while it won't with
3795# `rm'.
3796for ac_file in conftest.exe conftest conftest.*; do
3797  test -f "$ac_file" || continue
3798  case $ac_file in
3799    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3800    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3801	  break;;
3802    * ) break;;
3803  esac
3804done
3805else $as_nop
3806  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3808as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3809See \`config.log' for more details" "$LINENO" 5; }
3810fi
3811rm -f conftest conftest$ac_cv_exeext
3812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3813printf "%s\n" "$ac_cv_exeext" >&6; }
3814
3815rm -f conftest.$ac_ext
3816EXEEXT=$ac_cv_exeext
3817ac_exeext=$EXEEXT
3818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h.  */
3820#include <stdio.h>
3821int
3822main (void)
3823{
3824FILE *f = fopen ("conftest.out", "w");
3825 return ferror (f) || fclose (f) != 0;
3826
3827  ;
3828  return 0;
3829}
3830_ACEOF
3831ac_clean_files="$ac_clean_files conftest.out"
3832# Check that the compiler produces executables we can run.  If not, either
3833# the compiler is broken, or we cross compile.
3834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3835printf %s "checking whether we are cross compiling... " >&6; }
3836if test "$cross_compiling" != yes; then
3837  { { ac_try="$ac_link"
3838case "(($ac_try" in
3839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840  *) ac_try_echo=$ac_try;;
3841esac
3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843printf "%s\n" "$ac_try_echo"; } >&5
3844  (eval "$ac_link") 2>&5
3845  ac_status=$?
3846  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847  test $ac_status = 0; }
3848  if { ac_try='./conftest$ac_cv_exeext'
3849  { { case "(($ac_try" in
3850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851  *) ac_try_echo=$ac_try;;
3852esac
3853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854printf "%s\n" "$ac_try_echo"; } >&5
3855  (eval "$ac_try") 2>&5
3856  ac_status=$?
3857  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858  test $ac_status = 0; }; }; then
3859    cross_compiling=no
3860  else
3861    if test "$cross_compiling" = maybe; then
3862	cross_compiling=yes
3863    else
3864	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3866as_fn_error 77 "cannot run C compiled programs.
3867If you meant to cross compile, use \`--host'.
3868See \`config.log' for more details" "$LINENO" 5; }
3869    fi
3870  fi
3871fi
3872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3873printf "%s\n" "$cross_compiling" >&6; }
3874
3875rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3876ac_clean_files=$ac_clean_files_save
3877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3878printf %s "checking for suffix of object files... " >&6; }
3879if test ${ac_cv_objext+y}
3880then :
3881  printf %s "(cached) " >&6
3882else $as_nop
3883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884/* end confdefs.h.  */
3885
3886int
3887main (void)
3888{
3889
3890  ;
3891  return 0;
3892}
3893_ACEOF
3894rm -f conftest.o conftest.obj
3895if { { ac_try="$ac_compile"
3896case "(($ac_try" in
3897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898  *) ac_try_echo=$ac_try;;
3899esac
3900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901printf "%s\n" "$ac_try_echo"; } >&5
3902  (eval "$ac_compile") 2>&5
3903  ac_status=$?
3904  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905  test $ac_status = 0; }
3906then :
3907  for ac_file in conftest.o conftest.obj conftest.*; do
3908  test -f "$ac_file" || continue;
3909  case $ac_file in
3910    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3911    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3912       break;;
3913  esac
3914done
3915else $as_nop
3916  printf "%s\n" "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3921as_fn_error $? "cannot compute suffix of object files: cannot compile
3922See \`config.log' for more details" "$LINENO" 5; }
3923fi
3924rm -f conftest.$ac_cv_objext conftest.$ac_ext
3925fi
3926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3927printf "%s\n" "$ac_cv_objext" >&6; }
3928OBJEXT=$ac_cv_objext
3929ac_objext=$OBJEXT
3930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3931printf %s "checking whether the compiler supports GNU C... " >&6; }
3932if test ${ac_cv_c_compiler_gnu+y}
3933then :
3934  printf %s "(cached) " >&6
3935else $as_nop
3936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937/* end confdefs.h.  */
3938
3939int
3940main (void)
3941{
3942#ifndef __GNUC__
3943       choke me
3944#endif
3945
3946  ;
3947  return 0;
3948}
3949_ACEOF
3950if ac_fn_c_try_compile "$LINENO"
3951then :
3952  ac_compiler_gnu=yes
3953else $as_nop
3954  ac_compiler_gnu=no
3955fi
3956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3957ac_cv_c_compiler_gnu=$ac_compiler_gnu
3958
3959fi
3960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3961printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3962ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964if test $ac_compiler_gnu = yes; then
3965  GCC=yes
3966else
3967  GCC=
3968fi
3969ac_test_CFLAGS=${CFLAGS+y}
3970ac_save_CFLAGS=$CFLAGS
3971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3972printf %s "checking whether $CC accepts -g... " >&6; }
3973if test ${ac_cv_prog_cc_g+y}
3974then :
3975  printf %s "(cached) " >&6
3976else $as_nop
3977  ac_save_c_werror_flag=$ac_c_werror_flag
3978   ac_c_werror_flag=yes
3979   ac_cv_prog_cc_g=no
3980   CFLAGS="-g"
3981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982/* end confdefs.h.  */
3983
3984int
3985main (void)
3986{
3987
3988  ;
3989  return 0;
3990}
3991_ACEOF
3992if ac_fn_c_try_compile "$LINENO"
3993then :
3994  ac_cv_prog_cc_g=yes
3995else $as_nop
3996  CFLAGS=""
3997      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998/* end confdefs.h.  */
3999
4000int
4001main (void)
4002{
4003
4004  ;
4005  return 0;
4006}
4007_ACEOF
4008if ac_fn_c_try_compile "$LINENO"
4009then :
4010
4011else $as_nop
4012  ac_c_werror_flag=$ac_save_c_werror_flag
4013	 CFLAGS="-g"
4014	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015/* end confdefs.h.  */
4016
4017int
4018main (void)
4019{
4020
4021  ;
4022  return 0;
4023}
4024_ACEOF
4025if ac_fn_c_try_compile "$LINENO"
4026then :
4027  ac_cv_prog_cc_g=yes
4028fi
4029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4030fi
4031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4032fi
4033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4034   ac_c_werror_flag=$ac_save_c_werror_flag
4035fi
4036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4037printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4038if test $ac_test_CFLAGS; then
4039  CFLAGS=$ac_save_CFLAGS
4040elif test $ac_cv_prog_cc_g = yes; then
4041  if test "$GCC" = yes; then
4042    CFLAGS="-g -O2"
4043  else
4044    CFLAGS="-g"
4045  fi
4046else
4047  if test "$GCC" = yes; then
4048    CFLAGS="-O2"
4049  else
4050    CFLAGS=
4051  fi
4052fi
4053ac_prog_cc_stdc=no
4054if test x$ac_prog_cc_stdc = xno
4055then :
4056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4057printf %s "checking for $CC option to enable C11 features... " >&6; }
4058if test ${ac_cv_prog_cc_c11+y}
4059then :
4060  printf %s "(cached) " >&6
4061else $as_nop
4062  ac_cv_prog_cc_c11=no
4063ac_save_CC=$CC
4064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065/* end confdefs.h.  */
4066$ac_c_conftest_c11_program
4067_ACEOF
4068for ac_arg in '' -std=gnu11
4069do
4070  CC="$ac_save_CC $ac_arg"
4071  if ac_fn_c_try_compile "$LINENO"
4072then :
4073  ac_cv_prog_cc_c11=$ac_arg
4074fi
4075rm -f core conftest.err conftest.$ac_objext conftest.beam
4076  test "x$ac_cv_prog_cc_c11" != "xno" && break
4077done
4078rm -f conftest.$ac_ext
4079CC=$ac_save_CC
4080fi
4081
4082if test "x$ac_cv_prog_cc_c11" = xno
4083then :
4084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4085printf "%s\n" "unsupported" >&6; }
4086else $as_nop
4087  if test "x$ac_cv_prog_cc_c11" = x
4088then :
4089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4090printf "%s\n" "none needed" >&6; }
4091else $as_nop
4092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4093printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4094     CC="$CC $ac_cv_prog_cc_c11"
4095fi
4096  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4097  ac_prog_cc_stdc=c11
4098fi
4099fi
4100if test x$ac_prog_cc_stdc = xno
4101then :
4102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4103printf %s "checking for $CC option to enable C99 features... " >&6; }
4104if test ${ac_cv_prog_cc_c99+y}
4105then :
4106  printf %s "(cached) " >&6
4107else $as_nop
4108  ac_cv_prog_cc_c99=no
4109ac_save_CC=$CC
4110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h.  */
4112$ac_c_conftest_c99_program
4113_ACEOF
4114for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4115do
4116  CC="$ac_save_CC $ac_arg"
4117  if ac_fn_c_try_compile "$LINENO"
4118then :
4119  ac_cv_prog_cc_c99=$ac_arg
4120fi
4121rm -f core conftest.err conftest.$ac_objext conftest.beam
4122  test "x$ac_cv_prog_cc_c99" != "xno" && break
4123done
4124rm -f conftest.$ac_ext
4125CC=$ac_save_CC
4126fi
4127
4128if test "x$ac_cv_prog_cc_c99" = xno
4129then :
4130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4131printf "%s\n" "unsupported" >&6; }
4132else $as_nop
4133  if test "x$ac_cv_prog_cc_c99" = x
4134then :
4135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4136printf "%s\n" "none needed" >&6; }
4137else $as_nop
4138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4139printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4140     CC="$CC $ac_cv_prog_cc_c99"
4141fi
4142  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4143  ac_prog_cc_stdc=c99
4144fi
4145fi
4146if test x$ac_prog_cc_stdc = xno
4147then :
4148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4149printf %s "checking for $CC option to enable C89 features... " >&6; }
4150if test ${ac_cv_prog_cc_c89+y}
4151then :
4152  printf %s "(cached) " >&6
4153else $as_nop
4154  ac_cv_prog_cc_c89=no
4155ac_save_CC=$CC
4156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h.  */
4158$ac_c_conftest_c89_program
4159_ACEOF
4160for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4161do
4162  CC="$ac_save_CC $ac_arg"
4163  if ac_fn_c_try_compile "$LINENO"
4164then :
4165  ac_cv_prog_cc_c89=$ac_arg
4166fi
4167rm -f core conftest.err conftest.$ac_objext conftest.beam
4168  test "x$ac_cv_prog_cc_c89" != "xno" && break
4169done
4170rm -f conftest.$ac_ext
4171CC=$ac_save_CC
4172fi
4173
4174if test "x$ac_cv_prog_cc_c89" = xno
4175then :
4176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177printf "%s\n" "unsupported" >&6; }
4178else $as_nop
4179  if test "x$ac_cv_prog_cc_c89" = x
4180then :
4181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4182printf "%s\n" "none needed" >&6; }
4183else $as_nop
4184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4185printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4186     CC="$CC $ac_cv_prog_cc_c89"
4187fi
4188  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4189  ac_prog_cc_stdc=c89
4190fi
4191fi
4192
4193ac_ext=c
4194ac_cpp='$CPP $CPPFLAGS'
4195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198
4199
4200  ac_ext=c
4201ac_cpp='$CPP $CPPFLAGS'
4202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204ac_compiler_gnu=$ac_cv_c_compiler_gnu
4205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4206printf %s "checking whether $CC understands -c and -o together... " >&6; }
4207if test ${am_cv_prog_cc_c_o+y}
4208then :
4209  printf %s "(cached) " >&6
4210else $as_nop
4211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212/* end confdefs.h.  */
4213
4214int
4215main (void)
4216{
4217
4218  ;
4219  return 0;
4220}
4221_ACEOF
4222  # Make sure it works both with $CC and with simple cc.
4223  # Following AC_PROG_CC_C_O, we do the test twice because some
4224  # compilers refuse to overwrite an existing .o file with -o,
4225  # though they will create one.
4226  am_cv_prog_cc_c_o=yes
4227  for am_i in 1 2; do
4228    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4229   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4230   ac_status=$?
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); } \
4233         && test -f conftest2.$ac_objext; then
4234      : OK
4235    else
4236      am_cv_prog_cc_c_o=no
4237      break
4238    fi
4239  done
4240  rm -f core conftest*
4241  unset am_i
4242fi
4243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4244printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4245if test "$am_cv_prog_cc_c_o" != yes; then
4246   # Losing compiler, so override with the script.
4247   # FIXME: It is wrong to rewrite CC.
4248   # But if we don't then we get into trouble of one sort or another.
4249   # A longer-term fix would be to have automake use am__CC in this case,
4250   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4251   CC="$am_aux_dir/compile $CC"
4252fi
4253ac_ext=c
4254ac_cpp='$CPP $CPPFLAGS'
4255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258
4259
4260depcc="$CC"   am_compiler_list=
4261
4262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4263printf %s "checking dependency style of $depcc... " >&6; }
4264if test ${am_cv_CC_dependencies_compiler_type+y}
4265then :
4266  printf %s "(cached) " >&6
4267else $as_nop
4268  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4269  # We make a subdir and do the tests there.  Otherwise we can end up
4270  # making bogus files that we don't know about and never remove.  For
4271  # instance it was reported that on HP-UX the gcc test will end up
4272  # making a dummy file named 'D' -- because '-MD' means "put the output
4273  # in D".
4274  rm -rf conftest.dir
4275  mkdir conftest.dir
4276  # Copy depcomp to subdir because otherwise we won't find it if we're
4277  # using a relative directory.
4278  cp "$am_depcomp" conftest.dir
4279  cd conftest.dir
4280  # We will build objects and dependencies in a subdirectory because
4281  # it helps to detect inapplicable dependency modes.  For instance
4282  # both Tru64's cc and ICC support -MD to output dependencies as a
4283  # side effect of compilation, but ICC will put the dependencies in
4284  # the current directory while Tru64 will put them in the object
4285  # directory.
4286  mkdir sub
4287
4288  am_cv_CC_dependencies_compiler_type=none
4289  if test "$am_compiler_list" = ""; then
4290     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4291  fi
4292  am__universal=false
4293  case " $depcc " in #(
4294     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4295     esac
4296
4297  for depmode in $am_compiler_list; do
4298    # Setup a source with many dependencies, because some compilers
4299    # like to wrap large dependency lists on column 80 (with \), and
4300    # we should not choose a depcomp mode which is confused by this.
4301    #
4302    # We need to recreate these files for each test, as the compiler may
4303    # overwrite some of them when testing with obscure command lines.
4304    # This happens at least with the AIX C compiler.
4305    : > sub/conftest.c
4306    for i in 1 2 3 4 5 6; do
4307      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4308      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4309      # Solaris 10 /bin/sh.
4310      echo '/* dummy */' > sub/conftst$i.h
4311    done
4312    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4313
4314    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4315    # mode.  It turns out that the SunPro C++ compiler does not properly
4316    # handle '-M -o', and we need to detect this.  Also, some Intel
4317    # versions had trouble with output in subdirs.
4318    am__obj=sub/conftest.${OBJEXT-o}
4319    am__minus_obj="-o $am__obj"
4320    case $depmode in
4321    gcc)
4322      # This depmode causes a compiler race in universal mode.
4323      test "$am__universal" = false || continue
4324      ;;
4325    nosideeffect)
4326      # After this tag, mechanisms are not by side-effect, so they'll
4327      # only be used when explicitly requested.
4328      if test "x$enable_dependency_tracking" = xyes; then
4329	continue
4330      else
4331	break
4332      fi
4333      ;;
4334    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4335      # This compiler won't grok '-c -o', but also, the minuso test has
4336      # not run yet.  These depmodes are late enough in the game, and
4337      # so weak that their functioning should not be impacted.
4338      am__obj=conftest.${OBJEXT-o}
4339      am__minus_obj=
4340      ;;
4341    none) break ;;
4342    esac
4343    if depmode=$depmode \
4344       source=sub/conftest.c object=$am__obj \
4345       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4346       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4347         >/dev/null 2>conftest.err &&
4348       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4349       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4350       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4351       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4352      # icc doesn't choke on unknown options, it will just issue warnings
4353      # or remarks (even with -Werror).  So we grep stderr for any message
4354      # that says an option was ignored or not supported.
4355      # When given -MP, icc 7.0 and 7.1 complain thusly:
4356      #   icc: Command line warning: ignoring option '-M'; no argument required
4357      # The diagnosis changed in icc 8.0:
4358      #   icc: Command line remark: option '-MP' not supported
4359      if (grep 'ignoring option' conftest.err ||
4360          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4361        am_cv_CC_dependencies_compiler_type=$depmode
4362        break
4363      fi
4364    fi
4365  done
4366
4367  cd ..
4368  rm -rf conftest.dir
4369else
4370  am_cv_CC_dependencies_compiler_type=none
4371fi
4372
4373fi
4374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4375printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4376CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4377
4378 if
4379  test "x$enable_dependency_tracking" != xno \
4380  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4381  am__fastdepCC_TRUE=
4382  am__fastdepCC_FALSE='#'
4383else
4384  am__fastdepCC_TRUE='#'
4385  am__fastdepCC_FALSE=
4386fi
4387
4388
4389
4390
4391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4392printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4393if test ${ac_cv_c_undeclared_builtin_options+y}
4394then :
4395  printf %s "(cached) " >&6
4396else $as_nop
4397  ac_save_CFLAGS=$CFLAGS
4398   ac_cv_c_undeclared_builtin_options='cannot detect'
4399   for ac_arg in '' -fno-builtin; do
4400     CFLAGS="$ac_save_CFLAGS $ac_arg"
4401     # This test program should *not* compile successfully.
4402     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403/* end confdefs.h.  */
4404
4405int
4406main (void)
4407{
4408(void) strchr;
4409  ;
4410  return 0;
4411}
4412_ACEOF
4413if ac_fn_c_try_compile "$LINENO"
4414then :
4415
4416else $as_nop
4417  # This test program should compile successfully.
4418        # No library function is consistently available on
4419        # freestanding implementations, so test against a dummy
4420        # declaration.  Include always-available headers on the
4421        # off chance that they somehow elicit warnings.
4422        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423/* end confdefs.h.  */
4424#include <float.h>
4425#include <limits.h>
4426#include <stdarg.h>
4427#include <stddef.h>
4428extern void ac_decl (int, char *);
4429
4430int
4431main (void)
4432{
4433(void) ac_decl (0, (char *) 0);
4434  (void) ac_decl;
4435
4436  ;
4437  return 0;
4438}
4439_ACEOF
4440if ac_fn_c_try_compile "$LINENO"
4441then :
4442  if test x"$ac_arg" = x
4443then :
4444  ac_cv_c_undeclared_builtin_options='none needed'
4445else $as_nop
4446  ac_cv_c_undeclared_builtin_options=$ac_arg
4447fi
4448          break
4449fi
4450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4451fi
4452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4453    done
4454    CFLAGS=$ac_save_CFLAGS
4455
4456fi
4457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4458printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4459  case $ac_cv_c_undeclared_builtin_options in #(
4460  'cannot detect') :
4461    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4462printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4463as_fn_error $? "cannot make $CC report undeclared builtins
4464See \`config.log' for more details" "$LINENO" 5; } ;; #(
4465  'none needed') :
4466    ac_c_undeclared_builtin_options='' ;; #(
4467  *) :
4468    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4469esac
4470
4471ac_header= ac_cache=
4472for ac_item in $ac_header_c_list
4473do
4474  if test $ac_cache; then
4475    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4476    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4477      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4478    fi
4479    ac_header= ac_cache=
4480  elif test $ac_header; then
4481    ac_cache=$ac_item
4482  else
4483    ac_header=$ac_item
4484  fi
4485done
4486
4487
4488
4489
4490
4491
4492
4493
4494if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4495then :
4496
4497printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4498
4499fi
4500
4501
4502
4503
4504ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4505if test "x$ac_cv_have_decl___clang__" = xyes
4506then :
4507  CLANGCC="yes"
4508else $as_nop
4509  CLANGCC="no"
4510fi
4511ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4512if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4513then :
4514  INTELCC="yes"
4515else $as_nop
4516  INTELCC="no"
4517fi
4518ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4519if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4520then :
4521  SUNCC="yes"
4522else $as_nop
4523  SUNCC="no"
4524fi
4525
4526
4527
4528
4529
4530
4531
4532
4533if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4534	if test -n "$ac_tool_prefix"; then
4535  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4536set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538printf %s "checking for $ac_word... " >&6; }
4539if test ${ac_cv_path_PKG_CONFIG+y}
4540then :
4541  printf %s "(cached) " >&6
4542else $as_nop
4543  case $PKG_CONFIG in
4544  [\\/]* | ?:[\\/]*)
4545  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4546  ;;
4547  *)
4548  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH
4550do
4551  IFS=$as_save_IFS
4552  case $as_dir in #(((
4553    '') as_dir=./ ;;
4554    */) ;;
4555    *) as_dir=$as_dir/ ;;
4556  esac
4557    for ac_exec_ext in '' $ac_executable_extensions; do
4558  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4559    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4560    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4561    break 2
4562  fi
4563done
4564  done
4565IFS=$as_save_IFS
4566
4567  ;;
4568esac
4569fi
4570PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4571if test -n "$PKG_CONFIG"; then
4572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4573printf "%s\n" "$PKG_CONFIG" >&6; }
4574else
4575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576printf "%s\n" "no" >&6; }
4577fi
4578
4579
4580fi
4581if test -z "$ac_cv_path_PKG_CONFIG"; then
4582  ac_pt_PKG_CONFIG=$PKG_CONFIG
4583  # Extract the first word of "pkg-config", so it can be a program name with args.
4584set dummy pkg-config; ac_word=$2
4585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586printf %s "checking for $ac_word... " >&6; }
4587if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4588then :
4589  printf %s "(cached) " >&6
4590else $as_nop
4591  case $ac_pt_PKG_CONFIG in
4592  [\\/]* | ?:[\\/]*)
4593  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4594  ;;
4595  *)
4596  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599  IFS=$as_save_IFS
4600  case $as_dir in #(((
4601    '') as_dir=./ ;;
4602    */) ;;
4603    *) as_dir=$as_dir/ ;;
4604  esac
4605    for ac_exec_ext in '' $ac_executable_extensions; do
4606  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4607    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4608    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4609    break 2
4610  fi
4611done
4612  done
4613IFS=$as_save_IFS
4614
4615  ;;
4616esac
4617fi
4618ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4619if test -n "$ac_pt_PKG_CONFIG"; then
4620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4621printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4622else
4623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624printf "%s\n" "no" >&6; }
4625fi
4626
4627  if test "x$ac_pt_PKG_CONFIG" = x; then
4628    PKG_CONFIG=""
4629  else
4630    case $cross_compiling:$ac_tool_warned in
4631yes:)
4632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4633printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4634ac_tool_warned=yes ;;
4635esac
4636    PKG_CONFIG=$ac_pt_PKG_CONFIG
4637  fi
4638else
4639  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4640fi
4641
4642fi
4643if test -n "$PKG_CONFIG"; then
4644	_pkg_min_version=0.9.0
4645	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4646printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4647	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4649printf "%s\n" "yes" >&6; }
4650	else
4651		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652printf "%s\n" "no" >&6; }
4653		PKG_CONFIG=""
4654	fi
4655fi
4656
4657
4658  # Make sure we can run config.sub.
4659$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4660  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4661
4662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4663printf %s "checking build system type... " >&6; }
4664if test ${ac_cv_build+y}
4665then :
4666  printf %s "(cached) " >&6
4667else $as_nop
4668  ac_build_alias=$build_alias
4669test "x$ac_build_alias" = x &&
4670  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4671test "x$ac_build_alias" = x &&
4672  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4673ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4674  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4675
4676fi
4677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4678printf "%s\n" "$ac_cv_build" >&6; }
4679case $ac_cv_build in
4680*-*-*) ;;
4681*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4682esac
4683build=$ac_cv_build
4684ac_save_IFS=$IFS; IFS='-'
4685set x $ac_cv_build
4686shift
4687build_cpu=$1
4688build_vendor=$2
4689shift; shift
4690# Remember, the first character of IFS is used to create $*,
4691# except with old shells:
4692build_os=$*
4693IFS=$ac_save_IFS
4694case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4695
4696
4697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4698printf %s "checking host system type... " >&6; }
4699if test ${ac_cv_host+y}
4700then :
4701  printf %s "(cached) " >&6
4702else $as_nop
4703  if test "x$host_alias" = x; then
4704  ac_cv_host=$ac_cv_build
4705else
4706  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4707    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4708fi
4709
4710fi
4711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4712printf "%s\n" "$ac_cv_host" >&6; }
4713case $ac_cv_host in
4714*-*-*) ;;
4715*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4716esac
4717host=$ac_cv_host
4718ac_save_IFS=$IFS; IFS='-'
4719set x $ac_cv_host
4720shift
4721host_cpu=$1
4722host_vendor=$2
4723shift; shift
4724# Remember, the first character of IFS is used to create $*,
4725# except with old shells:
4726host_os=$*
4727IFS=$ac_save_IFS
4728case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4729
4730
4731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4732printf %s "checking for a sed that does not truncate output... " >&6; }
4733if test ${ac_cv_path_SED+y}
4734then :
4735  printf %s "(cached) " >&6
4736else $as_nop
4737            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4738     for ac_i in 1 2 3 4 5 6 7; do
4739       ac_script="$ac_script$as_nl$ac_script"
4740     done
4741     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4742     { ac_script=; unset ac_script;}
4743     if test -z "$SED"; then
4744  ac_path_SED_found=false
4745  # Loop through the user's path and test for each of PROGNAME-LIST
4746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749  IFS=$as_save_IFS
4750  case $as_dir in #(((
4751    '') as_dir=./ ;;
4752    */) ;;
4753    *) as_dir=$as_dir/ ;;
4754  esac
4755    for ac_prog in sed gsed
4756   do
4757    for ac_exec_ext in '' $ac_executable_extensions; do
4758      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4759      as_fn_executable_p "$ac_path_SED" || continue
4760# Check for GNU ac_path_SED and select it if it is found.
4761  # Check for GNU $ac_path_SED
4762case `"$ac_path_SED" --version 2>&1` in
4763*GNU*)
4764  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4765*)
4766  ac_count=0
4767  printf %s 0123456789 >"conftest.in"
4768  while :
4769  do
4770    cat "conftest.in" "conftest.in" >"conftest.tmp"
4771    mv "conftest.tmp" "conftest.in"
4772    cp "conftest.in" "conftest.nl"
4773    printf "%s\n" '' >> "conftest.nl"
4774    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4775    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4776    as_fn_arith $ac_count + 1 && ac_count=$as_val
4777    if test $ac_count -gt ${ac_path_SED_max-0}; then
4778      # Best one so far, save it but keep looking for a better one
4779      ac_cv_path_SED="$ac_path_SED"
4780      ac_path_SED_max=$ac_count
4781    fi
4782    # 10*(2^10) chars as input seems more than enough
4783    test $ac_count -gt 10 && break
4784  done
4785  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4786esac
4787
4788      $ac_path_SED_found && break 3
4789    done
4790  done
4791  done
4792IFS=$as_save_IFS
4793  if test -z "$ac_cv_path_SED"; then
4794    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4795  fi
4796else
4797  ac_cv_path_SED=$SED
4798fi
4799
4800fi
4801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4802printf "%s\n" "$ac_cv_path_SED" >&6; }
4803 SED="$ac_cv_path_SED"
4804  rm -f conftest.sed
4805
4806
4807
4808
4809
4810
4811# Check whether --enable-selective-werror was given.
4812if test ${enable_selective_werror+y}
4813then :
4814  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4815else $as_nop
4816  SELECTIVE_WERROR=yes
4817fi
4818
4819
4820
4821
4822
4823# -v is too short to test reliably with XORG_TESTSET_CFLAG
4824if test "x$SUNCC" = "xyes"; then
4825    BASE_CFLAGS="-v"
4826else
4827    BASE_CFLAGS=""
4828fi
4829
4830# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844xorg_testset_save_CFLAGS="$CFLAGS"
4845
4846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4847	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4848	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4849printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4850if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4851then :
4852  printf %s "(cached) " >&6
4853else $as_nop
4854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855/* end confdefs.h.  */
4856int i;
4857_ACEOF
4858if ac_fn_c_try_compile "$LINENO"
4859then :
4860  xorg_cv_cc_flag_unknown_warning_option=yes
4861else $as_nop
4862  xorg_cv_cc_flag_unknown_warning_option=no
4863fi
4864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4865fi
4866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4867printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4868	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4869	CFLAGS="$xorg_testset_save_CFLAGS"
4870fi
4871
4872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4873	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4874		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4875	fi
4876	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4877	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4878printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4879if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4880then :
4881  printf %s "(cached) " >&6
4882else $as_nop
4883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884/* end confdefs.h.  */
4885int i;
4886_ACEOF
4887if ac_fn_c_try_compile "$LINENO"
4888then :
4889  xorg_cv_cc_flag_unused_command_line_argument=yes
4890else $as_nop
4891  xorg_cv_cc_flag_unused_command_line_argument=no
4892fi
4893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4894fi
4895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4896printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4897	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4898	CFLAGS="$xorg_testset_save_CFLAGS"
4899fi
4900
4901found="no"
4902
4903	if test $found = "no" ; then
4904		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4905			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4906		fi
4907
4908		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4909			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4910		fi
4911
4912		CFLAGS="$CFLAGS -Wall"
4913
4914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4915printf %s "checking if $CC supports -Wall... " >&6; }
4916		cacheid=xorg_cv_cc_flag__Wall
4917		if eval test \${$cacheid+y}
4918then :
4919  printf %s "(cached) " >&6
4920else $as_nop
4921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922/* end confdefs.h.  */
4923int i;
4924int
4925main (void)
4926{
4927
4928  ;
4929  return 0;
4930}
4931_ACEOF
4932if ac_fn_c_try_link "$LINENO"
4933then :
4934  eval $cacheid=yes
4935else $as_nop
4936  eval $cacheid=no
4937fi
4938rm -f core conftest.err conftest.$ac_objext conftest.beam \
4939    conftest$ac_exeext conftest.$ac_ext
4940fi
4941
4942
4943		CFLAGS="$xorg_testset_save_CFLAGS"
4944
4945		eval supported=\$$cacheid
4946		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4947printf "%s\n" "$supported" >&6; }
4948		if test "$supported" = "yes" ; then
4949			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4950			found="yes"
4951		fi
4952	fi
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968xorg_testset_save_CFLAGS="$CFLAGS"
4969
4970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4971	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4972	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4973printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4974if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4975then :
4976  printf %s "(cached) " >&6
4977else $as_nop
4978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979/* end confdefs.h.  */
4980int i;
4981_ACEOF
4982if ac_fn_c_try_compile "$LINENO"
4983then :
4984  xorg_cv_cc_flag_unknown_warning_option=yes
4985else $as_nop
4986  xorg_cv_cc_flag_unknown_warning_option=no
4987fi
4988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4989fi
4990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4991printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4992	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4993	CFLAGS="$xorg_testset_save_CFLAGS"
4994fi
4995
4996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4997	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4998		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4999	fi
5000	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5001	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5002printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5003if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5004then :
5005  printf %s "(cached) " >&6
5006else $as_nop
5007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008/* end confdefs.h.  */
5009int i;
5010_ACEOF
5011if ac_fn_c_try_compile "$LINENO"
5012then :
5013  xorg_cv_cc_flag_unused_command_line_argument=yes
5014else $as_nop
5015  xorg_cv_cc_flag_unused_command_line_argument=no
5016fi
5017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5018fi
5019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5020printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5022	CFLAGS="$xorg_testset_save_CFLAGS"
5023fi
5024
5025found="no"
5026
5027	if test $found = "no" ; then
5028		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5030		fi
5031
5032		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5034		fi
5035
5036		CFLAGS="$CFLAGS -Wpointer-arith"
5037
5038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5039printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5040		cacheid=xorg_cv_cc_flag__Wpointer_arith
5041		if eval test \${$cacheid+y}
5042then :
5043  printf %s "(cached) " >&6
5044else $as_nop
5045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046/* end confdefs.h.  */
5047int i;
5048int
5049main (void)
5050{
5051
5052  ;
5053  return 0;
5054}
5055_ACEOF
5056if ac_fn_c_try_link "$LINENO"
5057then :
5058  eval $cacheid=yes
5059else $as_nop
5060  eval $cacheid=no
5061fi
5062rm -f core conftest.err conftest.$ac_objext conftest.beam \
5063    conftest$ac_exeext conftest.$ac_ext
5064fi
5065
5066
5067		CFLAGS="$xorg_testset_save_CFLAGS"
5068
5069		eval supported=\$$cacheid
5070		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5071printf "%s\n" "$supported" >&6; }
5072		if test "$supported" = "yes" ; then
5073			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5074			found="yes"
5075		fi
5076	fi
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092xorg_testset_save_CFLAGS="$CFLAGS"
5093
5094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5095	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5096	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5097printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5098if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5099then :
5100  printf %s "(cached) " >&6
5101else $as_nop
5102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103/* end confdefs.h.  */
5104int i;
5105_ACEOF
5106if ac_fn_c_try_compile "$LINENO"
5107then :
5108  xorg_cv_cc_flag_unknown_warning_option=yes
5109else $as_nop
5110  xorg_cv_cc_flag_unknown_warning_option=no
5111fi
5112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5113fi
5114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5115printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5116	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5117	CFLAGS="$xorg_testset_save_CFLAGS"
5118fi
5119
5120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5121	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5122		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5123	fi
5124	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5125	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5126printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5127if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5128then :
5129  printf %s "(cached) " >&6
5130else $as_nop
5131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132/* end confdefs.h.  */
5133int i;
5134_ACEOF
5135if ac_fn_c_try_compile "$LINENO"
5136then :
5137  xorg_cv_cc_flag_unused_command_line_argument=yes
5138else $as_nop
5139  xorg_cv_cc_flag_unused_command_line_argument=no
5140fi
5141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5142fi
5143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5144printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5145	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5146	CFLAGS="$xorg_testset_save_CFLAGS"
5147fi
5148
5149found="no"
5150
5151	if test $found = "no" ; then
5152		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5153			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5154		fi
5155
5156		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5157			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5158		fi
5159
5160		CFLAGS="$CFLAGS -Wmissing-declarations"
5161
5162		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5163printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5164		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5165		if eval test \${$cacheid+y}
5166then :
5167  printf %s "(cached) " >&6
5168else $as_nop
5169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170/* end confdefs.h.  */
5171int i;
5172int
5173main (void)
5174{
5175
5176  ;
5177  return 0;
5178}
5179_ACEOF
5180if ac_fn_c_try_link "$LINENO"
5181then :
5182  eval $cacheid=yes
5183else $as_nop
5184  eval $cacheid=no
5185fi
5186rm -f core conftest.err conftest.$ac_objext conftest.beam \
5187    conftest$ac_exeext conftest.$ac_ext
5188fi
5189
5190
5191		CFLAGS="$xorg_testset_save_CFLAGS"
5192
5193		eval supported=\$$cacheid
5194		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5195printf "%s\n" "$supported" >&6; }
5196		if test "$supported" = "yes" ; then
5197			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5198			found="yes"
5199		fi
5200	fi
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216xorg_testset_save_CFLAGS="$CFLAGS"
5217
5218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5219	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5221printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5222if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5223then :
5224  printf %s "(cached) " >&6
5225else $as_nop
5226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227/* end confdefs.h.  */
5228int i;
5229_ACEOF
5230if ac_fn_c_try_compile "$LINENO"
5231then :
5232  xorg_cv_cc_flag_unknown_warning_option=yes
5233else $as_nop
5234  xorg_cv_cc_flag_unknown_warning_option=no
5235fi
5236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5237fi
5238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5239printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5240	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5241	CFLAGS="$xorg_testset_save_CFLAGS"
5242fi
5243
5244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5245	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5246		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5247	fi
5248	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5249	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5250printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5251if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5252then :
5253  printf %s "(cached) " >&6
5254else $as_nop
5255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256/* end confdefs.h.  */
5257int i;
5258_ACEOF
5259if ac_fn_c_try_compile "$LINENO"
5260then :
5261  xorg_cv_cc_flag_unused_command_line_argument=yes
5262else $as_nop
5263  xorg_cv_cc_flag_unused_command_line_argument=no
5264fi
5265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5266fi
5267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5268printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5269	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5270	CFLAGS="$xorg_testset_save_CFLAGS"
5271fi
5272
5273found="no"
5274
5275	if test $found = "no" ; then
5276		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5277			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5278		fi
5279
5280		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5281			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5282		fi
5283
5284		CFLAGS="$CFLAGS -Wformat=2"
5285
5286		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5287printf %s "checking if $CC supports -Wformat=2... " >&6; }
5288		cacheid=xorg_cv_cc_flag__Wformat_2
5289		if eval test \${$cacheid+y}
5290then :
5291  printf %s "(cached) " >&6
5292else $as_nop
5293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294/* end confdefs.h.  */
5295int i;
5296int
5297main (void)
5298{
5299
5300  ;
5301  return 0;
5302}
5303_ACEOF
5304if ac_fn_c_try_link "$LINENO"
5305then :
5306  eval $cacheid=yes
5307else $as_nop
5308  eval $cacheid=no
5309fi
5310rm -f core conftest.err conftest.$ac_objext conftest.beam \
5311    conftest$ac_exeext conftest.$ac_ext
5312fi
5313
5314
5315		CFLAGS="$xorg_testset_save_CFLAGS"
5316
5317		eval supported=\$$cacheid
5318		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5319printf "%s\n" "$supported" >&6; }
5320		if test "$supported" = "yes" ; then
5321			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5322			found="yes"
5323		fi
5324	fi
5325
5326	if test $found = "no" ; then
5327		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5329		fi
5330
5331		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5333		fi
5334
5335		CFLAGS="$CFLAGS -Wformat"
5336
5337		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5338printf %s "checking if $CC supports -Wformat... " >&6; }
5339		cacheid=xorg_cv_cc_flag__Wformat
5340		if eval test \${$cacheid+y}
5341then :
5342  printf %s "(cached) " >&6
5343else $as_nop
5344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345/* end confdefs.h.  */
5346int i;
5347int
5348main (void)
5349{
5350
5351  ;
5352  return 0;
5353}
5354_ACEOF
5355if ac_fn_c_try_link "$LINENO"
5356then :
5357  eval $cacheid=yes
5358else $as_nop
5359  eval $cacheid=no
5360fi
5361rm -f core conftest.err conftest.$ac_objext conftest.beam \
5362    conftest$ac_exeext conftest.$ac_ext
5363fi
5364
5365
5366		CFLAGS="$xorg_testset_save_CFLAGS"
5367
5368		eval supported=\$$cacheid
5369		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5370printf "%s\n" "$supported" >&6; }
5371		if test "$supported" = "yes" ; then
5372			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5373			found="yes"
5374		fi
5375	fi
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393xorg_testset_save_CFLAGS="$CFLAGS"
5394
5395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5399if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5400then :
5401  printf %s "(cached) " >&6
5402else $as_nop
5403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404/* end confdefs.h.  */
5405int i;
5406_ACEOF
5407if ac_fn_c_try_compile "$LINENO"
5408then :
5409  xorg_cv_cc_flag_unknown_warning_option=yes
5410else $as_nop
5411  xorg_cv_cc_flag_unknown_warning_option=no
5412fi
5413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5414fi
5415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5416printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5417	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5418	CFLAGS="$xorg_testset_save_CFLAGS"
5419fi
5420
5421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5422	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5423		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5424	fi
5425	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5426	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5427printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5428if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5429then :
5430  printf %s "(cached) " >&6
5431else $as_nop
5432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h.  */
5434int i;
5435_ACEOF
5436if ac_fn_c_try_compile "$LINENO"
5437then :
5438  xorg_cv_cc_flag_unused_command_line_argument=yes
5439else $as_nop
5440  xorg_cv_cc_flag_unused_command_line_argument=no
5441fi
5442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5443fi
5444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5445printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5446	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5447	CFLAGS="$xorg_testset_save_CFLAGS"
5448fi
5449
5450found="no"
5451
5452	if test $found = "no" ; then
5453		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5454			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455		fi
5456
5457		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5458			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5459		fi
5460
5461		CFLAGS="$CFLAGS -Wstrict-prototypes"
5462
5463		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5464printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5465		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5466		if eval test \${$cacheid+y}
5467then :
5468  printf %s "(cached) " >&6
5469else $as_nop
5470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h.  */
5472int i;
5473int
5474main (void)
5475{
5476
5477  ;
5478  return 0;
5479}
5480_ACEOF
5481if ac_fn_c_try_link "$LINENO"
5482then :
5483  eval $cacheid=yes
5484else $as_nop
5485  eval $cacheid=no
5486fi
5487rm -f core conftest.err conftest.$ac_objext conftest.beam \
5488    conftest$ac_exeext conftest.$ac_ext
5489fi
5490
5491
5492		CFLAGS="$xorg_testset_save_CFLAGS"
5493
5494		eval supported=\$$cacheid
5495		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5496printf "%s\n" "$supported" >&6; }
5497		if test "$supported" = "yes" ; then
5498			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5499			found="yes"
5500		fi
5501	fi
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517xorg_testset_save_CFLAGS="$CFLAGS"
5518
5519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5520	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5521	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5522printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5523if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5524then :
5525  printf %s "(cached) " >&6
5526else $as_nop
5527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528/* end confdefs.h.  */
5529int i;
5530_ACEOF
5531if ac_fn_c_try_compile "$LINENO"
5532then :
5533  xorg_cv_cc_flag_unknown_warning_option=yes
5534else $as_nop
5535  xorg_cv_cc_flag_unknown_warning_option=no
5536fi
5537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5538fi
5539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5540printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5541	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5542	CFLAGS="$xorg_testset_save_CFLAGS"
5543fi
5544
5545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5546	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5547		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5548	fi
5549	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5550	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5551printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5552if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5553then :
5554  printf %s "(cached) " >&6
5555else $as_nop
5556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557/* end confdefs.h.  */
5558int i;
5559_ACEOF
5560if ac_fn_c_try_compile "$LINENO"
5561then :
5562  xorg_cv_cc_flag_unused_command_line_argument=yes
5563else $as_nop
5564  xorg_cv_cc_flag_unused_command_line_argument=no
5565fi
5566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5567fi
5568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5569printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5570	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5571	CFLAGS="$xorg_testset_save_CFLAGS"
5572fi
5573
5574found="no"
5575
5576	if test $found = "no" ; then
5577		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5579		fi
5580
5581		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5583		fi
5584
5585		CFLAGS="$CFLAGS -Wmissing-prototypes"
5586
5587		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5588printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5589		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5590		if eval test \${$cacheid+y}
5591then :
5592  printf %s "(cached) " >&6
5593else $as_nop
5594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595/* end confdefs.h.  */
5596int i;
5597int
5598main (void)
5599{
5600
5601  ;
5602  return 0;
5603}
5604_ACEOF
5605if ac_fn_c_try_link "$LINENO"
5606then :
5607  eval $cacheid=yes
5608else $as_nop
5609  eval $cacheid=no
5610fi
5611rm -f core conftest.err conftest.$ac_objext conftest.beam \
5612    conftest$ac_exeext conftest.$ac_ext
5613fi
5614
5615
5616		CFLAGS="$xorg_testset_save_CFLAGS"
5617
5618		eval supported=\$$cacheid
5619		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5620printf "%s\n" "$supported" >&6; }
5621		if test "$supported" = "yes" ; then
5622			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5623			found="yes"
5624		fi
5625	fi
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641xorg_testset_save_CFLAGS="$CFLAGS"
5642
5643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5644	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5645	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5646printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5647if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5648then :
5649  printf %s "(cached) " >&6
5650else $as_nop
5651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652/* end confdefs.h.  */
5653int i;
5654_ACEOF
5655if ac_fn_c_try_compile "$LINENO"
5656then :
5657  xorg_cv_cc_flag_unknown_warning_option=yes
5658else $as_nop
5659  xorg_cv_cc_flag_unknown_warning_option=no
5660fi
5661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5662fi
5663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5664printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5665	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5666	CFLAGS="$xorg_testset_save_CFLAGS"
5667fi
5668
5669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5670	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5671		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5672	fi
5673	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5674	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5675printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5676if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5677then :
5678  printf %s "(cached) " >&6
5679else $as_nop
5680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681/* end confdefs.h.  */
5682int i;
5683_ACEOF
5684if ac_fn_c_try_compile "$LINENO"
5685then :
5686  xorg_cv_cc_flag_unused_command_line_argument=yes
5687else $as_nop
5688  xorg_cv_cc_flag_unused_command_line_argument=no
5689fi
5690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5691fi
5692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5693printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5694	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5695	CFLAGS="$xorg_testset_save_CFLAGS"
5696fi
5697
5698found="no"
5699
5700	if test $found = "no" ; then
5701		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5702			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5703		fi
5704
5705		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5706			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5707		fi
5708
5709		CFLAGS="$CFLAGS -Wnested-externs"
5710
5711		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5712printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5713		cacheid=xorg_cv_cc_flag__Wnested_externs
5714		if eval test \${$cacheid+y}
5715then :
5716  printf %s "(cached) " >&6
5717else $as_nop
5718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719/* end confdefs.h.  */
5720int i;
5721int
5722main (void)
5723{
5724
5725  ;
5726  return 0;
5727}
5728_ACEOF
5729if ac_fn_c_try_link "$LINENO"
5730then :
5731  eval $cacheid=yes
5732else $as_nop
5733  eval $cacheid=no
5734fi
5735rm -f core conftest.err conftest.$ac_objext conftest.beam \
5736    conftest$ac_exeext conftest.$ac_ext
5737fi
5738
5739
5740		CFLAGS="$xorg_testset_save_CFLAGS"
5741
5742		eval supported=\$$cacheid
5743		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5744printf "%s\n" "$supported" >&6; }
5745		if test "$supported" = "yes" ; then
5746			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5747			found="yes"
5748		fi
5749	fi
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765xorg_testset_save_CFLAGS="$CFLAGS"
5766
5767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5768	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5769	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5770printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5771if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5772then :
5773  printf %s "(cached) " >&6
5774else $as_nop
5775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h.  */
5777int i;
5778_ACEOF
5779if ac_fn_c_try_compile "$LINENO"
5780then :
5781  xorg_cv_cc_flag_unknown_warning_option=yes
5782else $as_nop
5783  xorg_cv_cc_flag_unknown_warning_option=no
5784fi
5785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5786fi
5787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5788printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5789	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5790	CFLAGS="$xorg_testset_save_CFLAGS"
5791fi
5792
5793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5794	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5795		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5796	fi
5797	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5798	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5799printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5800if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5801then :
5802  printf %s "(cached) " >&6
5803else $as_nop
5804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805/* end confdefs.h.  */
5806int i;
5807_ACEOF
5808if ac_fn_c_try_compile "$LINENO"
5809then :
5810  xorg_cv_cc_flag_unused_command_line_argument=yes
5811else $as_nop
5812  xorg_cv_cc_flag_unused_command_line_argument=no
5813fi
5814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5815fi
5816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5817printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5818	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5819	CFLAGS="$xorg_testset_save_CFLAGS"
5820fi
5821
5822found="no"
5823
5824	if test $found = "no" ; then
5825		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5826			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5827		fi
5828
5829		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5830			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5831		fi
5832
5833		CFLAGS="$CFLAGS -Wbad-function-cast"
5834
5835		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5836printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5837		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5838		if eval test \${$cacheid+y}
5839then :
5840  printf %s "(cached) " >&6
5841else $as_nop
5842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h.  */
5844int i;
5845int
5846main (void)
5847{
5848
5849  ;
5850  return 0;
5851}
5852_ACEOF
5853if ac_fn_c_try_link "$LINENO"
5854then :
5855  eval $cacheid=yes
5856else $as_nop
5857  eval $cacheid=no
5858fi
5859rm -f core conftest.err conftest.$ac_objext conftest.beam \
5860    conftest$ac_exeext conftest.$ac_ext
5861fi
5862
5863
5864		CFLAGS="$xorg_testset_save_CFLAGS"
5865
5866		eval supported=\$$cacheid
5867		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5868printf "%s\n" "$supported" >&6; }
5869		if test "$supported" = "yes" ; then
5870			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5871			found="yes"
5872		fi
5873	fi
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889xorg_testset_save_CFLAGS="$CFLAGS"
5890
5891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5892	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5893	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5894printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5895if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5896then :
5897  printf %s "(cached) " >&6
5898else $as_nop
5899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900/* end confdefs.h.  */
5901int i;
5902_ACEOF
5903if ac_fn_c_try_compile "$LINENO"
5904then :
5905  xorg_cv_cc_flag_unknown_warning_option=yes
5906else $as_nop
5907  xorg_cv_cc_flag_unknown_warning_option=no
5908fi
5909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5910fi
5911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5912printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5913	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5914	CFLAGS="$xorg_testset_save_CFLAGS"
5915fi
5916
5917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5918	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5919		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5920	fi
5921	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5922	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5923printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5924if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5925then :
5926  printf %s "(cached) " >&6
5927else $as_nop
5928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929/* end confdefs.h.  */
5930int i;
5931_ACEOF
5932if ac_fn_c_try_compile "$LINENO"
5933then :
5934  xorg_cv_cc_flag_unused_command_line_argument=yes
5935else $as_nop
5936  xorg_cv_cc_flag_unused_command_line_argument=no
5937fi
5938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5939fi
5940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5941printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5942	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5943	CFLAGS="$xorg_testset_save_CFLAGS"
5944fi
5945
5946found="no"
5947
5948	if test $found = "no" ; then
5949		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5951		fi
5952
5953		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5955		fi
5956
5957		CFLAGS="$CFLAGS -Wold-style-definition"
5958
5959		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5960printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5961		cacheid=xorg_cv_cc_flag__Wold_style_definition
5962		if eval test \${$cacheid+y}
5963then :
5964  printf %s "(cached) " >&6
5965else $as_nop
5966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967/* end confdefs.h.  */
5968int i;
5969int
5970main (void)
5971{
5972
5973  ;
5974  return 0;
5975}
5976_ACEOF
5977if ac_fn_c_try_link "$LINENO"
5978then :
5979  eval $cacheid=yes
5980else $as_nop
5981  eval $cacheid=no
5982fi
5983rm -f core conftest.err conftest.$ac_objext conftest.beam \
5984    conftest$ac_exeext conftest.$ac_ext
5985fi
5986
5987
5988		CFLAGS="$xorg_testset_save_CFLAGS"
5989
5990		eval supported=\$$cacheid
5991		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5992printf "%s\n" "$supported" >&6; }
5993		if test "$supported" = "yes" ; then
5994			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5995			found="yes"
5996		fi
5997	fi
5998
5999	if test $found = "no" ; then
6000		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6001			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6002		fi
6003
6004		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6005			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6006		fi
6007
6008		CFLAGS="$CFLAGS -fd"
6009
6010		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6011printf %s "checking if $CC supports -fd... " >&6; }
6012		cacheid=xorg_cv_cc_flag__fd
6013		if eval test \${$cacheid+y}
6014then :
6015  printf %s "(cached) " >&6
6016else $as_nop
6017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018/* end confdefs.h.  */
6019int i;
6020int
6021main (void)
6022{
6023
6024  ;
6025  return 0;
6026}
6027_ACEOF
6028if ac_fn_c_try_link "$LINENO"
6029then :
6030  eval $cacheid=yes
6031else $as_nop
6032  eval $cacheid=no
6033fi
6034rm -f core conftest.err conftest.$ac_objext conftest.beam \
6035    conftest$ac_exeext conftest.$ac_ext
6036fi
6037
6038
6039		CFLAGS="$xorg_testset_save_CFLAGS"
6040
6041		eval supported=\$$cacheid
6042		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6043printf "%s\n" "$supported" >&6; }
6044		if test "$supported" = "yes" ; then
6045			BASE_CFLAGS="$BASE_CFLAGS -fd"
6046			found="yes"
6047		fi
6048	fi
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064xorg_testset_save_CFLAGS="$CFLAGS"
6065
6066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6067	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6068	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6069printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6070if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6071then :
6072  printf %s "(cached) " >&6
6073else $as_nop
6074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075/* end confdefs.h.  */
6076int i;
6077_ACEOF
6078if ac_fn_c_try_compile "$LINENO"
6079then :
6080  xorg_cv_cc_flag_unknown_warning_option=yes
6081else $as_nop
6082  xorg_cv_cc_flag_unknown_warning_option=no
6083fi
6084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6085fi
6086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6087printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6088	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6089	CFLAGS="$xorg_testset_save_CFLAGS"
6090fi
6091
6092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6093	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6094		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6095	fi
6096	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6097	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6098printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6099if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6100then :
6101  printf %s "(cached) " >&6
6102else $as_nop
6103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104/* end confdefs.h.  */
6105int i;
6106_ACEOF
6107if ac_fn_c_try_compile "$LINENO"
6108then :
6109  xorg_cv_cc_flag_unused_command_line_argument=yes
6110else $as_nop
6111  xorg_cv_cc_flag_unused_command_line_argument=no
6112fi
6113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6114fi
6115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6116printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6117	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6118	CFLAGS="$xorg_testset_save_CFLAGS"
6119fi
6120
6121found="no"
6122
6123	if test $found = "no" ; then
6124		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6125			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6126		fi
6127
6128		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6129			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6130		fi
6131
6132		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6133
6134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6135printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6136		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6137		if eval test \${$cacheid+y}
6138then :
6139  printf %s "(cached) " >&6
6140else $as_nop
6141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142/* end confdefs.h.  */
6143int i;
6144int
6145main (void)
6146{
6147
6148  ;
6149  return 0;
6150}
6151_ACEOF
6152if ac_fn_c_try_link "$LINENO"
6153then :
6154  eval $cacheid=yes
6155else $as_nop
6156  eval $cacheid=no
6157fi
6158rm -f core conftest.err conftest.$ac_objext conftest.beam \
6159    conftest$ac_exeext conftest.$ac_ext
6160fi
6161
6162
6163		CFLAGS="$xorg_testset_save_CFLAGS"
6164
6165		eval supported=\$$cacheid
6166		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6167printf "%s\n" "$supported" >&6; }
6168		if test "$supported" = "yes" ; then
6169			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6170			found="yes"
6171		fi
6172	fi
6173
6174
6175
6176
6177
6178# This chunk adds additional warnings that could catch undesired effects.
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192xorg_testset_save_CFLAGS="$CFLAGS"
6193
6194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6197printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6198if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6199then :
6200  printf %s "(cached) " >&6
6201else $as_nop
6202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203/* end confdefs.h.  */
6204int i;
6205_ACEOF
6206if ac_fn_c_try_compile "$LINENO"
6207then :
6208  xorg_cv_cc_flag_unknown_warning_option=yes
6209else $as_nop
6210  xorg_cv_cc_flag_unknown_warning_option=no
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6213fi
6214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6217	CFLAGS="$xorg_testset_save_CFLAGS"
6218fi
6219
6220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6223	fi
6224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6227if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6228then :
6229  printf %s "(cached) " >&6
6230else $as_nop
6231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232/* end confdefs.h.  */
6233int i;
6234_ACEOF
6235if ac_fn_c_try_compile "$LINENO"
6236then :
6237  xorg_cv_cc_flag_unused_command_line_argument=yes
6238else $as_nop
6239  xorg_cv_cc_flag_unused_command_line_argument=no
6240fi
6241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6242fi
6243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6244printf "%s\n" "$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"
6247fi
6248
6249found="no"
6250
6251	if test $found = "no" ; then
6252		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254		fi
6255
6256		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258		fi
6259
6260		CFLAGS="$CFLAGS -Wunused"
6261
6262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6263printf %s "checking if $CC supports -Wunused... " >&6; }
6264		cacheid=xorg_cv_cc_flag__Wunused
6265		if eval test \${$cacheid+y}
6266then :
6267  printf %s "(cached) " >&6
6268else $as_nop
6269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270/* end confdefs.h.  */
6271int i;
6272int
6273main (void)
6274{
6275
6276  ;
6277  return 0;
6278}
6279_ACEOF
6280if ac_fn_c_try_link "$LINENO"
6281then :
6282  eval $cacheid=yes
6283else $as_nop
6284  eval $cacheid=no
6285fi
6286rm -f core conftest.err conftest.$ac_objext conftest.beam \
6287    conftest$ac_exeext conftest.$ac_ext
6288fi
6289
6290
6291		CFLAGS="$xorg_testset_save_CFLAGS"
6292
6293		eval supported=\$$cacheid
6294		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6295printf "%s\n" "$supported" >&6; }
6296		if test "$supported" = "yes" ; then
6297			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6298			found="yes"
6299		fi
6300	fi
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316xorg_testset_save_CFLAGS="$CFLAGS"
6317
6318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6320	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6321printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6322if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6323then :
6324  printf %s "(cached) " >&6
6325else $as_nop
6326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327/* end confdefs.h.  */
6328int i;
6329_ACEOF
6330if ac_fn_c_try_compile "$LINENO"
6331then :
6332  xorg_cv_cc_flag_unknown_warning_option=yes
6333else $as_nop
6334  xorg_cv_cc_flag_unknown_warning_option=no
6335fi
6336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6337fi
6338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6339printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6341	CFLAGS="$xorg_testset_save_CFLAGS"
6342fi
6343
6344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6347	fi
6348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6349	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6350printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6351if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6352then :
6353  printf %s "(cached) " >&6
6354else $as_nop
6355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356/* end confdefs.h.  */
6357int i;
6358_ACEOF
6359if ac_fn_c_try_compile "$LINENO"
6360then :
6361  xorg_cv_cc_flag_unused_command_line_argument=yes
6362else $as_nop
6363  xorg_cv_cc_flag_unused_command_line_argument=no
6364fi
6365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6366fi
6367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6368printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6370	CFLAGS="$xorg_testset_save_CFLAGS"
6371fi
6372
6373found="no"
6374
6375	if test $found = "no" ; then
6376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6378		fi
6379
6380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6382		fi
6383
6384		CFLAGS="$CFLAGS -Wuninitialized"
6385
6386		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6387printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6388		cacheid=xorg_cv_cc_flag__Wuninitialized
6389		if eval test \${$cacheid+y}
6390then :
6391  printf %s "(cached) " >&6
6392else $as_nop
6393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394/* end confdefs.h.  */
6395int i;
6396int
6397main (void)
6398{
6399
6400  ;
6401  return 0;
6402}
6403_ACEOF
6404if ac_fn_c_try_link "$LINENO"
6405then :
6406  eval $cacheid=yes
6407else $as_nop
6408  eval $cacheid=no
6409fi
6410rm -f core conftest.err conftest.$ac_objext conftest.beam \
6411    conftest$ac_exeext conftest.$ac_ext
6412fi
6413
6414
6415		CFLAGS="$xorg_testset_save_CFLAGS"
6416
6417		eval supported=\$$cacheid
6418		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6419printf "%s\n" "$supported" >&6; }
6420		if test "$supported" = "yes" ; then
6421			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6422			found="yes"
6423		fi
6424	fi
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440xorg_testset_save_CFLAGS="$CFLAGS"
6441
6442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6443	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6444	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6445printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6446if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6447then :
6448  printf %s "(cached) " >&6
6449else $as_nop
6450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451/* end confdefs.h.  */
6452int i;
6453_ACEOF
6454if ac_fn_c_try_compile "$LINENO"
6455then :
6456  xorg_cv_cc_flag_unknown_warning_option=yes
6457else $as_nop
6458  xorg_cv_cc_flag_unknown_warning_option=no
6459fi
6460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6461fi
6462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6463printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6465	CFLAGS="$xorg_testset_save_CFLAGS"
6466fi
6467
6468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6471	fi
6472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6474printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6475if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6476then :
6477  printf %s "(cached) " >&6
6478else $as_nop
6479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480/* end confdefs.h.  */
6481int i;
6482_ACEOF
6483if ac_fn_c_try_compile "$LINENO"
6484then :
6485  xorg_cv_cc_flag_unused_command_line_argument=yes
6486else $as_nop
6487  xorg_cv_cc_flag_unused_command_line_argument=no
6488fi
6489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6490fi
6491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6494	CFLAGS="$xorg_testset_save_CFLAGS"
6495fi
6496
6497found="no"
6498
6499	if test $found = "no" ; then
6500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6502		fi
6503
6504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6506		fi
6507
6508		CFLAGS="$CFLAGS -Wshadow"
6509
6510		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6511printf %s "checking if $CC supports -Wshadow... " >&6; }
6512		cacheid=xorg_cv_cc_flag__Wshadow
6513		if eval test \${$cacheid+y}
6514then :
6515  printf %s "(cached) " >&6
6516else $as_nop
6517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518/* end confdefs.h.  */
6519int i;
6520int
6521main (void)
6522{
6523
6524  ;
6525  return 0;
6526}
6527_ACEOF
6528if ac_fn_c_try_link "$LINENO"
6529then :
6530  eval $cacheid=yes
6531else $as_nop
6532  eval $cacheid=no
6533fi
6534rm -f core conftest.err conftest.$ac_objext conftest.beam \
6535    conftest$ac_exeext conftest.$ac_ext
6536fi
6537
6538
6539		CFLAGS="$xorg_testset_save_CFLAGS"
6540
6541		eval supported=\$$cacheid
6542		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6543printf "%s\n" "$supported" >&6; }
6544		if test "$supported" = "yes" ; then
6545			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6546			found="yes"
6547		fi
6548	fi
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564xorg_testset_save_CFLAGS="$CFLAGS"
6565
6566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6567	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6568	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6569printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6570if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6571then :
6572  printf %s "(cached) " >&6
6573else $as_nop
6574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h.  */
6576int i;
6577_ACEOF
6578if ac_fn_c_try_compile "$LINENO"
6579then :
6580  xorg_cv_cc_flag_unknown_warning_option=yes
6581else $as_nop
6582  xorg_cv_cc_flag_unknown_warning_option=no
6583fi
6584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6585fi
6586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6589	CFLAGS="$xorg_testset_save_CFLAGS"
6590fi
6591
6592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6595	fi
6596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6599if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6600then :
6601  printf %s "(cached) " >&6
6602else $as_nop
6603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604/* end confdefs.h.  */
6605int i;
6606_ACEOF
6607if ac_fn_c_try_compile "$LINENO"
6608then :
6609  xorg_cv_cc_flag_unused_command_line_argument=yes
6610else $as_nop
6611  xorg_cv_cc_flag_unused_command_line_argument=no
6612fi
6613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6614fi
6615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6616printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6618	CFLAGS="$xorg_testset_save_CFLAGS"
6619fi
6620
6621found="no"
6622
6623	if test $found = "no" ; then
6624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6626		fi
6627
6628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6630		fi
6631
6632		CFLAGS="$CFLAGS -Wmissing-noreturn"
6633
6634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6635printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6636		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6637		if eval test \${$cacheid+y}
6638then :
6639  printf %s "(cached) " >&6
6640else $as_nop
6641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642/* end confdefs.h.  */
6643int i;
6644int
6645main (void)
6646{
6647
6648  ;
6649  return 0;
6650}
6651_ACEOF
6652if ac_fn_c_try_link "$LINENO"
6653then :
6654  eval $cacheid=yes
6655else $as_nop
6656  eval $cacheid=no
6657fi
6658rm -f core conftest.err conftest.$ac_objext conftest.beam \
6659    conftest$ac_exeext conftest.$ac_ext
6660fi
6661
6662
6663		CFLAGS="$xorg_testset_save_CFLAGS"
6664
6665		eval supported=\$$cacheid
6666		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6667printf "%s\n" "$supported" >&6; }
6668		if test "$supported" = "yes" ; then
6669			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6670			found="yes"
6671		fi
6672	fi
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688xorg_testset_save_CFLAGS="$CFLAGS"
6689
6690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6692	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6693printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6694if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6695then :
6696  printf %s "(cached) " >&6
6697else $as_nop
6698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699/* end confdefs.h.  */
6700int i;
6701_ACEOF
6702if ac_fn_c_try_compile "$LINENO"
6703then :
6704  xorg_cv_cc_flag_unknown_warning_option=yes
6705else $as_nop
6706  xorg_cv_cc_flag_unknown_warning_option=no
6707fi
6708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6709fi
6710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6711printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6712	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6713	CFLAGS="$xorg_testset_save_CFLAGS"
6714fi
6715
6716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6717	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6718		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6719	fi
6720	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6722printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6723if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6724then :
6725  printf %s "(cached) " >&6
6726else $as_nop
6727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728/* end confdefs.h.  */
6729int i;
6730_ACEOF
6731if ac_fn_c_try_compile "$LINENO"
6732then :
6733  xorg_cv_cc_flag_unused_command_line_argument=yes
6734else $as_nop
6735  xorg_cv_cc_flag_unused_command_line_argument=no
6736fi
6737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6738fi
6739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6742	CFLAGS="$xorg_testset_save_CFLAGS"
6743fi
6744
6745found="no"
6746
6747	if test $found = "no" ; then
6748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6750		fi
6751
6752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6754		fi
6755
6756		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6757
6758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6759printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6760		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6761		if eval test \${$cacheid+y}
6762then :
6763  printf %s "(cached) " >&6
6764else $as_nop
6765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766/* end confdefs.h.  */
6767int i;
6768int
6769main (void)
6770{
6771
6772  ;
6773  return 0;
6774}
6775_ACEOF
6776if ac_fn_c_try_link "$LINENO"
6777then :
6778  eval $cacheid=yes
6779else $as_nop
6780  eval $cacheid=no
6781fi
6782rm -f core conftest.err conftest.$ac_objext conftest.beam \
6783    conftest$ac_exeext conftest.$ac_ext
6784fi
6785
6786
6787		CFLAGS="$xorg_testset_save_CFLAGS"
6788
6789		eval supported=\$$cacheid
6790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6791printf "%s\n" "$supported" >&6; }
6792		if test "$supported" = "yes" ; then
6793			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6794			found="yes"
6795		fi
6796	fi
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812xorg_testset_save_CFLAGS="$CFLAGS"
6813
6814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6816	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6818if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6819then :
6820  printf %s "(cached) " >&6
6821else $as_nop
6822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823/* end confdefs.h.  */
6824int i;
6825_ACEOF
6826if ac_fn_c_try_compile "$LINENO"
6827then :
6828  xorg_cv_cc_flag_unknown_warning_option=yes
6829else $as_nop
6830  xorg_cv_cc_flag_unknown_warning_option=no
6831fi
6832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6833fi
6834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6835printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6837	CFLAGS="$xorg_testset_save_CFLAGS"
6838fi
6839
6840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6843	fi
6844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6846printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6847if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6848then :
6849  printf %s "(cached) " >&6
6850else $as_nop
6851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852/* end confdefs.h.  */
6853int i;
6854_ACEOF
6855if ac_fn_c_try_compile "$LINENO"
6856then :
6857  xorg_cv_cc_flag_unused_command_line_argument=yes
6858else $as_nop
6859  xorg_cv_cc_flag_unused_command_line_argument=no
6860fi
6861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6862fi
6863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6864printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6865	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6866	CFLAGS="$xorg_testset_save_CFLAGS"
6867fi
6868
6869found="no"
6870
6871	if test $found = "no" ; then
6872		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6874		fi
6875
6876		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6878		fi
6879
6880		CFLAGS="$CFLAGS -Wredundant-decls"
6881
6882		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6883printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6884		cacheid=xorg_cv_cc_flag__Wredundant_decls
6885		if eval test \${$cacheid+y}
6886then :
6887  printf %s "(cached) " >&6
6888else $as_nop
6889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890/* end confdefs.h.  */
6891int i;
6892int
6893main (void)
6894{
6895
6896  ;
6897  return 0;
6898}
6899_ACEOF
6900if ac_fn_c_try_link "$LINENO"
6901then :
6902  eval $cacheid=yes
6903else $as_nop
6904  eval $cacheid=no
6905fi
6906rm -f core conftest.err conftest.$ac_objext conftest.beam \
6907    conftest$ac_exeext conftest.$ac_ext
6908fi
6909
6910
6911		CFLAGS="$xorg_testset_save_CFLAGS"
6912
6913		eval supported=\$$cacheid
6914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6915printf "%s\n" "$supported" >&6; }
6916		if test "$supported" = "yes" ; then
6917			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6918			found="yes"
6919		fi
6920	fi
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936xorg_testset_save_CFLAGS="$CFLAGS"
6937
6938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6939	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6942if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6943then :
6944  printf %s "(cached) " >&6
6945else $as_nop
6946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947/* end confdefs.h.  */
6948int i;
6949_ACEOF
6950if ac_fn_c_try_compile "$LINENO"
6951then :
6952  xorg_cv_cc_flag_unknown_warning_option=yes
6953else $as_nop
6954  xorg_cv_cc_flag_unknown_warning_option=no
6955fi
6956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6957fi
6958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6959printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6960	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6961	CFLAGS="$xorg_testset_save_CFLAGS"
6962fi
6963
6964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6965	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6966		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6967	fi
6968	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6970printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6971if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6972then :
6973  printf %s "(cached) " >&6
6974else $as_nop
6975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976/* end confdefs.h.  */
6977int i;
6978_ACEOF
6979if ac_fn_c_try_compile "$LINENO"
6980then :
6981  xorg_cv_cc_flag_unused_command_line_argument=yes
6982else $as_nop
6983  xorg_cv_cc_flag_unused_command_line_argument=no
6984fi
6985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6986fi
6987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6988printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6989	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6990	CFLAGS="$xorg_testset_save_CFLAGS"
6991fi
6992
6993found="no"
6994
6995	if test $found = "no" ; then
6996		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6998		fi
6999
7000		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7002		fi
7003
7004		CFLAGS="$CFLAGS -Wlogical-op"
7005
7006		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7007printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7008		cacheid=xorg_cv_cc_flag__Wlogical_op
7009		if eval test \${$cacheid+y}
7010then :
7011  printf %s "(cached) " >&6
7012else $as_nop
7013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014/* end confdefs.h.  */
7015int i;
7016int
7017main (void)
7018{
7019
7020  ;
7021  return 0;
7022}
7023_ACEOF
7024if ac_fn_c_try_link "$LINENO"
7025then :
7026  eval $cacheid=yes
7027else $as_nop
7028  eval $cacheid=no
7029fi
7030rm -f core conftest.err conftest.$ac_objext conftest.beam \
7031    conftest$ac_exeext conftest.$ac_ext
7032fi
7033
7034
7035		CFLAGS="$xorg_testset_save_CFLAGS"
7036
7037		eval supported=\$$cacheid
7038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7039printf "%s\n" "$supported" >&6; }
7040		if test "$supported" = "yes" ; then
7041			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7042			found="yes"
7043		fi
7044	fi
7045
7046
7047
7048# These are currently disabled because they are noisy.  They will be enabled
7049# in the future once the codebase is sufficiently modernized to silence
7050# them.  For now, I don't want them to drown out the other warnings.
7051# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7052# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7053# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7054
7055# Turn some warnings into errors, so we don't accidently get successful builds
7056# when there are problems that should be fixed.
7057
7058if test "x$SELECTIVE_WERROR" = "xyes" ; then
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072xorg_testset_save_CFLAGS="$CFLAGS"
7073
7074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7075	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7076	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7077printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7078if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7079then :
7080  printf %s "(cached) " >&6
7081else $as_nop
7082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083/* end confdefs.h.  */
7084int i;
7085_ACEOF
7086if ac_fn_c_try_compile "$LINENO"
7087then :
7088  xorg_cv_cc_flag_unknown_warning_option=yes
7089else $as_nop
7090  xorg_cv_cc_flag_unknown_warning_option=no
7091fi
7092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7093fi
7094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7095printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7096	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7097	CFLAGS="$xorg_testset_save_CFLAGS"
7098fi
7099
7100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7101	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7102		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7103	fi
7104	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7105	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7106printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7107if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7108then :
7109  printf %s "(cached) " >&6
7110else $as_nop
7111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112/* end confdefs.h.  */
7113int i;
7114_ACEOF
7115if ac_fn_c_try_compile "$LINENO"
7116then :
7117  xorg_cv_cc_flag_unused_command_line_argument=yes
7118else $as_nop
7119  xorg_cv_cc_flag_unused_command_line_argument=no
7120fi
7121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7122fi
7123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7124printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7125	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7126	CFLAGS="$xorg_testset_save_CFLAGS"
7127fi
7128
7129found="no"
7130
7131	if test $found = "no" ; then
7132		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7134		fi
7135
7136		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7138		fi
7139
7140		CFLAGS="$CFLAGS -Werror=implicit"
7141
7142		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7143printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7144		cacheid=xorg_cv_cc_flag__Werror_implicit
7145		if eval test \${$cacheid+y}
7146then :
7147  printf %s "(cached) " >&6
7148else $as_nop
7149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150/* end confdefs.h.  */
7151int i;
7152int
7153main (void)
7154{
7155
7156  ;
7157  return 0;
7158}
7159_ACEOF
7160if ac_fn_c_try_link "$LINENO"
7161then :
7162  eval $cacheid=yes
7163else $as_nop
7164  eval $cacheid=no
7165fi
7166rm -f core conftest.err conftest.$ac_objext conftest.beam \
7167    conftest$ac_exeext conftest.$ac_ext
7168fi
7169
7170
7171		CFLAGS="$xorg_testset_save_CFLAGS"
7172
7173		eval supported=\$$cacheid
7174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7175printf "%s\n" "$supported" >&6; }
7176		if test "$supported" = "yes" ; then
7177			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7178			found="yes"
7179		fi
7180	fi
7181
7182	if test $found = "no" ; then
7183		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7184			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7185		fi
7186
7187		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7188			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7189		fi
7190
7191		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7192
7193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7194printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7195		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7196		if eval test \${$cacheid+y}
7197then :
7198  printf %s "(cached) " >&6
7199else $as_nop
7200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201/* end confdefs.h.  */
7202int i;
7203int
7204main (void)
7205{
7206
7207  ;
7208  return 0;
7209}
7210_ACEOF
7211if ac_fn_c_try_link "$LINENO"
7212then :
7213  eval $cacheid=yes
7214else $as_nop
7215  eval $cacheid=no
7216fi
7217rm -f core conftest.err conftest.$ac_objext conftest.beam \
7218    conftest$ac_exeext conftest.$ac_ext
7219fi
7220
7221
7222		CFLAGS="$xorg_testset_save_CFLAGS"
7223
7224		eval supported=\$$cacheid
7225		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7226printf "%s\n" "$supported" >&6; }
7227		if test "$supported" = "yes" ; then
7228			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7229			found="yes"
7230		fi
7231	fi
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247xorg_testset_save_CFLAGS="$CFLAGS"
7248
7249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7250	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7251	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7252printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7253if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7254then :
7255  printf %s "(cached) " >&6
7256else $as_nop
7257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h.  */
7259int i;
7260_ACEOF
7261if ac_fn_c_try_compile "$LINENO"
7262then :
7263  xorg_cv_cc_flag_unknown_warning_option=yes
7264else $as_nop
7265  xorg_cv_cc_flag_unknown_warning_option=no
7266fi
7267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7268fi
7269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7270printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7271	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7272	CFLAGS="$xorg_testset_save_CFLAGS"
7273fi
7274
7275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7276	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7277		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7278	fi
7279	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7280	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7281printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7282if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7283then :
7284  printf %s "(cached) " >&6
7285else $as_nop
7286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h.  */
7288int i;
7289_ACEOF
7290if ac_fn_c_try_compile "$LINENO"
7291then :
7292  xorg_cv_cc_flag_unused_command_line_argument=yes
7293else $as_nop
7294  xorg_cv_cc_flag_unused_command_line_argument=no
7295fi
7296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7297fi
7298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7299printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7300	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7301	CFLAGS="$xorg_testset_save_CFLAGS"
7302fi
7303
7304found="no"
7305
7306	if test $found = "no" ; then
7307		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7308			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309		fi
7310
7311		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7312			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7313		fi
7314
7315		CFLAGS="$CFLAGS -Werror=nonnull"
7316
7317		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7318printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7319		cacheid=xorg_cv_cc_flag__Werror_nonnull
7320		if eval test \${$cacheid+y}
7321then :
7322  printf %s "(cached) " >&6
7323else $as_nop
7324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325/* end confdefs.h.  */
7326int i;
7327int
7328main (void)
7329{
7330
7331  ;
7332  return 0;
7333}
7334_ACEOF
7335if ac_fn_c_try_link "$LINENO"
7336then :
7337  eval $cacheid=yes
7338else $as_nop
7339  eval $cacheid=no
7340fi
7341rm -f core conftest.err conftest.$ac_objext conftest.beam \
7342    conftest$ac_exeext conftest.$ac_ext
7343fi
7344
7345
7346		CFLAGS="$xorg_testset_save_CFLAGS"
7347
7348		eval supported=\$$cacheid
7349		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7350printf "%s\n" "$supported" >&6; }
7351		if test "$supported" = "yes" ; then
7352			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7353			found="yes"
7354		fi
7355	fi
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371xorg_testset_save_CFLAGS="$CFLAGS"
7372
7373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7374	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7375	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7376printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7377if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7378then :
7379  printf %s "(cached) " >&6
7380else $as_nop
7381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382/* end confdefs.h.  */
7383int i;
7384_ACEOF
7385if ac_fn_c_try_compile "$LINENO"
7386then :
7387  xorg_cv_cc_flag_unknown_warning_option=yes
7388else $as_nop
7389  xorg_cv_cc_flag_unknown_warning_option=no
7390fi
7391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7392fi
7393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7394printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7395	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7396	CFLAGS="$xorg_testset_save_CFLAGS"
7397fi
7398
7399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7400	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7401		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7402	fi
7403	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7404	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7405printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7406if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7407then :
7408  printf %s "(cached) " >&6
7409else $as_nop
7410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411/* end confdefs.h.  */
7412int i;
7413_ACEOF
7414if ac_fn_c_try_compile "$LINENO"
7415then :
7416  xorg_cv_cc_flag_unused_command_line_argument=yes
7417else $as_nop
7418  xorg_cv_cc_flag_unused_command_line_argument=no
7419fi
7420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7421fi
7422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7423printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7424	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7425	CFLAGS="$xorg_testset_save_CFLAGS"
7426fi
7427
7428found="no"
7429
7430	if test $found = "no" ; then
7431		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7432			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7433		fi
7434
7435		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7436			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7437		fi
7438
7439		CFLAGS="$CFLAGS -Werror=init-self"
7440
7441		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7442printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7443		cacheid=xorg_cv_cc_flag__Werror_init_self
7444		if eval test \${$cacheid+y}
7445then :
7446  printf %s "(cached) " >&6
7447else $as_nop
7448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h.  */
7450int i;
7451int
7452main (void)
7453{
7454
7455  ;
7456  return 0;
7457}
7458_ACEOF
7459if ac_fn_c_try_link "$LINENO"
7460then :
7461  eval $cacheid=yes
7462else $as_nop
7463  eval $cacheid=no
7464fi
7465rm -f core conftest.err conftest.$ac_objext conftest.beam \
7466    conftest$ac_exeext conftest.$ac_ext
7467fi
7468
7469
7470		CFLAGS="$xorg_testset_save_CFLAGS"
7471
7472		eval supported=\$$cacheid
7473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7474printf "%s\n" "$supported" >&6; }
7475		if test "$supported" = "yes" ; then
7476			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7477			found="yes"
7478		fi
7479	fi
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495xorg_testset_save_CFLAGS="$CFLAGS"
7496
7497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7498	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7500printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7501if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7502then :
7503  printf %s "(cached) " >&6
7504else $as_nop
7505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506/* end confdefs.h.  */
7507int i;
7508_ACEOF
7509if ac_fn_c_try_compile "$LINENO"
7510then :
7511  xorg_cv_cc_flag_unknown_warning_option=yes
7512else $as_nop
7513  xorg_cv_cc_flag_unknown_warning_option=no
7514fi
7515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7516fi
7517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7518printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7519	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7520	CFLAGS="$xorg_testset_save_CFLAGS"
7521fi
7522
7523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7524	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7525		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7526	fi
7527	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7528	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7529printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7530if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7531then :
7532  printf %s "(cached) " >&6
7533else $as_nop
7534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h.  */
7536int i;
7537_ACEOF
7538if ac_fn_c_try_compile "$LINENO"
7539then :
7540  xorg_cv_cc_flag_unused_command_line_argument=yes
7541else $as_nop
7542  xorg_cv_cc_flag_unused_command_line_argument=no
7543fi
7544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7545fi
7546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7547printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7548	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7549	CFLAGS="$xorg_testset_save_CFLAGS"
7550fi
7551
7552found="no"
7553
7554	if test $found = "no" ; then
7555		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7556			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7557		fi
7558
7559		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7560			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7561		fi
7562
7563		CFLAGS="$CFLAGS -Werror=main"
7564
7565		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7566printf %s "checking if $CC supports -Werror=main... " >&6; }
7567		cacheid=xorg_cv_cc_flag__Werror_main
7568		if eval test \${$cacheid+y}
7569then :
7570  printf %s "(cached) " >&6
7571else $as_nop
7572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573/* end confdefs.h.  */
7574int i;
7575int
7576main (void)
7577{
7578
7579  ;
7580  return 0;
7581}
7582_ACEOF
7583if ac_fn_c_try_link "$LINENO"
7584then :
7585  eval $cacheid=yes
7586else $as_nop
7587  eval $cacheid=no
7588fi
7589rm -f core conftest.err conftest.$ac_objext conftest.beam \
7590    conftest$ac_exeext conftest.$ac_ext
7591fi
7592
7593
7594		CFLAGS="$xorg_testset_save_CFLAGS"
7595
7596		eval supported=\$$cacheid
7597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7598printf "%s\n" "$supported" >&6; }
7599		if test "$supported" = "yes" ; then
7600			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7601			found="yes"
7602		fi
7603	fi
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619xorg_testset_save_CFLAGS="$CFLAGS"
7620
7621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7622	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7624printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7625if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7626then :
7627  printf %s "(cached) " >&6
7628else $as_nop
7629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630/* end confdefs.h.  */
7631int i;
7632_ACEOF
7633if ac_fn_c_try_compile "$LINENO"
7634then :
7635  xorg_cv_cc_flag_unknown_warning_option=yes
7636else $as_nop
7637  xorg_cv_cc_flag_unknown_warning_option=no
7638fi
7639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7640fi
7641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7642printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7643	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7644	CFLAGS="$xorg_testset_save_CFLAGS"
7645fi
7646
7647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7648	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7649		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7650	fi
7651	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7652	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7653printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7654if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7655then :
7656  printf %s "(cached) " >&6
7657else $as_nop
7658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659/* end confdefs.h.  */
7660int i;
7661_ACEOF
7662if ac_fn_c_try_compile "$LINENO"
7663then :
7664  xorg_cv_cc_flag_unused_command_line_argument=yes
7665else $as_nop
7666  xorg_cv_cc_flag_unused_command_line_argument=no
7667fi
7668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7669fi
7670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7671printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7673	CFLAGS="$xorg_testset_save_CFLAGS"
7674fi
7675
7676found="no"
7677
7678	if test $found = "no" ; then
7679		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7681		fi
7682
7683		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7685		fi
7686
7687		CFLAGS="$CFLAGS -Werror=missing-braces"
7688
7689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7690printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7691		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7692		if eval test \${$cacheid+y}
7693then :
7694  printf %s "(cached) " >&6
7695else $as_nop
7696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697/* end confdefs.h.  */
7698int i;
7699int
7700main (void)
7701{
7702
7703  ;
7704  return 0;
7705}
7706_ACEOF
7707if ac_fn_c_try_link "$LINENO"
7708then :
7709  eval $cacheid=yes
7710else $as_nop
7711  eval $cacheid=no
7712fi
7713rm -f core conftest.err conftest.$ac_objext conftest.beam \
7714    conftest$ac_exeext conftest.$ac_ext
7715fi
7716
7717
7718		CFLAGS="$xorg_testset_save_CFLAGS"
7719
7720		eval supported=\$$cacheid
7721		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7722printf "%s\n" "$supported" >&6; }
7723		if test "$supported" = "yes" ; then
7724			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7725			found="yes"
7726		fi
7727	fi
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743xorg_testset_save_CFLAGS="$CFLAGS"
7744
7745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7746	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7748printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7749if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7750then :
7751  printf %s "(cached) " >&6
7752else $as_nop
7753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754/* end confdefs.h.  */
7755int i;
7756_ACEOF
7757if ac_fn_c_try_compile "$LINENO"
7758then :
7759  xorg_cv_cc_flag_unknown_warning_option=yes
7760else $as_nop
7761  xorg_cv_cc_flag_unknown_warning_option=no
7762fi
7763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7764fi
7765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7766printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7768	CFLAGS="$xorg_testset_save_CFLAGS"
7769fi
7770
7771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774	fi
7775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7777printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7778if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7779then :
7780  printf %s "(cached) " >&6
7781else $as_nop
7782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783/* end confdefs.h.  */
7784int i;
7785_ACEOF
7786if ac_fn_c_try_compile "$LINENO"
7787then :
7788  xorg_cv_cc_flag_unused_command_line_argument=yes
7789else $as_nop
7790  xorg_cv_cc_flag_unused_command_line_argument=no
7791fi
7792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7793fi
7794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7795printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7796	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7797	CFLAGS="$xorg_testset_save_CFLAGS"
7798fi
7799
7800found="no"
7801
7802	if test $found = "no" ; then
7803		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7804			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7805		fi
7806
7807		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7808			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7809		fi
7810
7811		CFLAGS="$CFLAGS -Werror=sequence-point"
7812
7813		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7814printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7815		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7816		if eval test \${$cacheid+y}
7817then :
7818  printf %s "(cached) " >&6
7819else $as_nop
7820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821/* end confdefs.h.  */
7822int i;
7823int
7824main (void)
7825{
7826
7827  ;
7828  return 0;
7829}
7830_ACEOF
7831if ac_fn_c_try_link "$LINENO"
7832then :
7833  eval $cacheid=yes
7834else $as_nop
7835  eval $cacheid=no
7836fi
7837rm -f core conftest.err conftest.$ac_objext conftest.beam \
7838    conftest$ac_exeext conftest.$ac_ext
7839fi
7840
7841
7842		CFLAGS="$xorg_testset_save_CFLAGS"
7843
7844		eval supported=\$$cacheid
7845		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7846printf "%s\n" "$supported" >&6; }
7847		if test "$supported" = "yes" ; then
7848			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7849			found="yes"
7850		fi
7851	fi
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867xorg_testset_save_CFLAGS="$CFLAGS"
7868
7869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7870	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7872printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7873if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7874then :
7875  printf %s "(cached) " >&6
7876else $as_nop
7877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878/* end confdefs.h.  */
7879int i;
7880_ACEOF
7881if ac_fn_c_try_compile "$LINENO"
7882then :
7883  xorg_cv_cc_flag_unknown_warning_option=yes
7884else $as_nop
7885  xorg_cv_cc_flag_unknown_warning_option=no
7886fi
7887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7888fi
7889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7890printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7891	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7892	CFLAGS="$xorg_testset_save_CFLAGS"
7893fi
7894
7895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7896	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7897		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7898	fi
7899	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7900	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7901printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7902if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7903then :
7904  printf %s "(cached) " >&6
7905else $as_nop
7906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907/* end confdefs.h.  */
7908int i;
7909_ACEOF
7910if ac_fn_c_try_compile "$LINENO"
7911then :
7912  xorg_cv_cc_flag_unused_command_line_argument=yes
7913else $as_nop
7914  xorg_cv_cc_flag_unused_command_line_argument=no
7915fi
7916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7917fi
7918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7919printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7920	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7921	CFLAGS="$xorg_testset_save_CFLAGS"
7922fi
7923
7924found="no"
7925
7926	if test $found = "no" ; then
7927		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7928			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7929		fi
7930
7931		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7932			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7933		fi
7934
7935		CFLAGS="$CFLAGS -Werror=return-type"
7936
7937		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7938printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7939		cacheid=xorg_cv_cc_flag__Werror_return_type
7940		if eval test \${$cacheid+y}
7941then :
7942  printf %s "(cached) " >&6
7943else $as_nop
7944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945/* end confdefs.h.  */
7946int i;
7947int
7948main (void)
7949{
7950
7951  ;
7952  return 0;
7953}
7954_ACEOF
7955if ac_fn_c_try_link "$LINENO"
7956then :
7957  eval $cacheid=yes
7958else $as_nop
7959  eval $cacheid=no
7960fi
7961rm -f core conftest.err conftest.$ac_objext conftest.beam \
7962    conftest$ac_exeext conftest.$ac_ext
7963fi
7964
7965
7966		CFLAGS="$xorg_testset_save_CFLAGS"
7967
7968		eval supported=\$$cacheid
7969		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7970printf "%s\n" "$supported" >&6; }
7971		if test "$supported" = "yes" ; then
7972			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7973			found="yes"
7974		fi
7975	fi
7976
7977	if test $found = "no" ; then
7978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7980		fi
7981
7982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7984		fi
7985
7986		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7987
7988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7989printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7990		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7991		if eval test \${$cacheid+y}
7992then :
7993  printf %s "(cached) " >&6
7994else $as_nop
7995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996/* end confdefs.h.  */
7997int i;
7998int
7999main (void)
8000{
8001
8002  ;
8003  return 0;
8004}
8005_ACEOF
8006if ac_fn_c_try_link "$LINENO"
8007then :
8008  eval $cacheid=yes
8009else $as_nop
8010  eval $cacheid=no
8011fi
8012rm -f core conftest.err conftest.$ac_objext conftest.beam \
8013    conftest$ac_exeext conftest.$ac_ext
8014fi
8015
8016
8017		CFLAGS="$xorg_testset_save_CFLAGS"
8018
8019		eval supported=\$$cacheid
8020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8021printf "%s\n" "$supported" >&6; }
8022		if test "$supported" = "yes" ; then
8023			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8024			found="yes"
8025		fi
8026	fi
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042xorg_testset_save_CFLAGS="$CFLAGS"
8043
8044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8045	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8046	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8047printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8048if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8049then :
8050  printf %s "(cached) " >&6
8051else $as_nop
8052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053/* end confdefs.h.  */
8054int i;
8055_ACEOF
8056if ac_fn_c_try_compile "$LINENO"
8057then :
8058  xorg_cv_cc_flag_unknown_warning_option=yes
8059else $as_nop
8060  xorg_cv_cc_flag_unknown_warning_option=no
8061fi
8062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8063fi
8064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8065printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8067	CFLAGS="$xorg_testset_save_CFLAGS"
8068fi
8069
8070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8073	fi
8074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8076printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8077if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8078then :
8079  printf %s "(cached) " >&6
8080else $as_nop
8081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082/* end confdefs.h.  */
8083int i;
8084_ACEOF
8085if ac_fn_c_try_compile "$LINENO"
8086then :
8087  xorg_cv_cc_flag_unused_command_line_argument=yes
8088else $as_nop
8089  xorg_cv_cc_flag_unused_command_line_argument=no
8090fi
8091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8092fi
8093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8094printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8095	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8096	CFLAGS="$xorg_testset_save_CFLAGS"
8097fi
8098
8099found="no"
8100
8101	if test $found = "no" ; then
8102		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8104		fi
8105
8106		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8108		fi
8109
8110		CFLAGS="$CFLAGS -Werror=trigraphs"
8111
8112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8113printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8114		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8115		if eval test \${$cacheid+y}
8116then :
8117  printf %s "(cached) " >&6
8118else $as_nop
8119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120/* end confdefs.h.  */
8121int i;
8122int
8123main (void)
8124{
8125
8126  ;
8127  return 0;
8128}
8129_ACEOF
8130if ac_fn_c_try_link "$LINENO"
8131then :
8132  eval $cacheid=yes
8133else $as_nop
8134  eval $cacheid=no
8135fi
8136rm -f core conftest.err conftest.$ac_objext conftest.beam \
8137    conftest$ac_exeext conftest.$ac_ext
8138fi
8139
8140
8141		CFLAGS="$xorg_testset_save_CFLAGS"
8142
8143		eval supported=\$$cacheid
8144		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8145printf "%s\n" "$supported" >&6; }
8146		if test "$supported" = "yes" ; then
8147			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8148			found="yes"
8149		fi
8150	fi
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166xorg_testset_save_CFLAGS="$CFLAGS"
8167
8168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8169	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8170	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8171printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8172if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8173then :
8174  printf %s "(cached) " >&6
8175else $as_nop
8176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177/* end confdefs.h.  */
8178int i;
8179_ACEOF
8180if ac_fn_c_try_compile "$LINENO"
8181then :
8182  xorg_cv_cc_flag_unknown_warning_option=yes
8183else $as_nop
8184  xorg_cv_cc_flag_unknown_warning_option=no
8185fi
8186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8187fi
8188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8189printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8191	CFLAGS="$xorg_testset_save_CFLAGS"
8192fi
8193
8194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8197	fi
8198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8199	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8200printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8201if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8202then :
8203  printf %s "(cached) " >&6
8204else $as_nop
8205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206/* end confdefs.h.  */
8207int i;
8208_ACEOF
8209if ac_fn_c_try_compile "$LINENO"
8210then :
8211  xorg_cv_cc_flag_unused_command_line_argument=yes
8212else $as_nop
8213  xorg_cv_cc_flag_unused_command_line_argument=no
8214fi
8215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8216fi
8217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8218printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8220	CFLAGS="$xorg_testset_save_CFLAGS"
8221fi
8222
8223found="no"
8224
8225	if test $found = "no" ; then
8226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8228		fi
8229
8230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8232		fi
8233
8234		CFLAGS="$CFLAGS -Werror=array-bounds"
8235
8236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8237printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8238		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8239		if eval test \${$cacheid+y}
8240then :
8241  printf %s "(cached) " >&6
8242else $as_nop
8243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244/* end confdefs.h.  */
8245int i;
8246int
8247main (void)
8248{
8249
8250  ;
8251  return 0;
8252}
8253_ACEOF
8254if ac_fn_c_try_link "$LINENO"
8255then :
8256  eval $cacheid=yes
8257else $as_nop
8258  eval $cacheid=no
8259fi
8260rm -f core conftest.err conftest.$ac_objext conftest.beam \
8261    conftest$ac_exeext conftest.$ac_ext
8262fi
8263
8264
8265		CFLAGS="$xorg_testset_save_CFLAGS"
8266
8267		eval supported=\$$cacheid
8268		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8269printf "%s\n" "$supported" >&6; }
8270		if test "$supported" = "yes" ; then
8271			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8272			found="yes"
8273		fi
8274	fi
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290xorg_testset_save_CFLAGS="$CFLAGS"
8291
8292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8294	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8295printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8296if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8297then :
8298  printf %s "(cached) " >&6
8299else $as_nop
8300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301/* end confdefs.h.  */
8302int i;
8303_ACEOF
8304if ac_fn_c_try_compile "$LINENO"
8305then :
8306  xorg_cv_cc_flag_unknown_warning_option=yes
8307else $as_nop
8308  xorg_cv_cc_flag_unknown_warning_option=no
8309fi
8310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8311fi
8312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8313printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8315	CFLAGS="$xorg_testset_save_CFLAGS"
8316fi
8317
8318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8321	fi
8322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8323	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8324printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8325if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8326then :
8327  printf %s "(cached) " >&6
8328else $as_nop
8329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330/* end confdefs.h.  */
8331int i;
8332_ACEOF
8333if ac_fn_c_try_compile "$LINENO"
8334then :
8335  xorg_cv_cc_flag_unused_command_line_argument=yes
8336else $as_nop
8337  xorg_cv_cc_flag_unused_command_line_argument=no
8338fi
8339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8340fi
8341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8342printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8344	CFLAGS="$xorg_testset_save_CFLAGS"
8345fi
8346
8347found="no"
8348
8349	if test $found = "no" ; then
8350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8352		fi
8353
8354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8356		fi
8357
8358		CFLAGS="$CFLAGS -Werror=write-strings"
8359
8360		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8361printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8362		cacheid=xorg_cv_cc_flag__Werror_write_strings
8363		if eval test \${$cacheid+y}
8364then :
8365  printf %s "(cached) " >&6
8366else $as_nop
8367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368/* end confdefs.h.  */
8369int i;
8370int
8371main (void)
8372{
8373
8374  ;
8375  return 0;
8376}
8377_ACEOF
8378if ac_fn_c_try_link "$LINENO"
8379then :
8380  eval $cacheid=yes
8381else $as_nop
8382  eval $cacheid=no
8383fi
8384rm -f core conftest.err conftest.$ac_objext conftest.beam \
8385    conftest$ac_exeext conftest.$ac_ext
8386fi
8387
8388
8389		CFLAGS="$xorg_testset_save_CFLAGS"
8390
8391		eval supported=\$$cacheid
8392		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8393printf "%s\n" "$supported" >&6; }
8394		if test "$supported" = "yes" ; then
8395			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8396			found="yes"
8397		fi
8398	fi
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414xorg_testset_save_CFLAGS="$CFLAGS"
8415
8416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8417	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8418	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8419printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8420if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8421then :
8422  printf %s "(cached) " >&6
8423else $as_nop
8424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425/* end confdefs.h.  */
8426int i;
8427_ACEOF
8428if ac_fn_c_try_compile "$LINENO"
8429then :
8430  xorg_cv_cc_flag_unknown_warning_option=yes
8431else $as_nop
8432  xorg_cv_cc_flag_unknown_warning_option=no
8433fi
8434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8435fi
8436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8437printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8438	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8439	CFLAGS="$xorg_testset_save_CFLAGS"
8440fi
8441
8442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8443	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8444		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8445	fi
8446	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8447	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8448printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8449if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8450then :
8451  printf %s "(cached) " >&6
8452else $as_nop
8453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454/* end confdefs.h.  */
8455int i;
8456_ACEOF
8457if ac_fn_c_try_compile "$LINENO"
8458then :
8459  xorg_cv_cc_flag_unused_command_line_argument=yes
8460else $as_nop
8461  xorg_cv_cc_flag_unused_command_line_argument=no
8462fi
8463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8464fi
8465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8468	CFLAGS="$xorg_testset_save_CFLAGS"
8469fi
8470
8471found="no"
8472
8473	if test $found = "no" ; then
8474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8476		fi
8477
8478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8480		fi
8481
8482		CFLAGS="$CFLAGS -Werror=address"
8483
8484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8485printf %s "checking if $CC supports -Werror=address... " >&6; }
8486		cacheid=xorg_cv_cc_flag__Werror_address
8487		if eval test \${$cacheid+y}
8488then :
8489  printf %s "(cached) " >&6
8490else $as_nop
8491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492/* end confdefs.h.  */
8493int i;
8494int
8495main (void)
8496{
8497
8498  ;
8499  return 0;
8500}
8501_ACEOF
8502if ac_fn_c_try_link "$LINENO"
8503then :
8504  eval $cacheid=yes
8505else $as_nop
8506  eval $cacheid=no
8507fi
8508rm -f core conftest.err conftest.$ac_objext conftest.beam \
8509    conftest$ac_exeext conftest.$ac_ext
8510fi
8511
8512
8513		CFLAGS="$xorg_testset_save_CFLAGS"
8514
8515		eval supported=\$$cacheid
8516		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8517printf "%s\n" "$supported" >&6; }
8518		if test "$supported" = "yes" ; then
8519			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8520			found="yes"
8521		fi
8522	fi
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538xorg_testset_save_CFLAGS="$CFLAGS"
8539
8540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8541	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8543printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8544if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8545then :
8546  printf %s "(cached) " >&6
8547else $as_nop
8548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549/* end confdefs.h.  */
8550int i;
8551_ACEOF
8552if ac_fn_c_try_compile "$LINENO"
8553then :
8554  xorg_cv_cc_flag_unknown_warning_option=yes
8555else $as_nop
8556  xorg_cv_cc_flag_unknown_warning_option=no
8557fi
8558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8559fi
8560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8561printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8562	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8563	CFLAGS="$xorg_testset_save_CFLAGS"
8564fi
8565
8566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8567	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8568		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8569	fi
8570	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8571	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8572printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8573if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8574then :
8575  printf %s "(cached) " >&6
8576else $as_nop
8577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578/* end confdefs.h.  */
8579int i;
8580_ACEOF
8581if ac_fn_c_try_compile "$LINENO"
8582then :
8583  xorg_cv_cc_flag_unused_command_line_argument=yes
8584else $as_nop
8585  xorg_cv_cc_flag_unused_command_line_argument=no
8586fi
8587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8588fi
8589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8590printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8591	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8592	CFLAGS="$xorg_testset_save_CFLAGS"
8593fi
8594
8595found="no"
8596
8597	if test $found = "no" ; then
8598		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8599			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8600		fi
8601
8602		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8603			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8604		fi
8605
8606		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8607
8608		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8609printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8610		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8611		if eval test \${$cacheid+y}
8612then :
8613  printf %s "(cached) " >&6
8614else $as_nop
8615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616/* end confdefs.h.  */
8617int i;
8618int
8619main (void)
8620{
8621
8622  ;
8623  return 0;
8624}
8625_ACEOF
8626if ac_fn_c_try_link "$LINENO"
8627then :
8628  eval $cacheid=yes
8629else $as_nop
8630  eval $cacheid=no
8631fi
8632rm -f core conftest.err conftest.$ac_objext conftest.beam \
8633    conftest$ac_exeext conftest.$ac_ext
8634fi
8635
8636
8637		CFLAGS="$xorg_testset_save_CFLAGS"
8638
8639		eval supported=\$$cacheid
8640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8641printf "%s\n" "$supported" >&6; }
8642		if test "$supported" = "yes" ; then
8643			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8644			found="yes"
8645		fi
8646	fi
8647
8648	if test $found = "no" ; then
8649		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8650			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8651		fi
8652
8653		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8654			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8655		fi
8656
8657		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8658
8659		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8660printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8661		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8662		if eval test \${$cacheid+y}
8663then :
8664  printf %s "(cached) " >&6
8665else $as_nop
8666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667/* end confdefs.h.  */
8668int i;
8669int
8670main (void)
8671{
8672
8673  ;
8674  return 0;
8675}
8676_ACEOF
8677if ac_fn_c_try_link "$LINENO"
8678then :
8679  eval $cacheid=yes
8680else $as_nop
8681  eval $cacheid=no
8682fi
8683rm -f core conftest.err conftest.$ac_objext conftest.beam \
8684    conftest$ac_exeext conftest.$ac_ext
8685fi
8686
8687
8688		CFLAGS="$xorg_testset_save_CFLAGS"
8689
8690		eval supported=\$$cacheid
8691		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8692printf "%s\n" "$supported" >&6; }
8693		if test "$supported" = "yes" ; then
8694			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8695			found="yes"
8696		fi
8697	fi
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713xorg_testset_save_CFLAGS="$CFLAGS"
8714
8715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8716	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8717	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8718printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8719if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8720then :
8721  printf %s "(cached) " >&6
8722else $as_nop
8723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724/* end confdefs.h.  */
8725int i;
8726_ACEOF
8727if ac_fn_c_try_compile "$LINENO"
8728then :
8729  xorg_cv_cc_flag_unknown_warning_option=yes
8730else $as_nop
8731  xorg_cv_cc_flag_unknown_warning_option=no
8732fi
8733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8734fi
8735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8736printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8737	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8738	CFLAGS="$xorg_testset_save_CFLAGS"
8739fi
8740
8741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8742	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8743		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8744	fi
8745	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8746	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8747printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8748if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8749then :
8750  printf %s "(cached) " >&6
8751else $as_nop
8752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753/* end confdefs.h.  */
8754int i;
8755_ACEOF
8756if ac_fn_c_try_compile "$LINENO"
8757then :
8758  xorg_cv_cc_flag_unused_command_line_argument=yes
8759else $as_nop
8760  xorg_cv_cc_flag_unused_command_line_argument=no
8761fi
8762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8763fi
8764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8765printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8766	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8767	CFLAGS="$xorg_testset_save_CFLAGS"
8768fi
8769
8770found="no"
8771
8772	if test $found = "no" ; then
8773		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8774			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8775		fi
8776
8777		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8778			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8779		fi
8780
8781		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8782
8783		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8784printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8785		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8786		if eval test \${$cacheid+y}
8787then :
8788  printf %s "(cached) " >&6
8789else $as_nop
8790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791/* end confdefs.h.  */
8792int i;
8793int
8794main (void)
8795{
8796
8797  ;
8798  return 0;
8799}
8800_ACEOF
8801if ac_fn_c_try_link "$LINENO"
8802then :
8803  eval $cacheid=yes
8804else $as_nop
8805  eval $cacheid=no
8806fi
8807rm -f core conftest.err conftest.$ac_objext conftest.beam \
8808    conftest$ac_exeext conftest.$ac_ext
8809fi
8810
8811
8812		CFLAGS="$xorg_testset_save_CFLAGS"
8813
8814		eval supported=\$$cacheid
8815		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8816printf "%s\n" "$supported" >&6; }
8817		if test "$supported" = "yes" ; then
8818			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8819			found="yes"
8820		fi
8821	fi
8822
8823 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8824else
8825{ printf "%s\n" "$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
8826printf "%s\n" "$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;}
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840xorg_testset_save_CFLAGS="$CFLAGS"
8841
8842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8845printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8846if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8847then :
8848  printf %s "(cached) " >&6
8849else $as_nop
8850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851/* end confdefs.h.  */
8852int i;
8853_ACEOF
8854if ac_fn_c_try_compile "$LINENO"
8855then :
8856  xorg_cv_cc_flag_unknown_warning_option=yes
8857else $as_nop
8858  xorg_cv_cc_flag_unknown_warning_option=no
8859fi
8860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8861fi
8862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8863printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8864	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8865	CFLAGS="$xorg_testset_save_CFLAGS"
8866fi
8867
8868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8869	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8870		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8871	fi
8872	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8873	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8874printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8875if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8876then :
8877  printf %s "(cached) " >&6
8878else $as_nop
8879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880/* end confdefs.h.  */
8881int i;
8882_ACEOF
8883if ac_fn_c_try_compile "$LINENO"
8884then :
8885  xorg_cv_cc_flag_unused_command_line_argument=yes
8886else $as_nop
8887  xorg_cv_cc_flag_unused_command_line_argument=no
8888fi
8889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8890fi
8891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8892printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8893	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8894	CFLAGS="$xorg_testset_save_CFLAGS"
8895fi
8896
8897found="no"
8898
8899	if test $found = "no" ; then
8900		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8901			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8902		fi
8903
8904		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8905			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8906		fi
8907
8908		CFLAGS="$CFLAGS -Wimplicit"
8909
8910		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8911printf %s "checking if $CC supports -Wimplicit... " >&6; }
8912		cacheid=xorg_cv_cc_flag__Wimplicit
8913		if eval test \${$cacheid+y}
8914then :
8915  printf %s "(cached) " >&6
8916else $as_nop
8917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918/* end confdefs.h.  */
8919int i;
8920int
8921main (void)
8922{
8923
8924  ;
8925  return 0;
8926}
8927_ACEOF
8928if ac_fn_c_try_link "$LINENO"
8929then :
8930  eval $cacheid=yes
8931else $as_nop
8932  eval $cacheid=no
8933fi
8934rm -f core conftest.err conftest.$ac_objext conftest.beam \
8935    conftest$ac_exeext conftest.$ac_ext
8936fi
8937
8938
8939		CFLAGS="$xorg_testset_save_CFLAGS"
8940
8941		eval supported=\$$cacheid
8942		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8943printf "%s\n" "$supported" >&6; }
8944		if test "$supported" = "yes" ; then
8945			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8946			found="yes"
8947		fi
8948	fi
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964xorg_testset_save_CFLAGS="$CFLAGS"
8965
8966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8968	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8969printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8970if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8971then :
8972  printf %s "(cached) " >&6
8973else $as_nop
8974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975/* end confdefs.h.  */
8976int i;
8977_ACEOF
8978if ac_fn_c_try_compile "$LINENO"
8979then :
8980  xorg_cv_cc_flag_unknown_warning_option=yes
8981else $as_nop
8982  xorg_cv_cc_flag_unknown_warning_option=no
8983fi
8984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8985fi
8986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8987printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8988	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8989	CFLAGS="$xorg_testset_save_CFLAGS"
8990fi
8991
8992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8993	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8994		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8995	fi
8996	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8997	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8998printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8999if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9000then :
9001  printf %s "(cached) " >&6
9002else $as_nop
9003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004/* end confdefs.h.  */
9005int i;
9006_ACEOF
9007if ac_fn_c_try_compile "$LINENO"
9008then :
9009  xorg_cv_cc_flag_unused_command_line_argument=yes
9010else $as_nop
9011  xorg_cv_cc_flag_unused_command_line_argument=no
9012fi
9013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9014fi
9015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9016printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9017	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9018	CFLAGS="$xorg_testset_save_CFLAGS"
9019fi
9020
9021found="no"
9022
9023	if test $found = "no" ; then
9024		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9025			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9026		fi
9027
9028		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9029			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9030		fi
9031
9032		CFLAGS="$CFLAGS -Wnonnull"
9033
9034		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9035printf %s "checking if $CC supports -Wnonnull... " >&6; }
9036		cacheid=xorg_cv_cc_flag__Wnonnull
9037		if eval test \${$cacheid+y}
9038then :
9039  printf %s "(cached) " >&6
9040else $as_nop
9041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042/* end confdefs.h.  */
9043int i;
9044int
9045main (void)
9046{
9047
9048  ;
9049  return 0;
9050}
9051_ACEOF
9052if ac_fn_c_try_link "$LINENO"
9053then :
9054  eval $cacheid=yes
9055else $as_nop
9056  eval $cacheid=no
9057fi
9058rm -f core conftest.err conftest.$ac_objext conftest.beam \
9059    conftest$ac_exeext conftest.$ac_ext
9060fi
9061
9062
9063		CFLAGS="$xorg_testset_save_CFLAGS"
9064
9065		eval supported=\$$cacheid
9066		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9067printf "%s\n" "$supported" >&6; }
9068		if test "$supported" = "yes" ; then
9069			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9070			found="yes"
9071		fi
9072	fi
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088xorg_testset_save_CFLAGS="$CFLAGS"
9089
9090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9091	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9092	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9093printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9094if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9095then :
9096  printf %s "(cached) " >&6
9097else $as_nop
9098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099/* end confdefs.h.  */
9100int i;
9101_ACEOF
9102if ac_fn_c_try_compile "$LINENO"
9103then :
9104  xorg_cv_cc_flag_unknown_warning_option=yes
9105else $as_nop
9106  xorg_cv_cc_flag_unknown_warning_option=no
9107fi
9108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9109fi
9110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9111printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9112	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9113	CFLAGS="$xorg_testset_save_CFLAGS"
9114fi
9115
9116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9117	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9118		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9119	fi
9120	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9121	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9122printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9123if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9124then :
9125  printf %s "(cached) " >&6
9126else $as_nop
9127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128/* end confdefs.h.  */
9129int i;
9130_ACEOF
9131if ac_fn_c_try_compile "$LINENO"
9132then :
9133  xorg_cv_cc_flag_unused_command_line_argument=yes
9134else $as_nop
9135  xorg_cv_cc_flag_unused_command_line_argument=no
9136fi
9137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9138fi
9139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9140printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9141	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9142	CFLAGS="$xorg_testset_save_CFLAGS"
9143fi
9144
9145found="no"
9146
9147	if test $found = "no" ; then
9148		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9149			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9150		fi
9151
9152		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9153			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9154		fi
9155
9156		CFLAGS="$CFLAGS -Winit-self"
9157
9158		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9159printf %s "checking if $CC supports -Winit-self... " >&6; }
9160		cacheid=xorg_cv_cc_flag__Winit_self
9161		if eval test \${$cacheid+y}
9162then :
9163  printf %s "(cached) " >&6
9164else $as_nop
9165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166/* end confdefs.h.  */
9167int i;
9168int
9169main (void)
9170{
9171
9172  ;
9173  return 0;
9174}
9175_ACEOF
9176if ac_fn_c_try_link "$LINENO"
9177then :
9178  eval $cacheid=yes
9179else $as_nop
9180  eval $cacheid=no
9181fi
9182rm -f core conftest.err conftest.$ac_objext conftest.beam \
9183    conftest$ac_exeext conftest.$ac_ext
9184fi
9185
9186
9187		CFLAGS="$xorg_testset_save_CFLAGS"
9188
9189		eval supported=\$$cacheid
9190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9191printf "%s\n" "$supported" >&6; }
9192		if test "$supported" = "yes" ; then
9193			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9194			found="yes"
9195		fi
9196	fi
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212xorg_testset_save_CFLAGS="$CFLAGS"
9213
9214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9215	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9216	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9217printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9218if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9219then :
9220  printf %s "(cached) " >&6
9221else $as_nop
9222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223/* end confdefs.h.  */
9224int i;
9225_ACEOF
9226if ac_fn_c_try_compile "$LINENO"
9227then :
9228  xorg_cv_cc_flag_unknown_warning_option=yes
9229else $as_nop
9230  xorg_cv_cc_flag_unknown_warning_option=no
9231fi
9232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9233fi
9234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9235printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9236	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9237	CFLAGS="$xorg_testset_save_CFLAGS"
9238fi
9239
9240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9241	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9242		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9243	fi
9244	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9245	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9246printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9247if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9248then :
9249  printf %s "(cached) " >&6
9250else $as_nop
9251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252/* end confdefs.h.  */
9253int i;
9254_ACEOF
9255if ac_fn_c_try_compile "$LINENO"
9256then :
9257  xorg_cv_cc_flag_unused_command_line_argument=yes
9258else $as_nop
9259  xorg_cv_cc_flag_unused_command_line_argument=no
9260fi
9261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9262fi
9263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9264printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9265	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9266	CFLAGS="$xorg_testset_save_CFLAGS"
9267fi
9268
9269found="no"
9270
9271	if test $found = "no" ; then
9272		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9273			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9274		fi
9275
9276		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9277			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9278		fi
9279
9280		CFLAGS="$CFLAGS -Wmain"
9281
9282		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9283printf %s "checking if $CC supports -Wmain... " >&6; }
9284		cacheid=xorg_cv_cc_flag__Wmain
9285		if eval test \${$cacheid+y}
9286then :
9287  printf %s "(cached) " >&6
9288else $as_nop
9289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290/* end confdefs.h.  */
9291int i;
9292int
9293main (void)
9294{
9295
9296  ;
9297  return 0;
9298}
9299_ACEOF
9300if ac_fn_c_try_link "$LINENO"
9301then :
9302  eval $cacheid=yes
9303else $as_nop
9304  eval $cacheid=no
9305fi
9306rm -f core conftest.err conftest.$ac_objext conftest.beam \
9307    conftest$ac_exeext conftest.$ac_ext
9308fi
9309
9310
9311		CFLAGS="$xorg_testset_save_CFLAGS"
9312
9313		eval supported=\$$cacheid
9314		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9315printf "%s\n" "$supported" >&6; }
9316		if test "$supported" = "yes" ; then
9317			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9318			found="yes"
9319		fi
9320	fi
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336xorg_testset_save_CFLAGS="$CFLAGS"
9337
9338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9339	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9340	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9341printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9342if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9343then :
9344  printf %s "(cached) " >&6
9345else $as_nop
9346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347/* end confdefs.h.  */
9348int i;
9349_ACEOF
9350if ac_fn_c_try_compile "$LINENO"
9351then :
9352  xorg_cv_cc_flag_unknown_warning_option=yes
9353else $as_nop
9354  xorg_cv_cc_flag_unknown_warning_option=no
9355fi
9356rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9357fi
9358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9359printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9360	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9361	CFLAGS="$xorg_testset_save_CFLAGS"
9362fi
9363
9364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9365	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9366		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9367	fi
9368	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9369	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9370printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9371if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9372then :
9373  printf %s "(cached) " >&6
9374else $as_nop
9375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376/* end confdefs.h.  */
9377int i;
9378_ACEOF
9379if ac_fn_c_try_compile "$LINENO"
9380then :
9381  xorg_cv_cc_flag_unused_command_line_argument=yes
9382else $as_nop
9383  xorg_cv_cc_flag_unused_command_line_argument=no
9384fi
9385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9386fi
9387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9388printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9389	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9390	CFLAGS="$xorg_testset_save_CFLAGS"
9391fi
9392
9393found="no"
9394
9395	if test $found = "no" ; then
9396		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9397			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9398		fi
9399
9400		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9401			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9402		fi
9403
9404		CFLAGS="$CFLAGS -Wmissing-braces"
9405
9406		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9407printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9408		cacheid=xorg_cv_cc_flag__Wmissing_braces
9409		if eval test \${$cacheid+y}
9410then :
9411  printf %s "(cached) " >&6
9412else $as_nop
9413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414/* end confdefs.h.  */
9415int i;
9416int
9417main (void)
9418{
9419
9420  ;
9421  return 0;
9422}
9423_ACEOF
9424if ac_fn_c_try_link "$LINENO"
9425then :
9426  eval $cacheid=yes
9427else $as_nop
9428  eval $cacheid=no
9429fi
9430rm -f core conftest.err conftest.$ac_objext conftest.beam \
9431    conftest$ac_exeext conftest.$ac_ext
9432fi
9433
9434
9435		CFLAGS="$xorg_testset_save_CFLAGS"
9436
9437		eval supported=\$$cacheid
9438		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9439printf "%s\n" "$supported" >&6; }
9440		if test "$supported" = "yes" ; then
9441			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9442			found="yes"
9443		fi
9444	fi
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460xorg_testset_save_CFLAGS="$CFLAGS"
9461
9462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9463	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9464	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9465printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9466if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9467then :
9468  printf %s "(cached) " >&6
9469else $as_nop
9470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471/* end confdefs.h.  */
9472int i;
9473_ACEOF
9474if ac_fn_c_try_compile "$LINENO"
9475then :
9476  xorg_cv_cc_flag_unknown_warning_option=yes
9477else $as_nop
9478  xorg_cv_cc_flag_unknown_warning_option=no
9479fi
9480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9481fi
9482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9483printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9484	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9485	CFLAGS="$xorg_testset_save_CFLAGS"
9486fi
9487
9488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9489	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9490		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9491	fi
9492	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9493	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9494printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9495if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9496then :
9497  printf %s "(cached) " >&6
9498else $as_nop
9499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500/* end confdefs.h.  */
9501int i;
9502_ACEOF
9503if ac_fn_c_try_compile "$LINENO"
9504then :
9505  xorg_cv_cc_flag_unused_command_line_argument=yes
9506else $as_nop
9507  xorg_cv_cc_flag_unused_command_line_argument=no
9508fi
9509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9510fi
9511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9512printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9513	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9514	CFLAGS="$xorg_testset_save_CFLAGS"
9515fi
9516
9517found="no"
9518
9519	if test $found = "no" ; then
9520		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9521			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9522		fi
9523
9524		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9525			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9526		fi
9527
9528		CFLAGS="$CFLAGS -Wsequence-point"
9529
9530		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9531printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9532		cacheid=xorg_cv_cc_flag__Wsequence_point
9533		if eval test \${$cacheid+y}
9534then :
9535  printf %s "(cached) " >&6
9536else $as_nop
9537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538/* end confdefs.h.  */
9539int i;
9540int
9541main (void)
9542{
9543
9544  ;
9545  return 0;
9546}
9547_ACEOF
9548if ac_fn_c_try_link "$LINENO"
9549then :
9550  eval $cacheid=yes
9551else $as_nop
9552  eval $cacheid=no
9553fi
9554rm -f core conftest.err conftest.$ac_objext conftest.beam \
9555    conftest$ac_exeext conftest.$ac_ext
9556fi
9557
9558
9559		CFLAGS="$xorg_testset_save_CFLAGS"
9560
9561		eval supported=\$$cacheid
9562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9563printf "%s\n" "$supported" >&6; }
9564		if test "$supported" = "yes" ; then
9565			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9566			found="yes"
9567		fi
9568	fi
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584xorg_testset_save_CFLAGS="$CFLAGS"
9585
9586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9587	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9589printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9590if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9591then :
9592  printf %s "(cached) " >&6
9593else $as_nop
9594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595/* end confdefs.h.  */
9596int i;
9597_ACEOF
9598if ac_fn_c_try_compile "$LINENO"
9599then :
9600  xorg_cv_cc_flag_unknown_warning_option=yes
9601else $as_nop
9602  xorg_cv_cc_flag_unknown_warning_option=no
9603fi
9604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9605fi
9606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9607printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9608	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9609	CFLAGS="$xorg_testset_save_CFLAGS"
9610fi
9611
9612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9613	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9614		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9615	fi
9616	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9617	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9618printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9619if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9620then :
9621  printf %s "(cached) " >&6
9622else $as_nop
9623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624/* end confdefs.h.  */
9625int i;
9626_ACEOF
9627if ac_fn_c_try_compile "$LINENO"
9628then :
9629  xorg_cv_cc_flag_unused_command_line_argument=yes
9630else $as_nop
9631  xorg_cv_cc_flag_unused_command_line_argument=no
9632fi
9633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9634fi
9635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9636printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9637	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9638	CFLAGS="$xorg_testset_save_CFLAGS"
9639fi
9640
9641found="no"
9642
9643	if test $found = "no" ; then
9644		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9645			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9646		fi
9647
9648		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9649			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9650		fi
9651
9652		CFLAGS="$CFLAGS -Wreturn-type"
9653
9654		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9655printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9656		cacheid=xorg_cv_cc_flag__Wreturn_type
9657		if eval test \${$cacheid+y}
9658then :
9659  printf %s "(cached) " >&6
9660else $as_nop
9661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662/* end confdefs.h.  */
9663int i;
9664int
9665main (void)
9666{
9667
9668  ;
9669  return 0;
9670}
9671_ACEOF
9672if ac_fn_c_try_link "$LINENO"
9673then :
9674  eval $cacheid=yes
9675else $as_nop
9676  eval $cacheid=no
9677fi
9678rm -f core conftest.err conftest.$ac_objext conftest.beam \
9679    conftest$ac_exeext conftest.$ac_ext
9680fi
9681
9682
9683		CFLAGS="$xorg_testset_save_CFLAGS"
9684
9685		eval supported=\$$cacheid
9686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9687printf "%s\n" "$supported" >&6; }
9688		if test "$supported" = "yes" ; then
9689			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9690			found="yes"
9691		fi
9692	fi
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708xorg_testset_save_CFLAGS="$CFLAGS"
9709
9710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9711	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9712	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9713printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9714if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9715then :
9716  printf %s "(cached) " >&6
9717else $as_nop
9718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719/* end confdefs.h.  */
9720int i;
9721_ACEOF
9722if ac_fn_c_try_compile "$LINENO"
9723then :
9724  xorg_cv_cc_flag_unknown_warning_option=yes
9725else $as_nop
9726  xorg_cv_cc_flag_unknown_warning_option=no
9727fi
9728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9729fi
9730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9731printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9732	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9733	CFLAGS="$xorg_testset_save_CFLAGS"
9734fi
9735
9736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9737	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9738		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9739	fi
9740	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9741	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9742printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9743if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9744then :
9745  printf %s "(cached) " >&6
9746else $as_nop
9747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h.  */
9749int i;
9750_ACEOF
9751if ac_fn_c_try_compile "$LINENO"
9752then :
9753  xorg_cv_cc_flag_unused_command_line_argument=yes
9754else $as_nop
9755  xorg_cv_cc_flag_unused_command_line_argument=no
9756fi
9757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9758fi
9759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9760printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9761	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9762	CFLAGS="$xorg_testset_save_CFLAGS"
9763fi
9764
9765found="no"
9766
9767	if test $found = "no" ; then
9768		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9769			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770		fi
9771
9772		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9773			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9774		fi
9775
9776		CFLAGS="$CFLAGS -Wtrigraphs"
9777
9778		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9779printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9780		cacheid=xorg_cv_cc_flag__Wtrigraphs
9781		if eval test \${$cacheid+y}
9782then :
9783  printf %s "(cached) " >&6
9784else $as_nop
9785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786/* end confdefs.h.  */
9787int i;
9788int
9789main (void)
9790{
9791
9792  ;
9793  return 0;
9794}
9795_ACEOF
9796if ac_fn_c_try_link "$LINENO"
9797then :
9798  eval $cacheid=yes
9799else $as_nop
9800  eval $cacheid=no
9801fi
9802rm -f core conftest.err conftest.$ac_objext conftest.beam \
9803    conftest$ac_exeext conftest.$ac_ext
9804fi
9805
9806
9807		CFLAGS="$xorg_testset_save_CFLAGS"
9808
9809		eval supported=\$$cacheid
9810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9811printf "%s\n" "$supported" >&6; }
9812		if test "$supported" = "yes" ; then
9813			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9814			found="yes"
9815		fi
9816	fi
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832xorg_testset_save_CFLAGS="$CFLAGS"
9833
9834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9835	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9836	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9837printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9838if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9839then :
9840  printf %s "(cached) " >&6
9841else $as_nop
9842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843/* end confdefs.h.  */
9844int i;
9845_ACEOF
9846if ac_fn_c_try_compile "$LINENO"
9847then :
9848  xorg_cv_cc_flag_unknown_warning_option=yes
9849else $as_nop
9850  xorg_cv_cc_flag_unknown_warning_option=no
9851fi
9852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9853fi
9854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9855printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9856	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9857	CFLAGS="$xorg_testset_save_CFLAGS"
9858fi
9859
9860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9861	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9862		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9863	fi
9864	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9865	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9866printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9867if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9868then :
9869  printf %s "(cached) " >&6
9870else $as_nop
9871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872/* end confdefs.h.  */
9873int i;
9874_ACEOF
9875if ac_fn_c_try_compile "$LINENO"
9876then :
9877  xorg_cv_cc_flag_unused_command_line_argument=yes
9878else $as_nop
9879  xorg_cv_cc_flag_unused_command_line_argument=no
9880fi
9881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9882fi
9883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9884printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9885	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9886	CFLAGS="$xorg_testset_save_CFLAGS"
9887fi
9888
9889found="no"
9890
9891	if test $found = "no" ; then
9892		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9893			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9894		fi
9895
9896		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9897			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9898		fi
9899
9900		CFLAGS="$CFLAGS -Warray-bounds"
9901
9902		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9903printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9904		cacheid=xorg_cv_cc_flag__Warray_bounds
9905		if eval test \${$cacheid+y}
9906then :
9907  printf %s "(cached) " >&6
9908else $as_nop
9909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910/* end confdefs.h.  */
9911int i;
9912int
9913main (void)
9914{
9915
9916  ;
9917  return 0;
9918}
9919_ACEOF
9920if ac_fn_c_try_link "$LINENO"
9921then :
9922  eval $cacheid=yes
9923else $as_nop
9924  eval $cacheid=no
9925fi
9926rm -f core conftest.err conftest.$ac_objext conftest.beam \
9927    conftest$ac_exeext conftest.$ac_ext
9928fi
9929
9930
9931		CFLAGS="$xorg_testset_save_CFLAGS"
9932
9933		eval supported=\$$cacheid
9934		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9935printf "%s\n" "$supported" >&6; }
9936		if test "$supported" = "yes" ; then
9937			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9938			found="yes"
9939		fi
9940	fi
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956xorg_testset_save_CFLAGS="$CFLAGS"
9957
9958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9959	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9960	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9961printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9962if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9963then :
9964  printf %s "(cached) " >&6
9965else $as_nop
9966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967/* end confdefs.h.  */
9968int i;
9969_ACEOF
9970if ac_fn_c_try_compile "$LINENO"
9971then :
9972  xorg_cv_cc_flag_unknown_warning_option=yes
9973else $as_nop
9974  xorg_cv_cc_flag_unknown_warning_option=no
9975fi
9976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9977fi
9978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9979printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9980	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9981	CFLAGS="$xorg_testset_save_CFLAGS"
9982fi
9983
9984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9985	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9987	fi
9988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9989	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9990printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9991if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9992then :
9993  printf %s "(cached) " >&6
9994else $as_nop
9995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996/* end confdefs.h.  */
9997int i;
9998_ACEOF
9999if ac_fn_c_try_compile "$LINENO"
10000then :
10001  xorg_cv_cc_flag_unused_command_line_argument=yes
10002else $as_nop
10003  xorg_cv_cc_flag_unused_command_line_argument=no
10004fi
10005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10006fi
10007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10008printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10009	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10010	CFLAGS="$xorg_testset_save_CFLAGS"
10011fi
10012
10013found="no"
10014
10015	if test $found = "no" ; then
10016		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10017			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10018		fi
10019
10020		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10021			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10022		fi
10023
10024		CFLAGS="$CFLAGS -Wwrite-strings"
10025
10026		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10027printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10028		cacheid=xorg_cv_cc_flag__Wwrite_strings
10029		if eval test \${$cacheid+y}
10030then :
10031  printf %s "(cached) " >&6
10032else $as_nop
10033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034/* end confdefs.h.  */
10035int i;
10036int
10037main (void)
10038{
10039
10040  ;
10041  return 0;
10042}
10043_ACEOF
10044if ac_fn_c_try_link "$LINENO"
10045then :
10046  eval $cacheid=yes
10047else $as_nop
10048  eval $cacheid=no
10049fi
10050rm -f core conftest.err conftest.$ac_objext conftest.beam \
10051    conftest$ac_exeext conftest.$ac_ext
10052fi
10053
10054
10055		CFLAGS="$xorg_testset_save_CFLAGS"
10056
10057		eval supported=\$$cacheid
10058		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10059printf "%s\n" "$supported" >&6; }
10060		if test "$supported" = "yes" ; then
10061			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10062			found="yes"
10063		fi
10064	fi
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080xorg_testset_save_CFLAGS="$CFLAGS"
10081
10082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10083	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10084	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10085printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10086if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10087then :
10088  printf %s "(cached) " >&6
10089else $as_nop
10090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091/* end confdefs.h.  */
10092int i;
10093_ACEOF
10094if ac_fn_c_try_compile "$LINENO"
10095then :
10096  xorg_cv_cc_flag_unknown_warning_option=yes
10097else $as_nop
10098  xorg_cv_cc_flag_unknown_warning_option=no
10099fi
10100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10101fi
10102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10103printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10105	CFLAGS="$xorg_testset_save_CFLAGS"
10106fi
10107
10108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10111	fi
10112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10113	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10114printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10115if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10116then :
10117  printf %s "(cached) " >&6
10118else $as_nop
10119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120/* end confdefs.h.  */
10121int i;
10122_ACEOF
10123if ac_fn_c_try_compile "$LINENO"
10124then :
10125  xorg_cv_cc_flag_unused_command_line_argument=yes
10126else $as_nop
10127  xorg_cv_cc_flag_unused_command_line_argument=no
10128fi
10129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10130fi
10131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10132printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10133	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10134	CFLAGS="$xorg_testset_save_CFLAGS"
10135fi
10136
10137found="no"
10138
10139	if test $found = "no" ; then
10140		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142		fi
10143
10144		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10146		fi
10147
10148		CFLAGS="$CFLAGS -Waddress"
10149
10150		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10151printf %s "checking if $CC supports -Waddress... " >&6; }
10152		cacheid=xorg_cv_cc_flag__Waddress
10153		if eval test \${$cacheid+y}
10154then :
10155  printf %s "(cached) " >&6
10156else $as_nop
10157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158/* end confdefs.h.  */
10159int i;
10160int
10161main (void)
10162{
10163
10164  ;
10165  return 0;
10166}
10167_ACEOF
10168if ac_fn_c_try_link "$LINENO"
10169then :
10170  eval $cacheid=yes
10171else $as_nop
10172  eval $cacheid=no
10173fi
10174rm -f core conftest.err conftest.$ac_objext conftest.beam \
10175    conftest$ac_exeext conftest.$ac_ext
10176fi
10177
10178
10179		CFLAGS="$xorg_testset_save_CFLAGS"
10180
10181		eval supported=\$$cacheid
10182		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10183printf "%s\n" "$supported" >&6; }
10184		if test "$supported" = "yes" ; then
10185			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10186			found="yes"
10187		fi
10188	fi
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204xorg_testset_save_CFLAGS="$CFLAGS"
10205
10206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10207	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10208	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10209printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10210if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10211then :
10212  printf %s "(cached) " >&6
10213else $as_nop
10214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10215/* end confdefs.h.  */
10216int i;
10217_ACEOF
10218if ac_fn_c_try_compile "$LINENO"
10219then :
10220  xorg_cv_cc_flag_unknown_warning_option=yes
10221else $as_nop
10222  xorg_cv_cc_flag_unknown_warning_option=no
10223fi
10224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10225fi
10226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10227printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10229	CFLAGS="$xorg_testset_save_CFLAGS"
10230fi
10231
10232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10235	fi
10236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10238printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10239if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10240then :
10241  printf %s "(cached) " >&6
10242else $as_nop
10243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244/* end confdefs.h.  */
10245int i;
10246_ACEOF
10247if ac_fn_c_try_compile "$LINENO"
10248then :
10249  xorg_cv_cc_flag_unused_command_line_argument=yes
10250else $as_nop
10251  xorg_cv_cc_flag_unused_command_line_argument=no
10252fi
10253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10254fi
10255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10256printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10257	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10258	CFLAGS="$xorg_testset_save_CFLAGS"
10259fi
10260
10261found="no"
10262
10263	if test $found = "no" ; then
10264		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10265			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10266		fi
10267
10268		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10269			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10270		fi
10271
10272		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10273
10274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10275printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10276		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10277		if eval test \${$cacheid+y}
10278then :
10279  printf %s "(cached) " >&6
10280else $as_nop
10281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282/* end confdefs.h.  */
10283int i;
10284int
10285main (void)
10286{
10287
10288  ;
10289  return 0;
10290}
10291_ACEOF
10292if ac_fn_c_try_link "$LINENO"
10293then :
10294  eval $cacheid=yes
10295else $as_nop
10296  eval $cacheid=no
10297fi
10298rm -f core conftest.err conftest.$ac_objext conftest.beam \
10299    conftest$ac_exeext conftest.$ac_ext
10300fi
10301
10302
10303		CFLAGS="$xorg_testset_save_CFLAGS"
10304
10305		eval supported=\$$cacheid
10306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10307printf "%s\n" "$supported" >&6; }
10308		if test "$supported" = "yes" ; then
10309			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10310			found="yes"
10311		fi
10312	fi
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328xorg_testset_save_CFLAGS="$CFLAGS"
10329
10330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10331	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10332	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10333printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10334if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10335then :
10336  printf %s "(cached) " >&6
10337else $as_nop
10338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339/* end confdefs.h.  */
10340int i;
10341_ACEOF
10342if ac_fn_c_try_compile "$LINENO"
10343then :
10344  xorg_cv_cc_flag_unknown_warning_option=yes
10345else $as_nop
10346  xorg_cv_cc_flag_unknown_warning_option=no
10347fi
10348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10349fi
10350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10351printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10352	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10353	CFLAGS="$xorg_testset_save_CFLAGS"
10354fi
10355
10356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10357	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10358		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10359	fi
10360	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10361	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10362printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10363if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10364then :
10365  printf %s "(cached) " >&6
10366else $as_nop
10367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368/* end confdefs.h.  */
10369int i;
10370_ACEOF
10371if ac_fn_c_try_compile "$LINENO"
10372then :
10373  xorg_cv_cc_flag_unused_command_line_argument=yes
10374else $as_nop
10375  xorg_cv_cc_flag_unused_command_line_argument=no
10376fi
10377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10378fi
10379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10380printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10381	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10382	CFLAGS="$xorg_testset_save_CFLAGS"
10383fi
10384
10385found="no"
10386
10387	if test $found = "no" ; then
10388		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10389			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10390		fi
10391
10392		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10393			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10394		fi
10395
10396		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10397
10398		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10399printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10400		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10401		if eval test \${$cacheid+y}
10402then :
10403  printf %s "(cached) " >&6
10404else $as_nop
10405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406/* end confdefs.h.  */
10407int i;
10408int
10409main (void)
10410{
10411
10412  ;
10413  return 0;
10414}
10415_ACEOF
10416if ac_fn_c_try_link "$LINENO"
10417then :
10418  eval $cacheid=yes
10419else $as_nop
10420  eval $cacheid=no
10421fi
10422rm -f core conftest.err conftest.$ac_objext conftest.beam \
10423    conftest$ac_exeext conftest.$ac_ext
10424fi
10425
10426
10427		CFLAGS="$xorg_testset_save_CFLAGS"
10428
10429		eval supported=\$$cacheid
10430		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10431printf "%s\n" "$supported" >&6; }
10432		if test "$supported" = "yes" ; then
10433			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10434			found="yes"
10435		fi
10436	fi
10437
10438
10439fi
10440
10441
10442
10443
10444
10445
10446
10447		CWARNFLAGS="$BASE_CFLAGS"
10448		if  test "x$GCC" = xyes ; then
10449		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10450		fi
10451
10452
10453
10454
10455
10456
10457
10458
10459# Check whether --enable-strict-compilation was given.
10460if test ${enable_strict_compilation+y}
10461then :
10462  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10463else $as_nop
10464  STRICT_COMPILE=no
10465fi
10466
10467
10468
10469
10470
10471
10472STRICT_CFLAGS=""
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486xorg_testset_save_CFLAGS="$CFLAGS"
10487
10488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10491printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10492if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10493then :
10494  printf %s "(cached) " >&6
10495else $as_nop
10496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497/* end confdefs.h.  */
10498int i;
10499_ACEOF
10500if ac_fn_c_try_compile "$LINENO"
10501then :
10502  xorg_cv_cc_flag_unknown_warning_option=yes
10503else $as_nop
10504  xorg_cv_cc_flag_unknown_warning_option=no
10505fi
10506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10507fi
10508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10511	CFLAGS="$xorg_testset_save_CFLAGS"
10512fi
10513
10514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10517	fi
10518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10519	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10521if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10522then :
10523  printf %s "(cached) " >&6
10524else $as_nop
10525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526/* end confdefs.h.  */
10527int i;
10528_ACEOF
10529if ac_fn_c_try_compile "$LINENO"
10530then :
10531  xorg_cv_cc_flag_unused_command_line_argument=yes
10532else $as_nop
10533  xorg_cv_cc_flag_unused_command_line_argument=no
10534fi
10535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10536fi
10537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10540	CFLAGS="$xorg_testset_save_CFLAGS"
10541fi
10542
10543found="no"
10544
10545	if test $found = "no" ; then
10546		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10548		fi
10549
10550		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10552		fi
10553
10554		CFLAGS="$CFLAGS -pedantic"
10555
10556		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10557printf %s "checking if $CC supports -pedantic... " >&6; }
10558		cacheid=xorg_cv_cc_flag__pedantic
10559		if eval test \${$cacheid+y}
10560then :
10561  printf %s "(cached) " >&6
10562else $as_nop
10563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h.  */
10565int i;
10566int
10567main (void)
10568{
10569
10570  ;
10571  return 0;
10572}
10573_ACEOF
10574if ac_fn_c_try_link "$LINENO"
10575then :
10576  eval $cacheid=yes
10577else $as_nop
10578  eval $cacheid=no
10579fi
10580rm -f core conftest.err conftest.$ac_objext conftest.beam \
10581    conftest$ac_exeext conftest.$ac_ext
10582fi
10583
10584
10585		CFLAGS="$xorg_testset_save_CFLAGS"
10586
10587		eval supported=\$$cacheid
10588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10589printf "%s\n" "$supported" >&6; }
10590		if test "$supported" = "yes" ; then
10591			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10592			found="yes"
10593		fi
10594	fi
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610xorg_testset_save_CFLAGS="$CFLAGS"
10611
10612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10613	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10615printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10616if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10617then :
10618  printf %s "(cached) " >&6
10619else $as_nop
10620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621/* end confdefs.h.  */
10622int i;
10623_ACEOF
10624if ac_fn_c_try_compile "$LINENO"
10625then :
10626  xorg_cv_cc_flag_unknown_warning_option=yes
10627else $as_nop
10628  xorg_cv_cc_flag_unknown_warning_option=no
10629fi
10630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10631fi
10632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10635	CFLAGS="$xorg_testset_save_CFLAGS"
10636fi
10637
10638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10641	fi
10642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10645if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10646then :
10647  printf %s "(cached) " >&6
10648else $as_nop
10649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650/* end confdefs.h.  */
10651int i;
10652_ACEOF
10653if ac_fn_c_try_compile "$LINENO"
10654then :
10655  xorg_cv_cc_flag_unused_command_line_argument=yes
10656else $as_nop
10657  xorg_cv_cc_flag_unused_command_line_argument=no
10658fi
10659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10660fi
10661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10664	CFLAGS="$xorg_testset_save_CFLAGS"
10665fi
10666
10667found="no"
10668
10669	if test $found = "no" ; then
10670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10672		fi
10673
10674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10676		fi
10677
10678		CFLAGS="$CFLAGS -Werror"
10679
10680		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10681printf %s "checking if $CC supports -Werror... " >&6; }
10682		cacheid=xorg_cv_cc_flag__Werror
10683		if eval test \${$cacheid+y}
10684then :
10685  printf %s "(cached) " >&6
10686else $as_nop
10687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688/* end confdefs.h.  */
10689int i;
10690int
10691main (void)
10692{
10693
10694  ;
10695  return 0;
10696}
10697_ACEOF
10698if ac_fn_c_try_link "$LINENO"
10699then :
10700  eval $cacheid=yes
10701else $as_nop
10702  eval $cacheid=no
10703fi
10704rm -f core conftest.err conftest.$ac_objext conftest.beam \
10705    conftest$ac_exeext conftest.$ac_ext
10706fi
10707
10708
10709		CFLAGS="$xorg_testset_save_CFLAGS"
10710
10711		eval supported=\$$cacheid
10712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10713printf "%s\n" "$supported" >&6; }
10714		if test "$supported" = "yes" ; then
10715			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10716			found="yes"
10717		fi
10718	fi
10719
10720	if test $found = "no" ; then
10721		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10722			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10723		fi
10724
10725		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10726			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10727		fi
10728
10729		CFLAGS="$CFLAGS -errwarn"
10730
10731		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10732printf %s "checking if $CC supports -errwarn... " >&6; }
10733		cacheid=xorg_cv_cc_flag__errwarn
10734		if eval test \${$cacheid+y}
10735then :
10736  printf %s "(cached) " >&6
10737else $as_nop
10738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739/* end confdefs.h.  */
10740int i;
10741int
10742main (void)
10743{
10744
10745  ;
10746  return 0;
10747}
10748_ACEOF
10749if ac_fn_c_try_link "$LINENO"
10750then :
10751  eval $cacheid=yes
10752else $as_nop
10753  eval $cacheid=no
10754fi
10755rm -f core conftest.err conftest.$ac_objext conftest.beam \
10756    conftest$ac_exeext conftest.$ac_ext
10757fi
10758
10759
10760		CFLAGS="$xorg_testset_save_CFLAGS"
10761
10762		eval supported=\$$cacheid
10763		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10764printf "%s\n" "$supported" >&6; }
10765		if test "$supported" = "yes" ; then
10766			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10767			found="yes"
10768		fi
10769	fi
10770
10771
10772
10773# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10774# activate it with -Werror, so we add it here explicitly.
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788xorg_testset_save_CFLAGS="$CFLAGS"
10789
10790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10791	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10792	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10793printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10794if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10795then :
10796  printf %s "(cached) " >&6
10797else $as_nop
10798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799/* end confdefs.h.  */
10800int i;
10801_ACEOF
10802if ac_fn_c_try_compile "$LINENO"
10803then :
10804  xorg_cv_cc_flag_unknown_warning_option=yes
10805else $as_nop
10806  xorg_cv_cc_flag_unknown_warning_option=no
10807fi
10808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10809fi
10810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10811printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10812	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10813	CFLAGS="$xorg_testset_save_CFLAGS"
10814fi
10815
10816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10817	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10818		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10819	fi
10820	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10821	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10822printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10823if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10824then :
10825  printf %s "(cached) " >&6
10826else $as_nop
10827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828/* end confdefs.h.  */
10829int i;
10830_ACEOF
10831if ac_fn_c_try_compile "$LINENO"
10832then :
10833  xorg_cv_cc_flag_unused_command_line_argument=yes
10834else $as_nop
10835  xorg_cv_cc_flag_unused_command_line_argument=no
10836fi
10837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10838fi
10839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10840printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10841	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10842	CFLAGS="$xorg_testset_save_CFLAGS"
10843fi
10844
10845found="no"
10846
10847	if test $found = "no" ; then
10848		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10849			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10850		fi
10851
10852		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10853			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10854		fi
10855
10856		CFLAGS="$CFLAGS -Werror=attributes"
10857
10858		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10859printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10860		cacheid=xorg_cv_cc_flag__Werror_attributes
10861		if eval test \${$cacheid+y}
10862then :
10863  printf %s "(cached) " >&6
10864else $as_nop
10865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866/* end confdefs.h.  */
10867int i;
10868int
10869main (void)
10870{
10871
10872  ;
10873  return 0;
10874}
10875_ACEOF
10876if ac_fn_c_try_link "$LINENO"
10877then :
10878  eval $cacheid=yes
10879else $as_nop
10880  eval $cacheid=no
10881fi
10882rm -f core conftest.err conftest.$ac_objext conftest.beam \
10883    conftest$ac_exeext conftest.$ac_ext
10884fi
10885
10886
10887		CFLAGS="$xorg_testset_save_CFLAGS"
10888
10889		eval supported=\$$cacheid
10890		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10891printf "%s\n" "$supported" >&6; }
10892		if test "$supported" = "yes" ; then
10893			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10894			found="yes"
10895		fi
10896	fi
10897
10898
10899
10900if test "x$STRICT_COMPILE" = "xyes"; then
10901    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10902    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10903fi
10904
10905
10906
10907
10908
10909
10910cat >>confdefs.h <<_ACEOF
10911#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10912_ACEOF
10913
10914	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10915	if test "x$PVM" = "x"; then
10916		PVM="0"
10917	fi
10918
10919printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10920
10921	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10922	if test "x$PVP" = "x"; then
10923		PVP="0"
10924	fi
10925
10926printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10927
10928
10929
10930CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10931mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10932|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10933touch \$(top_srcdir)/ChangeLog; \
10934echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10935
10936
10937
10938
10939macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10940INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10941mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10942|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10943touch \$(top_srcdir)/INSTALL; \
10944echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10945
10946
10947
10948
10949
10950
10951case $host_os in
10952    solaris*)
10953        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10954        # check for a man page file found in later versions that use
10955        # traditional section numbers instead
10956        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10957printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10958if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10959then :
10960  printf %s "(cached) " >&6
10961else $as_nop
10962  test "$cross_compiling" = yes &&
10963  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10964if test -r "/usr/share/man/man7/attributes.7"; then
10965  ac_cv_file__usr_share_man_man7_attributes_7=yes
10966else
10967  ac_cv_file__usr_share_man_man7_attributes_7=no
10968fi
10969fi
10970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10971printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10972if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10973then :
10974  SYSV_MAN_SECTIONS=false
10975else $as_nop
10976  SYSV_MAN_SECTIONS=true
10977fi
10978
10979        ;;
10980    *) SYSV_MAN_SECTIONS=false ;;
10981esac
10982
10983if test x$APP_MAN_SUFFIX = x    ; then
10984    APP_MAN_SUFFIX=1
10985fi
10986if test x$APP_MAN_DIR = x    ; then
10987    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10988fi
10989
10990if test x$LIB_MAN_SUFFIX = x    ; then
10991    LIB_MAN_SUFFIX=3
10992fi
10993if test x$LIB_MAN_DIR = x    ; then
10994    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10995fi
10996
10997if test x$FILE_MAN_SUFFIX = x    ; then
10998    case $SYSV_MAN_SECTIONS in
10999	true)				FILE_MAN_SUFFIX=4  ;;
11000	*)				FILE_MAN_SUFFIX=5  ;;
11001    esac
11002fi
11003if test x$FILE_MAN_DIR = x    ; then
11004    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11005fi
11006
11007if test x$MISC_MAN_SUFFIX = x    ; then
11008    case $SYSV_MAN_SECTIONS in
11009	true)				MISC_MAN_SUFFIX=5  ;;
11010	*)				MISC_MAN_SUFFIX=7  ;;
11011    esac
11012fi
11013if test x$MISC_MAN_DIR = x    ; then
11014    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11015fi
11016
11017if test x$DRIVER_MAN_SUFFIX = x    ; then
11018    case $SYSV_MAN_SECTIONS in
11019	true)				DRIVER_MAN_SUFFIX=7  ;;
11020	*)				DRIVER_MAN_SUFFIX=4  ;;
11021    esac
11022fi
11023if test x$DRIVER_MAN_DIR = x    ; then
11024    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11025fi
11026
11027if test x$ADMIN_MAN_SUFFIX = x    ; then
11028    case $SYSV_MAN_SECTIONS in
11029	true)				ADMIN_MAN_SUFFIX=1m ;;
11030	*)				ADMIN_MAN_SUFFIX=8  ;;
11031    esac
11032fi
11033if test x$ADMIN_MAN_DIR = x    ; then
11034    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11035fi
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051XORG_MAN_PAGE="X Version 11"
11052
11053MAN_SUBSTS="\
11054	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11055	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11056	-e 's|__xservername__|Xorg|g' \
11057	-e 's|__xconfigfile__|xorg.conf|g' \
11058	-e 's|__projectroot__|\$(prefix)|g' \
11059	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11060	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11061	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11062	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11063	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11064	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11065	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11066
11067
11068
11069# Check whether --enable-silent-rules was given.
11070if test ${enable_silent_rules+y}
11071then :
11072  enableval=$enable_silent_rules;
11073fi
11074
11075case $enable_silent_rules in # (((
11076  yes) AM_DEFAULT_VERBOSITY=0;;
11077   no) AM_DEFAULT_VERBOSITY=1;;
11078    *) AM_DEFAULT_VERBOSITY=0;;
11079esac
11080am_make=${MAKE-make}
11081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11082printf %s "checking whether $am_make supports nested variables... " >&6; }
11083if test ${am_cv_make_support_nested_variables+y}
11084then :
11085  printf %s "(cached) " >&6
11086else $as_nop
11087  if printf "%s\n" 'TRUE=$(BAR$(V))
11088BAR0=false
11089BAR1=true
11090V=1
11091am__doit:
11092	@$(TRUE)
11093.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11094  am_cv_make_support_nested_variables=yes
11095else
11096  am_cv_make_support_nested_variables=no
11097fi
11098fi
11099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11100printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11101if test $am_cv_make_support_nested_variables = yes; then
11102    AM_V='$(V)'
11103  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11104else
11105  AM_V=$AM_DEFAULT_VERBOSITY
11106  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11107fi
11108AM_BACKSLASH='\'
11109
11110
11111
11112# Obtain compiler/linker options for dependencies
11113
11114pkg_failed=no
11115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XINPUT" >&5
11116printf %s "checking for XINPUT... " >&6; }
11117
11118if test -n "$XINPUT_CFLAGS"; then
11119    pkg_cv_XINPUT_CFLAGS="$XINPUT_CFLAGS"
11120 elif test -n "$PKG_CONFIG"; then
11121    if test -n "$PKG_CONFIG" && \
11122    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama\""; } >&5
11123  ($PKG_CONFIG --exists --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama") 2>&5
11124  ac_status=$?
11125  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11126  test $ac_status = 0; }; then
11127  pkg_cv_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>/dev/null`
11128		      test "x$?" != "x0" && pkg_failed=yes
11129else
11130  pkg_failed=yes
11131fi
11132 else
11133    pkg_failed=untried
11134fi
11135if test -n "$XINPUT_LIBS"; then
11136    pkg_cv_XINPUT_LIBS="$XINPUT_LIBS"
11137 elif test -n "$PKG_CONFIG"; then
11138    if test -n "$PKG_CONFIG" && \
11139    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama\""; } >&5
11140  ($PKG_CONFIG --exists --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama") 2>&5
11141  ac_status=$?
11142  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11143  test $ac_status = 0; }; then
11144  pkg_cv_XINPUT_LIBS=`$PKG_CONFIG --libs "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>/dev/null`
11145		      test "x$?" != "x0" && pkg_failed=yes
11146else
11147  pkg_failed=yes
11148fi
11149 else
11150    pkg_failed=untried
11151fi
11152
11153
11154
11155if test $pkg_failed = yes; then
11156   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157printf "%s\n" "no" >&6; }
11158
11159if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11160        _pkg_short_errors_supported=yes
11161else
11162        _pkg_short_errors_supported=no
11163fi
11164        if test $_pkg_short_errors_supported = yes; then
11165	        XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>&1`
11166        else
11167	        XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>&1`
11168        fi
11169	# Put the nasty error message in config.log where it belongs
11170	echo "$XINPUT_PKG_ERRORS" >&5
11171
11172	as_fn_error $? "Package requirements (x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama) were not met:
11173
11174$XINPUT_PKG_ERRORS
11175
11176Consider adjusting the PKG_CONFIG_PATH environment variable if you
11177installed software in a non-standard prefix.
11178
11179Alternatively, you may set the environment variables XINPUT_CFLAGS
11180and XINPUT_LIBS to avoid the need to call pkg-config.
11181See the pkg-config man page for more details." "$LINENO" 5
11182elif test $pkg_failed = untried; then
11183     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184printf "%s\n" "no" >&6; }
11185	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11186printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11187as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11188is in your PATH or set the PKG_CONFIG environment variable to the full
11189path to pkg-config.
11190
11191Alternatively, you may set the environment variables XINPUT_CFLAGS
11192and XINPUT_LIBS to avoid the need to call pkg-config.
11193See the pkg-config man page for more details.
11194
11195To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11196See \`config.log' for more details" "$LINENO" 5; }
11197else
11198	XINPUT_CFLAGS=$pkg_cv_XINPUT_CFLAGS
11199	XINPUT_LIBS=$pkg_cv_XINPUT_LIBS
11200        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11201printf "%s\n" "yes" >&6; }
11202
11203fi
11204
11205# XI2 support
11206
11207pkg_failed=no
11208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XI2" >&5
11209printf %s "checking for XI2... " >&6; }
11210
11211if test -n "$XI2_CFLAGS"; then
11212    pkg_cv_XI2_CFLAGS="$XI2_CFLAGS"
11213 elif test -n "$PKG_CONFIG"; then
11214    if test -n "$PKG_CONFIG" && \
11215    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.2.99.2 inputproto >= 1.9.99.15\""; } >&5
11216  ($PKG_CONFIG --exists --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15") 2>&5
11217  ac_status=$?
11218  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11219  test $ac_status = 0; }; then
11220  pkg_cv_XI2_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>/dev/null`
11221		      test "x$?" != "x0" && pkg_failed=yes
11222else
11223  pkg_failed=yes
11224fi
11225 else
11226    pkg_failed=untried
11227fi
11228if test -n "$XI2_LIBS"; then
11229    pkg_cv_XI2_LIBS="$XI2_LIBS"
11230 elif test -n "$PKG_CONFIG"; then
11231    if test -n "$PKG_CONFIG" && \
11232    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.2.99.2 inputproto >= 1.9.99.15\""; } >&5
11233  ($PKG_CONFIG --exists --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15") 2>&5
11234  ac_status=$?
11235  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11236  test $ac_status = 0; }; then
11237  pkg_cv_XI2_LIBS=`$PKG_CONFIG --libs "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>/dev/null`
11238		      test "x$?" != "x0" && pkg_failed=yes
11239else
11240  pkg_failed=yes
11241fi
11242 else
11243    pkg_failed=untried
11244fi
11245
11246
11247
11248if test $pkg_failed = yes; then
11249   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250printf "%s\n" "no" >&6; }
11251
11252if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11253        _pkg_short_errors_supported=yes
11254else
11255        _pkg_short_errors_supported=no
11256fi
11257        if test $_pkg_short_errors_supported = yes; then
11258	        XI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>&1`
11259        else
11260	        XI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>&1`
11261        fi
11262	# Put the nasty error message in config.log where it belongs
11263	echo "$XI2_PKG_ERRORS" >&5
11264
11265	HAVE_XI2="no"
11266elif test $pkg_failed = untried; then
11267     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268printf "%s\n" "no" >&6; }
11269	HAVE_XI2="no"
11270else
11271	XI2_CFLAGS=$pkg_cv_XI2_CFLAGS
11272	XI2_LIBS=$pkg_cv_XI2_LIBS
11273        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11274printf "%s\n" "yes" >&6; }
11275	HAVE_XI2="yes";
11276printf "%s\n" "#define HAVE_XI2 1" >>confdefs.h
11277
11278fi;
11279 if  test "$HAVE_XI2" = "yes" ; then
11280  HAVE_XI2_TRUE=
11281  HAVE_XI2_FALSE='#'
11282else
11283  HAVE_XI2_TRUE='#'
11284  HAVE_XI2_FALSE=
11285fi
11286
11287
11288
11289# XI2.1 support
11290
11291pkg_failed=no
11292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XI21" >&5
11293printf %s "checking for XI21... " >&6; }
11294
11295if test -n "$XI21_CFLAGS"; then
11296    pkg_cv_XI21_CFLAGS="$XI21_CFLAGS"
11297 elif test -n "$PKG_CONFIG"; then
11298    if test -n "$PKG_CONFIG" && \
11299    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.4.99.1 inputproto >= 2.0.99.1\""; } >&5
11300  ($PKG_CONFIG --exists --print-errors "xi >= 1.4.99.1 inputproto >= 2.0.99.1") 2>&5
11301  ac_status=$?
11302  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11303  test $ac_status = 0; }; then
11304  pkg_cv_XI21_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>/dev/null`
11305		      test "x$?" != "x0" && pkg_failed=yes
11306else
11307  pkg_failed=yes
11308fi
11309 else
11310    pkg_failed=untried
11311fi
11312if test -n "$XI21_LIBS"; then
11313    pkg_cv_XI21_LIBS="$XI21_LIBS"
11314 elif test -n "$PKG_CONFIG"; then
11315    if test -n "$PKG_CONFIG" && \
11316    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.4.99.1 inputproto >= 2.0.99.1\""; } >&5
11317  ($PKG_CONFIG --exists --print-errors "xi >= 1.4.99.1 inputproto >= 2.0.99.1") 2>&5
11318  ac_status=$?
11319  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11320  test $ac_status = 0; }; then
11321  pkg_cv_XI21_LIBS=`$PKG_CONFIG --libs "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>/dev/null`
11322		      test "x$?" != "x0" && pkg_failed=yes
11323else
11324  pkg_failed=yes
11325fi
11326 else
11327    pkg_failed=untried
11328fi
11329
11330
11331
11332if test $pkg_failed = yes; then
11333   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334printf "%s\n" "no" >&6; }
11335
11336if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11337        _pkg_short_errors_supported=yes
11338else
11339        _pkg_short_errors_supported=no
11340fi
11341        if test $_pkg_short_errors_supported = yes; then
11342	        XI21_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>&1`
11343        else
11344	        XI21_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>&1`
11345        fi
11346	# Put the nasty error message in config.log where it belongs
11347	echo "$XI21_PKG_ERRORS" >&5
11348
11349	as_fn_error $? "Package requirements (xi >= 1.4.99.1 inputproto >= 2.0.99.1) were not met:
11350
11351$XI21_PKG_ERRORS
11352
11353Consider adjusting the PKG_CONFIG_PATH environment variable if you
11354installed software in a non-standard prefix.
11355
11356Alternatively, you may set the environment variables XI21_CFLAGS
11357and XI21_LIBS to avoid the need to call pkg-config.
11358See the pkg-config man page for more details." "$LINENO" 5
11359elif test $pkg_failed = untried; then
11360     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361printf "%s\n" "no" >&6; }
11362	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11363printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11364as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11365is in your PATH or set the PKG_CONFIG environment variable to the full
11366path to pkg-config.
11367
11368Alternatively, you may set the environment variables XI21_CFLAGS
11369and XI21_LIBS to avoid the need to call pkg-config.
11370See the pkg-config man page for more details.
11371
11372To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11373See \`config.log' for more details" "$LINENO" 5; }
11374else
11375	XI21_CFLAGS=$pkg_cv_XI21_CFLAGS
11376	XI21_LIBS=$pkg_cv_XI21_LIBS
11377        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11378printf "%s\n" "yes" >&6; }
11379
11380printf "%s\n" "#define HAVE_XI21 1" >>confdefs.h
11381
11382fi;
11383# XI2.2 support
11384
11385pkg_failed=no
11386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XI22" >&5
11387printf %s "checking for XI22... " >&6; }
11388
11389if test -n "$XI22_CFLAGS"; then
11390    pkg_cv_XI22_CFLAGS="$XI22_CFLAGS"
11391 elif test -n "$PKG_CONFIG"; then
11392    if test -n "$PKG_CONFIG" && \
11393    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.5.99.1 inputproto >= 2.1.99.1\""; } >&5
11394  ($PKG_CONFIG --exists --print-errors "xi >= 1.5.99.1 inputproto >= 2.1.99.1") 2>&5
11395  ac_status=$?
11396  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11397  test $ac_status = 0; }; then
11398  pkg_cv_XI22_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>/dev/null`
11399		      test "x$?" != "x0" && pkg_failed=yes
11400else
11401  pkg_failed=yes
11402fi
11403 else
11404    pkg_failed=untried
11405fi
11406if test -n "$XI22_LIBS"; then
11407    pkg_cv_XI22_LIBS="$XI22_LIBS"
11408 elif test -n "$PKG_CONFIG"; then
11409    if test -n "$PKG_CONFIG" && \
11410    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.5.99.1 inputproto >= 2.1.99.1\""; } >&5
11411  ($PKG_CONFIG --exists --print-errors "xi >= 1.5.99.1 inputproto >= 2.1.99.1") 2>&5
11412  ac_status=$?
11413  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11414  test $ac_status = 0; }; then
11415  pkg_cv_XI22_LIBS=`$PKG_CONFIG --libs "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>/dev/null`
11416		      test "x$?" != "x0" && pkg_failed=yes
11417else
11418  pkg_failed=yes
11419fi
11420 else
11421    pkg_failed=untried
11422fi
11423
11424
11425
11426if test $pkg_failed = yes; then
11427   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428printf "%s\n" "no" >&6; }
11429
11430if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11431        _pkg_short_errors_supported=yes
11432else
11433        _pkg_short_errors_supported=no
11434fi
11435        if test $_pkg_short_errors_supported = yes; then
11436	        XI22_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>&1`
11437        else
11438	        XI22_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>&1`
11439        fi
11440	# Put the nasty error message in config.log where it belongs
11441	echo "$XI22_PKG_ERRORS" >&5
11442
11443	as_fn_error $? "Package requirements (xi >= 1.5.99.1 inputproto >= 2.1.99.1) were not met:
11444
11445$XI22_PKG_ERRORS
11446
11447Consider adjusting the PKG_CONFIG_PATH environment variable if you
11448installed software in a non-standard prefix.
11449
11450Alternatively, you may set the environment variables XI22_CFLAGS
11451and XI22_LIBS to avoid the need to call pkg-config.
11452See the pkg-config man page for more details." "$LINENO" 5
11453elif test $pkg_failed = untried; then
11454     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455printf "%s\n" "no" >&6; }
11456	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11457printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11458as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11459is in your PATH or set the PKG_CONFIG environment variable to the full
11460path to pkg-config.
11461
11462Alternatively, you may set the environment variables XI22_CFLAGS
11463and XI22_LIBS to avoid the need to call pkg-config.
11464See the pkg-config man page for more details.
11465
11466To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11467See \`config.log' for more details" "$LINENO" 5; }
11468else
11469	XI22_CFLAGS=$pkg_cv_XI22_CFLAGS
11470	XI22_LIBS=$pkg_cv_XI22_LIBS
11471        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11472printf "%s\n" "yes" >&6; }
11473
11474printf "%s\n" "#define HAVE_XI22 1" >>confdefs.h
11475
11476fi;
11477
11478ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11479
11480cat >confcache <<\_ACEOF
11481# This file is a shell script that caches the results of configure
11482# tests run on this system so they can be shared between configure
11483# scripts and configure runs, see configure's option --config-cache.
11484# It is not useful on other systems.  If it contains results you don't
11485# want to keep, you may remove or edit it.
11486#
11487# config.status only pays attention to the cache file if you give it
11488# the --recheck option to rerun configure.
11489#
11490# `ac_cv_env_foo' variables (set or unset) will be overridden when
11491# loading this file, other *unset* `ac_cv_foo' will be assigned the
11492# following values.
11493
11494_ACEOF
11495
11496# The following way of writing the cache mishandles newlines in values,
11497# but we know of no workaround that is simple, portable, and efficient.
11498# So, we kill variables containing newlines.
11499# Ultrix sh set writes to stderr and can't be redirected directly,
11500# and sets the high bit in the cache file unless we assign to the vars.
11501(
11502  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11503    eval ac_val=\$$ac_var
11504    case $ac_val in #(
11505    *${as_nl}*)
11506      case $ac_var in #(
11507      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11508printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11509      esac
11510      case $ac_var in #(
11511      _ | IFS | as_nl) ;; #(
11512      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11513      *) { eval $ac_var=; unset $ac_var;} ;;
11514      esac ;;
11515    esac
11516  done
11517
11518  (set) 2>&1 |
11519    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11520    *${as_nl}ac_space=\ *)
11521      # `set' does not quote correctly, so add quotes: double-quote
11522      # substitution turns \\\\ into \\, and sed turns \\ into \.
11523      sed -n \
11524	"s/'/'\\\\''/g;
11525	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11526      ;; #(
11527    *)
11528      # `set' quotes correctly as required by POSIX, so do not add quotes.
11529      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11530      ;;
11531    esac |
11532    sort
11533) |
11534  sed '
11535     /^ac_cv_env_/b end
11536     t clear
11537     :clear
11538     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11539     t end
11540     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11541     :end' >>confcache
11542if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11543  if test -w "$cache_file"; then
11544    if test "x$cache_file" != "x/dev/null"; then
11545      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11546printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11547      if test ! -f "$cache_file" || test -h "$cache_file"; then
11548	cat confcache >"$cache_file"
11549      else
11550        case $cache_file in #(
11551        */* | ?:*)
11552	  mv -f confcache "$cache_file"$$ &&
11553	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11554        *)
11555	  mv -f confcache "$cache_file" ;;
11556	esac
11557      fi
11558    fi
11559  else
11560    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11561printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11562  fi
11563fi
11564rm -f confcache
11565
11566test "x$prefix" = xNONE && prefix=$ac_default_prefix
11567# Let make expand exec_prefix.
11568test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11569
11570DEFS=-DHAVE_CONFIG_H
11571
11572ac_libobjs=
11573ac_ltlibobjs=
11574U=
11575for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11576  # 1. Remove the extension, and $U if already installed.
11577  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11578  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11579  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11580  #    will be set to the directory where LIBOBJS objects are built.
11581  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11582  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11583done
11584LIBOBJS=$ac_libobjs
11585
11586LTLIBOBJS=$ac_ltlibobjs
11587
11588
11589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11590printf %s "checking that generated files are newer than configure... " >&6; }
11591   if test -n "$am_sleep_pid"; then
11592     # Hide warnings about reused PIDs.
11593     wait $am_sleep_pid 2>/dev/null
11594   fi
11595   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11596printf "%s\n" "done" >&6; }
11597 if test -n "$EXEEXT"; then
11598  am__EXEEXT_TRUE=
11599  am__EXEEXT_FALSE='#'
11600else
11601  am__EXEEXT_TRUE='#'
11602  am__EXEEXT_FALSE=
11603fi
11604
11605if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11606  as_fn_error $? "conditional \"AMDEP\" was never defined.
11607Usually this means the macro was only invoked conditionally." "$LINENO" 5
11608fi
11609if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11610  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11611Usually this means the macro was only invoked conditionally." "$LINENO" 5
11612fi
11613if test -z "${HAVE_XI2_TRUE}" && test -z "${HAVE_XI2_FALSE}"; then
11614  as_fn_error $? "conditional \"HAVE_XI2\" was never defined.
11615Usually this means the macro was only invoked conditionally." "$LINENO" 5
11616fi
11617
11618: "${CONFIG_STATUS=./config.status}"
11619ac_write_fail=0
11620ac_clean_files_save=$ac_clean_files
11621ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11623printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11624as_write_fail=0
11625cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11626#! $SHELL
11627# Generated by $as_me.
11628# Run this file to recreate the current configuration.
11629# Compiler output produced by configure, useful for debugging
11630# configure, is in config.log if it exists.
11631
11632debug=false
11633ac_cs_recheck=false
11634ac_cs_silent=false
11635
11636SHELL=\${CONFIG_SHELL-$SHELL}
11637export SHELL
11638_ASEOF
11639cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11640## -------------------- ##
11641## M4sh Initialization. ##
11642## -------------------- ##
11643
11644# Be more Bourne compatible
11645DUALCASE=1; export DUALCASE # for MKS sh
11646as_nop=:
11647if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11648then :
11649  emulate sh
11650  NULLCMD=:
11651  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11652  # is contrary to our usage.  Disable this feature.
11653  alias -g '${1+"$@"}'='"$@"'
11654  setopt NO_GLOB_SUBST
11655else $as_nop
11656  case `(set -o) 2>/dev/null` in #(
11657  *posix*) :
11658    set -o posix ;; #(
11659  *) :
11660     ;;
11661esac
11662fi
11663
11664
11665
11666# Reset variables that may have inherited troublesome values from
11667# the environment.
11668
11669# IFS needs to be set, to space, tab, and newline, in precisely that order.
11670# (If _AS_PATH_WALK were called with IFS unset, it would have the
11671# side effect of setting IFS to empty, thus disabling word splitting.)
11672# Quoting is to prevent editors from complaining about space-tab.
11673as_nl='
11674'
11675export as_nl
11676IFS=" ""	$as_nl"
11677
11678PS1='$ '
11679PS2='> '
11680PS4='+ '
11681
11682# Ensure predictable behavior from utilities with locale-dependent output.
11683LC_ALL=C
11684export LC_ALL
11685LANGUAGE=C
11686export LANGUAGE
11687
11688# We cannot yet rely on "unset" to work, but we need these variables
11689# to be unset--not just set to an empty or harmless value--now, to
11690# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11691# also avoids known problems related to "unset" and subshell syntax
11692# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11693for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11694do eval test \${$as_var+y} \
11695  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11696done
11697
11698# Ensure that fds 0, 1, and 2 are open.
11699if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11700if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11701if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11702
11703# The user is always right.
11704if ${PATH_SEPARATOR+false} :; then
11705  PATH_SEPARATOR=:
11706  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11707    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11708      PATH_SEPARATOR=';'
11709  }
11710fi
11711
11712
11713# Find who we are.  Look in the path if we contain no directory separator.
11714as_myself=
11715case $0 in #((
11716  *[\\/]* ) as_myself=$0 ;;
11717  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718for as_dir in $PATH
11719do
11720  IFS=$as_save_IFS
11721  case $as_dir in #(((
11722    '') as_dir=./ ;;
11723    */) ;;
11724    *) as_dir=$as_dir/ ;;
11725  esac
11726    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11727  done
11728IFS=$as_save_IFS
11729
11730     ;;
11731esac
11732# We did not find ourselves, most probably we were run as `sh COMMAND'
11733# in which case we are not to be found in the path.
11734if test "x$as_myself" = x; then
11735  as_myself=$0
11736fi
11737if test ! -f "$as_myself"; then
11738  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11739  exit 1
11740fi
11741
11742
11743
11744# as_fn_error STATUS ERROR [LINENO LOG_FD]
11745# ----------------------------------------
11746# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11747# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11748# script with STATUS, using 1 if that was 0.
11749as_fn_error ()
11750{
11751  as_status=$1; test $as_status -eq 0 && as_status=1
11752  if test "$4"; then
11753    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11754    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11755  fi
11756  printf "%s\n" "$as_me: error: $2" >&2
11757  as_fn_exit $as_status
11758} # as_fn_error
11759
11760
11761
11762# as_fn_set_status STATUS
11763# -----------------------
11764# Set $? to STATUS, without forking.
11765as_fn_set_status ()
11766{
11767  return $1
11768} # as_fn_set_status
11769
11770# as_fn_exit STATUS
11771# -----------------
11772# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11773as_fn_exit ()
11774{
11775  set +e
11776  as_fn_set_status $1
11777  exit $1
11778} # as_fn_exit
11779
11780# as_fn_unset VAR
11781# ---------------
11782# Portably unset VAR.
11783as_fn_unset ()
11784{
11785  { eval $1=; unset $1;}
11786}
11787as_unset=as_fn_unset
11788
11789# as_fn_append VAR VALUE
11790# ----------------------
11791# Append the text in VALUE to the end of the definition contained in VAR. Take
11792# advantage of any shell optimizations that allow amortized linear growth over
11793# repeated appends, instead of the typical quadratic growth present in naive
11794# implementations.
11795if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11796then :
11797  eval 'as_fn_append ()
11798  {
11799    eval $1+=\$2
11800  }'
11801else $as_nop
11802  as_fn_append ()
11803  {
11804    eval $1=\$$1\$2
11805  }
11806fi # as_fn_append
11807
11808# as_fn_arith ARG...
11809# ------------------
11810# Perform arithmetic evaluation on the ARGs, and store the result in the
11811# global $as_val. Take advantage of shells that can avoid forks. The arguments
11812# must be portable across $(()) and expr.
11813if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11814then :
11815  eval 'as_fn_arith ()
11816  {
11817    as_val=$(( $* ))
11818  }'
11819else $as_nop
11820  as_fn_arith ()
11821  {
11822    as_val=`expr "$@" || test $? -eq 1`
11823  }
11824fi # as_fn_arith
11825
11826
11827if expr a : '\(a\)' >/dev/null 2>&1 &&
11828   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11829  as_expr=expr
11830else
11831  as_expr=false
11832fi
11833
11834if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11835  as_basename=basename
11836else
11837  as_basename=false
11838fi
11839
11840if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11841  as_dirname=dirname
11842else
11843  as_dirname=false
11844fi
11845
11846as_me=`$as_basename -- "$0" ||
11847$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11848	 X"$0" : 'X\(//\)$' \| \
11849	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11850printf "%s\n" X/"$0" |
11851    sed '/^.*\/\([^/][^/]*\)\/*$/{
11852	    s//\1/
11853	    q
11854	  }
11855	  /^X\/\(\/\/\)$/{
11856	    s//\1/
11857	    q
11858	  }
11859	  /^X\/\(\/\).*/{
11860	    s//\1/
11861	    q
11862	  }
11863	  s/.*/./; q'`
11864
11865# Avoid depending upon Character Ranges.
11866as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11867as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11868as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11869as_cr_digits='0123456789'
11870as_cr_alnum=$as_cr_Letters$as_cr_digits
11871
11872
11873# Determine whether it's possible to make 'echo' print without a newline.
11874# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11875# for compatibility with existing Makefiles.
11876ECHO_C= ECHO_N= ECHO_T=
11877case `echo -n x` in #(((((
11878-n*)
11879  case `echo 'xy\c'` in
11880  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11881  xy)  ECHO_C='\c';;
11882  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11883       ECHO_T='	';;
11884  esac;;
11885*)
11886  ECHO_N='-n';;
11887esac
11888
11889# For backward compatibility with old third-party macros, we provide
11890# the shell variables $as_echo and $as_echo_n.  New code should use
11891# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11892as_echo='printf %s\n'
11893as_echo_n='printf %s'
11894
11895rm -f conf$$ conf$$.exe conf$$.file
11896if test -d conf$$.dir; then
11897  rm -f conf$$.dir/conf$$.file
11898else
11899  rm -f conf$$.dir
11900  mkdir conf$$.dir 2>/dev/null
11901fi
11902if (echo >conf$$.file) 2>/dev/null; then
11903  if ln -s conf$$.file conf$$ 2>/dev/null; then
11904    as_ln_s='ln -s'
11905    # ... but there are two gotchas:
11906    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11907    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11908    # In both cases, we have to default to `cp -pR'.
11909    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11910      as_ln_s='cp -pR'
11911  elif ln conf$$.file conf$$ 2>/dev/null; then
11912    as_ln_s=ln
11913  else
11914    as_ln_s='cp -pR'
11915  fi
11916else
11917  as_ln_s='cp -pR'
11918fi
11919rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11920rmdir conf$$.dir 2>/dev/null
11921
11922
11923# as_fn_mkdir_p
11924# -------------
11925# Create "$as_dir" as a directory, including parents if necessary.
11926as_fn_mkdir_p ()
11927{
11928
11929  case $as_dir in #(
11930  -*) as_dir=./$as_dir;;
11931  esac
11932  test -d "$as_dir" || eval $as_mkdir_p || {
11933    as_dirs=
11934    while :; do
11935      case $as_dir in #(
11936      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11937      *) as_qdir=$as_dir;;
11938      esac
11939      as_dirs="'$as_qdir' $as_dirs"
11940      as_dir=`$as_dirname -- "$as_dir" ||
11941$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11942	 X"$as_dir" : 'X\(//\)[^/]' \| \
11943	 X"$as_dir" : 'X\(//\)$' \| \
11944	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11945printf "%s\n" X"$as_dir" |
11946    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11947	    s//\1/
11948	    q
11949	  }
11950	  /^X\(\/\/\)[^/].*/{
11951	    s//\1/
11952	    q
11953	  }
11954	  /^X\(\/\/\)$/{
11955	    s//\1/
11956	    q
11957	  }
11958	  /^X\(\/\).*/{
11959	    s//\1/
11960	    q
11961	  }
11962	  s/.*/./; q'`
11963      test -d "$as_dir" && break
11964    done
11965    test -z "$as_dirs" || eval "mkdir $as_dirs"
11966  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11967
11968
11969} # as_fn_mkdir_p
11970if mkdir -p . 2>/dev/null; then
11971  as_mkdir_p='mkdir -p "$as_dir"'
11972else
11973  test -d ./-p && rmdir ./-p
11974  as_mkdir_p=false
11975fi
11976
11977
11978# as_fn_executable_p FILE
11979# -----------------------
11980# Test if FILE is an executable regular file.
11981as_fn_executable_p ()
11982{
11983  test -f "$1" && test -x "$1"
11984} # as_fn_executable_p
11985as_test_x='test -x'
11986as_executable_p=as_fn_executable_p
11987
11988# Sed expression to map a string onto a valid CPP name.
11989as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11990
11991# Sed expression to map a string onto a valid variable name.
11992as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11993
11994
11995exec 6>&1
11996## ----------------------------------- ##
11997## Main body of $CONFIG_STATUS script. ##
11998## ----------------------------------- ##
11999_ASEOF
12000test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12001
12002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12003# Save the log message, to keep $0 and so on meaningful, and to
12004# report actual input values of CONFIG_FILES etc. instead of their
12005# values after options handling.
12006ac_log="
12007This file was extended by xinput $as_me 1.6.4, which was
12008generated by GNU Autoconf 2.71.  Invocation command line was
12009
12010  CONFIG_FILES    = $CONFIG_FILES
12011  CONFIG_HEADERS  = $CONFIG_HEADERS
12012  CONFIG_LINKS    = $CONFIG_LINKS
12013  CONFIG_COMMANDS = $CONFIG_COMMANDS
12014  $ $0 $@
12015
12016on `(hostname || uname -n) 2>/dev/null | sed 1q`
12017"
12018
12019_ACEOF
12020
12021case $ac_config_files in *"
12022"*) set x $ac_config_files; shift; ac_config_files=$*;;
12023esac
12024
12025case $ac_config_headers in *"
12026"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12027esac
12028
12029
12030cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12031# Files that config.status was made for.
12032config_files="$ac_config_files"
12033config_headers="$ac_config_headers"
12034config_commands="$ac_config_commands"
12035
12036_ACEOF
12037
12038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12039ac_cs_usage="\
12040\`$as_me' instantiates files and other configuration actions
12041from templates according to the current configuration.  Unless the files
12042and actions are specified as TAGs, all are instantiated by default.
12043
12044Usage: $0 [OPTION]... [TAG]...
12045
12046  -h, --help       print this help, then exit
12047  -V, --version    print version number and configuration settings, then exit
12048      --config     print configuration, then exit
12049  -q, --quiet, --silent
12050                   do not print progress messages
12051  -d, --debug      don't remove temporary files
12052      --recheck    update $as_me by reconfiguring in the same conditions
12053      --file=FILE[:TEMPLATE]
12054                   instantiate the configuration file FILE
12055      --header=FILE[:TEMPLATE]
12056                   instantiate the configuration header FILE
12057
12058Configuration files:
12059$config_files
12060
12061Configuration headers:
12062$config_headers
12063
12064Configuration commands:
12065$config_commands
12066
12067Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinput/issues>."
12068
12069_ACEOF
12070ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12071ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12073ac_cs_config='$ac_cs_config_escaped'
12074ac_cs_version="\\
12075xinput config.status 1.6.4
12076configured by $0, generated by GNU Autoconf 2.71,
12077  with options \\"\$ac_cs_config\\"
12078
12079Copyright (C) 2021 Free Software Foundation, Inc.
12080This config.status script is free software; the Free Software Foundation
12081gives unlimited permission to copy, distribute and modify it."
12082
12083ac_pwd='$ac_pwd'
12084srcdir='$srcdir'
12085INSTALL='$INSTALL'
12086MKDIR_P='$MKDIR_P'
12087AWK='$AWK'
12088test -n "\$AWK" || AWK=awk
12089_ACEOF
12090
12091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12092# The default lists apply if the user does not specify any file.
12093ac_need_defaults=:
12094while test $# != 0
12095do
12096  case $1 in
12097  --*=?*)
12098    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12099    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12100    ac_shift=:
12101    ;;
12102  --*=)
12103    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12104    ac_optarg=
12105    ac_shift=:
12106    ;;
12107  *)
12108    ac_option=$1
12109    ac_optarg=$2
12110    ac_shift=shift
12111    ;;
12112  esac
12113
12114  case $ac_option in
12115  # Handling of the options.
12116  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12117    ac_cs_recheck=: ;;
12118  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12119    printf "%s\n" "$ac_cs_version"; exit ;;
12120  --config | --confi | --conf | --con | --co | --c )
12121    printf "%s\n" "$ac_cs_config"; exit ;;
12122  --debug | --debu | --deb | --de | --d | -d )
12123    debug=: ;;
12124  --file | --fil | --fi | --f )
12125    $ac_shift
12126    case $ac_optarg in
12127    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12128    '') as_fn_error $? "missing file argument" ;;
12129    esac
12130    as_fn_append CONFIG_FILES " '$ac_optarg'"
12131    ac_need_defaults=false;;
12132  --header | --heade | --head | --hea )
12133    $ac_shift
12134    case $ac_optarg in
12135    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12136    esac
12137    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12138    ac_need_defaults=false;;
12139  --he | --h)
12140    # Conflict between --help and --header
12141    as_fn_error $? "ambiguous option: \`$1'
12142Try \`$0 --help' for more information.";;
12143  --help | --hel | -h )
12144    printf "%s\n" "$ac_cs_usage"; exit ;;
12145  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12146  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12147    ac_cs_silent=: ;;
12148
12149  # This is an error.
12150  -*) as_fn_error $? "unrecognized option: \`$1'
12151Try \`$0 --help' for more information." ;;
12152
12153  *) as_fn_append ac_config_targets " $1"
12154     ac_need_defaults=false ;;
12155
12156  esac
12157  shift
12158done
12159
12160ac_configure_extra_args=
12161
12162if $ac_cs_silent; then
12163  exec 6>/dev/null
12164  ac_configure_extra_args="$ac_configure_extra_args --silent"
12165fi
12166
12167_ACEOF
12168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12169if \$ac_cs_recheck; then
12170  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12171  shift
12172  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12173  CONFIG_SHELL='$SHELL'
12174  export CONFIG_SHELL
12175  exec "\$@"
12176fi
12177
12178_ACEOF
12179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12180exec 5>>config.log
12181{
12182  echo
12183  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12184## Running $as_me. ##
12185_ASBOX
12186  printf "%s\n" "$ac_log"
12187} >&5
12188
12189_ACEOF
12190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12191#
12192# INIT-COMMANDS
12193#
12194AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12195
12196_ACEOF
12197
12198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12199
12200# Handling of arguments.
12201for ac_config_target in $ac_config_targets
12202do
12203  case $ac_config_target in
12204    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12205    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12206    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12207    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12208    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12209
12210  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12211  esac
12212done
12213
12214
12215# If the user did not use the arguments to specify the items to instantiate,
12216# then the envvar interface is used.  Set only those that are not.
12217# We use the long form for the default assignment because of an extremely
12218# bizarre bug on SunOS 4.1.3.
12219if $ac_need_defaults; then
12220  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12221  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12222  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12223fi
12224
12225# Have a temporary directory for convenience.  Make it in the build tree
12226# simply because there is no reason against having it here, and in addition,
12227# creating and moving files from /tmp can sometimes cause problems.
12228# Hook for its removal unless debugging.
12229# Note that there is a small window in which the directory will not be cleaned:
12230# after its creation but before its name has been assigned to `$tmp'.
12231$debug ||
12232{
12233  tmp= ac_tmp=
12234  trap 'exit_status=$?
12235  : "${ac_tmp:=$tmp}"
12236  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12237' 0
12238  trap 'as_fn_exit 1' 1 2 13 15
12239}
12240# Create a (secure) tmp directory for tmp files.
12241
12242{
12243  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12244  test -d "$tmp"
12245}  ||
12246{
12247  tmp=./conf$$-$RANDOM
12248  (umask 077 && mkdir "$tmp")
12249} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12250ac_tmp=$tmp
12251
12252# Set up the scripts for CONFIG_FILES section.
12253# No need to generate them if there are no CONFIG_FILES.
12254# This happens for instance with `./config.status config.h'.
12255if test -n "$CONFIG_FILES"; then
12256
12257
12258ac_cr=`echo X | tr X '\015'`
12259# On cygwin, bash can eat \r inside `` if the user requested igncr.
12260# But we know of no other shell where ac_cr would be empty at this
12261# point, so we can use a bashism as a fallback.
12262if test "x$ac_cr" = x; then
12263  eval ac_cr=\$\'\\r\'
12264fi
12265ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12266if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12267  ac_cs_awk_cr='\\r'
12268else
12269  ac_cs_awk_cr=$ac_cr
12270fi
12271
12272echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12273_ACEOF
12274
12275
12276{
12277  echo "cat >conf$$subs.awk <<_ACEOF" &&
12278  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12279  echo "_ACEOF"
12280} >conf$$subs.sh ||
12281  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12282ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12283ac_delim='%!_!# '
12284for ac_last_try in false false false false false :; do
12285  . ./conf$$subs.sh ||
12286    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12287
12288  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12289  if test $ac_delim_n = $ac_delim_num; then
12290    break
12291  elif $ac_last_try; then
12292    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12293  else
12294    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12295  fi
12296done
12297rm -f conf$$subs.sh
12298
12299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12300cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12301_ACEOF
12302sed -n '
12303h
12304s/^/S["/; s/!.*/"]=/
12305p
12306g
12307s/^[^!]*!//
12308:repl
12309t repl
12310s/'"$ac_delim"'$//
12311t delim
12312:nl
12313h
12314s/\(.\{148\}\)..*/\1/
12315t more1
12316s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12317p
12318n
12319b repl
12320:more1
12321s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12322p
12323g
12324s/.\{148\}//
12325t nl
12326:delim
12327h
12328s/\(.\{148\}\)..*/\1/
12329t more2
12330s/["\\]/\\&/g; s/^/"/; s/$/"/
12331p
12332b
12333:more2
12334s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12335p
12336g
12337s/.\{148\}//
12338t delim
12339' <conf$$subs.awk | sed '
12340/^[^""]/{
12341  N
12342  s/\n//
12343}
12344' >>$CONFIG_STATUS || ac_write_fail=1
12345rm -f conf$$subs.awk
12346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12347_ACAWK
12348cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12349  for (key in S) S_is_set[key] = 1
12350  FS = ""
12351
12352}
12353{
12354  line = $ 0
12355  nfields = split(line, field, "@")
12356  substed = 0
12357  len = length(field[1])
12358  for (i = 2; i < nfields; i++) {
12359    key = field[i]
12360    keylen = length(key)
12361    if (S_is_set[key]) {
12362      value = S[key]
12363      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12364      len += length(value) + length(field[++i])
12365      substed = 1
12366    } else
12367      len += 1 + keylen
12368  }
12369
12370  print line
12371}
12372
12373_ACAWK
12374_ACEOF
12375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12376if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12377  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12378else
12379  cat
12380fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12381  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12382_ACEOF
12383
12384# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12385# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12386# trailing colons and then remove the whole line if VPATH becomes empty
12387# (actually we leave an empty line to preserve line numbers).
12388if test "x$srcdir" = x.; then
12389  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12390h
12391s///
12392s/^/:/
12393s/[	 ]*$/:/
12394s/:\$(srcdir):/:/g
12395s/:\${srcdir}:/:/g
12396s/:@srcdir@:/:/g
12397s/^:*//
12398s/:*$//
12399x
12400s/\(=[	 ]*\).*/\1/
12401G
12402s/\n//
12403s/^[^=]*=[	 ]*$//
12404}'
12405fi
12406
12407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12408fi # test -n "$CONFIG_FILES"
12409
12410# Set up the scripts for CONFIG_HEADERS section.
12411# No need to generate them if there are no CONFIG_HEADERS.
12412# This happens for instance with `./config.status Makefile'.
12413if test -n "$CONFIG_HEADERS"; then
12414cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12415BEGIN {
12416_ACEOF
12417
12418# Transform confdefs.h into an awk script `defines.awk', embedded as
12419# here-document in config.status, that substitutes the proper values into
12420# config.h.in to produce config.h.
12421
12422# Create a delimiter string that does not exist in confdefs.h, to ease
12423# handling of long lines.
12424ac_delim='%!_!# '
12425for ac_last_try in false false :; do
12426  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12427  if test -z "$ac_tt"; then
12428    break
12429  elif $ac_last_try; then
12430    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12431  else
12432    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12433  fi
12434done
12435
12436# For the awk script, D is an array of macro values keyed by name,
12437# likewise P contains macro parameters if any.  Preserve backslash
12438# newline sequences.
12439
12440ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12441sed -n '
12442s/.\{148\}/&'"$ac_delim"'/g
12443t rset
12444:rset
12445s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12446t def
12447d
12448:def
12449s/\\$//
12450t bsnl
12451s/["\\]/\\&/g
12452s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12453D["\1"]=" \3"/p
12454s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12455d
12456:bsnl
12457s/["\\]/\\&/g
12458s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12459D["\1"]=" \3\\\\\\n"\\/p
12460t cont
12461s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12462t cont
12463d
12464:cont
12465n
12466s/.\{148\}/&'"$ac_delim"'/g
12467t clear
12468:clear
12469s/\\$//
12470t bsnlc
12471s/["\\]/\\&/g; s/^/"/; s/$/"/p
12472d
12473:bsnlc
12474s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12475b cont
12476' <confdefs.h | sed '
12477s/'"$ac_delim"'/"\\\
12478"/g' >>$CONFIG_STATUS || ac_write_fail=1
12479
12480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12481  for (key in D) D_is_set[key] = 1
12482  FS = ""
12483}
12484/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12485  line = \$ 0
12486  split(line, arg, " ")
12487  if (arg[1] == "#") {
12488    defundef = arg[2]
12489    mac1 = arg[3]
12490  } else {
12491    defundef = substr(arg[1], 2)
12492    mac1 = arg[2]
12493  }
12494  split(mac1, mac2, "(") #)
12495  macro = mac2[1]
12496  prefix = substr(line, 1, index(line, defundef) - 1)
12497  if (D_is_set[macro]) {
12498    # Preserve the white space surrounding the "#".
12499    print prefix "define", macro P[macro] D[macro]
12500    next
12501  } else {
12502    # Replace #undef with comments.  This is necessary, for example,
12503    # in the case of _POSIX_SOURCE, which is predefined and required
12504    # on some systems where configure will not decide to define it.
12505    if (defundef == "undef") {
12506      print "/*", prefix defundef, macro, "*/"
12507      next
12508    }
12509  }
12510}
12511{ print }
12512_ACAWK
12513_ACEOF
12514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12515  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12516fi # test -n "$CONFIG_HEADERS"
12517
12518
12519eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12520shift
12521for ac_tag
12522do
12523  case $ac_tag in
12524  :[FHLC]) ac_mode=$ac_tag; continue;;
12525  esac
12526  case $ac_mode$ac_tag in
12527  :[FHL]*:*);;
12528  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12529  :[FH]-) ac_tag=-:-;;
12530  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12531  esac
12532  ac_save_IFS=$IFS
12533  IFS=:
12534  set x $ac_tag
12535  IFS=$ac_save_IFS
12536  shift
12537  ac_file=$1
12538  shift
12539
12540  case $ac_mode in
12541  :L) ac_source=$1;;
12542  :[FH])
12543    ac_file_inputs=
12544    for ac_f
12545    do
12546      case $ac_f in
12547      -) ac_f="$ac_tmp/stdin";;
12548      *) # Look for the file first in the build tree, then in the source tree
12549	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12550	 # because $ac_f cannot contain `:'.
12551	 test -f "$ac_f" ||
12552	   case $ac_f in
12553	   [\\/$]*) false;;
12554	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12555	   esac ||
12556	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12557      esac
12558      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12559      as_fn_append ac_file_inputs " '$ac_f'"
12560    done
12561
12562    # Let's still pretend it is `configure' which instantiates (i.e., don't
12563    # use $as_me), people would be surprised to read:
12564    #    /* config.h.  Generated by config.status.  */
12565    configure_input='Generated from '`
12566	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12567	`' by configure.'
12568    if test x"$ac_file" != x-; then
12569      configure_input="$ac_file.  $configure_input"
12570      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12571printf "%s\n" "$as_me: creating $ac_file" >&6;}
12572    fi
12573    # Neutralize special characters interpreted by sed in replacement strings.
12574    case $configure_input in #(
12575    *\&* | *\|* | *\\* )
12576       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12577       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12578    *) ac_sed_conf_input=$configure_input;;
12579    esac
12580
12581    case $ac_tag in
12582    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12583      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12584    esac
12585    ;;
12586  esac
12587
12588  ac_dir=`$as_dirname -- "$ac_file" ||
12589$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12590	 X"$ac_file" : 'X\(//\)[^/]' \| \
12591	 X"$ac_file" : 'X\(//\)$' \| \
12592	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12593printf "%s\n" X"$ac_file" |
12594    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12595	    s//\1/
12596	    q
12597	  }
12598	  /^X\(\/\/\)[^/].*/{
12599	    s//\1/
12600	    q
12601	  }
12602	  /^X\(\/\/\)$/{
12603	    s//\1/
12604	    q
12605	  }
12606	  /^X\(\/\).*/{
12607	    s//\1/
12608	    q
12609	  }
12610	  s/.*/./; q'`
12611  as_dir="$ac_dir"; as_fn_mkdir_p
12612  ac_builddir=.
12613
12614case "$ac_dir" in
12615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12616*)
12617  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12618  # A ".." for each directory in $ac_dir_suffix.
12619  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12620  case $ac_top_builddir_sub in
12621  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12622  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12623  esac ;;
12624esac
12625ac_abs_top_builddir=$ac_pwd
12626ac_abs_builddir=$ac_pwd$ac_dir_suffix
12627# for backward compatibility:
12628ac_top_builddir=$ac_top_build_prefix
12629
12630case $srcdir in
12631  .)  # We are building in place.
12632    ac_srcdir=.
12633    ac_top_srcdir=$ac_top_builddir_sub
12634    ac_abs_top_srcdir=$ac_pwd ;;
12635  [\\/]* | ?:[\\/]* )  # Absolute name.
12636    ac_srcdir=$srcdir$ac_dir_suffix;
12637    ac_top_srcdir=$srcdir
12638    ac_abs_top_srcdir=$srcdir ;;
12639  *) # Relative name.
12640    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12641    ac_top_srcdir=$ac_top_build_prefix$srcdir
12642    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12643esac
12644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12645
12646
12647  case $ac_mode in
12648  :F)
12649  #
12650  # CONFIG_FILE
12651  #
12652
12653  case $INSTALL in
12654  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12655  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12656  esac
12657  ac_MKDIR_P=$MKDIR_P
12658  case $MKDIR_P in
12659  [\\/$]* | ?:[\\/]* ) ;;
12660  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12661  esac
12662_ACEOF
12663
12664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12665# If the template does not know about datarootdir, expand it.
12666# FIXME: This hack should be removed a few years after 2.60.
12667ac_datarootdir_hack=; ac_datarootdir_seen=
12668ac_sed_dataroot='
12669/datarootdir/ {
12670  p
12671  q
12672}
12673/@datadir@/p
12674/@docdir@/p
12675/@infodir@/p
12676/@localedir@/p
12677/@mandir@/p'
12678case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12679*datarootdir*) ac_datarootdir_seen=yes;;
12680*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12682printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12683_ACEOF
12684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12685  ac_datarootdir_hack='
12686  s&@datadir@&$datadir&g
12687  s&@docdir@&$docdir&g
12688  s&@infodir@&$infodir&g
12689  s&@localedir@&$localedir&g
12690  s&@mandir@&$mandir&g
12691  s&\\\${datarootdir}&$datarootdir&g' ;;
12692esac
12693_ACEOF
12694
12695# Neutralize VPATH when `$srcdir' = `.'.
12696# Shell code in configure.ac might set extrasub.
12697# FIXME: do we really want to maintain this feature?
12698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12699ac_sed_extra="$ac_vpsub
12700$extrasub
12701_ACEOF
12702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12703:t
12704/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12705s|@configure_input@|$ac_sed_conf_input|;t t
12706s&@top_builddir@&$ac_top_builddir_sub&;t t
12707s&@top_build_prefix@&$ac_top_build_prefix&;t t
12708s&@srcdir@&$ac_srcdir&;t t
12709s&@abs_srcdir@&$ac_abs_srcdir&;t t
12710s&@top_srcdir@&$ac_top_srcdir&;t t
12711s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12712s&@builddir@&$ac_builddir&;t t
12713s&@abs_builddir@&$ac_abs_builddir&;t t
12714s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12715s&@INSTALL@&$ac_INSTALL&;t t
12716s&@MKDIR_P@&$ac_MKDIR_P&;t t
12717$ac_datarootdir_hack
12718"
12719eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12720  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12721
12722test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12723  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12724  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12725      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12727which seems to be undefined.  Please make sure it is defined" >&5
12728printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12729which seems to be undefined.  Please make sure it is defined" >&2;}
12730
12731  rm -f "$ac_tmp/stdin"
12732  case $ac_file in
12733  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12734  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12735  esac \
12736  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12737 ;;
12738  :H)
12739  #
12740  # CONFIG_HEADER
12741  #
12742  if test x"$ac_file" != x-; then
12743    {
12744      printf "%s\n" "/* $configure_input  */" >&1 \
12745      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12746    } >"$ac_tmp/config.h" \
12747      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12748    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12749      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12750printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12751    else
12752      rm -f "$ac_file"
12753      mv "$ac_tmp/config.h" "$ac_file" \
12754	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12755    fi
12756  else
12757    printf "%s\n" "/* $configure_input  */" >&1 \
12758      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12759      || as_fn_error $? "could not create -" "$LINENO" 5
12760  fi
12761# Compute "$ac_file"'s index in $config_headers.
12762_am_arg="$ac_file"
12763_am_stamp_count=1
12764for _am_header in $config_headers :; do
12765  case $_am_header in
12766    $_am_arg | $_am_arg:* )
12767      break ;;
12768    * )
12769      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12770  esac
12771done
12772echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12773$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12774	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12775	 X"$_am_arg" : 'X\(//\)$' \| \
12776	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12777printf "%s\n" X"$_am_arg" |
12778    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12779	    s//\1/
12780	    q
12781	  }
12782	  /^X\(\/\/\)[^/].*/{
12783	    s//\1/
12784	    q
12785	  }
12786	  /^X\(\/\/\)$/{
12787	    s//\1/
12788	    q
12789	  }
12790	  /^X\(\/\).*/{
12791	    s//\1/
12792	    q
12793	  }
12794	  s/.*/./; q'`/stamp-h$_am_stamp_count
12795 ;;
12796
12797  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12798printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12799 ;;
12800  esac
12801
12802
12803  case $ac_file$ac_mode in
12804    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12805  # Older Autoconf quotes --file arguments for eval, but not when files
12806  # are listed without --file.  Let's play safe and only enable the eval
12807  # if we detect the quoting.
12808  # TODO: see whether this extra hack can be removed once we start
12809  # requiring Autoconf 2.70 or later.
12810  case $CONFIG_FILES in #(
12811  *\'*) :
12812    eval set x "$CONFIG_FILES" ;; #(
12813  *) :
12814    set x $CONFIG_FILES ;; #(
12815  *) :
12816     ;;
12817esac
12818  shift
12819  # Used to flag and report bootstrapping failures.
12820  am_rc=0
12821  for am_mf
12822  do
12823    # Strip MF so we end up with the name of the file.
12824    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12825    # Check whether this is an Automake generated Makefile which includes
12826    # dependency-tracking related rules and includes.
12827    # Grep'ing the whole file directly is not great: AIX grep has a line
12828    # limit of 2048, but all sed's we know have understand at least 4000.
12829    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12830      || continue
12831    am_dirpart=`$as_dirname -- "$am_mf" ||
12832$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12833	 X"$am_mf" : 'X\(//\)[^/]' \| \
12834	 X"$am_mf" : 'X\(//\)$' \| \
12835	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12836printf "%s\n" X"$am_mf" |
12837    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12838	    s//\1/
12839	    q
12840	  }
12841	  /^X\(\/\/\)[^/].*/{
12842	    s//\1/
12843	    q
12844	  }
12845	  /^X\(\/\/\)$/{
12846	    s//\1/
12847	    q
12848	  }
12849	  /^X\(\/\).*/{
12850	    s//\1/
12851	    q
12852	  }
12853	  s/.*/./; q'`
12854    am_filepart=`$as_basename -- "$am_mf" ||
12855$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12856	 X"$am_mf" : 'X\(//\)$' \| \
12857	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12858printf "%s\n" X/"$am_mf" |
12859    sed '/^.*\/\([^/][^/]*\)\/*$/{
12860	    s//\1/
12861	    q
12862	  }
12863	  /^X\/\(\/\/\)$/{
12864	    s//\1/
12865	    q
12866	  }
12867	  /^X\/\(\/\).*/{
12868	    s//\1/
12869	    q
12870	  }
12871	  s/.*/./; q'`
12872    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12873      && sed -e '/# am--include-marker/d' "$am_filepart" \
12874        | $MAKE -f - am--depfiles" >&5
12875   (cd "$am_dirpart" \
12876      && sed -e '/# am--include-marker/d' "$am_filepart" \
12877        | $MAKE -f - am--depfiles) >&5 2>&5
12878   ac_status=$?
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } || am_rc=$?
12881  done
12882  if test $am_rc -ne 0; then
12883    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12884printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12885as_fn_error $? "Something went wrong bootstrapping makefile fragments
12886    for automatic dependency tracking.  If GNU make was not used, consider
12887    re-running the configure script with MAKE=\"gmake\" (or whatever is
12888    necessary).  You can also try re-running configure with the
12889    '--disable-dependency-tracking' option to at least be able to build
12890    the package (albeit without support for automatic dependency tracking).
12891See \`config.log' for more details" "$LINENO" 5; }
12892  fi
12893  { am_dirpart=; unset am_dirpart;}
12894  { am_filepart=; unset am_filepart;}
12895  { am_mf=; unset am_mf;}
12896  { am_rc=; unset am_rc;}
12897  rm -f conftest-deps.mk
12898}
12899 ;;
12900
12901  esac
12902done # for ac_tag
12903
12904
12905as_fn_exit 0
12906_ACEOF
12907ac_clean_files=$ac_clean_files_save
12908
12909test $ac_write_fail = 0 ||
12910  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12911
12912
12913# configure is writing to config.log, and then calls config.status.
12914# config.status does its own redirection, appending to config.log.
12915# Unfortunately, on DOS this fails, as config.log is still kept open
12916# by configure, so config.status won't be able to write to it; its
12917# output is simply discarded.  So we exec the FD to /dev/null,
12918# effectively closing config.log, so it can be properly (re)opened and
12919# appended to by config.status.  When coming back to configure, we
12920# need to make the FD available again.
12921if test "$no_create" != yes; then
12922  ac_cs_success=:
12923  ac_config_status_args=
12924  test "$silent" = yes &&
12925    ac_config_status_args="$ac_config_status_args --quiet"
12926  exec 5>/dev/null
12927  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12928  exec 5>>config.log
12929  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12930  # would make configure fail if this is the last instruction.
12931  $ac_cs_success || as_fn_exit 1
12932fi
12933if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12935printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12936fi
12937
12938
12939