configure revision 0f5b81e5
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xset 1.2.5.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xset/-/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/xset/-/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='xset'
614PACKAGE_TARNAME='xset'
615PACKAGE_VERSION='1.2.5'
616PACKAGE_STRING='xset 1.2.5'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xset/-/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
657SET_FONTCACHE_LIBS
658SET_FONTCACHE_CFLAGS
659SET_XF86MISC_LIBS
660SET_XF86MISC_CFLAGS
661SET_XKB_LIBS
662SET_XKB_CFLAGS
663SET_XEXT_LIBS
664SET_XEXT_CFLAGS
665SET_X11_LIBS
666SET_X11_CFLAGS
667XSET_LIBS
668XSET_CFLAGS
669MAN_SUBSTS
670XORG_MAN_PAGE
671ADMIN_MAN_DIR
672DRIVER_MAN_DIR
673MISC_MAN_DIR
674FILE_MAN_DIR
675LIB_MAN_DIR
676APP_MAN_DIR
677ADMIN_MAN_SUFFIX
678DRIVER_MAN_SUFFIX
679MISC_MAN_SUFFIX
680FILE_MAN_SUFFIX
681LIB_MAN_SUFFIX
682APP_MAN_SUFFIX
683SED
684host_os
685host_vendor
686host_cpu
687host
688build_os
689build_vendor
690build_cpu
691build
692INSTALL_CMD
693PKG_CONFIG_LIBDIR
694PKG_CONFIG_PATH
695PKG_CONFIG
696CHANGELOG_CMD
697STRICT_CFLAGS
698CWARNFLAGS
699BASE_CFLAGS
700AM_BACKSLASH
701AM_DEFAULT_VERBOSITY
702AM_DEFAULT_V
703AM_V
704CSCOPE
705ETAGS
706CTAGS
707am__fastdepCC_FALSE
708am__fastdepCC_TRUE
709CCDEPMODE
710am__nodep
711AMDEPBACKSLASH
712AMDEP_FALSE
713AMDEP_TRUE
714am__include
715DEPDIR
716am__untar
717am__tar
718AMTAR
719am__leading_dot
720SET_MAKE
721AWK
722mkdir_p
723MKDIR_P
724INSTALL_STRIP_PROGRAM
725STRIP
726install_sh
727MAKEINFO
728AUTOHEADER
729AUTOMAKE
730AUTOCONF
731ACLOCAL
732VERSION
733PACKAGE
734CYGPATH_W
735am__isrc
736INSTALL_DATA
737INSTALL_SCRIPT
738INSTALL_PROGRAM
739OBJEXT
740EXEEXT
741ac_ct_CC
742CPPFLAGS
743LDFLAGS
744CFLAGS
745CC
746target_alias
747host_alias
748build_alias
749LIBS
750ECHO_T
751ECHO_N
752ECHO_C
753DEFS
754mandir
755localedir
756libdir
757psdir
758pdfdir
759dvidir
760htmldir
761infodir
762docdir
763oldincludedir
764includedir
765runstatedir
766localstatedir
767sharedstatedir
768sysconfdir
769datadir
770datarootdir
771libexecdir
772sbindir
773bindir
774program_transform_name
775prefix
776exec_prefix
777PACKAGE_URL
778PACKAGE_BUGREPORT
779PACKAGE_STRING
780PACKAGE_VERSION
781PACKAGE_TARNAME
782PACKAGE_NAME
783PATH_SEPARATOR
784SHELL
785am__quote'
786ac_subst_files=''
787ac_user_opts='
788enable_option_checking
789enable_dependency_tracking
790enable_silent_rules
791enable_selective_werror
792enable_strict_compilation
793with_xf86misc
794with_fontcache
795'
796      ac_precious_vars='build_alias
797host_alias
798target_alias
799CC
800CFLAGS
801LDFLAGS
802LIBS
803CPPFLAGS
804PKG_CONFIG
805PKG_CONFIG_PATH
806PKG_CONFIG_LIBDIR
807XSET_CFLAGS
808XSET_LIBS
809SET_X11_CFLAGS
810SET_X11_LIBS
811SET_XEXT_CFLAGS
812SET_XEXT_LIBS
813SET_XKB_CFLAGS
814SET_XKB_LIBS
815SET_XF86MISC_CFLAGS
816SET_XF86MISC_LIBS
817SET_FONTCACHE_CFLAGS
818SET_FONTCACHE_LIBS'
819
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824ac_unrecognized_opts=
825ac_unrecognized_sep=
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857runstatedir='${localstatedir}/run'
858includedir='${prefix}/include'
859oldincludedir='/usr/include'
860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
869
870ac_prev=
871ac_dashdash=
872for ac_option
873do
874  # If the previous option needs an argument, assign it.
875  if test -n "$ac_prev"; then
876    eval $ac_prev=\$ac_option
877    ac_prev=
878    continue
879  fi
880
881  case $ac_option in
882  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883  *=)   ac_optarg= ;;
884  *)    ac_optarg=yes ;;
885  esac
886
887  case $ac_dashdash$ac_option in
888  --)
889    ac_dashdash=yes ;;
890
891  -bindir | --bindir | --bindi | --bind | --bin | --bi)
892    ac_prev=bindir ;;
893  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894    bindir=$ac_optarg ;;
895
896  -build | --build | --buil | --bui | --bu)
897    ac_prev=build_alias ;;
898  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899    build_alias=$ac_optarg ;;
900
901  -cache-file | --cache-file | --cache-fil | --cache-fi \
902  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903    ac_prev=cache_file ;;
904  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906    cache_file=$ac_optarg ;;
907
908  --config-cache | -C)
909    cache_file=config.cache ;;
910
911  -datadir | --datadir | --datadi | --datad)
912    ac_prev=datadir ;;
913  -datadir=* | --datadir=* | --datadi=* | --datad=*)
914    datadir=$ac_optarg ;;
915
916  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917  | --dataroo | --dataro | --datar)
918    ac_prev=datarootdir ;;
919  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921    datarootdir=$ac_optarg ;;
922
923  -disable-* | --disable-*)
924    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925    # Reject names that are not valid shell variable names.
926    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927      as_fn_error $? "invalid feature name: \`$ac_useropt'"
928    ac_useropt_orig=$ac_useropt
929    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
930    case $ac_user_opts in
931      *"
932"enable_$ac_useropt"
933"*) ;;
934      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935	 ac_unrecognized_sep=', ';;
936    esac
937    eval enable_$ac_useropt=no ;;
938
939  -docdir | --docdir | --docdi | --doc | --do)
940    ac_prev=docdir ;;
941  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942    docdir=$ac_optarg ;;
943
944  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945    ac_prev=dvidir ;;
946  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947    dvidir=$ac_optarg ;;
948
949  -enable-* | --enable-*)
950    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951    # Reject names that are not valid shell variable names.
952    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953      as_fn_error $? "invalid feature name: \`$ac_useropt'"
954    ac_useropt_orig=$ac_useropt
955    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
956    case $ac_user_opts in
957      *"
958"enable_$ac_useropt"
959"*) ;;
960      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961	 ac_unrecognized_sep=', ';;
962    esac
963    eval enable_$ac_useropt=\$ac_optarg ;;
964
965  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967  | --exec | --exe | --ex)
968    ac_prev=exec_prefix ;;
969  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971  | --exec=* | --exe=* | --ex=*)
972    exec_prefix=$ac_optarg ;;
973
974  -gas | --gas | --ga | --g)
975    # Obsolete; use --with-gas.
976    with_gas=yes ;;
977
978  -help | --help | --hel | --he | -h)
979    ac_init_help=long ;;
980  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981    ac_init_help=recursive ;;
982  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983    ac_init_help=short ;;
984
985  -host | --host | --hos | --ho)
986    ac_prev=host_alias ;;
987  -host=* | --host=* | --hos=* | --ho=*)
988    host_alias=$ac_optarg ;;
989
990  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991    ac_prev=htmldir ;;
992  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993  | --ht=*)
994    htmldir=$ac_optarg ;;
995
996  -includedir | --includedir | --includedi | --included | --include \
997  | --includ | --inclu | --incl | --inc)
998    ac_prev=includedir ;;
999  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000  | --includ=* | --inclu=* | --incl=* | --inc=*)
1001    includedir=$ac_optarg ;;
1002
1003  -infodir | --infodir | --infodi | --infod | --info | --inf)
1004    ac_prev=infodir ;;
1005  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006    infodir=$ac_optarg ;;
1007
1008  -libdir | --libdir | --libdi | --libd)
1009    ac_prev=libdir ;;
1010  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011    libdir=$ac_optarg ;;
1012
1013  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014  | --libexe | --libex | --libe)
1015    ac_prev=libexecdir ;;
1016  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017  | --libexe=* | --libex=* | --libe=*)
1018    libexecdir=$ac_optarg ;;
1019
1020  -localedir | --localedir | --localedi | --localed | --locale)
1021    ac_prev=localedir ;;
1022  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023    localedir=$ac_optarg ;;
1024
1025  -localstatedir | --localstatedir | --localstatedi | --localstated \
1026  | --localstate | --localstat | --localsta | --localst | --locals)
1027    ac_prev=localstatedir ;;
1028  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030    localstatedir=$ac_optarg ;;
1031
1032  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033    ac_prev=mandir ;;
1034  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035    mandir=$ac_optarg ;;
1036
1037  -nfp | --nfp | --nf)
1038    # Obsolete; use --without-fp.
1039    with_fp=no ;;
1040
1041  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042  | --no-cr | --no-c | -n)
1043    no_create=yes ;;
1044
1045  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047    no_recursion=yes ;;
1048
1049  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051  | --oldin | --oldi | --old | --ol | --o)
1052    ac_prev=oldincludedir ;;
1053  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056    oldincludedir=$ac_optarg ;;
1057
1058  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059    ac_prev=prefix ;;
1060  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061    prefix=$ac_optarg ;;
1062
1063  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064  | --program-pre | --program-pr | --program-p)
1065    ac_prev=program_prefix ;;
1066  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068    program_prefix=$ac_optarg ;;
1069
1070  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071  | --program-suf | --program-su | --program-s)
1072    ac_prev=program_suffix ;;
1073  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075    program_suffix=$ac_optarg ;;
1076
1077  -program-transform-name | --program-transform-name \
1078  | --program-transform-nam | --program-transform-na \
1079  | --program-transform-n | --program-transform- \
1080  | --program-transform | --program-transfor \
1081  | --program-transfo | --program-transf \
1082  | --program-trans | --program-tran \
1083  | --progr-tra | --program-tr | --program-t)
1084    ac_prev=program_transform_name ;;
1085  -program-transform-name=* | --program-transform-name=* \
1086  | --program-transform-nam=* | --program-transform-na=* \
1087  | --program-transform-n=* | --program-transform-=* \
1088  | --program-transform=* | --program-transfor=* \
1089  | --program-transfo=* | --program-transf=* \
1090  | --program-trans=* | --program-tran=* \
1091  | --progr-tra=* | --program-tr=* | --program-t=*)
1092    program_transform_name=$ac_optarg ;;
1093
1094  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095    ac_prev=pdfdir ;;
1096  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097    pdfdir=$ac_optarg ;;
1098
1099  -psdir | --psdir | --psdi | --psd | --ps)
1100    ac_prev=psdir ;;
1101  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102    psdir=$ac_optarg ;;
1103
1104  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105  | -silent | --silent | --silen | --sile | --sil)
1106    silent=yes ;;
1107
1108  -runstatedir | --runstatedir | --runstatedi | --runstated \
1109  | --runstate | --runstat | --runsta | --runst | --runs \
1110  | --run | --ru | --r)
1111    ac_prev=runstatedir ;;
1112  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1113  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1114  | --run=* | --ru=* | --r=*)
1115    runstatedir=$ac_optarg ;;
1116
1117  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118    ac_prev=sbindir ;;
1119  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120  | --sbi=* | --sb=*)
1121    sbindir=$ac_optarg ;;
1122
1123  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125  | --sharedst | --shareds | --shared | --share | --shar \
1126  | --sha | --sh)
1127    ac_prev=sharedstatedir ;;
1128  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131  | --sha=* | --sh=*)
1132    sharedstatedir=$ac_optarg ;;
1133
1134  -site | --site | --sit)
1135    ac_prev=site ;;
1136  -site=* | --site=* | --sit=*)
1137    site=$ac_optarg ;;
1138
1139  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140    ac_prev=srcdir ;;
1141  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142    srcdir=$ac_optarg ;;
1143
1144  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145  | --syscon | --sysco | --sysc | --sys | --sy)
1146    ac_prev=sysconfdir ;;
1147  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149    sysconfdir=$ac_optarg ;;
1150
1151  -target | --target | --targe | --targ | --tar | --ta | --t)
1152    ac_prev=target_alias ;;
1153  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154    target_alias=$ac_optarg ;;
1155
1156  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157    verbose=yes ;;
1158
1159  -version | --version | --versio | --versi | --vers | -V)
1160    ac_init_version=: ;;
1161
1162  -with-* | --with-*)
1163    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164    # Reject names that are not valid shell variable names.
1165    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166      as_fn_error $? "invalid package name: \`$ac_useropt'"
1167    ac_useropt_orig=$ac_useropt
1168    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1169    case $ac_user_opts in
1170      *"
1171"with_$ac_useropt"
1172"*) ;;
1173      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174	 ac_unrecognized_sep=', ';;
1175    esac
1176    eval with_$ac_useropt=\$ac_optarg ;;
1177
1178  -without-* | --without-*)
1179    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180    # Reject names that are not valid shell variable names.
1181    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182      as_fn_error $? "invalid package name: \`$ac_useropt'"
1183    ac_useropt_orig=$ac_useropt
1184    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1185    case $ac_user_opts in
1186      *"
1187"with_$ac_useropt"
1188"*) ;;
1189      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190	 ac_unrecognized_sep=', ';;
1191    esac
1192    eval with_$ac_useropt=no ;;
1193
1194  --x)
1195    # Obsolete; use --with-x.
1196    with_x=yes ;;
1197
1198  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199  | --x-incl | --x-inc | --x-in | --x-i)
1200    ac_prev=x_includes ;;
1201  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203    x_includes=$ac_optarg ;;
1204
1205  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207    ac_prev=x_libraries ;;
1208  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210    x_libraries=$ac_optarg ;;
1211
1212  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213Try \`$0 --help' for more information"
1214    ;;
1215
1216  *=*)
1217    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218    # Reject names that are not valid shell variable names.
1219    case $ac_envvar in #(
1220      '' | [0-9]* | *[!_$as_cr_alnum]* )
1221      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222    esac
1223    eval $ac_envvar=\$ac_optarg
1224    export $ac_envvar ;;
1225
1226  *)
1227    # FIXME: should be removed in autoconf 3.0.
1228    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1229    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1231    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1232    ;;
1233
1234  esac
1235done
1236
1237if test -n "$ac_prev"; then
1238  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239  as_fn_error $? "missing argument to $ac_option"
1240fi
1241
1242if test -n "$ac_unrecognized_opts"; then
1243  case $enable_option_checking in
1244    no) ;;
1245    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247  esac
1248fi
1249
1250# Check all directory arguments for consistency.
1251for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252		datadir sysconfdir sharedstatedir localstatedir includedir \
1253		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254		libdir localedir mandir runstatedir
1255do
1256  eval ac_val=\$$ac_var
1257  # Remove trailing slashes.
1258  case $ac_val in
1259    */ )
1260      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261      eval $ac_var=\$ac_val;;
1262  esac
1263  # Be sure to have absolute directory names.
1264  case $ac_val in
1265    [\\/$]* | ?:[\\/]* )  continue;;
1266    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267  esac
1268  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269done
1270
1271# There might be people who depend on the old broken behavior: `$host'
1272# used to hold the argument of --host etc.
1273# FIXME: To remove some day.
1274build=$build_alias
1275host=$host_alias
1276target=$target_alias
1277
1278# FIXME: To remove some day.
1279if test "x$host_alias" != x; then
1280  if test "x$build_alias" = x; then
1281    cross_compiling=maybe
1282  elif test "x$build_alias" != "x$host_alias"; then
1283    cross_compiling=yes
1284  fi
1285fi
1286
1287ac_tool_prefix=
1288test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290test "$silent" = yes && exec 6>/dev/null
1291
1292
1293ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294ac_ls_di=`ls -di .` &&
1295ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296  as_fn_error $? "working directory cannot be determined"
1297test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298  as_fn_error $? "pwd does not report name of working directory"
1299
1300
1301# Find the source files, if location was not specified.
1302if test -z "$srcdir"; then
1303  ac_srcdir_defaulted=yes
1304  # Try the directory containing this script, then the parent directory.
1305  ac_confdir=`$as_dirname -- "$as_myself" ||
1306$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307	 X"$as_myself" : 'X\(//\)[^/]' \| \
1308	 X"$as_myself" : 'X\(//\)$' \| \
1309	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310printf "%s\n" X"$as_myself" |
1311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\/\)[^/].*/{
1316	    s//\1/
1317	    q
1318	  }
1319	  /^X\(\/\/\)$/{
1320	    s//\1/
1321	    q
1322	  }
1323	  /^X\(\/\).*/{
1324	    s//\1/
1325	    q
1326	  }
1327	  s/.*/./; q'`
1328  srcdir=$ac_confdir
1329  if test ! -r "$srcdir/$ac_unique_file"; then
1330    srcdir=..
1331  fi
1332else
1333  ac_srcdir_defaulted=no
1334fi
1335if test ! -r "$srcdir/$ac_unique_file"; then
1336  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338fi
1339ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340ac_abs_confdir=`(
1341	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342	pwd)`
1343# When building in place, set srcdir=.
1344if test "$ac_abs_confdir" = "$ac_pwd"; then
1345  srcdir=.
1346fi
1347# Remove unnecessary trailing slashes from srcdir.
1348# Double slashes in file names in object file debugging info
1349# mess up M-x gdb in Emacs.
1350case $srcdir in
1351*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352esac
1353for ac_var in $ac_precious_vars; do
1354  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355  eval ac_env_${ac_var}_value=\$${ac_var}
1356  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358done
1359
1360#
1361# Report the --help message.
1362#
1363if test "$ac_init_help" = "long"; then
1364  # Omit some internal or obsolete options to make the list less imposing.
1365  # This message is too long to be a string in the A/UX 3.1 sh.
1366  cat <<_ACEOF
1367\`configure' configures xset 1.2.5 to adapt to many kinds of systems.
1368
1369Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372VAR=VALUE.  See below for descriptions of some of the useful variables.
1373
1374Defaults for the options are specified in brackets.
1375
1376Configuration:
1377  -h, --help              display this help and exit
1378      --help=short        display options specific to this package
1379      --help=recursive    display the short help of all the included packages
1380  -V, --version           display version information and exit
1381  -q, --quiet, --silent   do not print \`checking ...' messages
1382      --cache-file=FILE   cache test results in FILE [disabled]
1383  -C, --config-cache      alias for \`--cache-file=config.cache'
1384  -n, --no-create         do not create output files
1385      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1386
1387Installation directories:
1388  --prefix=PREFIX         install architecture-independent files in PREFIX
1389                          [$ac_default_prefix]
1390  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1391                          [PREFIX]
1392
1393By default, \`make install' will install all the files in
1394\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1395an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396for instance \`--prefix=\$HOME'.
1397
1398For better control, use the options below.
1399
1400Fine tuning of the installation directories:
1401  --bindir=DIR            user executables [EPREFIX/bin]
1402  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1403  --libexecdir=DIR        program executables [EPREFIX/libexec]
1404  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1405  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1406  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1407  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1408  --libdir=DIR            object code libraries [EPREFIX/lib]
1409  --includedir=DIR        C header files [PREFIX/include]
1410  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1411  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1412  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1413  --infodir=DIR           info documentation [DATAROOTDIR/info]
1414  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1415  --mandir=DIR            man documentation [DATAROOTDIR/man]
1416  --docdir=DIR            documentation root [DATAROOTDIR/doc/xset]
1417  --htmldir=DIR           html documentation [DOCDIR]
1418  --dvidir=DIR            dvi documentation [DOCDIR]
1419  --pdfdir=DIR            pdf documentation [DOCDIR]
1420  --psdir=DIR             ps documentation [DOCDIR]
1421_ACEOF
1422
1423  cat <<\_ACEOF
1424
1425Program names:
1426  --program-prefix=PREFIX            prepend PREFIX to installed program names
1427  --program-suffix=SUFFIX            append SUFFIX to installed program names
1428  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1429
1430System types:
1431  --build=BUILD     configure for building on BUILD [guessed]
1432  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1433_ACEOF
1434fi
1435
1436if test -n "$ac_init_help"; then
1437  case $ac_init_help in
1438     short | recursive ) echo "Configuration of xset 1.2.5:";;
1439   esac
1440  cat <<\_ACEOF
1441
1442Optional Features:
1443  --disable-option-checking  ignore unrecognized --enable/--with options
1444  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1445  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1446  --enable-dependency-tracking
1447                          do not reject slow dependency extractors
1448  --disable-dependency-tracking
1449                          speeds up one-time build
1450  --enable-silent-rules   less verbose build output (undo: "make V=1")
1451  --disable-silent-rules  verbose build output (undo: "make V=0")
1452  --disable-selective-werror
1453                          Turn off selective compiler errors. (default:
1454                          enabled)
1455  --enable-strict-compilation
1456                          Enable all warnings from compiler and make them
1457                          errors (default: disabled)
1458
1459Optional Packages:
1460  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462  --with-xf86misc         Enable xf86misc support.
1463  --without-fontcache     Disable fontcache support.
1464
1465Some influential environment variables:
1466  CC          C compiler command
1467  CFLAGS      C compiler flags
1468  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1469              nonstandard directory <lib dir>
1470  LIBS        libraries to pass to the linker, e.g. -l<library>
1471  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472              you have headers in a nonstandard directory <include dir>
1473  PKG_CONFIG  path to pkg-config utility
1474  PKG_CONFIG_PATH
1475              directories to add to pkg-config's search path
1476  PKG_CONFIG_LIBDIR
1477              path overriding pkg-config's built-in search path
1478  XSET_CFLAGS C compiler flags for XSET, overriding pkg-config
1479  XSET_LIBS   linker flags for XSET, overriding pkg-config
1480  SET_X11_CFLAGS
1481              C compiler flags for SET_X11, overriding pkg-config
1482  SET_X11_LIBS
1483              linker flags for SET_X11, overriding pkg-config
1484  SET_XEXT_CFLAGS
1485              C compiler flags for SET_XEXT, overriding pkg-config
1486  SET_XEXT_LIBS
1487              linker flags for SET_XEXT, overriding pkg-config
1488  SET_XKB_CFLAGS
1489              C compiler flags for SET_XKB, overriding pkg-config
1490  SET_XKB_LIBS
1491              linker flags for SET_XKB, overriding pkg-config
1492  SET_XF86MISC_CFLAGS
1493              C compiler flags for SET_XF86MISC, overriding pkg-config
1494  SET_XF86MISC_LIBS
1495              linker flags for SET_XF86MISC, overriding pkg-config
1496  SET_FONTCACHE_CFLAGS
1497              C compiler flags for SET_FONTCACHE, overriding pkg-config
1498  SET_FONTCACHE_LIBS
1499              linker flags for SET_FONTCACHE, overriding pkg-config
1500
1501Use these variables to override the choices made by `configure' or to help
1502it to find libraries and programs with nonstandard names/locations.
1503
1504Report bugs to <https://gitlab.freedesktop.org/xorg/app/xset/-/issues>.
1505_ACEOF
1506ac_status=$?
1507fi
1508
1509if test "$ac_init_help" = "recursive"; then
1510  # If there are subdirs, report their specific --help.
1511  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512    test -d "$ac_dir" ||
1513      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514      continue
1515    ac_builddir=.
1516
1517case "$ac_dir" in
1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519*)
1520  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1521  # A ".." for each directory in $ac_dir_suffix.
1522  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523  case $ac_top_builddir_sub in
1524  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526  esac ;;
1527esac
1528ac_abs_top_builddir=$ac_pwd
1529ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530# for backward compatibility:
1531ac_top_builddir=$ac_top_build_prefix
1532
1533case $srcdir in
1534  .)  # We are building in place.
1535    ac_srcdir=.
1536    ac_top_srcdir=$ac_top_builddir_sub
1537    ac_abs_top_srcdir=$ac_pwd ;;
1538  [\\/]* | ?:[\\/]* )  # Absolute name.
1539    ac_srcdir=$srcdir$ac_dir_suffix;
1540    ac_top_srcdir=$srcdir
1541    ac_abs_top_srcdir=$srcdir ;;
1542  *) # Relative name.
1543    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544    ac_top_srcdir=$ac_top_build_prefix$srcdir
1545    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546esac
1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549    cd "$ac_dir" || { ac_status=$?; continue; }
1550    # Check for configure.gnu first; this name is used for a wrapper for
1551    # Metaconfig's "Configure" on case-insensitive file systems.
1552    if test -f "$ac_srcdir/configure.gnu"; then
1553      echo &&
1554      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555    elif test -f "$ac_srcdir/configure"; then
1556      echo &&
1557      $SHELL "$ac_srcdir/configure" --help=recursive
1558    else
1559      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560    fi || ac_status=$?
1561    cd "$ac_pwd" || { ac_status=$?; break; }
1562  done
1563fi
1564
1565test -n "$ac_init_help" && exit $ac_status
1566if $ac_init_version; then
1567  cat <<\_ACEOF
1568xset configure 1.2.5
1569generated by GNU Autoconf 2.71
1570
1571Copyright (C) 2021 Free Software Foundation, Inc.
1572This configure script is free software; the Free Software Foundation
1573gives unlimited permission to copy, distribute and modify it.
1574_ACEOF
1575  exit
1576fi
1577
1578## ------------------------ ##
1579## Autoconf initialization. ##
1580## ------------------------ ##
1581
1582# ac_fn_c_try_compile LINENO
1583# --------------------------
1584# Try to compile conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_compile ()
1586{
1587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588  rm -f conftest.$ac_objext conftest.beam
1589  if { { ac_try="$ac_compile"
1590case "(($ac_try" in
1591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592  *) ac_try_echo=$ac_try;;
1593esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595printf "%s\n" "$ac_try_echo"; } >&5
1596  (eval "$ac_compile") 2>conftest.err
1597  ac_status=$?
1598  if test -s conftest.err; then
1599    grep -v '^ *+' conftest.err >conftest.er1
1600    cat conftest.er1 >&5
1601    mv -f conftest.er1 conftest.err
1602  fi
1603  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604  test $ac_status = 0; } && {
1605	 test -z "$ac_c_werror_flag" ||
1606	 test ! -s conftest.err
1607       } && test -s conftest.$ac_objext
1608then :
1609  ac_retval=0
1610else $as_nop
1611  printf "%s\n" "$as_me: failed program was:" >&5
1612sed 's/^/| /' conftest.$ac_ext >&5
1613
1614	ac_retval=1
1615fi
1616  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617  as_fn_set_status $ac_retval
1618
1619} # ac_fn_c_try_compile
1620
1621# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1622# -------------------------------------------------------
1623# Tests whether HEADER exists and can be compiled using the include files in
1624# INCLUDES, setting the cache variable VAR accordingly.
1625ac_fn_c_check_header_compile ()
1626{
1627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629printf %s "checking for $2... " >&6; }
1630if eval test \${$3+y}
1631then :
1632  printf %s "(cached) " >&6
1633else $as_nop
1634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635/* end confdefs.h.  */
1636$4
1637#include <$2>
1638_ACEOF
1639if ac_fn_c_try_compile "$LINENO"
1640then :
1641  eval "$3=yes"
1642else $as_nop
1643  eval "$3=no"
1644fi
1645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1646fi
1647eval ac_res=\$$3
1648	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649printf "%s\n" "$ac_res" >&6; }
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651
1652} # ac_fn_c_check_header_compile
1653
1654# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1655# ------------------------------------------------------------------
1656# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1657# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1658ac_fn_check_decl ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  as_decl_name=`echo $2|sed 's/ *(.*//'`
1662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1663printf %s "checking whether $as_decl_name is declared... " >&6; }
1664if eval test \${$3+y}
1665then :
1666  printf %s "(cached) " >&6
1667else $as_nop
1668  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1669  eval ac_save_FLAGS=\$$6
1670  as_fn_append $6 " $5"
1671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h.  */
1673$4
1674int
1675main (void)
1676{
1677#ifndef $as_decl_name
1678#ifdef __cplusplus
1679  (void) $as_decl_use;
1680#else
1681  (void) $as_decl_name;
1682#endif
1683#endif
1684
1685  ;
1686  return 0;
1687}
1688_ACEOF
1689if ac_fn_c_try_compile "$LINENO"
1690then :
1691  eval "$3=yes"
1692else $as_nop
1693  eval "$3=no"
1694fi
1695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1696  eval $6=\$ac_save_FLAGS
1697
1698fi
1699eval ac_res=\$$3
1700	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701printf "%s\n" "$ac_res" >&6; }
1702  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704} # ac_fn_check_decl
1705
1706# ac_fn_c_try_link LINENO
1707# -----------------------
1708# Try to link conftest.$ac_ext, and return whether this succeeded.
1709ac_fn_c_try_link ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1713  if { { ac_try="$ac_link"
1714case "(($ac_try" in
1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716  *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719printf "%s\n" "$ac_try_echo"; } >&5
1720  (eval "$ac_link") 2>conftest.err
1721  ac_status=$?
1722  if test -s conftest.err; then
1723    grep -v '^ *+' conftest.err >conftest.er1
1724    cat conftest.er1 >&5
1725    mv -f conftest.er1 conftest.err
1726  fi
1727  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728  test $ac_status = 0; } && {
1729	 test -z "$ac_c_werror_flag" ||
1730	 test ! -s conftest.err
1731       } && test -s conftest$ac_exeext && {
1732	 test "$cross_compiling" = yes ||
1733	 test -x conftest$ac_exeext
1734       }
1735then :
1736  ac_retval=0
1737else $as_nop
1738  printf "%s\n" "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741	ac_retval=1
1742fi
1743  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745  # interfere with the next link command; also delete a directory that is
1746  # left behind by Apple's compiler.  We do this before executing the actions.
1747  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749  as_fn_set_status $ac_retval
1750
1751} # ac_fn_c_try_link
1752
1753# ac_fn_c_check_func LINENO FUNC VAR
1754# ----------------------------------
1755# Tests whether FUNC exists, setting the cache variable VAR accordingly
1756ac_fn_c_check_func ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760printf %s "checking for $2... " >&6; }
1761if eval test \${$3+y}
1762then :
1763  printf %s "(cached) " >&6
1764else $as_nop
1765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h.  */
1767/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1769#define $2 innocuous_$2
1770
1771/* System header to define __stub macros and hopefully few prototypes,
1772   which can conflict with char $2 (); below.  */
1773
1774#include <limits.h>
1775#undef $2
1776
1777/* Override any GCC internal prototype to avoid an error.
1778   Use char because int might match the return type of a GCC
1779   builtin and then its argument prototype would still apply.  */
1780#ifdef __cplusplus
1781extern "C"
1782#endif
1783char $2 ();
1784/* The GNU C library defines this for functions which it implements
1785    to always fail with ENOSYS.  Some functions are actually named
1786    something starting with __ and the normal name is an alias.  */
1787#if defined __stub_$2 || defined __stub___$2
1788choke me
1789#endif
1790
1791int
1792main (void)
1793{
1794return $2 ();
1795  ;
1796  return 0;
1797}
1798_ACEOF
1799if ac_fn_c_try_link "$LINENO"
1800then :
1801  eval "$3=yes"
1802else $as_nop
1803  eval "$3=no"
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.beam \
1806    conftest$ac_exeext conftest.$ac_ext
1807fi
1808eval ac_res=\$$3
1809	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810printf "%s\n" "$ac_res" >&6; }
1811  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813} # ac_fn_c_check_func
1814ac_configure_args_raw=
1815for ac_arg
1816do
1817  case $ac_arg in
1818  *\'*)
1819    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820  esac
1821  as_fn_append ac_configure_args_raw " '$ac_arg'"
1822done
1823
1824case $ac_configure_args_raw in
1825  *$as_nl*)
1826    ac_safe_unquote= ;;
1827  *)
1828    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1829    ac_unsafe_a="$ac_unsafe_z#~"
1830    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1831    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1832esac
1833
1834cat >config.log <<_ACEOF
1835This file contains any messages produced by compilers while
1836running configure, to aid debugging if configure makes a mistake.
1837
1838It was created by xset $as_me 1.2.5, which was
1839generated by GNU Autoconf 2.71.  Invocation command line was
1840
1841  $ $0$ac_configure_args_raw
1842
1843_ACEOF
1844exec 5>>config.log
1845{
1846cat <<_ASUNAME
1847## --------- ##
1848## Platform. ##
1849## --------- ##
1850
1851hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1852uname -m = `(uname -m) 2>/dev/null || echo unknown`
1853uname -r = `(uname -r) 2>/dev/null || echo unknown`
1854uname -s = `(uname -s) 2>/dev/null || echo unknown`
1855uname -v = `(uname -v) 2>/dev/null || echo unknown`
1856
1857/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1858/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1859
1860/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1861/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1862/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1863/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1864/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1865/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1866/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1867
1868_ASUNAME
1869
1870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871for as_dir in $PATH
1872do
1873  IFS=$as_save_IFS
1874  case $as_dir in #(((
1875    '') as_dir=./ ;;
1876    */) ;;
1877    *) as_dir=$as_dir/ ;;
1878  esac
1879    printf "%s\n" "PATH: $as_dir"
1880  done
1881IFS=$as_save_IFS
1882
1883} >&5
1884
1885cat >&5 <<_ACEOF
1886
1887
1888## ----------- ##
1889## Core tests. ##
1890## ----------- ##
1891
1892_ACEOF
1893
1894
1895# Keep a trace of the command line.
1896# Strip out --no-create and --no-recursion so they do not pile up.
1897# Strip out --silent because we don't want to record it for future runs.
1898# Also quote any args containing shell meta-characters.
1899# Make two passes to allow for proper duplicate-argument suppression.
1900ac_configure_args=
1901ac_configure_args0=
1902ac_configure_args1=
1903ac_must_keep_next=false
1904for ac_pass in 1 2
1905do
1906  for ac_arg
1907  do
1908    case $ac_arg in
1909    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1910    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1911    | -silent | --silent | --silen | --sile | --sil)
1912      continue ;;
1913    *\'*)
1914      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1915    esac
1916    case $ac_pass in
1917    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1918    2)
1919      as_fn_append ac_configure_args1 " '$ac_arg'"
1920      if test $ac_must_keep_next = true; then
1921	ac_must_keep_next=false # Got value, back to normal.
1922      else
1923	case $ac_arg in
1924	  *=* | --config-cache | -C | -disable-* | --disable-* \
1925	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1926	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1927	  | -with-* | --with-* | -without-* | --without-* | --x)
1928	    case "$ac_configure_args0 " in
1929	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1930	    esac
1931	    ;;
1932	  -* ) ac_must_keep_next=true ;;
1933	esac
1934      fi
1935      as_fn_append ac_configure_args " '$ac_arg'"
1936      ;;
1937    esac
1938  done
1939done
1940{ ac_configure_args0=; unset ac_configure_args0;}
1941{ ac_configure_args1=; unset ac_configure_args1;}
1942
1943# When interrupted or exit'd, cleanup temporary files, and complete
1944# config.log.  We remove comments because anyway the quotes in there
1945# would cause problems or look ugly.
1946# WARNING: Use '\'' to represent an apostrophe within the trap.
1947# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1948trap 'exit_status=$?
1949  # Sanitize IFS.
1950  IFS=" ""	$as_nl"
1951  # Save into config.log some information that might help in debugging.
1952  {
1953    echo
1954
1955    printf "%s\n" "## ---------------- ##
1956## Cache variables. ##
1957## ---------------- ##"
1958    echo
1959    # The following way of writing the cache mishandles newlines in values,
1960(
1961  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1962    eval ac_val=\$$ac_var
1963    case $ac_val in #(
1964    *${as_nl}*)
1965      case $ac_var in #(
1966      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1967printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1968      esac
1969      case $ac_var in #(
1970      _ | IFS | as_nl) ;; #(
1971      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1972      *) { eval $ac_var=; unset $ac_var;} ;;
1973      esac ;;
1974    esac
1975  done
1976  (set) 2>&1 |
1977    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1978    *${as_nl}ac_space=\ *)
1979      sed -n \
1980	"s/'\''/'\''\\\\'\'''\''/g;
1981	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1982      ;; #(
1983    *)
1984      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1985      ;;
1986    esac |
1987    sort
1988)
1989    echo
1990
1991    printf "%s\n" "## ----------------- ##
1992## Output variables. ##
1993## ----------------- ##"
1994    echo
1995    for ac_var in $ac_subst_vars
1996    do
1997      eval ac_val=\$$ac_var
1998      case $ac_val in
1999      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000      esac
2001      printf "%s\n" "$ac_var='\''$ac_val'\''"
2002    done | sort
2003    echo
2004
2005    if test -n "$ac_subst_files"; then
2006      printf "%s\n" "## ------------------- ##
2007## File substitutions. ##
2008## ------------------- ##"
2009      echo
2010      for ac_var in $ac_subst_files
2011      do
2012	eval ac_val=\$$ac_var
2013	case $ac_val in
2014	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015	esac
2016	printf "%s\n" "$ac_var='\''$ac_val'\''"
2017      done | sort
2018      echo
2019    fi
2020
2021    if test -s confdefs.h; then
2022      printf "%s\n" "## ----------- ##
2023## confdefs.h. ##
2024## ----------- ##"
2025      echo
2026      cat confdefs.h
2027      echo
2028    fi
2029    test "$ac_signal" != 0 &&
2030      printf "%s\n" "$as_me: caught signal $ac_signal"
2031    printf "%s\n" "$as_me: exit $exit_status"
2032  } >&5
2033  rm -f core *.core core.conftest.* &&
2034    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2035    exit $exit_status
2036' 0
2037for ac_signal in 1 2 13 15; do
2038  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2039done
2040ac_signal=0
2041
2042# confdefs.h avoids OS command line length limits that DEFS can exceed.
2043rm -f -r conftest* confdefs.h
2044
2045printf "%s\n" "/* confdefs.h */" > confdefs.h
2046
2047# Predefined preprocessor variables.
2048
2049printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2050
2051printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2052
2053printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2054
2055printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2056
2057printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2058
2059printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2060
2061
2062# Let the site file select an alternate cache file if it wants to.
2063# Prefer an explicitly selected file to automatically selected ones.
2064if test -n "$CONFIG_SITE"; then
2065  ac_site_files="$CONFIG_SITE"
2066elif test "x$prefix" != xNONE; then
2067  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2068else
2069  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2070fi
2071
2072for ac_site_file in $ac_site_files
2073do
2074  case $ac_site_file in #(
2075  */*) :
2076     ;; #(
2077  *) :
2078    ac_site_file=./$ac_site_file ;;
2079esac
2080  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2081    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2082printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2083    sed 's/^/| /' "$ac_site_file" >&5
2084    . "$ac_site_file" \
2085      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2086printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2087as_fn_error $? "failed to load site script $ac_site_file
2088See \`config.log' for more details" "$LINENO" 5; }
2089  fi
2090done
2091
2092if test -r "$cache_file"; then
2093  # Some versions of bash will fail to source /dev/null (special files
2094  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2095  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2096    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2097printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2098    case $cache_file in
2099      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2100      *)                      . "./$cache_file";;
2101    esac
2102  fi
2103else
2104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2105printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2106  >$cache_file
2107fi
2108
2109as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2110# Test code for whether the C compiler supports C89 (global declarations)
2111ac_c_conftest_c89_globals='
2112/* Does the compiler advertise C89 conformance?
2113   Do not test the value of __STDC__, because some compilers set it to 0
2114   while being otherwise adequately conformant. */
2115#if !defined __STDC__
2116# error "Compiler does not advertise C89 conformance"
2117#endif
2118
2119#include <stddef.h>
2120#include <stdarg.h>
2121struct stat;
2122/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2123struct buf { int x; };
2124struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2125static char *e (p, i)
2126     char **p;
2127     int i;
2128{
2129  return p[i];
2130}
2131static char *f (char * (*g) (char **, int), char **p, ...)
2132{
2133  char *s;
2134  va_list v;
2135  va_start (v,p);
2136  s = g (p, va_arg (v,int));
2137  va_end (v);
2138  return s;
2139}
2140
2141/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2142   function prototypes and stuff, but not \xHH hex character constants.
2143   These do not provoke an error unfortunately, instead are silently treated
2144   as an "x".  The following induces an error, until -std is added to get
2145   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2146   array size at least.  It is necessary to write \x00 == 0 to get something
2147   that is true only with -std.  */
2148int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2149
2150/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2151   inside strings and character constants.  */
2152#define FOO(x) '\''x'\''
2153int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2154
2155int test (int i, double x);
2156struct s1 {int (*f) (int a);};
2157struct s2 {int (*f) (double a);};
2158int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2159               int, int);'
2160
2161# Test code for whether the C compiler supports C89 (body of main).
2162ac_c_conftest_c89_main='
2163ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2164'
2165
2166# Test code for whether the C compiler supports C99 (global declarations)
2167ac_c_conftest_c99_globals='
2168// Does the compiler advertise C99 conformance?
2169#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2170# error "Compiler does not advertise C99 conformance"
2171#endif
2172
2173#include <stdbool.h>
2174extern int puts (const char *);
2175extern int printf (const char *, ...);
2176extern int dprintf (int, const char *, ...);
2177extern void *malloc (size_t);
2178
2179// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2180// dprintf is used instead of fprintf to avoid needing to declare
2181// FILE and stderr.
2182#define debug(...) dprintf (2, __VA_ARGS__)
2183#define showlist(...) puts (#__VA_ARGS__)
2184#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2185static void
2186test_varargs_macros (void)
2187{
2188  int x = 1234;
2189  int y = 5678;
2190  debug ("Flag");
2191  debug ("X = %d\n", x);
2192  showlist (The first, second, and third items.);
2193  report (x>y, "x is %d but y is %d", x, y);
2194}
2195
2196// Check long long types.
2197#define BIG64 18446744073709551615ull
2198#define BIG32 4294967295ul
2199#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2200#if !BIG_OK
2201  #error "your preprocessor is broken"
2202#endif
2203#if BIG_OK
2204#else
2205  #error "your preprocessor is broken"
2206#endif
2207static long long int bignum = -9223372036854775807LL;
2208static unsigned long long int ubignum = BIG64;
2209
2210struct incomplete_array
2211{
2212  int datasize;
2213  double data[];
2214};
2215
2216struct named_init {
2217  int number;
2218  const wchar_t *name;
2219  double average;
2220};
2221
2222typedef const char *ccp;
2223
2224static inline int
2225test_restrict (ccp restrict text)
2226{
2227  // See if C++-style comments work.
2228  // Iterate through items via the restricted pointer.
2229  // Also check for declarations in for loops.
2230  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2231    continue;
2232  return 0;
2233}
2234
2235// Check varargs and va_copy.
2236static bool
2237test_varargs (const char *format, ...)
2238{
2239  va_list args;
2240  va_start (args, format);
2241  va_list args_copy;
2242  va_copy (args_copy, args);
2243
2244  const char *str = "";
2245  int number = 0;
2246  float fnumber = 0;
2247
2248  while (*format)
2249    {
2250      switch (*format++)
2251	{
2252	case '\''s'\'': // string
2253	  str = va_arg (args_copy, const char *);
2254	  break;
2255	case '\''d'\'': // int
2256	  number = va_arg (args_copy, int);
2257	  break;
2258	case '\''f'\'': // float
2259	  fnumber = va_arg (args_copy, double);
2260	  break;
2261	default:
2262	  break;
2263	}
2264    }
2265  va_end (args_copy);
2266  va_end (args);
2267
2268  return *str && number && fnumber;
2269}
2270'
2271
2272# Test code for whether the C compiler supports C99 (body of main).
2273ac_c_conftest_c99_main='
2274  // Check bool.
2275  _Bool success = false;
2276  success |= (argc != 0);
2277
2278  // Check restrict.
2279  if (test_restrict ("String literal") == 0)
2280    success = true;
2281  char *restrict newvar = "Another string";
2282
2283  // Check varargs.
2284  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2285  test_varargs_macros ();
2286
2287  // Check flexible array members.
2288  struct incomplete_array *ia =
2289    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2290  ia->datasize = 10;
2291  for (int i = 0; i < ia->datasize; ++i)
2292    ia->data[i] = i * 1.234;
2293
2294  // Check named initializers.
2295  struct named_init ni = {
2296    .number = 34,
2297    .name = L"Test wide string",
2298    .average = 543.34343,
2299  };
2300
2301  ni.number = 58;
2302
2303  int dynamic_array[ni.number];
2304  dynamic_array[0] = argv[0][0];
2305  dynamic_array[ni.number - 1] = 543;
2306
2307  // work around unused variable warnings
2308  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2309	 || dynamic_array[ni.number - 1] != 543);
2310'
2311
2312# Test code for whether the C compiler supports C11 (global declarations)
2313ac_c_conftest_c11_globals='
2314// Does the compiler advertise C11 conformance?
2315#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2316# error "Compiler does not advertise C11 conformance"
2317#endif
2318
2319// Check _Alignas.
2320char _Alignas (double) aligned_as_double;
2321char _Alignas (0) no_special_alignment;
2322extern char aligned_as_int;
2323char _Alignas (0) _Alignas (int) aligned_as_int;
2324
2325// Check _Alignof.
2326enum
2327{
2328  int_alignment = _Alignof (int),
2329  int_array_alignment = _Alignof (int[100]),
2330  char_alignment = _Alignof (char)
2331};
2332_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2333
2334// Check _Noreturn.
2335int _Noreturn does_not_return (void) { for (;;) continue; }
2336
2337// Check _Static_assert.
2338struct test_static_assert
2339{
2340  int x;
2341  _Static_assert (sizeof (int) <= sizeof (long int),
2342                  "_Static_assert does not work in struct");
2343  long int y;
2344};
2345
2346// Check UTF-8 literals.
2347#define u8 syntax error!
2348char const utf8_literal[] = u8"happens to be ASCII" "another string";
2349
2350// Check duplicate typedefs.
2351typedef long *long_ptr;
2352typedef long int *long_ptr;
2353typedef long_ptr long_ptr;
2354
2355// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2356struct anonymous
2357{
2358  union {
2359    struct { int i; int j; };
2360    struct { int k; long int l; } w;
2361  };
2362  int m;
2363} v1;
2364'
2365
2366# Test code for whether the C compiler supports C11 (body of main).
2367ac_c_conftest_c11_main='
2368  _Static_assert ((offsetof (struct anonymous, i)
2369		   == offsetof (struct anonymous, w.k)),
2370		  "Anonymous union alignment botch");
2371  v1.i = 2;
2372  v1.w.k = 5;
2373  ok |= v1.i != 5;
2374'
2375
2376# Test code for whether the C compiler supports C11 (complete).
2377ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2378${ac_c_conftest_c99_globals}
2379${ac_c_conftest_c11_globals}
2380
2381int
2382main (int argc, char **argv)
2383{
2384  int ok = 0;
2385  ${ac_c_conftest_c89_main}
2386  ${ac_c_conftest_c99_main}
2387  ${ac_c_conftest_c11_main}
2388  return ok;
2389}
2390"
2391
2392# Test code for whether the C compiler supports C99 (complete).
2393ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2394${ac_c_conftest_c99_globals}
2395
2396int
2397main (int argc, char **argv)
2398{
2399  int ok = 0;
2400  ${ac_c_conftest_c89_main}
2401  ${ac_c_conftest_c99_main}
2402  return ok;
2403}
2404"
2405
2406# Test code for whether the C compiler supports C89 (complete).
2407ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2408
2409int
2410main (int argc, char **argv)
2411{
2412  int ok = 0;
2413  ${ac_c_conftest_c89_main}
2414  return ok;
2415}
2416"
2417
2418as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2419as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2420as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2421as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2422as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2423as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2424as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2425as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2426as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2427as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2428
2429# Auxiliary files required by this configure script.
2430ac_aux_files="config.guess config.sub missing install-sh compile"
2431
2432# Locations in which to look for auxiliary files.
2433ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2434
2435# Search for a directory containing all of the required auxiliary files,
2436# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2437# If we don't find one directory that contains all the files we need,
2438# we report the set of missing files from the *first* directory in
2439# $ac_aux_dir_candidates and give up.
2440ac_missing_aux_files=""
2441ac_first_candidate=:
2442printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444as_found=false
2445for as_dir in $ac_aux_dir_candidates
2446do
2447  IFS=$as_save_IFS
2448  case $as_dir in #(((
2449    '') as_dir=./ ;;
2450    */) ;;
2451    *) as_dir=$as_dir/ ;;
2452  esac
2453  as_found=:
2454
2455  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2456  ac_aux_dir_found=yes
2457  ac_install_sh=
2458  for ac_aux in $ac_aux_files
2459  do
2460    # As a special case, if "install-sh" is required, that requirement
2461    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2462    # and $ac_install_sh is set appropriately for whichever one is found.
2463    if test x"$ac_aux" = x"install-sh"
2464    then
2465      if test -f "${as_dir}install-sh"; then
2466        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2467        ac_install_sh="${as_dir}install-sh -c"
2468      elif test -f "${as_dir}install.sh"; then
2469        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2470        ac_install_sh="${as_dir}install.sh -c"
2471      elif test -f "${as_dir}shtool"; then
2472        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2473        ac_install_sh="${as_dir}shtool install -c"
2474      else
2475        ac_aux_dir_found=no
2476        if $ac_first_candidate; then
2477          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2478        else
2479          break
2480        fi
2481      fi
2482    else
2483      if test -f "${as_dir}${ac_aux}"; then
2484        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2485      else
2486        ac_aux_dir_found=no
2487        if $ac_first_candidate; then
2488          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2489        else
2490          break
2491        fi
2492      fi
2493    fi
2494  done
2495  if test "$ac_aux_dir_found" = yes; then
2496    ac_aux_dir="$as_dir"
2497    break
2498  fi
2499  ac_first_candidate=false
2500
2501  as_found=false
2502done
2503IFS=$as_save_IFS
2504if $as_found
2505then :
2506
2507else $as_nop
2508  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2509fi
2510
2511
2512# These three variables are undocumented and unsupported,
2513# and are intended to be withdrawn in a future Autoconf release.
2514# They can cause serious problems if a builder's source tree is in a directory
2515# whose full name contains unusual characters.
2516if test -f "${ac_aux_dir}config.guess"; then
2517  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2518fi
2519if test -f "${ac_aux_dir}config.sub"; then
2520  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2521fi
2522if test -f "$ac_aux_dir/configure"; then
2523  ac_configure="$SHELL ${ac_aux_dir}configure"
2524fi
2525
2526# Check that the precious variables saved in the cache have kept the same
2527# value.
2528ac_cache_corrupted=false
2529for ac_var in $ac_precious_vars; do
2530  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531  eval ac_new_set=\$ac_env_${ac_var}_set
2532  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533  eval ac_new_val=\$ac_env_${ac_var}_value
2534  case $ac_old_set,$ac_new_set in
2535    set,)
2536      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2537printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2538      ac_cache_corrupted=: ;;
2539    ,set)
2540      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2541printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2542      ac_cache_corrupted=: ;;
2543    ,);;
2544    *)
2545      if test "x$ac_old_val" != "x$ac_new_val"; then
2546	# differences in whitespace do not lead to failure.
2547	ac_old_val_w=`echo x $ac_old_val`
2548	ac_new_val_w=`echo x $ac_new_val`
2549	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2551printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2552	  ac_cache_corrupted=:
2553	else
2554	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2555printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2556	  eval $ac_var=\$ac_old_val
2557	fi
2558	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2559printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2560	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2561printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2562      fi;;
2563  esac
2564  # Pass precious variables to config.status.
2565  if test "$ac_new_set" = set; then
2566    case $ac_new_val in
2567    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2568    *) ac_arg=$ac_var=$ac_new_val ;;
2569    esac
2570    case " $ac_configure_args " in
2571      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2572      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2573    esac
2574  fi
2575done
2576if $ac_cache_corrupted; then
2577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2578printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2581  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2582	    and start over" "$LINENO" 5
2583fi
2584## -------------------- ##
2585## Main body of script. ##
2586## -------------------- ##
2587
2588ac_ext=c
2589ac_cpp='$CPP $CPPFLAGS'
2590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593
2594
2595
2596ac_config_headers="$ac_config_headers config.h"
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609# Expand $ac_aux_dir to an absolute path.
2610am_aux_dir=`cd "$ac_aux_dir" && pwd`
2611
2612ac_ext=c
2613ac_cpp='$CPP $CPPFLAGS'
2614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2616ac_compiler_gnu=$ac_cv_c_compiler_gnu
2617if test -n "$ac_tool_prefix"; then
2618  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2619set dummy ${ac_tool_prefix}gcc; ac_word=$2
2620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621printf %s "checking for $ac_word... " >&6; }
2622if test ${ac_cv_prog_CC+y}
2623then :
2624  printf %s "(cached) " >&6
2625else $as_nop
2626  if test -n "$CC"; then
2627  ac_cv_prog_CC="$CC" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632  IFS=$as_save_IFS
2633  case $as_dir in #(((
2634    '') as_dir=./ ;;
2635    */) ;;
2636    *) as_dir=$as_dir/ ;;
2637  esac
2638    for ac_exec_ext in '' $ac_executable_extensions; do
2639  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2640    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2641    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2642    break 2
2643  fi
2644done
2645  done
2646IFS=$as_save_IFS
2647
2648fi
2649fi
2650CC=$ac_cv_prog_CC
2651if test -n "$CC"; then
2652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653printf "%s\n" "$CC" >&6; }
2654else
2655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656printf "%s\n" "no" >&6; }
2657fi
2658
2659
2660fi
2661if test -z "$ac_cv_prog_CC"; then
2662  ac_ct_CC=$CC
2663  # Extract the first word of "gcc", so it can be a program name with args.
2664set dummy gcc; ac_word=$2
2665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666printf %s "checking for $ac_word... " >&6; }
2667if test ${ac_cv_prog_ac_ct_CC+y}
2668then :
2669  printf %s "(cached) " >&6
2670else $as_nop
2671  if test -n "$ac_ct_CC"; then
2672  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2673else
2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677  IFS=$as_save_IFS
2678  case $as_dir in #(((
2679    '') as_dir=./ ;;
2680    */) ;;
2681    *) as_dir=$as_dir/ ;;
2682  esac
2683    for ac_exec_ext in '' $ac_executable_extensions; do
2684  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2685    ac_cv_prog_ac_ct_CC="gcc"
2686    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2687    break 2
2688  fi
2689done
2690  done
2691IFS=$as_save_IFS
2692
2693fi
2694fi
2695ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696if test -n "$ac_ct_CC"; then
2697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2698printf "%s\n" "$ac_ct_CC" >&6; }
2699else
2700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701printf "%s\n" "no" >&6; }
2702fi
2703
2704  if test "x$ac_ct_CC" = x; then
2705    CC=""
2706  else
2707    case $cross_compiling:$ac_tool_warned in
2708yes:)
2709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2710printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2711ac_tool_warned=yes ;;
2712esac
2713    CC=$ac_ct_CC
2714  fi
2715else
2716  CC="$ac_cv_prog_CC"
2717fi
2718
2719if test -z "$CC"; then
2720          if test -n "$ac_tool_prefix"; then
2721    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2722set dummy ${ac_tool_prefix}cc; 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_CC+y}
2726then :
2727  printf %s "(cached) " >&6
2728else $as_nop
2729  if test -n "$CC"; then
2730  ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}cc"
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
2753CC=$ac_cv_prog_CC
2754if test -n "$CC"; then
2755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756printf "%s\n" "$CC" >&6; }
2757else
2758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759printf "%s\n" "no" >&6; }
2760fi
2761
2762
2763  fi
2764fi
2765if test -z "$CC"; then
2766  # Extract the first word of "cc", so it can be a program name with args.
2767set dummy cc; 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_CC+y}
2771then :
2772  printf %s "(cached) " >&6
2773else $as_nop
2774  if test -n "$CC"; then
2775  ac_cv_prog_CC="$CC" # Let the user override the test.
2776else
2777  ac_prog_rejected=no
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781  IFS=$as_save_IFS
2782  case $as_dir in #(((
2783    '') as_dir=./ ;;
2784    */) ;;
2785    *) as_dir=$as_dir/ ;;
2786  esac
2787    for ac_exec_ext in '' $ac_executable_extensions; do
2788  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2789    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2790       ac_prog_rejected=yes
2791       continue
2792     fi
2793    ac_cv_prog_CC="cc"
2794    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2795    break 2
2796  fi
2797done
2798  done
2799IFS=$as_save_IFS
2800
2801if test $ac_prog_rejected = yes; then
2802  # We found a bogon in the path, so make sure we never use it.
2803  set dummy $ac_cv_prog_CC
2804  shift
2805  if test $# != 0; then
2806    # We chose a different compiler from the bogus one.
2807    # However, it has the same basename, so the bogon will be chosen
2808    # first if we set CC to just the basename; use the full file name.
2809    shift
2810    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2811  fi
2812fi
2813fi
2814fi
2815CC=$ac_cv_prog_CC
2816if test -n "$CC"; then
2817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818printf "%s\n" "$CC" >&6; }
2819else
2820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821printf "%s\n" "no" >&6; }
2822fi
2823
2824
2825fi
2826if test -z "$CC"; then
2827  if test -n "$ac_tool_prefix"; then
2828  for ac_prog in cl.exe
2829  do
2830    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833printf %s "checking for $ac_word... " >&6; }
2834if test ${ac_cv_prog_CC+y}
2835then :
2836  printf %s "(cached) " >&6
2837else $as_nop
2838  if test -n "$CC"; then
2839  ac_cv_prog_CC="$CC" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  case $as_dir in #(((
2846    '') as_dir=./ ;;
2847    */) ;;
2848    *) as_dir=$as_dir/ ;;
2849  esac
2850    for ac_exec_ext in '' $ac_executable_extensions; do
2851  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2852    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2853    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857  done
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862CC=$ac_cv_prog_CC
2863if test -n "$CC"; then
2864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865printf "%s\n" "$CC" >&6; }
2866else
2867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868printf "%s\n" "no" >&6; }
2869fi
2870
2871
2872    test -n "$CC" && break
2873  done
2874fi
2875if test -z "$CC"; then
2876  ac_ct_CC=$CC
2877  for ac_prog in cl.exe
2878do
2879  # Extract the first word of "$ac_prog", so it can be a program name with args.
2880set dummy $ac_prog; ac_word=$2
2881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882printf %s "checking for $ac_word... " >&6; }
2883if test ${ac_cv_prog_ac_ct_CC+y}
2884then :
2885  printf %s "(cached) " >&6
2886else $as_nop
2887  if test -n "$ac_ct_CC"; then
2888  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889else
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893  IFS=$as_save_IFS
2894  case $as_dir in #(((
2895    '') as_dir=./ ;;
2896    */) ;;
2897    *) as_dir=$as_dir/ ;;
2898  esac
2899    for ac_exec_ext in '' $ac_executable_extensions; do
2900  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2901    ac_cv_prog_ac_ct_CC="$ac_prog"
2902    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2903    break 2
2904  fi
2905done
2906  done
2907IFS=$as_save_IFS
2908
2909fi
2910fi
2911ac_ct_CC=$ac_cv_prog_ac_ct_CC
2912if test -n "$ac_ct_CC"; then
2913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2914printf "%s\n" "$ac_ct_CC" >&6; }
2915else
2916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917printf "%s\n" "no" >&6; }
2918fi
2919
2920
2921  test -n "$ac_ct_CC" && break
2922done
2923
2924  if test "x$ac_ct_CC" = x; then
2925    CC=""
2926  else
2927    case $cross_compiling:$ac_tool_warned in
2928yes:)
2929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931ac_tool_warned=yes ;;
2932esac
2933    CC=$ac_ct_CC
2934  fi
2935fi
2936
2937fi
2938if test -z "$CC"; then
2939  if test -n "$ac_tool_prefix"; then
2940  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2941set dummy ${ac_tool_prefix}clang; ac_word=$2
2942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943printf %s "checking for $ac_word... " >&6; }
2944if test ${ac_cv_prog_CC+y}
2945then :
2946  printf %s "(cached) " >&6
2947else $as_nop
2948  if test -n "$CC"; then
2949  ac_cv_prog_CC="$CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954  IFS=$as_save_IFS
2955  case $as_dir in #(((
2956    '') as_dir=./ ;;
2957    */) ;;
2958    *) as_dir=$as_dir/ ;;
2959  esac
2960    for ac_exec_ext in '' $ac_executable_extensions; do
2961  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2962    ac_cv_prog_CC="${ac_tool_prefix}clang"
2963    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2964    break 2
2965  fi
2966done
2967  done
2968IFS=$as_save_IFS
2969
2970fi
2971fi
2972CC=$ac_cv_prog_CC
2973if test -n "$CC"; then
2974  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975printf "%s\n" "$CC" >&6; }
2976else
2977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978printf "%s\n" "no" >&6; }
2979fi
2980
2981
2982fi
2983if test -z "$ac_cv_prog_CC"; then
2984  ac_ct_CC=$CC
2985  # Extract the first word of "clang", so it can be a program name with args.
2986set dummy clang; ac_word=$2
2987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988printf %s "checking for $ac_word... " >&6; }
2989if test ${ac_cv_prog_ac_ct_CC+y}
2990then :
2991  printf %s "(cached) " >&6
2992else $as_nop
2993  if test -n "$ac_ct_CC"; then
2994  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999  IFS=$as_save_IFS
3000  case $as_dir in #(((
3001    '') as_dir=./ ;;
3002    */) ;;
3003    *) as_dir=$as_dir/ ;;
3004  esac
3005    for ac_exec_ext in '' $ac_executable_extensions; do
3006  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3007    ac_cv_prog_ac_ct_CC="clang"
3008    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3009    break 2
3010  fi
3011done
3012  done
3013IFS=$as_save_IFS
3014
3015fi
3016fi
3017ac_ct_CC=$ac_cv_prog_ac_ct_CC
3018if test -n "$ac_ct_CC"; then
3019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3020printf "%s\n" "$ac_ct_CC" >&6; }
3021else
3022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023printf "%s\n" "no" >&6; }
3024fi
3025
3026  if test "x$ac_ct_CC" = x; then
3027    CC=""
3028  else
3029    case $cross_compiling:$ac_tool_warned in
3030yes:)
3031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033ac_tool_warned=yes ;;
3034esac
3035    CC=$ac_ct_CC
3036  fi
3037else
3038  CC="$ac_cv_prog_CC"
3039fi
3040
3041fi
3042
3043
3044test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3046as_fn_error $? "no acceptable C compiler found in \$PATH
3047See \`config.log' for more details" "$LINENO" 5; }
3048
3049# Provide some information about the compiler.
3050printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3051set X $ac_compile
3052ac_compiler=$2
3053for ac_option in --version -v -V -qversion -version; do
3054  { { ac_try="$ac_compiler $ac_option >&5"
3055case "(($ac_try" in
3056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057  *) ac_try_echo=$ac_try;;
3058esac
3059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060printf "%s\n" "$ac_try_echo"; } >&5
3061  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3062  ac_status=$?
3063  if test -s conftest.err; then
3064    sed '10a\
3065... rest of stderr output deleted ...
3066         10q' conftest.err >conftest.er1
3067    cat conftest.er1 >&5
3068  fi
3069  rm -f conftest.er1 conftest.err
3070  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071  test $ac_status = 0; }
3072done
3073
3074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075/* end confdefs.h.  */
3076
3077int
3078main (void)
3079{
3080
3081  ;
3082  return 0;
3083}
3084_ACEOF
3085ac_clean_files_save=$ac_clean_files
3086ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3087# Try to create an executable without -o first, disregard a.out.
3088# It will help us diagnose broken compilers, and finding out an intuition
3089# of exeext.
3090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3091printf %s "checking whether the C compiler works... " >&6; }
3092ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3093
3094# The possible output files:
3095ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3096
3097ac_rmfiles=
3098for ac_file in $ac_files
3099do
3100  case $ac_file in
3101    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3102    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3103  esac
3104done
3105rm -f $ac_rmfiles
3106
3107if { { ac_try="$ac_link_default"
3108case "(($ac_try" in
3109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110  *) ac_try_echo=$ac_try;;
3111esac
3112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113printf "%s\n" "$ac_try_echo"; } >&5
3114  (eval "$ac_link_default") 2>&5
3115  ac_status=$?
3116  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117  test $ac_status = 0; }
3118then :
3119  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3120# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3121# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3122# so that the user can short-circuit this test for compilers unknown to
3123# Autoconf.
3124for ac_file in $ac_files ''
3125do
3126  test -f "$ac_file" || continue
3127  case $ac_file in
3128    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3129	;;
3130    [ab].out )
3131	# We found the default executable, but exeext='' is most
3132	# certainly right.
3133	break;;
3134    *.* )
3135	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3136	then :; else
3137	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138	fi
3139	# We set ac_cv_exeext here because the later test for it is not
3140	# safe: cross compilers may not add the suffix if given an `-o'
3141	# argument, so we may need to know it at that point already.
3142	# Even if this section looks crufty: it has the advantage of
3143	# actually working.
3144	break;;
3145    * )
3146	break;;
3147  esac
3148done
3149test "$ac_cv_exeext" = no && ac_cv_exeext=
3150
3151else $as_nop
3152  ac_file=''
3153fi
3154if test -z "$ac_file"
3155then :
3156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157printf "%s\n" "no" >&6; }
3158printf "%s\n" "$as_me: failed program was:" >&5
3159sed 's/^/| /' conftest.$ac_ext >&5
3160
3161{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3163as_fn_error 77 "C compiler cannot create executables
3164See \`config.log' for more details" "$LINENO" 5; }
3165else $as_nop
3166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167printf "%s\n" "yes" >&6; }
3168fi
3169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3170printf %s "checking for C compiler default output file name... " >&6; }
3171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3172printf "%s\n" "$ac_file" >&6; }
3173ac_exeext=$ac_cv_exeext
3174
3175rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3176ac_clean_files=$ac_clean_files_save
3177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3178printf %s "checking for suffix of executables... " >&6; }
3179if { { ac_try="$ac_link"
3180case "(($ac_try" in
3181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182  *) ac_try_echo=$ac_try;;
3183esac
3184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185printf "%s\n" "$ac_try_echo"; } >&5
3186  (eval "$ac_link") 2>&5
3187  ac_status=$?
3188  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189  test $ac_status = 0; }
3190then :
3191  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3192# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3193# work properly (i.e., refer to `conftest.exe'), while it won't with
3194# `rm'.
3195for ac_file in conftest.exe conftest conftest.*; do
3196  test -f "$ac_file" || continue
3197  case $ac_file in
3198    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200	  break;;
3201    * ) break;;
3202  esac
3203done
3204else $as_nop
3205  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3207as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3208See \`config.log' for more details" "$LINENO" 5; }
3209fi
3210rm -f conftest conftest$ac_cv_exeext
3211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3212printf "%s\n" "$ac_cv_exeext" >&6; }
3213
3214rm -f conftest.$ac_ext
3215EXEEXT=$ac_cv_exeext
3216ac_exeext=$EXEEXT
3217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218/* end confdefs.h.  */
3219#include <stdio.h>
3220int
3221main (void)
3222{
3223FILE *f = fopen ("conftest.out", "w");
3224 return ferror (f) || fclose (f) != 0;
3225
3226  ;
3227  return 0;
3228}
3229_ACEOF
3230ac_clean_files="$ac_clean_files conftest.out"
3231# Check that the compiler produces executables we can run.  If not, either
3232# the compiler is broken, or we cross compile.
3233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3234printf %s "checking whether we are cross compiling... " >&6; }
3235if test "$cross_compiling" != yes; then
3236  { { ac_try="$ac_link"
3237case "(($ac_try" in
3238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239  *) ac_try_echo=$ac_try;;
3240esac
3241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242printf "%s\n" "$ac_try_echo"; } >&5
3243  (eval "$ac_link") 2>&5
3244  ac_status=$?
3245  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246  test $ac_status = 0; }
3247  if { ac_try='./conftest$ac_cv_exeext'
3248  { { case "(($ac_try" in
3249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250  *) ac_try_echo=$ac_try;;
3251esac
3252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253printf "%s\n" "$ac_try_echo"; } >&5
3254  (eval "$ac_try") 2>&5
3255  ac_status=$?
3256  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257  test $ac_status = 0; }; }; then
3258    cross_compiling=no
3259  else
3260    if test "$cross_compiling" = maybe; then
3261	cross_compiling=yes
3262    else
3263	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3265as_fn_error 77 "cannot run C compiled programs.
3266If you meant to cross compile, use \`--host'.
3267See \`config.log' for more details" "$LINENO" 5; }
3268    fi
3269  fi
3270fi
3271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3272printf "%s\n" "$cross_compiling" >&6; }
3273
3274rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3275ac_clean_files=$ac_clean_files_save
3276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3277printf %s "checking for suffix of object files... " >&6; }
3278if test ${ac_cv_objext+y}
3279then :
3280  printf %s "(cached) " >&6
3281else $as_nop
3282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283/* end confdefs.h.  */
3284
3285int
3286main (void)
3287{
3288
3289  ;
3290  return 0;
3291}
3292_ACEOF
3293rm -f conftest.o conftest.obj
3294if { { ac_try="$ac_compile"
3295case "(($ac_try" in
3296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297  *) ac_try_echo=$ac_try;;
3298esac
3299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300printf "%s\n" "$ac_try_echo"; } >&5
3301  (eval "$ac_compile") 2>&5
3302  ac_status=$?
3303  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304  test $ac_status = 0; }
3305then :
3306  for ac_file in conftest.o conftest.obj conftest.*; do
3307  test -f "$ac_file" || continue;
3308  case $ac_file in
3309    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3310    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3311       break;;
3312  esac
3313done
3314else $as_nop
3315  printf "%s\n" "$as_me: failed program was:" >&5
3316sed 's/^/| /' conftest.$ac_ext >&5
3317
3318{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3320as_fn_error $? "cannot compute suffix of object files: cannot compile
3321See \`config.log' for more details" "$LINENO" 5; }
3322fi
3323rm -f conftest.$ac_cv_objext conftest.$ac_ext
3324fi
3325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3326printf "%s\n" "$ac_cv_objext" >&6; }
3327OBJEXT=$ac_cv_objext
3328ac_objext=$OBJEXT
3329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3330printf %s "checking whether the compiler supports GNU C... " >&6; }
3331if test ${ac_cv_c_compiler_gnu+y}
3332then :
3333  printf %s "(cached) " >&6
3334else $as_nop
3335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336/* end confdefs.h.  */
3337
3338int
3339main (void)
3340{
3341#ifndef __GNUC__
3342       choke me
3343#endif
3344
3345  ;
3346  return 0;
3347}
3348_ACEOF
3349if ac_fn_c_try_compile "$LINENO"
3350then :
3351  ac_compiler_gnu=yes
3352else $as_nop
3353  ac_compiler_gnu=no
3354fi
3355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3356ac_cv_c_compiler_gnu=$ac_compiler_gnu
3357
3358fi
3359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3360printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3361ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362
3363if test $ac_compiler_gnu = yes; then
3364  GCC=yes
3365else
3366  GCC=
3367fi
3368ac_test_CFLAGS=${CFLAGS+y}
3369ac_save_CFLAGS=$CFLAGS
3370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3371printf %s "checking whether $CC accepts -g... " >&6; }
3372if test ${ac_cv_prog_cc_g+y}
3373then :
3374  printf %s "(cached) " >&6
3375else $as_nop
3376  ac_save_c_werror_flag=$ac_c_werror_flag
3377   ac_c_werror_flag=yes
3378   ac_cv_prog_cc_g=no
3379   CFLAGS="-g"
3380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381/* end confdefs.h.  */
3382
3383int
3384main (void)
3385{
3386
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391if ac_fn_c_try_compile "$LINENO"
3392then :
3393  ac_cv_prog_cc_g=yes
3394else $as_nop
3395  CFLAGS=""
3396      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397/* end confdefs.h.  */
3398
3399int
3400main (void)
3401{
3402
3403  ;
3404  return 0;
3405}
3406_ACEOF
3407if ac_fn_c_try_compile "$LINENO"
3408then :
3409
3410else $as_nop
3411  ac_c_werror_flag=$ac_save_c_werror_flag
3412	 CFLAGS="-g"
3413	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414/* end confdefs.h.  */
3415
3416int
3417main (void)
3418{
3419
3420  ;
3421  return 0;
3422}
3423_ACEOF
3424if ac_fn_c_try_compile "$LINENO"
3425then :
3426  ac_cv_prog_cc_g=yes
3427fi
3428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3429fi
3430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3431fi
3432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3433   ac_c_werror_flag=$ac_save_c_werror_flag
3434fi
3435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3436printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3437if test $ac_test_CFLAGS; then
3438  CFLAGS=$ac_save_CFLAGS
3439elif test $ac_cv_prog_cc_g = yes; then
3440  if test "$GCC" = yes; then
3441    CFLAGS="-g -O2"
3442  else
3443    CFLAGS="-g"
3444  fi
3445else
3446  if test "$GCC" = yes; then
3447    CFLAGS="-O2"
3448  else
3449    CFLAGS=
3450  fi
3451fi
3452ac_prog_cc_stdc=no
3453if test x$ac_prog_cc_stdc = xno
3454then :
3455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3456printf %s "checking for $CC option to enable C11 features... " >&6; }
3457if test ${ac_cv_prog_cc_c11+y}
3458then :
3459  printf %s "(cached) " >&6
3460else $as_nop
3461  ac_cv_prog_cc_c11=no
3462ac_save_CC=$CC
3463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464/* end confdefs.h.  */
3465$ac_c_conftest_c11_program
3466_ACEOF
3467for ac_arg in '' -std=gnu11
3468do
3469  CC="$ac_save_CC $ac_arg"
3470  if ac_fn_c_try_compile "$LINENO"
3471then :
3472  ac_cv_prog_cc_c11=$ac_arg
3473fi
3474rm -f core conftest.err conftest.$ac_objext conftest.beam
3475  test "x$ac_cv_prog_cc_c11" != "xno" && break
3476done
3477rm -f conftest.$ac_ext
3478CC=$ac_save_CC
3479fi
3480
3481if test "x$ac_cv_prog_cc_c11" = xno
3482then :
3483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3484printf "%s\n" "unsupported" >&6; }
3485else $as_nop
3486  if test "x$ac_cv_prog_cc_c11" = x
3487then :
3488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3489printf "%s\n" "none needed" >&6; }
3490else $as_nop
3491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3492printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3493     CC="$CC $ac_cv_prog_cc_c11"
3494fi
3495  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3496  ac_prog_cc_stdc=c11
3497fi
3498fi
3499if test x$ac_prog_cc_stdc = xno
3500then :
3501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3502printf %s "checking for $CC option to enable C99 features... " >&6; }
3503if test ${ac_cv_prog_cc_c99+y}
3504then :
3505  printf %s "(cached) " >&6
3506else $as_nop
3507  ac_cv_prog_cc_c99=no
3508ac_save_CC=$CC
3509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h.  */
3511$ac_c_conftest_c99_program
3512_ACEOF
3513for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3514do
3515  CC="$ac_save_CC $ac_arg"
3516  if ac_fn_c_try_compile "$LINENO"
3517then :
3518  ac_cv_prog_cc_c99=$ac_arg
3519fi
3520rm -f core conftest.err conftest.$ac_objext conftest.beam
3521  test "x$ac_cv_prog_cc_c99" != "xno" && break
3522done
3523rm -f conftest.$ac_ext
3524CC=$ac_save_CC
3525fi
3526
3527if test "x$ac_cv_prog_cc_c99" = xno
3528then :
3529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3530printf "%s\n" "unsupported" >&6; }
3531else $as_nop
3532  if test "x$ac_cv_prog_cc_c99" = x
3533then :
3534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3535printf "%s\n" "none needed" >&6; }
3536else $as_nop
3537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3538printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3539     CC="$CC $ac_cv_prog_cc_c99"
3540fi
3541  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3542  ac_prog_cc_stdc=c99
3543fi
3544fi
3545if test x$ac_prog_cc_stdc = xno
3546then :
3547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3548printf %s "checking for $CC option to enable C89 features... " >&6; }
3549if test ${ac_cv_prog_cc_c89+y}
3550then :
3551  printf %s "(cached) " >&6
3552else $as_nop
3553  ac_cv_prog_cc_c89=no
3554ac_save_CC=$CC
3555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556/* end confdefs.h.  */
3557$ac_c_conftest_c89_program
3558_ACEOF
3559for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3560do
3561  CC="$ac_save_CC $ac_arg"
3562  if ac_fn_c_try_compile "$LINENO"
3563then :
3564  ac_cv_prog_cc_c89=$ac_arg
3565fi
3566rm -f core conftest.err conftest.$ac_objext conftest.beam
3567  test "x$ac_cv_prog_cc_c89" != "xno" && break
3568done
3569rm -f conftest.$ac_ext
3570CC=$ac_save_CC
3571fi
3572
3573if test "x$ac_cv_prog_cc_c89" = xno
3574then :
3575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3576printf "%s\n" "unsupported" >&6; }
3577else $as_nop
3578  if test "x$ac_cv_prog_cc_c89" = x
3579then :
3580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3581printf "%s\n" "none needed" >&6; }
3582else $as_nop
3583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3584printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3585     CC="$CC $ac_cv_prog_cc_c89"
3586fi
3587  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3588  ac_prog_cc_stdc=c89
3589fi
3590fi
3591
3592ac_ext=c
3593ac_cpp='$CPP $CPPFLAGS'
3594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597
3598
3599  ac_ext=c
3600ac_cpp='$CPP $CPPFLAGS'
3601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3605printf %s "checking whether $CC understands -c and -o together... " >&6; }
3606if test ${am_cv_prog_cc_c_o+y}
3607then :
3608  printf %s "(cached) " >&6
3609else $as_nop
3610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611/* end confdefs.h.  */
3612
3613int
3614main (void)
3615{
3616
3617  ;
3618  return 0;
3619}
3620_ACEOF
3621  # Make sure it works both with $CC and with simple cc.
3622  # Following AC_PROG_CC_C_O, we do the test twice because some
3623  # compilers refuse to overwrite an existing .o file with -o,
3624  # though they will create one.
3625  am_cv_prog_cc_c_o=yes
3626  for am_i in 1 2; do
3627    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3628   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3629   ac_status=$?
3630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); } \
3632         && test -f conftest2.$ac_objext; then
3633      : OK
3634    else
3635      am_cv_prog_cc_c_o=no
3636      break
3637    fi
3638  done
3639  rm -f core conftest*
3640  unset am_i
3641fi
3642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3643printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3644if test "$am_cv_prog_cc_c_o" != yes; then
3645   # Losing compiler, so override with the script.
3646   # FIXME: It is wrong to rewrite CC.
3647   # But if we don't then we get into trouble of one sort or another.
3648   # A longer-term fix would be to have automake use am__CC in this case,
3649   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3650   CC="$am_aux_dir/compile $CC"
3651fi
3652ac_ext=c
3653ac_cpp='$CPP $CPPFLAGS'
3654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657
3658
3659
3660ac_header= ac_cache=
3661for ac_item in $ac_header_c_list
3662do
3663  if test $ac_cache; then
3664    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3665    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3666      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3667    fi
3668    ac_header= ac_cache=
3669  elif test $ac_header; then
3670    ac_cache=$ac_item
3671  else
3672    ac_header=$ac_item
3673  fi
3674done
3675
3676
3677
3678
3679
3680
3681
3682
3683if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3684then :
3685
3686printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3687
3688fi
3689
3690
3691
3692
3693
3694
3695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3696printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3697if test ${ac_cv_safe_to_define___extensions__+y}
3698then :
3699  printf %s "(cached) " >&6
3700else $as_nop
3701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h.  */
3703
3704#         define __EXTENSIONS__ 1
3705          $ac_includes_default
3706int
3707main (void)
3708{
3709
3710  ;
3711  return 0;
3712}
3713_ACEOF
3714if ac_fn_c_try_compile "$LINENO"
3715then :
3716  ac_cv_safe_to_define___extensions__=yes
3717else $as_nop
3718  ac_cv_safe_to_define___extensions__=no
3719fi
3720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3721fi
3722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3723printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3724
3725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3726printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3727if test ${ac_cv_should_define__xopen_source+y}
3728then :
3729  printf %s "(cached) " >&6
3730else $as_nop
3731  ac_cv_should_define__xopen_source=no
3732    if test $ac_cv_header_wchar_h = yes
3733then :
3734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h.  */
3736
3737          #include <wchar.h>
3738          mbstate_t x;
3739int
3740main (void)
3741{
3742
3743  ;
3744  return 0;
3745}
3746_ACEOF
3747if ac_fn_c_try_compile "$LINENO"
3748then :
3749
3750else $as_nop
3751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752/* end confdefs.h.  */
3753
3754            #define _XOPEN_SOURCE 500
3755            #include <wchar.h>
3756            mbstate_t x;
3757int
3758main (void)
3759{
3760
3761  ;
3762  return 0;
3763}
3764_ACEOF
3765if ac_fn_c_try_compile "$LINENO"
3766then :
3767  ac_cv_should_define__xopen_source=yes
3768fi
3769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3770fi
3771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3772fi
3773fi
3774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3775printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3776
3777  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3778
3779  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3780
3781  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3782
3783  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3784
3785  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3786
3787  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3788
3789  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3790
3791  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3792
3793  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3794
3795  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3796
3797  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3798
3799  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3800
3801  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3802
3803  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3804
3805  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3806
3807  if test $ac_cv_header_minix_config_h = yes
3808then :
3809  MINIX=yes
3810    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3811
3812    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3813
3814    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3815
3816else $as_nop
3817  MINIX=
3818fi
3819  if test $ac_cv_safe_to_define___extensions__ = yes
3820then :
3821  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3822
3823fi
3824  if test $ac_cv_should_define__xopen_source = yes
3825then :
3826  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3827
3828fi
3829
3830
3831# Initialize Automake
3832am__api_version='1.16'
3833
3834
3835  # Find a good install program.  We prefer a C program (faster),
3836# so one script is as good as another.  But avoid the broken or
3837# incompatible versions:
3838# SysV /etc/install, /usr/sbin/install
3839# SunOS /usr/etc/install
3840# IRIX /sbin/install
3841# AIX /bin/install
3842# AmigaOS /C/install, which installs bootblocks on floppy discs
3843# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3844# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3845# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3846# OS/2's system install, which has a completely different semantic
3847# ./install, which can be erroneously created by make from ./install.sh.
3848# Reject install programs that cannot install multiple files.
3849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3850printf %s "checking for a BSD-compatible install... " >&6; }
3851if test -z "$INSTALL"; then
3852if test ${ac_cv_path_install+y}
3853then :
3854  printf %s "(cached) " >&6
3855else $as_nop
3856  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857for as_dir in $PATH
3858do
3859  IFS=$as_save_IFS
3860  case $as_dir in #(((
3861    '') as_dir=./ ;;
3862    */) ;;
3863    *) as_dir=$as_dir/ ;;
3864  esac
3865    # Account for fact that we put trailing slashes in our PATH walk.
3866case $as_dir in #((
3867  ./ | /[cC]/* | \
3868  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3869  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3870  /usr/ucb/* ) ;;
3871  *)
3872    # OSF1 and SCO ODT 3.0 have their own names for install.
3873    # Don't use installbsd from OSF since it installs stuff as root
3874    # by default.
3875    for ac_prog in ginstall scoinst install; do
3876      for ac_exec_ext in '' $ac_executable_extensions; do
3877	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3878	  if test $ac_prog = install &&
3879	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3880	    # AIX install.  It has an incompatible calling convention.
3881	    :
3882	  elif test $ac_prog = install &&
3883	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3884	    # program-specific install script used by HP pwplus--don't use.
3885	    :
3886	  else
3887	    rm -rf conftest.one conftest.two conftest.dir
3888	    echo one > conftest.one
3889	    echo two > conftest.two
3890	    mkdir conftest.dir
3891	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3892	      test -s conftest.one && test -s conftest.two &&
3893	      test -s conftest.dir/conftest.one &&
3894	      test -s conftest.dir/conftest.two
3895	    then
3896	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3897	      break 3
3898	    fi
3899	  fi
3900	fi
3901      done
3902    done
3903    ;;
3904esac
3905
3906  done
3907IFS=$as_save_IFS
3908
3909rm -rf conftest.one conftest.two conftest.dir
3910
3911fi
3912  if test ${ac_cv_path_install+y}; then
3913    INSTALL=$ac_cv_path_install
3914  else
3915    # As a last resort, use the slow shell script.  Don't cache a
3916    # value for INSTALL within a source directory, because that will
3917    # break other packages using the cache if that directory is
3918    # removed, or if the value is a relative name.
3919    INSTALL=$ac_install_sh
3920  fi
3921fi
3922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3923printf "%s\n" "$INSTALL" >&6; }
3924
3925# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3926# It thinks the first close brace ends the variable substitution.
3927test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3928
3929test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3930
3931test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3932
3933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3934printf %s "checking whether build environment is sane... " >&6; }
3935# Reject unsafe characters in $srcdir or the absolute working directory
3936# name.  Accept space and tab only in the latter.
3937am_lf='
3938'
3939case `pwd` in
3940  *[\\\"\#\$\&\'\`$am_lf]*)
3941    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3942esac
3943case $srcdir in
3944  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3945    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3946esac
3947
3948# Do 'set' in a subshell so we don't clobber the current shell's
3949# arguments.  Must try -L first in case configure is actually a
3950# symlink; some systems play weird games with the mod time of symlinks
3951# (eg FreeBSD returns the mod time of the symlink's containing
3952# directory).
3953if (
3954   am_has_slept=no
3955   for am_try in 1 2; do
3956     echo "timestamp, slept: $am_has_slept" > conftest.file
3957     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3958     if test "$*" = "X"; then
3959	# -L didn't work.
3960	set X `ls -t "$srcdir/configure" conftest.file`
3961     fi
3962     if test "$*" != "X $srcdir/configure conftest.file" \
3963	&& test "$*" != "X conftest.file $srcdir/configure"; then
3964
3965	# If neither matched, then we have a broken ls.  This can happen
3966	# if, for instance, CONFIG_SHELL is bash and it inherits a
3967	# broken ls alias from the environment.  This has actually
3968	# happened.  Such a system could not be considered "sane".
3969	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3970  alias in your environment" "$LINENO" 5
3971     fi
3972     if test "$2" = conftest.file || test $am_try -eq 2; then
3973       break
3974     fi
3975     # Just in case.
3976     sleep 1
3977     am_has_slept=yes
3978   done
3979   test "$2" = conftest.file
3980   )
3981then
3982   # Ok.
3983   :
3984else
3985   as_fn_error $? "newly created file is older than distributed files!
3986Check your system clock" "$LINENO" 5
3987fi
3988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3989printf "%s\n" "yes" >&6; }
3990# If we didn't sleep, we still need to ensure time stamps of config.status and
3991# generated files are strictly newer.
3992am_sleep_pid=
3993if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3994  ( sleep 1 ) &
3995  am_sleep_pid=$!
3996fi
3997
3998rm -f conftest.file
3999
4000test "$program_prefix" != NONE &&
4001  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4002# Use a double $ so make ignores it.
4003test "$program_suffix" != NONE &&
4004  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4005# Double any \ or $.
4006# By default was `s,x,x', remove it if useless.
4007ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4008program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4009
4010
4011  if test x"${MISSING+set}" != xset; then
4012  MISSING="\${SHELL} '$am_aux_dir/missing'"
4013fi
4014# Use eval to expand $SHELL
4015if eval "$MISSING --is-lightweight"; then
4016  am_missing_run="$MISSING "
4017else
4018  am_missing_run=
4019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4020printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4021fi
4022
4023if test x"${install_sh+set}" != xset; then
4024  case $am_aux_dir in
4025  *\ * | *\	*)
4026    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4027  *)
4028    install_sh="\${SHELL} $am_aux_dir/install-sh"
4029  esac
4030fi
4031
4032# Installed binaries are usually stripped using 'strip' when the user
4033# run "make install-strip".  However 'strip' might not be the right
4034# tool to use in cross-compilation environments, therefore Automake
4035# will honor the 'STRIP' environment variable to overrule this program.
4036if test "$cross_compiling" != no; then
4037  if test -n "$ac_tool_prefix"; then
4038  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4039set dummy ${ac_tool_prefix}strip; ac_word=$2
4040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041printf %s "checking for $ac_word... " >&6; }
4042if test ${ac_cv_prog_STRIP+y}
4043then :
4044  printf %s "(cached) " >&6
4045else $as_nop
4046  if test -n "$STRIP"; then
4047  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052  IFS=$as_save_IFS
4053  case $as_dir in #(((
4054    '') as_dir=./ ;;
4055    */) ;;
4056    *) as_dir=$as_dir/ ;;
4057  esac
4058    for ac_exec_ext in '' $ac_executable_extensions; do
4059  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4060    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4061    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4062    break 2
4063  fi
4064done
4065  done
4066IFS=$as_save_IFS
4067
4068fi
4069fi
4070STRIP=$ac_cv_prog_STRIP
4071if test -n "$STRIP"; then
4072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4073printf "%s\n" "$STRIP" >&6; }
4074else
4075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076printf "%s\n" "no" >&6; }
4077fi
4078
4079
4080fi
4081if test -z "$ac_cv_prog_STRIP"; then
4082  ac_ct_STRIP=$STRIP
4083  # Extract the first word of "strip", so it can be a program name with args.
4084set dummy strip; ac_word=$2
4085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086printf %s "checking for $ac_word... " >&6; }
4087if test ${ac_cv_prog_ac_ct_STRIP+y}
4088then :
4089  printf %s "(cached) " >&6
4090else $as_nop
4091  if test -n "$ac_ct_STRIP"; then
4092  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4093else
4094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095for as_dir in $PATH
4096do
4097  IFS=$as_save_IFS
4098  case $as_dir in #(((
4099    '') as_dir=./ ;;
4100    */) ;;
4101    *) as_dir=$as_dir/ ;;
4102  esac
4103    for ac_exec_ext in '' $ac_executable_extensions; do
4104  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4105    ac_cv_prog_ac_ct_STRIP="strip"
4106    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4107    break 2
4108  fi
4109done
4110  done
4111IFS=$as_save_IFS
4112
4113fi
4114fi
4115ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4116if test -n "$ac_ct_STRIP"; then
4117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4118printf "%s\n" "$ac_ct_STRIP" >&6; }
4119else
4120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121printf "%s\n" "no" >&6; }
4122fi
4123
4124  if test "x$ac_ct_STRIP" = x; then
4125    STRIP=":"
4126  else
4127    case $cross_compiling:$ac_tool_warned in
4128yes:)
4129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4130printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4131ac_tool_warned=yes ;;
4132esac
4133    STRIP=$ac_ct_STRIP
4134  fi
4135else
4136  STRIP="$ac_cv_prog_STRIP"
4137fi
4138
4139fi
4140INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4141
4142
4143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4144printf %s "checking for a race-free mkdir -p... " >&6; }
4145if test -z "$MKDIR_P"; then
4146  if test ${ac_cv_path_mkdir+y}
4147then :
4148  printf %s "(cached) " >&6
4149else $as_nop
4150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4152do
4153  IFS=$as_save_IFS
4154  case $as_dir in #(((
4155    '') as_dir=./ ;;
4156    */) ;;
4157    *) as_dir=$as_dir/ ;;
4158  esac
4159    for ac_prog in mkdir gmkdir; do
4160	 for ac_exec_ext in '' $ac_executable_extensions; do
4161	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4162	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4163	     'mkdir ('*'coreutils) '* | \
4164	     'BusyBox '* | \
4165	     'mkdir (fileutils) '4.1*)
4166	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4167	       break 3;;
4168	   esac
4169	 done
4170       done
4171  done
4172IFS=$as_save_IFS
4173
4174fi
4175
4176  test -d ./--version && rmdir ./--version
4177  if test ${ac_cv_path_mkdir+y}; then
4178    MKDIR_P="$ac_cv_path_mkdir -p"
4179  else
4180    # As a last resort, use the slow shell script.  Don't cache a
4181    # value for MKDIR_P within a source directory, because that will
4182    # break other packages using the cache if that directory is
4183    # removed, or if the value is a relative name.
4184    MKDIR_P="$ac_install_sh -d"
4185  fi
4186fi
4187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4188printf "%s\n" "$MKDIR_P" >&6; }
4189
4190for ac_prog in gawk mawk nawk awk
4191do
4192  # Extract the first word of "$ac_prog", so it can be a program name with args.
4193set dummy $ac_prog; ac_word=$2
4194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195printf %s "checking for $ac_word... " >&6; }
4196if test ${ac_cv_prog_AWK+y}
4197then :
4198  printf %s "(cached) " >&6
4199else $as_nop
4200  if test -n "$AWK"; then
4201  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4202else
4203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204for as_dir in $PATH
4205do
4206  IFS=$as_save_IFS
4207  case $as_dir in #(((
4208    '') as_dir=./ ;;
4209    */) ;;
4210    *) as_dir=$as_dir/ ;;
4211  esac
4212    for ac_exec_ext in '' $ac_executable_extensions; do
4213  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4214    ac_cv_prog_AWK="$ac_prog"
4215    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4216    break 2
4217  fi
4218done
4219  done
4220IFS=$as_save_IFS
4221
4222fi
4223fi
4224AWK=$ac_cv_prog_AWK
4225if test -n "$AWK"; then
4226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4227printf "%s\n" "$AWK" >&6; }
4228else
4229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230printf "%s\n" "no" >&6; }
4231fi
4232
4233
4234  test -n "$AWK" && break
4235done
4236
4237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4238printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4239set x ${MAKE-make}
4240ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4241if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4242then :
4243  printf %s "(cached) " >&6
4244else $as_nop
4245  cat >conftest.make <<\_ACEOF
4246SHELL = /bin/sh
4247all:
4248	@echo '@@@%%%=$(MAKE)=@@@%%%'
4249_ACEOF
4250# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4251case `${MAKE-make} -f conftest.make 2>/dev/null` in
4252  *@@@%%%=?*=@@@%%%*)
4253    eval ac_cv_prog_make_${ac_make}_set=yes;;
4254  *)
4255    eval ac_cv_prog_make_${ac_make}_set=no;;
4256esac
4257rm -f conftest.make
4258fi
4259if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4261printf "%s\n" "yes" >&6; }
4262  SET_MAKE=
4263else
4264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265printf "%s\n" "no" >&6; }
4266  SET_MAKE="MAKE=${MAKE-make}"
4267fi
4268
4269rm -rf .tst 2>/dev/null
4270mkdir .tst 2>/dev/null
4271if test -d .tst; then
4272  am__leading_dot=.
4273else
4274  am__leading_dot=_
4275fi
4276rmdir .tst 2>/dev/null
4277
4278DEPDIR="${am__leading_dot}deps"
4279
4280ac_config_commands="$ac_config_commands depfiles"
4281
4282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4283printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4284cat > confinc.mk << 'END'
4285am__doit:
4286	@echo this is the am__doit target >confinc.out
4287.PHONY: am__doit
4288END
4289am__include="#"
4290am__quote=
4291# BSD make does it like this.
4292echo '.include "confinc.mk" # ignored' > confmf.BSD
4293# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4294echo 'include confinc.mk # ignored' > confmf.GNU
4295_am_result=no
4296for s in GNU BSD; do
4297  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4298   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4299   ac_status=$?
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); }
4302  case $?:`cat confinc.out 2>/dev/null` in #(
4303  '0:this is the am__doit target') :
4304    case $s in #(
4305  BSD) :
4306    am__include='.include' am__quote='"' ;; #(
4307  *) :
4308    am__include='include' am__quote='' ;;
4309esac ;; #(
4310  *) :
4311     ;;
4312esac
4313  if test "$am__include" != "#"; then
4314    _am_result="yes ($s style)"
4315    break
4316  fi
4317done
4318rm -f confinc.* confmf.*
4319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4320printf "%s\n" "${_am_result}" >&6; }
4321
4322# Check whether --enable-dependency-tracking was given.
4323if test ${enable_dependency_tracking+y}
4324then :
4325  enableval=$enable_dependency_tracking;
4326fi
4327
4328if test "x$enable_dependency_tracking" != xno; then
4329  am_depcomp="$ac_aux_dir/depcomp"
4330  AMDEPBACKSLASH='\'
4331  am__nodep='_no'
4332fi
4333 if test "x$enable_dependency_tracking" != xno; then
4334  AMDEP_TRUE=
4335  AMDEP_FALSE='#'
4336else
4337  AMDEP_TRUE='#'
4338  AMDEP_FALSE=
4339fi
4340
4341
4342# Check whether --enable-silent-rules was given.
4343if test ${enable_silent_rules+y}
4344then :
4345  enableval=$enable_silent_rules;
4346fi
4347
4348case $enable_silent_rules in # (((
4349  yes) AM_DEFAULT_VERBOSITY=0;;
4350   no) AM_DEFAULT_VERBOSITY=1;;
4351    *) AM_DEFAULT_VERBOSITY=1;;
4352esac
4353am_make=${MAKE-make}
4354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4355printf %s "checking whether $am_make supports nested variables... " >&6; }
4356if test ${am_cv_make_support_nested_variables+y}
4357then :
4358  printf %s "(cached) " >&6
4359else $as_nop
4360  if printf "%s\n" 'TRUE=$(BAR$(V))
4361BAR0=false
4362BAR1=true
4363V=1
4364am__doit:
4365	@$(TRUE)
4366.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4367  am_cv_make_support_nested_variables=yes
4368else
4369  am_cv_make_support_nested_variables=no
4370fi
4371fi
4372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4373printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4374if test $am_cv_make_support_nested_variables = yes; then
4375    AM_V='$(V)'
4376  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4377else
4378  AM_V=$AM_DEFAULT_VERBOSITY
4379  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4380fi
4381AM_BACKSLASH='\'
4382
4383if test "`cd $srcdir && pwd`" != "`pwd`"; then
4384  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4385  # is not polluted with repeated "-I."
4386  am__isrc=' -I$(srcdir)'
4387  # test to see if srcdir already configured
4388  if test -f $srcdir/config.status; then
4389    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4390  fi
4391fi
4392
4393# test whether we have cygpath
4394if test -z "$CYGPATH_W"; then
4395  if (cygpath --version) >/dev/null 2>/dev/null; then
4396    CYGPATH_W='cygpath -w'
4397  else
4398    CYGPATH_W=echo
4399  fi
4400fi
4401
4402
4403# Define the identity of the package.
4404 PACKAGE='xset'
4405 VERSION='1.2.5'
4406
4407
4408printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4409
4410
4411printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4412
4413# Some tools Automake needs.
4414
4415ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4416
4417
4418AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4419
4420
4421AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4422
4423
4424AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4425
4426
4427MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4428
4429# For better backward compatibility.  To be removed once Automake 1.9.x
4430# dies out for good.  For more background, see:
4431# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4432# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4433mkdir_p='$(MKDIR_P)'
4434
4435# We need awk for the "check" target (and possibly the TAP driver).  The
4436# system "awk" is bad on some platforms.
4437# Always define AMTAR for backward compatibility.  Yes, it's still used
4438# in the wild :-(  We should find a proper way to deprecate it ...
4439AMTAR='$${TAR-tar}'
4440
4441
4442# We'll loop over all known methods to create a tar archive until one works.
4443_am_tools='gnutar  pax cpio none'
4444
4445am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4446
4447
4448
4449
4450
4451depcc="$CC"   am_compiler_list=
4452
4453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4454printf %s "checking dependency style of $depcc... " >&6; }
4455if test ${am_cv_CC_dependencies_compiler_type+y}
4456then :
4457  printf %s "(cached) " >&6
4458else $as_nop
4459  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4460  # We make a subdir and do the tests there.  Otherwise we can end up
4461  # making bogus files that we don't know about and never remove.  For
4462  # instance it was reported that on HP-UX the gcc test will end up
4463  # making a dummy file named 'D' -- because '-MD' means "put the output
4464  # in D".
4465  rm -rf conftest.dir
4466  mkdir conftest.dir
4467  # Copy depcomp to subdir because otherwise we won't find it if we're
4468  # using a relative directory.
4469  cp "$am_depcomp" conftest.dir
4470  cd conftest.dir
4471  # We will build objects and dependencies in a subdirectory because
4472  # it helps to detect inapplicable dependency modes.  For instance
4473  # both Tru64's cc and ICC support -MD to output dependencies as a
4474  # side effect of compilation, but ICC will put the dependencies in
4475  # the current directory while Tru64 will put them in the object
4476  # directory.
4477  mkdir sub
4478
4479  am_cv_CC_dependencies_compiler_type=none
4480  if test "$am_compiler_list" = ""; then
4481     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4482  fi
4483  am__universal=false
4484  case " $depcc " in #(
4485     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4486     esac
4487
4488  for depmode in $am_compiler_list; do
4489    # Setup a source with many dependencies, because some compilers
4490    # like to wrap large dependency lists on column 80 (with \), and
4491    # we should not choose a depcomp mode which is confused by this.
4492    #
4493    # We need to recreate these files for each test, as the compiler may
4494    # overwrite some of them when testing with obscure command lines.
4495    # This happens at least with the AIX C compiler.
4496    : > sub/conftest.c
4497    for i in 1 2 3 4 5 6; do
4498      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4499      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4500      # Solaris 10 /bin/sh.
4501      echo '/* dummy */' > sub/conftst$i.h
4502    done
4503    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4504
4505    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4506    # mode.  It turns out that the SunPro C++ compiler does not properly
4507    # handle '-M -o', and we need to detect this.  Also, some Intel
4508    # versions had trouble with output in subdirs.
4509    am__obj=sub/conftest.${OBJEXT-o}
4510    am__minus_obj="-o $am__obj"
4511    case $depmode in
4512    gcc)
4513      # This depmode causes a compiler race in universal mode.
4514      test "$am__universal" = false || continue
4515      ;;
4516    nosideeffect)
4517      # After this tag, mechanisms are not by side-effect, so they'll
4518      # only be used when explicitly requested.
4519      if test "x$enable_dependency_tracking" = xyes; then
4520	continue
4521      else
4522	break
4523      fi
4524      ;;
4525    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4526      # This compiler won't grok '-c -o', but also, the minuso test has
4527      # not run yet.  These depmodes are late enough in the game, and
4528      # so weak that their functioning should not be impacted.
4529      am__obj=conftest.${OBJEXT-o}
4530      am__minus_obj=
4531      ;;
4532    none) break ;;
4533    esac
4534    if depmode=$depmode \
4535       source=sub/conftest.c object=$am__obj \
4536       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4537       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4538         >/dev/null 2>conftest.err &&
4539       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4540       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4541       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4542       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4543      # icc doesn't choke on unknown options, it will just issue warnings
4544      # or remarks (even with -Werror).  So we grep stderr for any message
4545      # that says an option was ignored or not supported.
4546      # When given -MP, icc 7.0 and 7.1 complain thusly:
4547      #   icc: Command line warning: ignoring option '-M'; no argument required
4548      # The diagnosis changed in icc 8.0:
4549      #   icc: Command line remark: option '-MP' not supported
4550      if (grep 'ignoring option' conftest.err ||
4551          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4552        am_cv_CC_dependencies_compiler_type=$depmode
4553        break
4554      fi
4555    fi
4556  done
4557
4558  cd ..
4559  rm -rf conftest.dir
4560else
4561  am_cv_CC_dependencies_compiler_type=none
4562fi
4563
4564fi
4565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4566printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4567CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4568
4569 if
4570  test "x$enable_dependency_tracking" != xno \
4571  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4572  am__fastdepCC_TRUE=
4573  am__fastdepCC_FALSE='#'
4574else
4575  am__fastdepCC_TRUE='#'
4576  am__fastdepCC_FALSE=
4577fi
4578
4579
4580# Variables for tags utilities; see am/tags.am
4581if test -z "$CTAGS"; then
4582  CTAGS=ctags
4583fi
4584
4585if test -z "$ETAGS"; then
4586  ETAGS=etags
4587fi
4588
4589if test -z "$CSCOPE"; then
4590  CSCOPE=cscope
4591fi
4592
4593
4594
4595# POSIX will say in a future version that running "rm -f" with no argument
4596# is OK; and we want to be able to make that assumption in our Makefile
4597# recipes.  So use an aggressive probe to check that the usage we want is
4598# actually supported "in the wild" to an acceptable degree.
4599# See automake bug#10828.
4600# To make any issue more visible, cause the running configure to be aborted
4601# by default if the 'rm' program in use doesn't match our expectations; the
4602# user can still override this though.
4603if rm -f && rm -fr && rm -rf; then : OK; else
4604  cat >&2 <<'END'
4605Oops!
4606
4607Your 'rm' program seems unable to run without file operands specified
4608on the command line, even when the '-f' option is present.  This is contrary
4609to the behaviour of most rm programs out there, and not conforming with
4610the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4611
4612Please tell bug-automake@gnu.org about your system, including the value
4613of your $PATH and any error possibly output before this message.  This
4614can help us improve future automake versions.
4615
4616END
4617  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4618    echo 'Configuration will proceed anyway, since you have set the' >&2
4619    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4620    echo >&2
4621  else
4622    cat >&2 <<'END'
4623Aborting the configuration process, to ensure you take notice of the issue.
4624
4625You can download and install GNU coreutils to get an 'rm' implementation
4626that behaves properly: <https://www.gnu.org/software/coreutils/>.
4627
4628If you want to complete the configuration process using your problematic
4629'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4630to "yes", and re-run configure.
4631
4632END
4633    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4634  fi
4635fi
4636
4637
4638# Require xorg-macros: XORG_MANPAGE_SECTIONS
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4652printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4653if test ${ac_cv_c_undeclared_builtin_options+y}
4654then :
4655  printf %s "(cached) " >&6
4656else $as_nop
4657  ac_save_CFLAGS=$CFLAGS
4658   ac_cv_c_undeclared_builtin_options='cannot detect'
4659   for ac_arg in '' -fno-builtin; do
4660     CFLAGS="$ac_save_CFLAGS $ac_arg"
4661     # This test program should *not* compile successfully.
4662     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663/* end confdefs.h.  */
4664
4665int
4666main (void)
4667{
4668(void) strchr;
4669  ;
4670  return 0;
4671}
4672_ACEOF
4673if ac_fn_c_try_compile "$LINENO"
4674then :
4675
4676else $as_nop
4677  # This test program should compile successfully.
4678        # No library function is consistently available on
4679        # freestanding implementations, so test against a dummy
4680        # declaration.  Include always-available headers on the
4681        # off chance that they somehow elicit warnings.
4682        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683/* end confdefs.h.  */
4684#include <float.h>
4685#include <limits.h>
4686#include <stdarg.h>
4687#include <stddef.h>
4688extern void ac_decl (int, char *);
4689
4690int
4691main (void)
4692{
4693(void) ac_decl (0, (char *) 0);
4694  (void) ac_decl;
4695
4696  ;
4697  return 0;
4698}
4699_ACEOF
4700if ac_fn_c_try_compile "$LINENO"
4701then :
4702  if test x"$ac_arg" = x
4703then :
4704  ac_cv_c_undeclared_builtin_options='none needed'
4705else $as_nop
4706  ac_cv_c_undeclared_builtin_options=$ac_arg
4707fi
4708          break
4709fi
4710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4711fi
4712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4713    done
4714    CFLAGS=$ac_save_CFLAGS
4715
4716fi
4717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4718printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4719  case $ac_cv_c_undeclared_builtin_options in #(
4720  'cannot detect') :
4721    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4722printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4723as_fn_error $? "cannot make $CC report undeclared builtins
4724See \`config.log' for more details" "$LINENO" 5; } ;; #(
4725  'none needed') :
4726    ac_c_undeclared_builtin_options='' ;; #(
4727  *) :
4728    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4729esac
4730
4731
4732
4733
4734
4735ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4736if test "x$ac_cv_have_decl___clang__" = xyes
4737then :
4738  CLANGCC="yes"
4739else $as_nop
4740  CLANGCC="no"
4741fi
4742ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4743if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4744then :
4745  INTELCC="yes"
4746else $as_nop
4747  INTELCC="no"
4748fi
4749ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4750if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4751then :
4752  SUNCC="yes"
4753else $as_nop
4754  SUNCC="no"
4755fi
4756
4757
4758
4759
4760
4761
4762
4763
4764if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4765	if test -n "$ac_tool_prefix"; then
4766  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4767set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769printf %s "checking for $ac_word... " >&6; }
4770if test ${ac_cv_path_PKG_CONFIG+y}
4771then :
4772  printf %s "(cached) " >&6
4773else $as_nop
4774  case $PKG_CONFIG in
4775  [\\/]* | ?:[\\/]*)
4776  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4777  ;;
4778  *)
4779  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780for as_dir in $PATH
4781do
4782  IFS=$as_save_IFS
4783  case $as_dir in #(((
4784    '') as_dir=./ ;;
4785    */) ;;
4786    *) as_dir=$as_dir/ ;;
4787  esac
4788    for ac_exec_ext in '' $ac_executable_extensions; do
4789  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4790    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4791    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4792    break 2
4793  fi
4794done
4795  done
4796IFS=$as_save_IFS
4797
4798  ;;
4799esac
4800fi
4801PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4802if test -n "$PKG_CONFIG"; then
4803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4804printf "%s\n" "$PKG_CONFIG" >&6; }
4805else
4806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807printf "%s\n" "no" >&6; }
4808fi
4809
4810
4811fi
4812if test -z "$ac_cv_path_PKG_CONFIG"; then
4813  ac_pt_PKG_CONFIG=$PKG_CONFIG
4814  # Extract the first word of "pkg-config", so it can be a program name with args.
4815set dummy pkg-config; ac_word=$2
4816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817printf %s "checking for $ac_word... " >&6; }
4818if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4819then :
4820  printf %s "(cached) " >&6
4821else $as_nop
4822  case $ac_pt_PKG_CONFIG in
4823  [\\/]* | ?:[\\/]*)
4824  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4825  ;;
4826  *)
4827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830  IFS=$as_save_IFS
4831  case $as_dir in #(((
4832    '') as_dir=./ ;;
4833    */) ;;
4834    *) as_dir=$as_dir/ ;;
4835  esac
4836    for ac_exec_ext in '' $ac_executable_extensions; do
4837  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4838    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4839    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4840    break 2
4841  fi
4842done
4843  done
4844IFS=$as_save_IFS
4845
4846  ;;
4847esac
4848fi
4849ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4850if test -n "$ac_pt_PKG_CONFIG"; then
4851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4852printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4853else
4854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855printf "%s\n" "no" >&6; }
4856fi
4857
4858  if test "x$ac_pt_PKG_CONFIG" = x; then
4859    PKG_CONFIG=""
4860  else
4861    case $cross_compiling:$ac_tool_warned in
4862yes:)
4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4864printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4865ac_tool_warned=yes ;;
4866esac
4867    PKG_CONFIG=$ac_pt_PKG_CONFIG
4868  fi
4869else
4870  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4871fi
4872
4873fi
4874if test -n "$PKG_CONFIG"; then
4875	_pkg_min_version=0.9.0
4876	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4877printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4878	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4879		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4880printf "%s\n" "yes" >&6; }
4881	else
4882		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883printf "%s\n" "no" >&6; }
4884		PKG_CONFIG=""
4885	fi
4886fi
4887
4888
4889  # Make sure we can run config.sub.
4890$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4891  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4892
4893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4894printf %s "checking build system type... " >&6; }
4895if test ${ac_cv_build+y}
4896then :
4897  printf %s "(cached) " >&6
4898else $as_nop
4899  ac_build_alias=$build_alias
4900test "x$ac_build_alias" = x &&
4901  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4902test "x$ac_build_alias" = x &&
4903  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4904ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4905  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4906
4907fi
4908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4909printf "%s\n" "$ac_cv_build" >&6; }
4910case $ac_cv_build in
4911*-*-*) ;;
4912*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4913esac
4914build=$ac_cv_build
4915ac_save_IFS=$IFS; IFS='-'
4916set x $ac_cv_build
4917shift
4918build_cpu=$1
4919build_vendor=$2
4920shift; shift
4921# Remember, the first character of IFS is used to create $*,
4922# except with old shells:
4923build_os=$*
4924IFS=$ac_save_IFS
4925case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4926
4927
4928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4929printf %s "checking host system type... " >&6; }
4930if test ${ac_cv_host+y}
4931then :
4932  printf %s "(cached) " >&6
4933else $as_nop
4934  if test "x$host_alias" = x; then
4935  ac_cv_host=$ac_cv_build
4936else
4937  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4938    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4939fi
4940
4941fi
4942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4943printf "%s\n" "$ac_cv_host" >&6; }
4944case $ac_cv_host in
4945*-*-*) ;;
4946*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4947esac
4948host=$ac_cv_host
4949ac_save_IFS=$IFS; IFS='-'
4950set x $ac_cv_host
4951shift
4952host_cpu=$1
4953host_vendor=$2
4954shift; shift
4955# Remember, the first character of IFS is used to create $*,
4956# except with old shells:
4957host_os=$*
4958IFS=$ac_save_IFS
4959case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4960
4961
4962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4963printf %s "checking for a sed that does not truncate output... " >&6; }
4964if test ${ac_cv_path_SED+y}
4965then :
4966  printf %s "(cached) " >&6
4967else $as_nop
4968            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4969     for ac_i in 1 2 3 4 5 6 7; do
4970       ac_script="$ac_script$as_nl$ac_script"
4971     done
4972     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4973     { ac_script=; unset ac_script;}
4974     if test -z "$SED"; then
4975  ac_path_SED_found=false
4976  # Loop through the user's path and test for each of PROGNAME-LIST
4977  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980  IFS=$as_save_IFS
4981  case $as_dir in #(((
4982    '') as_dir=./ ;;
4983    */) ;;
4984    *) as_dir=$as_dir/ ;;
4985  esac
4986    for ac_prog in sed gsed
4987   do
4988    for ac_exec_ext in '' $ac_executable_extensions; do
4989      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4990      as_fn_executable_p "$ac_path_SED" || continue
4991# Check for GNU ac_path_SED and select it if it is found.
4992  # Check for GNU $ac_path_SED
4993case `"$ac_path_SED" --version 2>&1` in
4994*GNU*)
4995  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4996*)
4997  ac_count=0
4998  printf %s 0123456789 >"conftest.in"
4999  while :
5000  do
5001    cat "conftest.in" "conftest.in" >"conftest.tmp"
5002    mv "conftest.tmp" "conftest.in"
5003    cp "conftest.in" "conftest.nl"
5004    printf "%s\n" '' >> "conftest.nl"
5005    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5006    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007    as_fn_arith $ac_count + 1 && ac_count=$as_val
5008    if test $ac_count -gt ${ac_path_SED_max-0}; then
5009      # Best one so far, save it but keep looking for a better one
5010      ac_cv_path_SED="$ac_path_SED"
5011      ac_path_SED_max=$ac_count
5012    fi
5013    # 10*(2^10) chars as input seems more than enough
5014    test $ac_count -gt 10 && break
5015  done
5016  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5017esac
5018
5019      $ac_path_SED_found && break 3
5020    done
5021  done
5022  done
5023IFS=$as_save_IFS
5024  if test -z "$ac_cv_path_SED"; then
5025    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5026  fi
5027else
5028  ac_cv_path_SED=$SED
5029fi
5030
5031fi
5032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5033printf "%s\n" "$ac_cv_path_SED" >&6; }
5034 SED="$ac_cv_path_SED"
5035  rm -f conftest.sed
5036
5037
5038
5039
5040
5041
5042# Check whether --enable-selective-werror was given.
5043if test ${enable_selective_werror+y}
5044then :
5045  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5046else $as_nop
5047  SELECTIVE_WERROR=yes
5048fi
5049
5050
5051
5052
5053
5054# -v is too short to test reliably with XORG_TESTSET_CFLAG
5055if test "x$SUNCC" = "xyes"; then
5056    BASE_CFLAGS="-v"
5057else
5058    BASE_CFLAGS=""
5059fi
5060
5061# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075xorg_testset_save_CFLAGS="$CFLAGS"
5076
5077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5078	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5079	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5080printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5081if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5082then :
5083  printf %s "(cached) " >&6
5084else $as_nop
5085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086/* end confdefs.h.  */
5087int i;
5088_ACEOF
5089if ac_fn_c_try_compile "$LINENO"
5090then :
5091  xorg_cv_cc_flag_unknown_warning_option=yes
5092else $as_nop
5093  xorg_cv_cc_flag_unknown_warning_option=no
5094fi
5095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5096fi
5097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5098printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5100	CFLAGS="$xorg_testset_save_CFLAGS"
5101fi
5102
5103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5106	fi
5107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5109printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5110if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5111then :
5112  printf %s "(cached) " >&6
5113else $as_nop
5114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h.  */
5116int i;
5117_ACEOF
5118if ac_fn_c_try_compile "$LINENO"
5119then :
5120  xorg_cv_cc_flag_unused_command_line_argument=yes
5121else $as_nop
5122  xorg_cv_cc_flag_unused_command_line_argument=no
5123fi
5124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5125fi
5126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5127printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5128	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5129	CFLAGS="$xorg_testset_save_CFLAGS"
5130fi
5131
5132found="no"
5133
5134	if test $found = "no" ; then
5135		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5136			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5137		fi
5138
5139		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5140			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5141		fi
5142
5143		CFLAGS="$CFLAGS -Wall"
5144
5145		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5146printf %s "checking if $CC supports -Wall... " >&6; }
5147		cacheid=xorg_cv_cc_flag__Wall
5148		if eval test \${$cacheid+y}
5149then :
5150  printf %s "(cached) " >&6
5151else $as_nop
5152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153/* end confdefs.h.  */
5154int i;
5155int
5156main (void)
5157{
5158
5159  ;
5160  return 0;
5161}
5162_ACEOF
5163if ac_fn_c_try_link "$LINENO"
5164then :
5165  eval $cacheid=yes
5166else $as_nop
5167  eval $cacheid=no
5168fi
5169rm -f core conftest.err conftest.$ac_objext conftest.beam \
5170    conftest$ac_exeext conftest.$ac_ext
5171fi
5172
5173
5174		CFLAGS="$xorg_testset_save_CFLAGS"
5175
5176		eval supported=\$$cacheid
5177		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5178printf "%s\n" "$supported" >&6; }
5179		if test "$supported" = "yes" ; then
5180			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5181			found="yes"
5182		fi
5183	fi
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199xorg_testset_save_CFLAGS="$CFLAGS"
5200
5201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5202	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5204printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5205if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5206then :
5207  printf %s "(cached) " >&6
5208else $as_nop
5209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210/* end confdefs.h.  */
5211int i;
5212_ACEOF
5213if ac_fn_c_try_compile "$LINENO"
5214then :
5215  xorg_cv_cc_flag_unknown_warning_option=yes
5216else $as_nop
5217  xorg_cv_cc_flag_unknown_warning_option=no
5218fi
5219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5220fi
5221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5222printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5223	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5224	CFLAGS="$xorg_testset_save_CFLAGS"
5225fi
5226
5227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5228	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5229		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5230	fi
5231	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5232	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5233printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5234if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5235then :
5236  printf %s "(cached) " >&6
5237else $as_nop
5238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239/* end confdefs.h.  */
5240int i;
5241_ACEOF
5242if ac_fn_c_try_compile "$LINENO"
5243then :
5244  xorg_cv_cc_flag_unused_command_line_argument=yes
5245else $as_nop
5246  xorg_cv_cc_flag_unused_command_line_argument=no
5247fi
5248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5249fi
5250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5251printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5253	CFLAGS="$xorg_testset_save_CFLAGS"
5254fi
5255
5256found="no"
5257
5258	if test $found = "no" ; then
5259		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5261		fi
5262
5263		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5265		fi
5266
5267		CFLAGS="$CFLAGS -Wpointer-arith"
5268
5269		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5270printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5271		cacheid=xorg_cv_cc_flag__Wpointer_arith
5272		if eval test \${$cacheid+y}
5273then :
5274  printf %s "(cached) " >&6
5275else $as_nop
5276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277/* end confdefs.h.  */
5278int i;
5279int
5280main (void)
5281{
5282
5283  ;
5284  return 0;
5285}
5286_ACEOF
5287if ac_fn_c_try_link "$LINENO"
5288then :
5289  eval $cacheid=yes
5290else $as_nop
5291  eval $cacheid=no
5292fi
5293rm -f core conftest.err conftest.$ac_objext conftest.beam \
5294    conftest$ac_exeext conftest.$ac_ext
5295fi
5296
5297
5298		CFLAGS="$xorg_testset_save_CFLAGS"
5299
5300		eval supported=\$$cacheid
5301		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5302printf "%s\n" "$supported" >&6; }
5303		if test "$supported" = "yes" ; then
5304			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5305			found="yes"
5306		fi
5307	fi
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323xorg_testset_save_CFLAGS="$CFLAGS"
5324
5325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5327	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5328printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5329if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5330then :
5331  printf %s "(cached) " >&6
5332else $as_nop
5333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h.  */
5335int i;
5336_ACEOF
5337if ac_fn_c_try_compile "$LINENO"
5338then :
5339  xorg_cv_cc_flag_unknown_warning_option=yes
5340else $as_nop
5341  xorg_cv_cc_flag_unknown_warning_option=no
5342fi
5343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5344fi
5345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5346printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5347	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5348	CFLAGS="$xorg_testset_save_CFLAGS"
5349fi
5350
5351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5352	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5353		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5354	fi
5355	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5356	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5357printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5358if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5359then :
5360  printf %s "(cached) " >&6
5361else $as_nop
5362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363/* end confdefs.h.  */
5364int i;
5365_ACEOF
5366if ac_fn_c_try_compile "$LINENO"
5367then :
5368  xorg_cv_cc_flag_unused_command_line_argument=yes
5369else $as_nop
5370  xorg_cv_cc_flag_unused_command_line_argument=no
5371fi
5372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5373fi
5374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5375printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5376	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5377	CFLAGS="$xorg_testset_save_CFLAGS"
5378fi
5379
5380found="no"
5381
5382	if test $found = "no" ; then
5383		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5385		fi
5386
5387		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5389		fi
5390
5391		CFLAGS="$CFLAGS -Wmissing-declarations"
5392
5393		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5394printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5395		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5396		if eval test \${$cacheid+y}
5397then :
5398  printf %s "(cached) " >&6
5399else $as_nop
5400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401/* end confdefs.h.  */
5402int i;
5403int
5404main (void)
5405{
5406
5407  ;
5408  return 0;
5409}
5410_ACEOF
5411if ac_fn_c_try_link "$LINENO"
5412then :
5413  eval $cacheid=yes
5414else $as_nop
5415  eval $cacheid=no
5416fi
5417rm -f core conftest.err conftest.$ac_objext conftest.beam \
5418    conftest$ac_exeext conftest.$ac_ext
5419fi
5420
5421
5422		CFLAGS="$xorg_testset_save_CFLAGS"
5423
5424		eval supported=\$$cacheid
5425		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5426printf "%s\n" "$supported" >&6; }
5427		if test "$supported" = "yes" ; then
5428			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5429			found="yes"
5430		fi
5431	fi
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447xorg_testset_save_CFLAGS="$CFLAGS"
5448
5449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5450	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5451	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5452printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5453if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5454then :
5455  printf %s "(cached) " >&6
5456else $as_nop
5457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h.  */
5459int i;
5460_ACEOF
5461if ac_fn_c_try_compile "$LINENO"
5462then :
5463  xorg_cv_cc_flag_unknown_warning_option=yes
5464else $as_nop
5465  xorg_cv_cc_flag_unknown_warning_option=no
5466fi
5467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5468fi
5469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5470printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5471	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5472	CFLAGS="$xorg_testset_save_CFLAGS"
5473fi
5474
5475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5476	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5477		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5478	fi
5479	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5480	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5481printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5482if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5483then :
5484  printf %s "(cached) " >&6
5485else $as_nop
5486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487/* end confdefs.h.  */
5488int i;
5489_ACEOF
5490if ac_fn_c_try_compile "$LINENO"
5491then :
5492  xorg_cv_cc_flag_unused_command_line_argument=yes
5493else $as_nop
5494  xorg_cv_cc_flag_unused_command_line_argument=no
5495fi
5496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5497fi
5498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5499printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5500	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5501	CFLAGS="$xorg_testset_save_CFLAGS"
5502fi
5503
5504found="no"
5505
5506	if test $found = "no" ; then
5507		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5508			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5509		fi
5510
5511		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5512			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5513		fi
5514
5515		CFLAGS="$CFLAGS -Wformat=2"
5516
5517		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5518printf %s "checking if $CC supports -Wformat=2... " >&6; }
5519		cacheid=xorg_cv_cc_flag__Wformat_2
5520		if eval test \${$cacheid+y}
5521then :
5522  printf %s "(cached) " >&6
5523else $as_nop
5524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h.  */
5526int i;
5527int
5528main (void)
5529{
5530
5531  ;
5532  return 0;
5533}
5534_ACEOF
5535if ac_fn_c_try_link "$LINENO"
5536then :
5537  eval $cacheid=yes
5538else $as_nop
5539  eval $cacheid=no
5540fi
5541rm -f core conftest.err conftest.$ac_objext conftest.beam \
5542    conftest$ac_exeext conftest.$ac_ext
5543fi
5544
5545
5546		CFLAGS="$xorg_testset_save_CFLAGS"
5547
5548		eval supported=\$$cacheid
5549		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5550printf "%s\n" "$supported" >&6; }
5551		if test "$supported" = "yes" ; then
5552			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5553			found="yes"
5554		fi
5555	fi
5556
5557	if test $found = "no" ; then
5558		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5560		fi
5561
5562		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5564		fi
5565
5566		CFLAGS="$CFLAGS -Wformat"
5567
5568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5569printf %s "checking if $CC supports -Wformat... " >&6; }
5570		cacheid=xorg_cv_cc_flag__Wformat
5571		if eval test \${$cacheid+y}
5572then :
5573  printf %s "(cached) " >&6
5574else $as_nop
5575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h.  */
5577int i;
5578int
5579main (void)
5580{
5581
5582  ;
5583  return 0;
5584}
5585_ACEOF
5586if ac_fn_c_try_link "$LINENO"
5587then :
5588  eval $cacheid=yes
5589else $as_nop
5590  eval $cacheid=no
5591fi
5592rm -f core conftest.err conftest.$ac_objext conftest.beam \
5593    conftest$ac_exeext conftest.$ac_ext
5594fi
5595
5596
5597		CFLAGS="$xorg_testset_save_CFLAGS"
5598
5599		eval supported=\$$cacheid
5600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5601printf "%s\n" "$supported" >&6; }
5602		if test "$supported" = "yes" ; then
5603			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5604			found="yes"
5605		fi
5606	fi
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624xorg_testset_save_CFLAGS="$CFLAGS"
5625
5626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5627	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5628	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5629printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5630if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5631then :
5632  printf %s "(cached) " >&6
5633else $as_nop
5634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h.  */
5636int i;
5637_ACEOF
5638if ac_fn_c_try_compile "$LINENO"
5639then :
5640  xorg_cv_cc_flag_unknown_warning_option=yes
5641else $as_nop
5642  xorg_cv_cc_flag_unknown_warning_option=no
5643fi
5644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5645fi
5646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5647printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5648	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5649	CFLAGS="$xorg_testset_save_CFLAGS"
5650fi
5651
5652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5653	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5654		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5655	fi
5656	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5657	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5658printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5659if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5660then :
5661  printf %s "(cached) " >&6
5662else $as_nop
5663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664/* end confdefs.h.  */
5665int i;
5666_ACEOF
5667if ac_fn_c_try_compile "$LINENO"
5668then :
5669  xorg_cv_cc_flag_unused_command_line_argument=yes
5670else $as_nop
5671  xorg_cv_cc_flag_unused_command_line_argument=no
5672fi
5673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5674fi
5675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5676printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5677	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5678	CFLAGS="$xorg_testset_save_CFLAGS"
5679fi
5680
5681found="no"
5682
5683	if test $found = "no" ; then
5684		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5685			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5686		fi
5687
5688		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5689			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5690		fi
5691
5692		CFLAGS="$CFLAGS -Wstrict-prototypes"
5693
5694		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5695printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5696		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5697		if eval test \${$cacheid+y}
5698then :
5699  printf %s "(cached) " >&6
5700else $as_nop
5701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702/* end confdefs.h.  */
5703int i;
5704int
5705main (void)
5706{
5707
5708  ;
5709  return 0;
5710}
5711_ACEOF
5712if ac_fn_c_try_link "$LINENO"
5713then :
5714  eval $cacheid=yes
5715else $as_nop
5716  eval $cacheid=no
5717fi
5718rm -f core conftest.err conftest.$ac_objext conftest.beam \
5719    conftest$ac_exeext conftest.$ac_ext
5720fi
5721
5722
5723		CFLAGS="$xorg_testset_save_CFLAGS"
5724
5725		eval supported=\$$cacheid
5726		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5727printf "%s\n" "$supported" >&6; }
5728		if test "$supported" = "yes" ; then
5729			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5730			found="yes"
5731		fi
5732	fi
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748xorg_testset_save_CFLAGS="$CFLAGS"
5749
5750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5751	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5752	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5753printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5754if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5755then :
5756  printf %s "(cached) " >&6
5757else $as_nop
5758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h.  */
5760int i;
5761_ACEOF
5762if ac_fn_c_try_compile "$LINENO"
5763then :
5764  xorg_cv_cc_flag_unknown_warning_option=yes
5765else $as_nop
5766  xorg_cv_cc_flag_unknown_warning_option=no
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5769fi
5770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5771printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5772	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5773	CFLAGS="$xorg_testset_save_CFLAGS"
5774fi
5775
5776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5777	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5778		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5779	fi
5780	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5781	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5782printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5783if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5784then :
5785  printf %s "(cached) " >&6
5786else $as_nop
5787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788/* end confdefs.h.  */
5789int i;
5790_ACEOF
5791if ac_fn_c_try_compile "$LINENO"
5792then :
5793  xorg_cv_cc_flag_unused_command_line_argument=yes
5794else $as_nop
5795  xorg_cv_cc_flag_unused_command_line_argument=no
5796fi
5797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5798fi
5799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5800printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5801	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5802	CFLAGS="$xorg_testset_save_CFLAGS"
5803fi
5804
5805found="no"
5806
5807	if test $found = "no" ; then
5808		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5809			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810		fi
5811
5812		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5813			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5814		fi
5815
5816		CFLAGS="$CFLAGS -Wmissing-prototypes"
5817
5818		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5819printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5820		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5821		if eval test \${$cacheid+y}
5822then :
5823  printf %s "(cached) " >&6
5824else $as_nop
5825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826/* end confdefs.h.  */
5827int i;
5828int
5829main (void)
5830{
5831
5832  ;
5833  return 0;
5834}
5835_ACEOF
5836if ac_fn_c_try_link "$LINENO"
5837then :
5838  eval $cacheid=yes
5839else $as_nop
5840  eval $cacheid=no
5841fi
5842rm -f core conftest.err conftest.$ac_objext conftest.beam \
5843    conftest$ac_exeext conftest.$ac_ext
5844fi
5845
5846
5847		CFLAGS="$xorg_testset_save_CFLAGS"
5848
5849		eval supported=\$$cacheid
5850		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5851printf "%s\n" "$supported" >&6; }
5852		if test "$supported" = "yes" ; then
5853			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5854			found="yes"
5855		fi
5856	fi
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872xorg_testset_save_CFLAGS="$CFLAGS"
5873
5874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5875	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5876	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5877printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5878if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5879then :
5880  printf %s "(cached) " >&6
5881else $as_nop
5882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883/* end confdefs.h.  */
5884int i;
5885_ACEOF
5886if ac_fn_c_try_compile "$LINENO"
5887then :
5888  xorg_cv_cc_flag_unknown_warning_option=yes
5889else $as_nop
5890  xorg_cv_cc_flag_unknown_warning_option=no
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5893fi
5894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5895printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5896	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5897	CFLAGS="$xorg_testset_save_CFLAGS"
5898fi
5899
5900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5901	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5902		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5903	fi
5904	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5905	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5906printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5907if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5908then :
5909  printf %s "(cached) " >&6
5910else $as_nop
5911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912/* end confdefs.h.  */
5913int i;
5914_ACEOF
5915if ac_fn_c_try_compile "$LINENO"
5916then :
5917  xorg_cv_cc_flag_unused_command_line_argument=yes
5918else $as_nop
5919  xorg_cv_cc_flag_unused_command_line_argument=no
5920fi
5921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5922fi
5923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5924printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5925	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5926	CFLAGS="$xorg_testset_save_CFLAGS"
5927fi
5928
5929found="no"
5930
5931	if test $found = "no" ; then
5932		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5933			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5934		fi
5935
5936		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5937			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5938		fi
5939
5940		CFLAGS="$CFLAGS -Wnested-externs"
5941
5942		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5943printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5944		cacheid=xorg_cv_cc_flag__Wnested_externs
5945		if eval test \${$cacheid+y}
5946then :
5947  printf %s "(cached) " >&6
5948else $as_nop
5949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h.  */
5951int i;
5952int
5953main (void)
5954{
5955
5956  ;
5957  return 0;
5958}
5959_ACEOF
5960if ac_fn_c_try_link "$LINENO"
5961then :
5962  eval $cacheid=yes
5963else $as_nop
5964  eval $cacheid=no
5965fi
5966rm -f core conftest.err conftest.$ac_objext conftest.beam \
5967    conftest$ac_exeext conftest.$ac_ext
5968fi
5969
5970
5971		CFLAGS="$xorg_testset_save_CFLAGS"
5972
5973		eval supported=\$$cacheid
5974		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5975printf "%s\n" "$supported" >&6; }
5976		if test "$supported" = "yes" ; then
5977			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5978			found="yes"
5979		fi
5980	fi
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996xorg_testset_save_CFLAGS="$CFLAGS"
5997
5998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5999	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6000	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6001printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6002if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6003then :
6004  printf %s "(cached) " >&6
6005else $as_nop
6006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h.  */
6008int i;
6009_ACEOF
6010if ac_fn_c_try_compile "$LINENO"
6011then :
6012  xorg_cv_cc_flag_unknown_warning_option=yes
6013else $as_nop
6014  xorg_cv_cc_flag_unknown_warning_option=no
6015fi
6016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6017fi
6018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6019printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6020	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6021	CFLAGS="$xorg_testset_save_CFLAGS"
6022fi
6023
6024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6025	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6026		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6027	fi
6028	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6029	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6030printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6031if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6032then :
6033  printf %s "(cached) " >&6
6034else $as_nop
6035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036/* end confdefs.h.  */
6037int i;
6038_ACEOF
6039if ac_fn_c_try_compile "$LINENO"
6040then :
6041  xorg_cv_cc_flag_unused_command_line_argument=yes
6042else $as_nop
6043  xorg_cv_cc_flag_unused_command_line_argument=no
6044fi
6045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6046fi
6047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6048printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6049	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6050	CFLAGS="$xorg_testset_save_CFLAGS"
6051fi
6052
6053found="no"
6054
6055	if test $found = "no" ; then
6056		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6057			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6058		fi
6059
6060		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6061			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6062		fi
6063
6064		CFLAGS="$CFLAGS -Wbad-function-cast"
6065
6066		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6067printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6068		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6069		if eval test \${$cacheid+y}
6070then :
6071  printf %s "(cached) " >&6
6072else $as_nop
6073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074/* end confdefs.h.  */
6075int i;
6076int
6077main (void)
6078{
6079
6080  ;
6081  return 0;
6082}
6083_ACEOF
6084if ac_fn_c_try_link "$LINENO"
6085then :
6086  eval $cacheid=yes
6087else $as_nop
6088  eval $cacheid=no
6089fi
6090rm -f core conftest.err conftest.$ac_objext conftest.beam \
6091    conftest$ac_exeext conftest.$ac_ext
6092fi
6093
6094
6095		CFLAGS="$xorg_testset_save_CFLAGS"
6096
6097		eval supported=\$$cacheid
6098		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6099printf "%s\n" "$supported" >&6; }
6100		if test "$supported" = "yes" ; then
6101			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6102			found="yes"
6103		fi
6104	fi
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120xorg_testset_save_CFLAGS="$CFLAGS"
6121
6122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6123	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6125printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6126if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6127then :
6128  printf %s "(cached) " >&6
6129else $as_nop
6130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h.  */
6132int i;
6133_ACEOF
6134if ac_fn_c_try_compile "$LINENO"
6135then :
6136  xorg_cv_cc_flag_unknown_warning_option=yes
6137else $as_nop
6138  xorg_cv_cc_flag_unknown_warning_option=no
6139fi
6140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6141fi
6142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6143printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6144	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6145	CFLAGS="$xorg_testset_save_CFLAGS"
6146fi
6147
6148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6149	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6150		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6151	fi
6152	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6153	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6154printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6155if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6156then :
6157  printf %s "(cached) " >&6
6158else $as_nop
6159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160/* end confdefs.h.  */
6161int i;
6162_ACEOF
6163if ac_fn_c_try_compile "$LINENO"
6164then :
6165  xorg_cv_cc_flag_unused_command_line_argument=yes
6166else $as_nop
6167  xorg_cv_cc_flag_unused_command_line_argument=no
6168fi
6169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6170fi
6171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6172printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6173	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6174	CFLAGS="$xorg_testset_save_CFLAGS"
6175fi
6176
6177found="no"
6178
6179	if test $found = "no" ; then
6180		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6181			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6182		fi
6183
6184		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6185			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6186		fi
6187
6188		CFLAGS="$CFLAGS -Wold-style-definition"
6189
6190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6191printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6192		cacheid=xorg_cv_cc_flag__Wold_style_definition
6193		if eval test \${$cacheid+y}
6194then :
6195  printf %s "(cached) " >&6
6196else $as_nop
6197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198/* end confdefs.h.  */
6199int i;
6200int
6201main (void)
6202{
6203
6204  ;
6205  return 0;
6206}
6207_ACEOF
6208if ac_fn_c_try_link "$LINENO"
6209then :
6210  eval $cacheid=yes
6211else $as_nop
6212  eval $cacheid=no
6213fi
6214rm -f core conftest.err conftest.$ac_objext conftest.beam \
6215    conftest$ac_exeext conftest.$ac_ext
6216fi
6217
6218
6219		CFLAGS="$xorg_testset_save_CFLAGS"
6220
6221		eval supported=\$$cacheid
6222		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6223printf "%s\n" "$supported" >&6; }
6224		if test "$supported" = "yes" ; then
6225			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6226			found="yes"
6227		fi
6228	fi
6229
6230	if test $found = "no" ; then
6231		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6232			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6233		fi
6234
6235		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6236			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6237		fi
6238
6239		CFLAGS="$CFLAGS -fd"
6240
6241		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6242printf %s "checking if $CC supports -fd... " >&6; }
6243		cacheid=xorg_cv_cc_flag__fd
6244		if eval test \${$cacheid+y}
6245then :
6246  printf %s "(cached) " >&6
6247else $as_nop
6248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249/* end confdefs.h.  */
6250int i;
6251int
6252main (void)
6253{
6254
6255  ;
6256  return 0;
6257}
6258_ACEOF
6259if ac_fn_c_try_link "$LINENO"
6260then :
6261  eval $cacheid=yes
6262else $as_nop
6263  eval $cacheid=no
6264fi
6265rm -f core conftest.err conftest.$ac_objext conftest.beam \
6266    conftest$ac_exeext conftest.$ac_ext
6267fi
6268
6269
6270		CFLAGS="$xorg_testset_save_CFLAGS"
6271
6272		eval supported=\$$cacheid
6273		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6274printf "%s\n" "$supported" >&6; }
6275		if test "$supported" = "yes" ; then
6276			BASE_CFLAGS="$BASE_CFLAGS -fd"
6277			found="yes"
6278		fi
6279	fi
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295xorg_testset_save_CFLAGS="$CFLAGS"
6296
6297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6298	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6299	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6300printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6301if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6302then :
6303  printf %s "(cached) " >&6
6304else $as_nop
6305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306/* end confdefs.h.  */
6307int i;
6308_ACEOF
6309if ac_fn_c_try_compile "$LINENO"
6310then :
6311  xorg_cv_cc_flag_unknown_warning_option=yes
6312else $as_nop
6313  xorg_cv_cc_flag_unknown_warning_option=no
6314fi
6315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6316fi
6317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6318printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6319	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6320	CFLAGS="$xorg_testset_save_CFLAGS"
6321fi
6322
6323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6324	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6325		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6326	fi
6327	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6328	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6329printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6330if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6331then :
6332  printf %s "(cached) " >&6
6333else $as_nop
6334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335/* end confdefs.h.  */
6336int i;
6337_ACEOF
6338if ac_fn_c_try_compile "$LINENO"
6339then :
6340  xorg_cv_cc_flag_unused_command_line_argument=yes
6341else $as_nop
6342  xorg_cv_cc_flag_unused_command_line_argument=no
6343fi
6344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6345fi
6346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6347printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6348	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6349	CFLAGS="$xorg_testset_save_CFLAGS"
6350fi
6351
6352found="no"
6353
6354	if test $found = "no" ; then
6355		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6356			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6357		fi
6358
6359		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6360			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6361		fi
6362
6363		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6364
6365		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6366printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6367		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6368		if eval test \${$cacheid+y}
6369then :
6370  printf %s "(cached) " >&6
6371else $as_nop
6372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373/* end confdefs.h.  */
6374int i;
6375int
6376main (void)
6377{
6378
6379  ;
6380  return 0;
6381}
6382_ACEOF
6383if ac_fn_c_try_link "$LINENO"
6384then :
6385  eval $cacheid=yes
6386else $as_nop
6387  eval $cacheid=no
6388fi
6389rm -f core conftest.err conftest.$ac_objext conftest.beam \
6390    conftest$ac_exeext conftest.$ac_ext
6391fi
6392
6393
6394		CFLAGS="$xorg_testset_save_CFLAGS"
6395
6396		eval supported=\$$cacheid
6397		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6398printf "%s\n" "$supported" >&6; }
6399		if test "$supported" = "yes" ; then
6400			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6401			found="yes"
6402		fi
6403	fi
6404
6405
6406
6407
6408
6409# This chunk adds additional warnings that could catch undesired effects.
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423xorg_testset_save_CFLAGS="$CFLAGS"
6424
6425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6426	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6428printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6429if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6430then :
6431  printf %s "(cached) " >&6
6432else $as_nop
6433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434/* end confdefs.h.  */
6435int i;
6436_ACEOF
6437if ac_fn_c_try_compile "$LINENO"
6438then :
6439  xorg_cv_cc_flag_unknown_warning_option=yes
6440else $as_nop
6441  xorg_cv_cc_flag_unknown_warning_option=no
6442fi
6443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6444fi
6445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6446printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6447	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6448	CFLAGS="$xorg_testset_save_CFLAGS"
6449fi
6450
6451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6452	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6453		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6454	fi
6455	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6456	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6457printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6458if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6459then :
6460  printf %s "(cached) " >&6
6461else $as_nop
6462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463/* end confdefs.h.  */
6464int i;
6465_ACEOF
6466if ac_fn_c_try_compile "$LINENO"
6467then :
6468  xorg_cv_cc_flag_unused_command_line_argument=yes
6469else $as_nop
6470  xorg_cv_cc_flag_unused_command_line_argument=no
6471fi
6472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6473fi
6474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6475printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6476	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6477	CFLAGS="$xorg_testset_save_CFLAGS"
6478fi
6479
6480found="no"
6481
6482	if test $found = "no" ; then
6483		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6484			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6485		fi
6486
6487		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6488			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6489		fi
6490
6491		CFLAGS="$CFLAGS -Wunused"
6492
6493		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6494printf %s "checking if $CC supports -Wunused... " >&6; }
6495		cacheid=xorg_cv_cc_flag__Wunused
6496		if eval test \${$cacheid+y}
6497then :
6498  printf %s "(cached) " >&6
6499else $as_nop
6500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h.  */
6502int i;
6503int
6504main (void)
6505{
6506
6507  ;
6508  return 0;
6509}
6510_ACEOF
6511if ac_fn_c_try_link "$LINENO"
6512then :
6513  eval $cacheid=yes
6514else $as_nop
6515  eval $cacheid=no
6516fi
6517rm -f core conftest.err conftest.$ac_objext conftest.beam \
6518    conftest$ac_exeext conftest.$ac_ext
6519fi
6520
6521
6522		CFLAGS="$xorg_testset_save_CFLAGS"
6523
6524		eval supported=\$$cacheid
6525		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6526printf "%s\n" "$supported" >&6; }
6527		if test "$supported" = "yes" ; then
6528			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6529			found="yes"
6530		fi
6531	fi
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547xorg_testset_save_CFLAGS="$CFLAGS"
6548
6549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6550	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6551	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6552printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6553if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6554then :
6555  printf %s "(cached) " >&6
6556else $as_nop
6557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558/* end confdefs.h.  */
6559int i;
6560_ACEOF
6561if ac_fn_c_try_compile "$LINENO"
6562then :
6563  xorg_cv_cc_flag_unknown_warning_option=yes
6564else $as_nop
6565  xorg_cv_cc_flag_unknown_warning_option=no
6566fi
6567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6568fi
6569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6570printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6571	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6572	CFLAGS="$xorg_testset_save_CFLAGS"
6573fi
6574
6575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6576	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6577		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6578	fi
6579	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6580	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6581printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6582if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6583then :
6584  printf %s "(cached) " >&6
6585else $as_nop
6586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587/* end confdefs.h.  */
6588int i;
6589_ACEOF
6590if ac_fn_c_try_compile "$LINENO"
6591then :
6592  xorg_cv_cc_flag_unused_command_line_argument=yes
6593else $as_nop
6594  xorg_cv_cc_flag_unused_command_line_argument=no
6595fi
6596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6597fi
6598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6599printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6600	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6601	CFLAGS="$xorg_testset_save_CFLAGS"
6602fi
6603
6604found="no"
6605
6606	if test $found = "no" ; then
6607		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6608			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6609		fi
6610
6611		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6612			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613		fi
6614
6615		CFLAGS="$CFLAGS -Wuninitialized"
6616
6617		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6618printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6619		cacheid=xorg_cv_cc_flag__Wuninitialized
6620		if eval test \${$cacheid+y}
6621then :
6622  printf %s "(cached) " >&6
6623else $as_nop
6624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625/* end confdefs.h.  */
6626int i;
6627int
6628main (void)
6629{
6630
6631  ;
6632  return 0;
6633}
6634_ACEOF
6635if ac_fn_c_try_link "$LINENO"
6636then :
6637  eval $cacheid=yes
6638else $as_nop
6639  eval $cacheid=no
6640fi
6641rm -f core conftest.err conftest.$ac_objext conftest.beam \
6642    conftest$ac_exeext conftest.$ac_ext
6643fi
6644
6645
6646		CFLAGS="$xorg_testset_save_CFLAGS"
6647
6648		eval supported=\$$cacheid
6649		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6650printf "%s\n" "$supported" >&6; }
6651		if test "$supported" = "yes" ; then
6652			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6653			found="yes"
6654		fi
6655	fi
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671xorg_testset_save_CFLAGS="$CFLAGS"
6672
6673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6674	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6676printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6677if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6678then :
6679  printf %s "(cached) " >&6
6680else $as_nop
6681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682/* end confdefs.h.  */
6683int i;
6684_ACEOF
6685if ac_fn_c_try_compile "$LINENO"
6686then :
6687  xorg_cv_cc_flag_unknown_warning_option=yes
6688else $as_nop
6689  xorg_cv_cc_flag_unknown_warning_option=no
6690fi
6691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6692fi
6693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6695	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6696	CFLAGS="$xorg_testset_save_CFLAGS"
6697fi
6698
6699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6700	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6701		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6702	fi
6703	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6706if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6707then :
6708  printf %s "(cached) " >&6
6709else $as_nop
6710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711/* end confdefs.h.  */
6712int i;
6713_ACEOF
6714if ac_fn_c_try_compile "$LINENO"
6715then :
6716  xorg_cv_cc_flag_unused_command_line_argument=yes
6717else $as_nop
6718  xorg_cv_cc_flag_unused_command_line_argument=no
6719fi
6720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6721fi
6722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6723printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6724	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6725	CFLAGS="$xorg_testset_save_CFLAGS"
6726fi
6727
6728found="no"
6729
6730	if test $found = "no" ; then
6731		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733		fi
6734
6735		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6737		fi
6738
6739		CFLAGS="$CFLAGS -Wshadow"
6740
6741		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6742printf %s "checking if $CC supports -Wshadow... " >&6; }
6743		cacheid=xorg_cv_cc_flag__Wshadow
6744		if eval test \${$cacheid+y}
6745then :
6746  printf %s "(cached) " >&6
6747else $as_nop
6748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h.  */
6750int i;
6751int
6752main (void)
6753{
6754
6755  ;
6756  return 0;
6757}
6758_ACEOF
6759if ac_fn_c_try_link "$LINENO"
6760then :
6761  eval $cacheid=yes
6762else $as_nop
6763  eval $cacheid=no
6764fi
6765rm -f core conftest.err conftest.$ac_objext conftest.beam \
6766    conftest$ac_exeext conftest.$ac_ext
6767fi
6768
6769
6770		CFLAGS="$xorg_testset_save_CFLAGS"
6771
6772		eval supported=\$$cacheid
6773		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6774printf "%s\n" "$supported" >&6; }
6775		if test "$supported" = "yes" ; then
6776			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6777			found="yes"
6778		fi
6779	fi
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795xorg_testset_save_CFLAGS="$CFLAGS"
6796
6797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6798	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6799	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6800printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6801if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6802then :
6803  printf %s "(cached) " >&6
6804else $as_nop
6805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806/* end confdefs.h.  */
6807int i;
6808_ACEOF
6809if ac_fn_c_try_compile "$LINENO"
6810then :
6811  xorg_cv_cc_flag_unknown_warning_option=yes
6812else $as_nop
6813  xorg_cv_cc_flag_unknown_warning_option=no
6814fi
6815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6816fi
6817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6818printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6819	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6820	CFLAGS="$xorg_testset_save_CFLAGS"
6821fi
6822
6823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6824	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6825		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6826	fi
6827	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6828	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6829printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6830if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6831then :
6832  printf %s "(cached) " >&6
6833else $as_nop
6834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835/* end confdefs.h.  */
6836int i;
6837_ACEOF
6838if ac_fn_c_try_compile "$LINENO"
6839then :
6840  xorg_cv_cc_flag_unused_command_line_argument=yes
6841else $as_nop
6842  xorg_cv_cc_flag_unused_command_line_argument=no
6843fi
6844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6845fi
6846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6847printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6849	CFLAGS="$xorg_testset_save_CFLAGS"
6850fi
6851
6852found="no"
6853
6854	if test $found = "no" ; then
6855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857		fi
6858
6859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861		fi
6862
6863		CFLAGS="$CFLAGS -Wmissing-noreturn"
6864
6865		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6866printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6867		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6868		if eval test \${$cacheid+y}
6869then :
6870  printf %s "(cached) " >&6
6871else $as_nop
6872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873/* end confdefs.h.  */
6874int i;
6875int
6876main (void)
6877{
6878
6879  ;
6880  return 0;
6881}
6882_ACEOF
6883if ac_fn_c_try_link "$LINENO"
6884then :
6885  eval $cacheid=yes
6886else $as_nop
6887  eval $cacheid=no
6888fi
6889rm -f core conftest.err conftest.$ac_objext conftest.beam \
6890    conftest$ac_exeext conftest.$ac_ext
6891fi
6892
6893
6894		CFLAGS="$xorg_testset_save_CFLAGS"
6895
6896		eval supported=\$$cacheid
6897		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6898printf "%s\n" "$supported" >&6; }
6899		if test "$supported" = "yes" ; then
6900			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6901			found="yes"
6902		fi
6903	fi
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919xorg_testset_save_CFLAGS="$CFLAGS"
6920
6921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6924printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6925if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6926then :
6927  printf %s "(cached) " >&6
6928else $as_nop
6929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930/* end confdefs.h.  */
6931int i;
6932_ACEOF
6933if ac_fn_c_try_compile "$LINENO"
6934then :
6935  xorg_cv_cc_flag_unknown_warning_option=yes
6936else $as_nop
6937  xorg_cv_cc_flag_unknown_warning_option=no
6938fi
6939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6940fi
6941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6942printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6944	CFLAGS="$xorg_testset_save_CFLAGS"
6945fi
6946
6947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6950	fi
6951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6952	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6953printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6954if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6955then :
6956  printf %s "(cached) " >&6
6957else $as_nop
6958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959/* end confdefs.h.  */
6960int i;
6961_ACEOF
6962if ac_fn_c_try_compile "$LINENO"
6963then :
6964  xorg_cv_cc_flag_unused_command_line_argument=yes
6965else $as_nop
6966  xorg_cv_cc_flag_unused_command_line_argument=no
6967fi
6968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6969fi
6970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6971printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6972	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6973	CFLAGS="$xorg_testset_save_CFLAGS"
6974fi
6975
6976found="no"
6977
6978	if test $found = "no" ; then
6979		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6980			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981		fi
6982
6983		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6984			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6985		fi
6986
6987		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6988
6989		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6990printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6991		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6992		if eval test \${$cacheid+y}
6993then :
6994  printf %s "(cached) " >&6
6995else $as_nop
6996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997/* end confdefs.h.  */
6998int i;
6999int
7000main (void)
7001{
7002
7003  ;
7004  return 0;
7005}
7006_ACEOF
7007if ac_fn_c_try_link "$LINENO"
7008then :
7009  eval $cacheid=yes
7010else $as_nop
7011  eval $cacheid=no
7012fi
7013rm -f core conftest.err conftest.$ac_objext conftest.beam \
7014    conftest$ac_exeext conftest.$ac_ext
7015fi
7016
7017
7018		CFLAGS="$xorg_testset_save_CFLAGS"
7019
7020		eval supported=\$$cacheid
7021		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7022printf "%s\n" "$supported" >&6; }
7023		if test "$supported" = "yes" ; then
7024			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7025			found="yes"
7026		fi
7027	fi
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043xorg_testset_save_CFLAGS="$CFLAGS"
7044
7045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7046	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7047	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7048printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7049if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7050then :
7051  printf %s "(cached) " >&6
7052else $as_nop
7053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054/* end confdefs.h.  */
7055int i;
7056_ACEOF
7057if ac_fn_c_try_compile "$LINENO"
7058then :
7059  xorg_cv_cc_flag_unknown_warning_option=yes
7060else $as_nop
7061  xorg_cv_cc_flag_unknown_warning_option=no
7062fi
7063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7064fi
7065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7066printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7067	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7068	CFLAGS="$xorg_testset_save_CFLAGS"
7069fi
7070
7071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7072	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7073		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7074	fi
7075	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7076	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7077printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7078if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes
7089else $as_nop
7090  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
7095printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7096	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7097	CFLAGS="$xorg_testset_save_CFLAGS"
7098fi
7099
7100found="no"
7101
7102	if test $found = "no" ; then
7103		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7104			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7105		fi
7106
7107		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7108			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7109		fi
7110
7111		CFLAGS="$CFLAGS -Wredundant-decls"
7112
7113		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7114printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7115		cacheid=xorg_cv_cc_flag__Wredundant_decls
7116		if eval test \${$cacheid+y}
7117then :
7118  printf %s "(cached) " >&6
7119else $as_nop
7120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121/* end confdefs.h.  */
7122int i;
7123int
7124main (void)
7125{
7126
7127  ;
7128  return 0;
7129}
7130_ACEOF
7131if ac_fn_c_try_link "$LINENO"
7132then :
7133  eval $cacheid=yes
7134else $as_nop
7135  eval $cacheid=no
7136fi
7137rm -f core conftest.err conftest.$ac_objext conftest.beam \
7138    conftest$ac_exeext conftest.$ac_ext
7139fi
7140
7141
7142		CFLAGS="$xorg_testset_save_CFLAGS"
7143
7144		eval supported=\$$cacheid
7145		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7146printf "%s\n" "$supported" >&6; }
7147		if test "$supported" = "yes" ; then
7148			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7149			found="yes"
7150		fi
7151	fi
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167xorg_testset_save_CFLAGS="$CFLAGS"
7168
7169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7170	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7171	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7172printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7173if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7174then :
7175  printf %s "(cached) " >&6
7176else $as_nop
7177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178/* end confdefs.h.  */
7179int i;
7180_ACEOF
7181if ac_fn_c_try_compile "$LINENO"
7182then :
7183  xorg_cv_cc_flag_unknown_warning_option=yes
7184else $as_nop
7185  xorg_cv_cc_flag_unknown_warning_option=no
7186fi
7187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7188fi
7189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7190printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7191	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7192	CFLAGS="$xorg_testset_save_CFLAGS"
7193fi
7194
7195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7196	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7197		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7198	fi
7199	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7200	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7201printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7202if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7203then :
7204  printf %s "(cached) " >&6
7205else $as_nop
7206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207/* end confdefs.h.  */
7208int i;
7209_ACEOF
7210if ac_fn_c_try_compile "$LINENO"
7211then :
7212  xorg_cv_cc_flag_unused_command_line_argument=yes
7213else $as_nop
7214  xorg_cv_cc_flag_unused_command_line_argument=no
7215fi
7216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7217fi
7218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7219printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7220	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7221	CFLAGS="$xorg_testset_save_CFLAGS"
7222fi
7223
7224found="no"
7225
7226	if test $found = "no" ; then
7227		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7228			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7229		fi
7230
7231		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7232			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7233		fi
7234
7235		CFLAGS="$CFLAGS -Wlogical-op"
7236
7237		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7238printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7239		cacheid=xorg_cv_cc_flag__Wlogical_op
7240		if eval test \${$cacheid+y}
7241then :
7242  printf %s "(cached) " >&6
7243else $as_nop
7244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245/* end confdefs.h.  */
7246int i;
7247int
7248main (void)
7249{
7250
7251  ;
7252  return 0;
7253}
7254_ACEOF
7255if ac_fn_c_try_link "$LINENO"
7256then :
7257  eval $cacheid=yes
7258else $as_nop
7259  eval $cacheid=no
7260fi
7261rm -f core conftest.err conftest.$ac_objext conftest.beam \
7262    conftest$ac_exeext conftest.$ac_ext
7263fi
7264
7265
7266		CFLAGS="$xorg_testset_save_CFLAGS"
7267
7268		eval supported=\$$cacheid
7269		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7270printf "%s\n" "$supported" >&6; }
7271		if test "$supported" = "yes" ; then
7272			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7273			found="yes"
7274		fi
7275	fi
7276
7277
7278
7279# These are currently disabled because they are noisy.  They will be enabled
7280# in the future once the codebase is sufficiently modernized to silence
7281# them.  For now, I don't want them to drown out the other warnings.
7282# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7283# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7284# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7285
7286# Turn some warnings into errors, so we don't accidently get successful builds
7287# when there are problems that should be fixed.
7288
7289if test "x$SELECTIVE_WERROR" = "xyes" ; then
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303xorg_testset_save_CFLAGS="$CFLAGS"
7304
7305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7306	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7307	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7308printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7309if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7310then :
7311  printf %s "(cached) " >&6
7312else $as_nop
7313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314/* end confdefs.h.  */
7315int i;
7316_ACEOF
7317if ac_fn_c_try_compile "$LINENO"
7318then :
7319  xorg_cv_cc_flag_unknown_warning_option=yes
7320else $as_nop
7321  xorg_cv_cc_flag_unknown_warning_option=no
7322fi
7323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7324fi
7325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7326printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7327	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7328	CFLAGS="$xorg_testset_save_CFLAGS"
7329fi
7330
7331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7332	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7334	fi
7335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7336	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7337printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7338if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7339then :
7340  printf %s "(cached) " >&6
7341else $as_nop
7342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343/* end confdefs.h.  */
7344int i;
7345_ACEOF
7346if ac_fn_c_try_compile "$LINENO"
7347then :
7348  xorg_cv_cc_flag_unused_command_line_argument=yes
7349else $as_nop
7350  xorg_cv_cc_flag_unused_command_line_argument=no
7351fi
7352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7353fi
7354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7355printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7357	CFLAGS="$xorg_testset_save_CFLAGS"
7358fi
7359
7360found="no"
7361
7362	if test $found = "no" ; then
7363		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7365		fi
7366
7367		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7369		fi
7370
7371		CFLAGS="$CFLAGS -Werror=implicit"
7372
7373		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7374printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7375		cacheid=xorg_cv_cc_flag__Werror_implicit
7376		if eval test \${$cacheid+y}
7377then :
7378  printf %s "(cached) " >&6
7379else $as_nop
7380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381/* end confdefs.h.  */
7382int i;
7383int
7384main (void)
7385{
7386
7387  ;
7388  return 0;
7389}
7390_ACEOF
7391if ac_fn_c_try_link "$LINENO"
7392then :
7393  eval $cacheid=yes
7394else $as_nop
7395  eval $cacheid=no
7396fi
7397rm -f core conftest.err conftest.$ac_objext conftest.beam \
7398    conftest$ac_exeext conftest.$ac_ext
7399fi
7400
7401
7402		CFLAGS="$xorg_testset_save_CFLAGS"
7403
7404		eval supported=\$$cacheid
7405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7406printf "%s\n" "$supported" >&6; }
7407		if test "$supported" = "yes" ; then
7408			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7409			found="yes"
7410		fi
7411	fi
7412
7413	if test $found = "no" ; then
7414		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7415			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7416		fi
7417
7418		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7419			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7420		fi
7421
7422		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7423
7424		{ 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
7425printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7426		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7427		if eval test \${$cacheid+y}
7428then :
7429  printf %s "(cached) " >&6
7430else $as_nop
7431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432/* end confdefs.h.  */
7433int i;
7434int
7435main (void)
7436{
7437
7438  ;
7439  return 0;
7440}
7441_ACEOF
7442if ac_fn_c_try_link "$LINENO"
7443then :
7444  eval $cacheid=yes
7445else $as_nop
7446  eval $cacheid=no
7447fi
7448rm -f core conftest.err conftest.$ac_objext conftest.beam \
7449    conftest$ac_exeext conftest.$ac_ext
7450fi
7451
7452
7453		CFLAGS="$xorg_testset_save_CFLAGS"
7454
7455		eval supported=\$$cacheid
7456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7457printf "%s\n" "$supported" >&6; }
7458		if test "$supported" = "yes" ; then
7459			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7460			found="yes"
7461		fi
7462	fi
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478xorg_testset_save_CFLAGS="$CFLAGS"
7479
7480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7481	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7482	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7483printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7484if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7485then :
7486  printf %s "(cached) " >&6
7487else $as_nop
7488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489/* end confdefs.h.  */
7490int i;
7491_ACEOF
7492if ac_fn_c_try_compile "$LINENO"
7493then :
7494  xorg_cv_cc_flag_unknown_warning_option=yes
7495else $as_nop
7496  xorg_cv_cc_flag_unknown_warning_option=no
7497fi
7498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7499fi
7500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7503	CFLAGS="$xorg_testset_save_CFLAGS"
7504fi
7505
7506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7509	fi
7510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7511	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7513if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7514then :
7515  printf %s "(cached) " >&6
7516else $as_nop
7517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h.  */
7519int i;
7520_ACEOF
7521if ac_fn_c_try_compile "$LINENO"
7522then :
7523  xorg_cv_cc_flag_unused_command_line_argument=yes
7524else $as_nop
7525  xorg_cv_cc_flag_unused_command_line_argument=no
7526fi
7527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7528fi
7529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7530printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7531	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7532	CFLAGS="$xorg_testset_save_CFLAGS"
7533fi
7534
7535found="no"
7536
7537	if test $found = "no" ; then
7538		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7539			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7540		fi
7541
7542		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7543			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7544		fi
7545
7546		CFLAGS="$CFLAGS -Werror=nonnull"
7547
7548		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7549printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7550		cacheid=xorg_cv_cc_flag__Werror_nonnull
7551		if eval test \${$cacheid+y}
7552then :
7553  printf %s "(cached) " >&6
7554else $as_nop
7555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556/* end confdefs.h.  */
7557int i;
7558int
7559main (void)
7560{
7561
7562  ;
7563  return 0;
7564}
7565_ACEOF
7566if ac_fn_c_try_link "$LINENO"
7567then :
7568  eval $cacheid=yes
7569else $as_nop
7570  eval $cacheid=no
7571fi
7572rm -f core conftest.err conftest.$ac_objext conftest.beam \
7573    conftest$ac_exeext conftest.$ac_ext
7574fi
7575
7576
7577		CFLAGS="$xorg_testset_save_CFLAGS"
7578
7579		eval supported=\$$cacheid
7580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7581printf "%s\n" "$supported" >&6; }
7582		if test "$supported" = "yes" ; then
7583			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7584			found="yes"
7585		fi
7586	fi
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602xorg_testset_save_CFLAGS="$CFLAGS"
7603
7604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7605	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7606	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7607printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7608if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7609then :
7610  printf %s "(cached) " >&6
7611else $as_nop
7612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613/* end confdefs.h.  */
7614int i;
7615_ACEOF
7616if ac_fn_c_try_compile "$LINENO"
7617then :
7618  xorg_cv_cc_flag_unknown_warning_option=yes
7619else $as_nop
7620  xorg_cv_cc_flag_unknown_warning_option=no
7621fi
7622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7623fi
7624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7625printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7627	CFLAGS="$xorg_testset_save_CFLAGS"
7628fi
7629
7630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7633	fi
7634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7635	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7636printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7637if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7638then :
7639  printf %s "(cached) " >&6
7640else $as_nop
7641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642/* end confdefs.h.  */
7643int i;
7644_ACEOF
7645if ac_fn_c_try_compile "$LINENO"
7646then :
7647  xorg_cv_cc_flag_unused_command_line_argument=yes
7648else $as_nop
7649  xorg_cv_cc_flag_unused_command_line_argument=no
7650fi
7651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7652fi
7653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7654printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7655	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7656	CFLAGS="$xorg_testset_save_CFLAGS"
7657fi
7658
7659found="no"
7660
7661	if test $found = "no" ; then
7662		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664		fi
7665
7666		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7668		fi
7669
7670		CFLAGS="$CFLAGS -Werror=init-self"
7671
7672		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7673printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7674		cacheid=xorg_cv_cc_flag__Werror_init_self
7675		if eval test \${$cacheid+y}
7676then :
7677  printf %s "(cached) " >&6
7678else $as_nop
7679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680/* end confdefs.h.  */
7681int i;
7682int
7683main (void)
7684{
7685
7686  ;
7687  return 0;
7688}
7689_ACEOF
7690if ac_fn_c_try_link "$LINENO"
7691then :
7692  eval $cacheid=yes
7693else $as_nop
7694  eval $cacheid=no
7695fi
7696rm -f core conftest.err conftest.$ac_objext conftest.beam \
7697    conftest$ac_exeext conftest.$ac_ext
7698fi
7699
7700
7701		CFLAGS="$xorg_testset_save_CFLAGS"
7702
7703		eval supported=\$$cacheid
7704		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7705printf "%s\n" "$supported" >&6; }
7706		if test "$supported" = "yes" ; then
7707			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7708			found="yes"
7709		fi
7710	fi
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726xorg_testset_save_CFLAGS="$CFLAGS"
7727
7728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7731printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7732if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7733then :
7734  printf %s "(cached) " >&6
7735else $as_nop
7736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737/* end confdefs.h.  */
7738int i;
7739_ACEOF
7740if ac_fn_c_try_compile "$LINENO"
7741then :
7742  xorg_cv_cc_flag_unknown_warning_option=yes
7743else $as_nop
7744  xorg_cv_cc_flag_unknown_warning_option=no
7745fi
7746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7747fi
7748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7749printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7750	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7751	CFLAGS="$xorg_testset_save_CFLAGS"
7752fi
7753
7754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7755	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7756		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7757	fi
7758	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7759	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7760printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7761if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7762then :
7763  printf %s "(cached) " >&6
7764else $as_nop
7765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766/* end confdefs.h.  */
7767int i;
7768_ACEOF
7769if ac_fn_c_try_compile "$LINENO"
7770then :
7771  xorg_cv_cc_flag_unused_command_line_argument=yes
7772else $as_nop
7773  xorg_cv_cc_flag_unused_command_line_argument=no
7774fi
7775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7776fi
7777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7778printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7779	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7780	CFLAGS="$xorg_testset_save_CFLAGS"
7781fi
7782
7783found="no"
7784
7785	if test $found = "no" ; then
7786		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7787			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7788		fi
7789
7790		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7791			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7792		fi
7793
7794		CFLAGS="$CFLAGS -Werror=main"
7795
7796		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7797printf %s "checking if $CC supports -Werror=main... " >&6; }
7798		cacheid=xorg_cv_cc_flag__Werror_main
7799		if eval test \${$cacheid+y}
7800then :
7801  printf %s "(cached) " >&6
7802else $as_nop
7803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804/* end confdefs.h.  */
7805int i;
7806int
7807main (void)
7808{
7809
7810  ;
7811  return 0;
7812}
7813_ACEOF
7814if ac_fn_c_try_link "$LINENO"
7815then :
7816  eval $cacheid=yes
7817else $as_nop
7818  eval $cacheid=no
7819fi
7820rm -f core conftest.err conftest.$ac_objext conftest.beam \
7821    conftest$ac_exeext conftest.$ac_ext
7822fi
7823
7824
7825		CFLAGS="$xorg_testset_save_CFLAGS"
7826
7827		eval supported=\$$cacheid
7828		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7829printf "%s\n" "$supported" >&6; }
7830		if test "$supported" = "yes" ; then
7831			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7832			found="yes"
7833		fi
7834	fi
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850xorg_testset_save_CFLAGS="$CFLAGS"
7851
7852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7853	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7854	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7855printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7856if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7857then :
7858  printf %s "(cached) " >&6
7859else $as_nop
7860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861/* end confdefs.h.  */
7862int i;
7863_ACEOF
7864if ac_fn_c_try_compile "$LINENO"
7865then :
7866  xorg_cv_cc_flag_unknown_warning_option=yes
7867else $as_nop
7868  xorg_cv_cc_flag_unknown_warning_option=no
7869fi
7870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7871fi
7872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7873printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7875	CFLAGS="$xorg_testset_save_CFLAGS"
7876fi
7877
7878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7881	fi
7882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7883	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7884printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7885if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7886then :
7887  printf %s "(cached) " >&6
7888else $as_nop
7889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890/* end confdefs.h.  */
7891int i;
7892_ACEOF
7893if ac_fn_c_try_compile "$LINENO"
7894then :
7895  xorg_cv_cc_flag_unused_command_line_argument=yes
7896else $as_nop
7897  xorg_cv_cc_flag_unused_command_line_argument=no
7898fi
7899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7900fi
7901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7902printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7903	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7904	CFLAGS="$xorg_testset_save_CFLAGS"
7905fi
7906
7907found="no"
7908
7909	if test $found = "no" ; then
7910		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7911			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7912		fi
7913
7914		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7915			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7916		fi
7917
7918		CFLAGS="$CFLAGS -Werror=missing-braces"
7919
7920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7921printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7922		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7923		if eval test \${$cacheid+y}
7924then :
7925  printf %s "(cached) " >&6
7926else $as_nop
7927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928/* end confdefs.h.  */
7929int i;
7930int
7931main (void)
7932{
7933
7934  ;
7935  return 0;
7936}
7937_ACEOF
7938if ac_fn_c_try_link "$LINENO"
7939then :
7940  eval $cacheid=yes
7941else $as_nop
7942  eval $cacheid=no
7943fi
7944rm -f core conftest.err conftest.$ac_objext conftest.beam \
7945    conftest$ac_exeext conftest.$ac_ext
7946fi
7947
7948
7949		CFLAGS="$xorg_testset_save_CFLAGS"
7950
7951		eval supported=\$$cacheid
7952		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7953printf "%s\n" "$supported" >&6; }
7954		if test "$supported" = "yes" ; then
7955			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7956			found="yes"
7957		fi
7958	fi
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974xorg_testset_save_CFLAGS="$CFLAGS"
7975
7976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7977	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7979printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7980if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7981then :
7982  printf %s "(cached) " >&6
7983else $as_nop
7984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985/* end confdefs.h.  */
7986int i;
7987_ACEOF
7988if ac_fn_c_try_compile "$LINENO"
7989then :
7990  xorg_cv_cc_flag_unknown_warning_option=yes
7991else $as_nop
7992  xorg_cv_cc_flag_unknown_warning_option=no
7993fi
7994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7995fi
7996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7998	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7999	CFLAGS="$xorg_testset_save_CFLAGS"
8000fi
8001
8002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8003	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8004		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8005	fi
8006	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8007	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8009if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8010then :
8011  printf %s "(cached) " >&6
8012else $as_nop
8013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014/* end confdefs.h.  */
8015int i;
8016_ACEOF
8017if ac_fn_c_try_compile "$LINENO"
8018then :
8019  xorg_cv_cc_flag_unused_command_line_argument=yes
8020else $as_nop
8021  xorg_cv_cc_flag_unused_command_line_argument=no
8022fi
8023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8024fi
8025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8026printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8028	CFLAGS="$xorg_testset_save_CFLAGS"
8029fi
8030
8031found="no"
8032
8033	if test $found = "no" ; then
8034		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8036		fi
8037
8038		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8040		fi
8041
8042		CFLAGS="$CFLAGS -Werror=sequence-point"
8043
8044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8045printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8046		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8047		if eval test \${$cacheid+y}
8048then :
8049  printf %s "(cached) " >&6
8050else $as_nop
8051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052/* end confdefs.h.  */
8053int i;
8054int
8055main (void)
8056{
8057
8058  ;
8059  return 0;
8060}
8061_ACEOF
8062if ac_fn_c_try_link "$LINENO"
8063then :
8064  eval $cacheid=yes
8065else $as_nop
8066  eval $cacheid=no
8067fi
8068rm -f core conftest.err conftest.$ac_objext conftest.beam \
8069    conftest$ac_exeext conftest.$ac_ext
8070fi
8071
8072
8073		CFLAGS="$xorg_testset_save_CFLAGS"
8074
8075		eval supported=\$$cacheid
8076		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8077printf "%s\n" "$supported" >&6; }
8078		if test "$supported" = "yes" ; then
8079			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8080			found="yes"
8081		fi
8082	fi
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098xorg_testset_save_CFLAGS="$CFLAGS"
8099
8100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8101	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8103printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8104if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8105then :
8106  printf %s "(cached) " >&6
8107else $as_nop
8108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109/* end confdefs.h.  */
8110int i;
8111_ACEOF
8112if ac_fn_c_try_compile "$LINENO"
8113then :
8114  xorg_cv_cc_flag_unknown_warning_option=yes
8115else $as_nop
8116  xorg_cv_cc_flag_unknown_warning_option=no
8117fi
8118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8119fi
8120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8121printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8123	CFLAGS="$xorg_testset_save_CFLAGS"
8124fi
8125
8126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8129	fi
8130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8131	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8132printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8133if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8134then :
8135  printf %s "(cached) " >&6
8136else $as_nop
8137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138/* end confdefs.h.  */
8139int i;
8140_ACEOF
8141if ac_fn_c_try_compile "$LINENO"
8142then :
8143  xorg_cv_cc_flag_unused_command_line_argument=yes
8144else $as_nop
8145  xorg_cv_cc_flag_unused_command_line_argument=no
8146fi
8147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8148fi
8149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8152	CFLAGS="$xorg_testset_save_CFLAGS"
8153fi
8154
8155found="no"
8156
8157	if test $found = "no" ; then
8158		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8160		fi
8161
8162		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8164		fi
8165
8166		CFLAGS="$CFLAGS -Werror=return-type"
8167
8168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8169printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8170		cacheid=xorg_cv_cc_flag__Werror_return_type
8171		if eval test \${$cacheid+y}
8172then :
8173  printf %s "(cached) " >&6
8174else $as_nop
8175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176/* end confdefs.h.  */
8177int i;
8178int
8179main (void)
8180{
8181
8182  ;
8183  return 0;
8184}
8185_ACEOF
8186if ac_fn_c_try_link "$LINENO"
8187then :
8188  eval $cacheid=yes
8189else $as_nop
8190  eval $cacheid=no
8191fi
8192rm -f core conftest.err conftest.$ac_objext conftest.beam \
8193    conftest$ac_exeext conftest.$ac_ext
8194fi
8195
8196
8197		CFLAGS="$xorg_testset_save_CFLAGS"
8198
8199		eval supported=\$$cacheid
8200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8201printf "%s\n" "$supported" >&6; }
8202		if test "$supported" = "yes" ; then
8203			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8204			found="yes"
8205		fi
8206	fi
8207
8208	if test $found = "no" ; then
8209		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8211		fi
8212
8213		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8215		fi
8216
8217		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8218
8219		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8220printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8221		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8222		if eval test \${$cacheid+y}
8223then :
8224  printf %s "(cached) " >&6
8225else $as_nop
8226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227/* end confdefs.h.  */
8228int i;
8229int
8230main (void)
8231{
8232
8233  ;
8234  return 0;
8235}
8236_ACEOF
8237if ac_fn_c_try_link "$LINENO"
8238then :
8239  eval $cacheid=yes
8240else $as_nop
8241  eval $cacheid=no
8242fi
8243rm -f core conftest.err conftest.$ac_objext conftest.beam \
8244    conftest$ac_exeext conftest.$ac_ext
8245fi
8246
8247
8248		CFLAGS="$xorg_testset_save_CFLAGS"
8249
8250		eval supported=\$$cacheid
8251		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8252printf "%s\n" "$supported" >&6; }
8253		if test "$supported" = "yes" ; then
8254			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8255			found="yes"
8256		fi
8257	fi
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273xorg_testset_save_CFLAGS="$CFLAGS"
8274
8275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8276	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8277	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8278printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8279if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8280then :
8281  printf %s "(cached) " >&6
8282else $as_nop
8283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284/* end confdefs.h.  */
8285int i;
8286_ACEOF
8287if ac_fn_c_try_compile "$LINENO"
8288then :
8289  xorg_cv_cc_flag_unknown_warning_option=yes
8290else $as_nop
8291  xorg_cv_cc_flag_unknown_warning_option=no
8292fi
8293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8294fi
8295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8296printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8298	CFLAGS="$xorg_testset_save_CFLAGS"
8299fi
8300
8301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304	fi
8305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8306	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8307printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8308if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8309then :
8310  printf %s "(cached) " >&6
8311else $as_nop
8312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313/* end confdefs.h.  */
8314int i;
8315_ACEOF
8316if ac_fn_c_try_compile "$LINENO"
8317then :
8318  xorg_cv_cc_flag_unused_command_line_argument=yes
8319else $as_nop
8320  xorg_cv_cc_flag_unused_command_line_argument=no
8321fi
8322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8323fi
8324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8325printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8327	CFLAGS="$xorg_testset_save_CFLAGS"
8328fi
8329
8330found="no"
8331
8332	if test $found = "no" ; then
8333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8335		fi
8336
8337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8339		fi
8340
8341		CFLAGS="$CFLAGS -Werror=trigraphs"
8342
8343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8344printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8345		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8346		if eval test \${$cacheid+y}
8347then :
8348  printf %s "(cached) " >&6
8349else $as_nop
8350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351/* end confdefs.h.  */
8352int i;
8353int
8354main (void)
8355{
8356
8357  ;
8358  return 0;
8359}
8360_ACEOF
8361if ac_fn_c_try_link "$LINENO"
8362then :
8363  eval $cacheid=yes
8364else $as_nop
8365  eval $cacheid=no
8366fi
8367rm -f core conftest.err conftest.$ac_objext conftest.beam \
8368    conftest$ac_exeext conftest.$ac_ext
8369fi
8370
8371
8372		CFLAGS="$xorg_testset_save_CFLAGS"
8373
8374		eval supported=\$$cacheid
8375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8376printf "%s\n" "$supported" >&6; }
8377		if test "$supported" = "yes" ; then
8378			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8379			found="yes"
8380		fi
8381	fi
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397xorg_testset_save_CFLAGS="$CFLAGS"
8398
8399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8400	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8403if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8404then :
8405  printf %s "(cached) " >&6
8406else $as_nop
8407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408/* end confdefs.h.  */
8409int i;
8410_ACEOF
8411if ac_fn_c_try_compile "$LINENO"
8412then :
8413  xorg_cv_cc_flag_unknown_warning_option=yes
8414else $as_nop
8415  xorg_cv_cc_flag_unknown_warning_option=no
8416fi
8417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8418fi
8419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8420printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8421	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8422	CFLAGS="$xorg_testset_save_CFLAGS"
8423fi
8424
8425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8426	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8427		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8428	fi
8429	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8430	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8431printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8432if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8433then :
8434  printf %s "(cached) " >&6
8435else $as_nop
8436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437/* end confdefs.h.  */
8438int i;
8439_ACEOF
8440if ac_fn_c_try_compile "$LINENO"
8441then :
8442  xorg_cv_cc_flag_unused_command_line_argument=yes
8443else $as_nop
8444  xorg_cv_cc_flag_unused_command_line_argument=no
8445fi
8446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8447fi
8448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8450	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8451	CFLAGS="$xorg_testset_save_CFLAGS"
8452fi
8453
8454found="no"
8455
8456	if test $found = "no" ; then
8457		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8459		fi
8460
8461		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8463		fi
8464
8465		CFLAGS="$CFLAGS -Werror=array-bounds"
8466
8467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8468printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8469		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8470		if eval test \${$cacheid+y}
8471then :
8472  printf %s "(cached) " >&6
8473else $as_nop
8474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475/* end confdefs.h.  */
8476int i;
8477int
8478main (void)
8479{
8480
8481  ;
8482  return 0;
8483}
8484_ACEOF
8485if ac_fn_c_try_link "$LINENO"
8486then :
8487  eval $cacheid=yes
8488else $as_nop
8489  eval $cacheid=no
8490fi
8491rm -f core conftest.err conftest.$ac_objext conftest.beam \
8492    conftest$ac_exeext conftest.$ac_ext
8493fi
8494
8495
8496		CFLAGS="$xorg_testset_save_CFLAGS"
8497
8498		eval supported=\$$cacheid
8499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8500printf "%s\n" "$supported" >&6; }
8501		if test "$supported" = "yes" ; then
8502			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8503			found="yes"
8504		fi
8505	fi
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521xorg_testset_save_CFLAGS="$CFLAGS"
8522
8523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8526printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8527if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8528then :
8529  printf %s "(cached) " >&6
8530else $as_nop
8531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532/* end confdefs.h.  */
8533int i;
8534_ACEOF
8535if ac_fn_c_try_compile "$LINENO"
8536then :
8537  xorg_cv_cc_flag_unknown_warning_option=yes
8538else $as_nop
8539  xorg_cv_cc_flag_unknown_warning_option=no
8540fi
8541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8542fi
8543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8545	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8546	CFLAGS="$xorg_testset_save_CFLAGS"
8547fi
8548
8549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8550	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8551		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8552	fi
8553	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8554	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8556if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8557then :
8558  printf %s "(cached) " >&6
8559else $as_nop
8560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561/* end confdefs.h.  */
8562int i;
8563_ACEOF
8564if ac_fn_c_try_compile "$LINENO"
8565then :
8566  xorg_cv_cc_flag_unused_command_line_argument=yes
8567else $as_nop
8568  xorg_cv_cc_flag_unused_command_line_argument=no
8569fi
8570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8571fi
8572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8574	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8575	CFLAGS="$xorg_testset_save_CFLAGS"
8576fi
8577
8578found="no"
8579
8580	if test $found = "no" ; then
8581		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8583		fi
8584
8585		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8587		fi
8588
8589		CFLAGS="$CFLAGS -Werror=write-strings"
8590
8591		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8592printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8593		cacheid=xorg_cv_cc_flag__Werror_write_strings
8594		if eval test \${$cacheid+y}
8595then :
8596  printf %s "(cached) " >&6
8597else $as_nop
8598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599/* end confdefs.h.  */
8600int i;
8601int
8602main (void)
8603{
8604
8605  ;
8606  return 0;
8607}
8608_ACEOF
8609if ac_fn_c_try_link "$LINENO"
8610then :
8611  eval $cacheid=yes
8612else $as_nop
8613  eval $cacheid=no
8614fi
8615rm -f core conftest.err conftest.$ac_objext conftest.beam \
8616    conftest$ac_exeext conftest.$ac_ext
8617fi
8618
8619
8620		CFLAGS="$xorg_testset_save_CFLAGS"
8621
8622		eval supported=\$$cacheid
8623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8624printf "%s\n" "$supported" >&6; }
8625		if test "$supported" = "yes" ; then
8626			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8627			found="yes"
8628		fi
8629	fi
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645xorg_testset_save_CFLAGS="$CFLAGS"
8646
8647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8651if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8652then :
8653  printf %s "(cached) " >&6
8654else $as_nop
8655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656/* end confdefs.h.  */
8657int i;
8658_ACEOF
8659if ac_fn_c_try_compile "$LINENO"
8660then :
8661  xorg_cv_cc_flag_unknown_warning_option=yes
8662else $as_nop
8663  xorg_cv_cc_flag_unknown_warning_option=no
8664fi
8665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8666fi
8667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8670	CFLAGS="$xorg_testset_save_CFLAGS"
8671fi
8672
8673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8676	fi
8677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8678	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8680if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8681then :
8682  printf %s "(cached) " >&6
8683else $as_nop
8684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685/* end confdefs.h.  */
8686int i;
8687_ACEOF
8688if ac_fn_c_try_compile "$LINENO"
8689then :
8690  xorg_cv_cc_flag_unused_command_line_argument=yes
8691else $as_nop
8692  xorg_cv_cc_flag_unused_command_line_argument=no
8693fi
8694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8695fi
8696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8697printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8699	CFLAGS="$xorg_testset_save_CFLAGS"
8700fi
8701
8702found="no"
8703
8704	if test $found = "no" ; then
8705		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8707		fi
8708
8709		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8711		fi
8712
8713		CFLAGS="$CFLAGS -Werror=address"
8714
8715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8716printf %s "checking if $CC supports -Werror=address... " >&6; }
8717		cacheid=xorg_cv_cc_flag__Werror_address
8718		if eval test \${$cacheid+y}
8719then :
8720  printf %s "(cached) " >&6
8721else $as_nop
8722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723/* end confdefs.h.  */
8724int i;
8725int
8726main (void)
8727{
8728
8729  ;
8730  return 0;
8731}
8732_ACEOF
8733if ac_fn_c_try_link "$LINENO"
8734then :
8735  eval $cacheid=yes
8736else $as_nop
8737  eval $cacheid=no
8738fi
8739rm -f core conftest.err conftest.$ac_objext conftest.beam \
8740    conftest$ac_exeext conftest.$ac_ext
8741fi
8742
8743
8744		CFLAGS="$xorg_testset_save_CFLAGS"
8745
8746		eval supported=\$$cacheid
8747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8748printf "%s\n" "$supported" >&6; }
8749		if test "$supported" = "yes" ; then
8750			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8751			found="yes"
8752		fi
8753	fi
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769xorg_testset_save_CFLAGS="$CFLAGS"
8770
8771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8772	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8774printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8775if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8776then :
8777  printf %s "(cached) " >&6
8778else $as_nop
8779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780/* end confdefs.h.  */
8781int i;
8782_ACEOF
8783if ac_fn_c_try_compile "$LINENO"
8784then :
8785  xorg_cv_cc_flag_unknown_warning_option=yes
8786else $as_nop
8787  xorg_cv_cc_flag_unknown_warning_option=no
8788fi
8789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8790fi
8791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8792printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8793	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8794	CFLAGS="$xorg_testset_save_CFLAGS"
8795fi
8796
8797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8798	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8799		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8800	fi
8801	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8802	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8803printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8804if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8805then :
8806  printf %s "(cached) " >&6
8807else $as_nop
8808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809/* end confdefs.h.  */
8810int i;
8811_ACEOF
8812if ac_fn_c_try_compile "$LINENO"
8813then :
8814  xorg_cv_cc_flag_unused_command_line_argument=yes
8815else $as_nop
8816  xorg_cv_cc_flag_unused_command_line_argument=no
8817fi
8818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8819fi
8820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8821printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8823	CFLAGS="$xorg_testset_save_CFLAGS"
8824fi
8825
8826found="no"
8827
8828	if test $found = "no" ; then
8829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8831		fi
8832
8833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8835		fi
8836
8837		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8838
8839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8840printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8841		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8842		if eval test \${$cacheid+y}
8843then :
8844  printf %s "(cached) " >&6
8845else $as_nop
8846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847/* end confdefs.h.  */
8848int i;
8849int
8850main (void)
8851{
8852
8853  ;
8854  return 0;
8855}
8856_ACEOF
8857if ac_fn_c_try_link "$LINENO"
8858then :
8859  eval $cacheid=yes
8860else $as_nop
8861  eval $cacheid=no
8862fi
8863rm -f core conftest.err conftest.$ac_objext conftest.beam \
8864    conftest$ac_exeext conftest.$ac_ext
8865fi
8866
8867
8868		CFLAGS="$xorg_testset_save_CFLAGS"
8869
8870		eval supported=\$$cacheid
8871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8872printf "%s\n" "$supported" >&6; }
8873		if test "$supported" = "yes" ; then
8874			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8875			found="yes"
8876		fi
8877	fi
8878
8879	if test $found = "no" ; then
8880		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8881			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8882		fi
8883
8884		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8885			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8886		fi
8887
8888		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8889
8890		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8891printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8892		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8893		if eval test \${$cacheid+y}
8894then :
8895  printf %s "(cached) " >&6
8896else $as_nop
8897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898/* end confdefs.h.  */
8899int i;
8900int
8901main (void)
8902{
8903
8904  ;
8905  return 0;
8906}
8907_ACEOF
8908if ac_fn_c_try_link "$LINENO"
8909then :
8910  eval $cacheid=yes
8911else $as_nop
8912  eval $cacheid=no
8913fi
8914rm -f core conftest.err conftest.$ac_objext conftest.beam \
8915    conftest$ac_exeext conftest.$ac_ext
8916fi
8917
8918
8919		CFLAGS="$xorg_testset_save_CFLAGS"
8920
8921		eval supported=\$$cacheid
8922		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8923printf "%s\n" "$supported" >&6; }
8924		if test "$supported" = "yes" ; then
8925			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8926			found="yes"
8927		fi
8928	fi
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944xorg_testset_save_CFLAGS="$CFLAGS"
8945
8946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8947	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8949printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8950if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8951then :
8952  printf %s "(cached) " >&6
8953else $as_nop
8954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955/* end confdefs.h.  */
8956int i;
8957_ACEOF
8958if ac_fn_c_try_compile "$LINENO"
8959then :
8960  xorg_cv_cc_flag_unknown_warning_option=yes
8961else $as_nop
8962  xorg_cv_cc_flag_unknown_warning_option=no
8963fi
8964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8965fi
8966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8967printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8968	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8969	CFLAGS="$xorg_testset_save_CFLAGS"
8970fi
8971
8972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8973	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8974		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8975	fi
8976	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8978printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8979if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8980then :
8981  printf %s "(cached) " >&6
8982else $as_nop
8983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984/* end confdefs.h.  */
8985int i;
8986_ACEOF
8987if ac_fn_c_try_compile "$LINENO"
8988then :
8989  xorg_cv_cc_flag_unused_command_line_argument=yes
8990else $as_nop
8991  xorg_cv_cc_flag_unused_command_line_argument=no
8992fi
8993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8994fi
8995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8996printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8997	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8998	CFLAGS="$xorg_testset_save_CFLAGS"
8999fi
9000
9001found="no"
9002
9003	if test $found = "no" ; then
9004		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9005			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9006		fi
9007
9008		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9009			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9010		fi
9011
9012		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9013
9014		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9015printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9016		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9017		if eval test \${$cacheid+y}
9018then :
9019  printf %s "(cached) " >&6
9020else $as_nop
9021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022/* end confdefs.h.  */
9023int i;
9024int
9025main (void)
9026{
9027
9028  ;
9029  return 0;
9030}
9031_ACEOF
9032if ac_fn_c_try_link "$LINENO"
9033then :
9034  eval $cacheid=yes
9035else $as_nop
9036  eval $cacheid=no
9037fi
9038rm -f core conftest.err conftest.$ac_objext conftest.beam \
9039    conftest$ac_exeext conftest.$ac_ext
9040fi
9041
9042
9043		CFLAGS="$xorg_testset_save_CFLAGS"
9044
9045		eval supported=\$$cacheid
9046		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9047printf "%s\n" "$supported" >&6; }
9048		if test "$supported" = "yes" ; then
9049			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9050			found="yes"
9051		fi
9052	fi
9053
9054 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9055else
9056{ 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
9057printf "%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;}
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071xorg_testset_save_CFLAGS="$CFLAGS"
9072
9073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9074	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9076printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9077if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9078then :
9079  printf %s "(cached) " >&6
9080else $as_nop
9081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082/* end confdefs.h.  */
9083int i;
9084_ACEOF
9085if ac_fn_c_try_compile "$LINENO"
9086then :
9087  xorg_cv_cc_flag_unknown_warning_option=yes
9088else $as_nop
9089  xorg_cv_cc_flag_unknown_warning_option=no
9090fi
9091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9092fi
9093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9094printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9095	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9096	CFLAGS="$xorg_testset_save_CFLAGS"
9097fi
9098
9099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9100	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9101		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9102	fi
9103	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9104	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9105printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9106if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9107then :
9108  printf %s "(cached) " >&6
9109else $as_nop
9110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111/* end confdefs.h.  */
9112int i;
9113_ACEOF
9114if ac_fn_c_try_compile "$LINENO"
9115then :
9116  xorg_cv_cc_flag_unused_command_line_argument=yes
9117else $as_nop
9118  xorg_cv_cc_flag_unused_command_line_argument=no
9119fi
9120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9121fi
9122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9123printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9124	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9125	CFLAGS="$xorg_testset_save_CFLAGS"
9126fi
9127
9128found="no"
9129
9130	if test $found = "no" ; then
9131		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9132			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9133		fi
9134
9135		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9136			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9137		fi
9138
9139		CFLAGS="$CFLAGS -Wimplicit"
9140
9141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9142printf %s "checking if $CC supports -Wimplicit... " >&6; }
9143		cacheid=xorg_cv_cc_flag__Wimplicit
9144		if eval test \${$cacheid+y}
9145then :
9146  printf %s "(cached) " >&6
9147else $as_nop
9148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149/* end confdefs.h.  */
9150int i;
9151int
9152main (void)
9153{
9154
9155  ;
9156  return 0;
9157}
9158_ACEOF
9159if ac_fn_c_try_link "$LINENO"
9160then :
9161  eval $cacheid=yes
9162else $as_nop
9163  eval $cacheid=no
9164fi
9165rm -f core conftest.err conftest.$ac_objext conftest.beam \
9166    conftest$ac_exeext conftest.$ac_ext
9167fi
9168
9169
9170		CFLAGS="$xorg_testset_save_CFLAGS"
9171
9172		eval supported=\$$cacheid
9173		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9174printf "%s\n" "$supported" >&6; }
9175		if test "$supported" = "yes" ; then
9176			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9177			found="yes"
9178		fi
9179	fi
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195xorg_testset_save_CFLAGS="$CFLAGS"
9196
9197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9198	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9199	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9200printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9201if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9202then :
9203  printf %s "(cached) " >&6
9204else $as_nop
9205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206/* end confdefs.h.  */
9207int i;
9208_ACEOF
9209if ac_fn_c_try_compile "$LINENO"
9210then :
9211  xorg_cv_cc_flag_unknown_warning_option=yes
9212else $as_nop
9213  xorg_cv_cc_flag_unknown_warning_option=no
9214fi
9215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9216fi
9217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9218printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9219	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9220	CFLAGS="$xorg_testset_save_CFLAGS"
9221fi
9222
9223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9224	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9225		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226	fi
9227	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9229printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9230if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9231then :
9232  printf %s "(cached) " >&6
9233else $as_nop
9234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235/* end confdefs.h.  */
9236int i;
9237_ACEOF
9238if ac_fn_c_try_compile "$LINENO"
9239then :
9240  xorg_cv_cc_flag_unused_command_line_argument=yes
9241else $as_nop
9242  xorg_cv_cc_flag_unused_command_line_argument=no
9243fi
9244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9245fi
9246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9247printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9249	CFLAGS="$xorg_testset_save_CFLAGS"
9250fi
9251
9252found="no"
9253
9254	if test $found = "no" ; then
9255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9257		fi
9258
9259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261		fi
9262
9263		CFLAGS="$CFLAGS -Wnonnull"
9264
9265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9266printf %s "checking if $CC supports -Wnonnull... " >&6; }
9267		cacheid=xorg_cv_cc_flag__Wnonnull
9268		if eval test \${$cacheid+y}
9269then :
9270  printf %s "(cached) " >&6
9271else $as_nop
9272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273/* end confdefs.h.  */
9274int i;
9275int
9276main (void)
9277{
9278
9279  ;
9280  return 0;
9281}
9282_ACEOF
9283if ac_fn_c_try_link "$LINENO"
9284then :
9285  eval $cacheid=yes
9286else $as_nop
9287  eval $cacheid=no
9288fi
9289rm -f core conftest.err conftest.$ac_objext conftest.beam \
9290    conftest$ac_exeext conftest.$ac_ext
9291fi
9292
9293
9294		CFLAGS="$xorg_testset_save_CFLAGS"
9295
9296		eval supported=\$$cacheid
9297		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9298printf "%s\n" "$supported" >&6; }
9299		if test "$supported" = "yes" ; then
9300			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9301			found="yes"
9302		fi
9303	fi
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319xorg_testset_save_CFLAGS="$CFLAGS"
9320
9321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9324printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9325if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9326then :
9327  printf %s "(cached) " >&6
9328else $as_nop
9329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330/* end confdefs.h.  */
9331int i;
9332_ACEOF
9333if ac_fn_c_try_compile "$LINENO"
9334then :
9335  xorg_cv_cc_flag_unknown_warning_option=yes
9336else $as_nop
9337  xorg_cv_cc_flag_unknown_warning_option=no
9338fi
9339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9340fi
9341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9342printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9344	CFLAGS="$xorg_testset_save_CFLAGS"
9345fi
9346
9347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9350	fi
9351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9352	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9353printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9354if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9355then :
9356  printf %s "(cached) " >&6
9357else $as_nop
9358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359/* end confdefs.h.  */
9360int i;
9361_ACEOF
9362if ac_fn_c_try_compile "$LINENO"
9363then :
9364  xorg_cv_cc_flag_unused_command_line_argument=yes
9365else $as_nop
9366  xorg_cv_cc_flag_unused_command_line_argument=no
9367fi
9368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9369fi
9370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9371printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9373	CFLAGS="$xorg_testset_save_CFLAGS"
9374fi
9375
9376found="no"
9377
9378	if test $found = "no" ; then
9379		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9381		fi
9382
9383		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9385		fi
9386
9387		CFLAGS="$CFLAGS -Winit-self"
9388
9389		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9390printf %s "checking if $CC supports -Winit-self... " >&6; }
9391		cacheid=xorg_cv_cc_flag__Winit_self
9392		if eval test \${$cacheid+y}
9393then :
9394  printf %s "(cached) " >&6
9395else $as_nop
9396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397/* end confdefs.h.  */
9398int i;
9399int
9400main (void)
9401{
9402
9403  ;
9404  return 0;
9405}
9406_ACEOF
9407if ac_fn_c_try_link "$LINENO"
9408then :
9409  eval $cacheid=yes
9410else $as_nop
9411  eval $cacheid=no
9412fi
9413rm -f core conftest.err conftest.$ac_objext conftest.beam \
9414    conftest$ac_exeext conftest.$ac_ext
9415fi
9416
9417
9418		CFLAGS="$xorg_testset_save_CFLAGS"
9419
9420		eval supported=\$$cacheid
9421		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9422printf "%s\n" "$supported" >&6; }
9423		if test "$supported" = "yes" ; then
9424			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9425			found="yes"
9426		fi
9427	fi
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443xorg_testset_save_CFLAGS="$CFLAGS"
9444
9445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9446	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9447	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9448printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9449if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9450then :
9451  printf %s "(cached) " >&6
9452else $as_nop
9453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454/* end confdefs.h.  */
9455int i;
9456_ACEOF
9457if ac_fn_c_try_compile "$LINENO"
9458then :
9459  xorg_cv_cc_flag_unknown_warning_option=yes
9460else $as_nop
9461  xorg_cv_cc_flag_unknown_warning_option=no
9462fi
9463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9464fi
9465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9466printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9468	CFLAGS="$xorg_testset_save_CFLAGS"
9469fi
9470
9471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9474	fi
9475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9476	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9477printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9478if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9479then :
9480  printf %s "(cached) " >&6
9481else $as_nop
9482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483/* end confdefs.h.  */
9484int i;
9485_ACEOF
9486if ac_fn_c_try_compile "$LINENO"
9487then :
9488  xorg_cv_cc_flag_unused_command_line_argument=yes
9489else $as_nop
9490  xorg_cv_cc_flag_unused_command_line_argument=no
9491fi
9492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9493fi
9494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9495printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9496	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9497	CFLAGS="$xorg_testset_save_CFLAGS"
9498fi
9499
9500found="no"
9501
9502	if test $found = "no" ; then
9503		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9505		fi
9506
9507		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9509		fi
9510
9511		CFLAGS="$CFLAGS -Wmain"
9512
9513		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9514printf %s "checking if $CC supports -Wmain... " >&6; }
9515		cacheid=xorg_cv_cc_flag__Wmain
9516		if eval test \${$cacheid+y}
9517then :
9518  printf %s "(cached) " >&6
9519else $as_nop
9520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521/* end confdefs.h.  */
9522int i;
9523int
9524main (void)
9525{
9526
9527  ;
9528  return 0;
9529}
9530_ACEOF
9531if ac_fn_c_try_link "$LINENO"
9532then :
9533  eval $cacheid=yes
9534else $as_nop
9535  eval $cacheid=no
9536fi
9537rm -f core conftest.err conftest.$ac_objext conftest.beam \
9538    conftest$ac_exeext conftest.$ac_ext
9539fi
9540
9541
9542		CFLAGS="$xorg_testset_save_CFLAGS"
9543
9544		eval supported=\$$cacheid
9545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9546printf "%s\n" "$supported" >&6; }
9547		if test "$supported" = "yes" ; then
9548			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9549			found="yes"
9550		fi
9551	fi
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567xorg_testset_save_CFLAGS="$CFLAGS"
9568
9569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9570	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9571	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9572printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9573if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9574then :
9575  printf %s "(cached) " >&6
9576else $as_nop
9577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579int i;
9580_ACEOF
9581if ac_fn_c_try_compile "$LINENO"
9582then :
9583  xorg_cv_cc_flag_unknown_warning_option=yes
9584else $as_nop
9585  xorg_cv_cc_flag_unknown_warning_option=no
9586fi
9587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9588fi
9589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9590printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9591	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9592	CFLAGS="$xorg_testset_save_CFLAGS"
9593fi
9594
9595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9596	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9597		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9598	fi
9599	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9601printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9602if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9603then :
9604  printf %s "(cached) " >&6
9605else $as_nop
9606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607/* end confdefs.h.  */
9608int i;
9609_ACEOF
9610if ac_fn_c_try_compile "$LINENO"
9611then :
9612  xorg_cv_cc_flag_unused_command_line_argument=yes
9613else $as_nop
9614  xorg_cv_cc_flag_unused_command_line_argument=no
9615fi
9616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9617fi
9618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9619printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9620	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9621	CFLAGS="$xorg_testset_save_CFLAGS"
9622fi
9623
9624found="no"
9625
9626	if test $found = "no" ; then
9627		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9628			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9629		fi
9630
9631		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9632			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9633		fi
9634
9635		CFLAGS="$CFLAGS -Wmissing-braces"
9636
9637		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9638printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9639		cacheid=xorg_cv_cc_flag__Wmissing_braces
9640		if eval test \${$cacheid+y}
9641then :
9642  printf %s "(cached) " >&6
9643else $as_nop
9644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645/* end confdefs.h.  */
9646int i;
9647int
9648main (void)
9649{
9650
9651  ;
9652  return 0;
9653}
9654_ACEOF
9655if ac_fn_c_try_link "$LINENO"
9656then :
9657  eval $cacheid=yes
9658else $as_nop
9659  eval $cacheid=no
9660fi
9661rm -f core conftest.err conftest.$ac_objext conftest.beam \
9662    conftest$ac_exeext conftest.$ac_ext
9663fi
9664
9665
9666		CFLAGS="$xorg_testset_save_CFLAGS"
9667
9668		eval supported=\$$cacheid
9669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9670printf "%s\n" "$supported" >&6; }
9671		if test "$supported" = "yes" ; then
9672			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9673			found="yes"
9674		fi
9675	fi
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691xorg_testset_save_CFLAGS="$CFLAGS"
9692
9693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9694	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9697if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9698then :
9699  printf %s "(cached) " >&6
9700else $as_nop
9701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702/* end confdefs.h.  */
9703int i;
9704_ACEOF
9705if ac_fn_c_try_compile "$LINENO"
9706then :
9707  xorg_cv_cc_flag_unknown_warning_option=yes
9708else $as_nop
9709  xorg_cv_cc_flag_unknown_warning_option=no
9710fi
9711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9712fi
9713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9714printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9715	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9716	CFLAGS="$xorg_testset_save_CFLAGS"
9717fi
9718
9719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9720	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9721		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722	fi
9723	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9724	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9725printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9726if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9727then :
9728  printf %s "(cached) " >&6
9729else $as_nop
9730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731/* end confdefs.h.  */
9732int i;
9733_ACEOF
9734if ac_fn_c_try_compile "$LINENO"
9735then :
9736  xorg_cv_cc_flag_unused_command_line_argument=yes
9737else $as_nop
9738  xorg_cv_cc_flag_unused_command_line_argument=no
9739fi
9740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9741fi
9742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9743printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9744	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9745	CFLAGS="$xorg_testset_save_CFLAGS"
9746fi
9747
9748found="no"
9749
9750	if test $found = "no" ; then
9751		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9753		fi
9754
9755		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9757		fi
9758
9759		CFLAGS="$CFLAGS -Wsequence-point"
9760
9761		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9762printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9763		cacheid=xorg_cv_cc_flag__Wsequence_point
9764		if eval test \${$cacheid+y}
9765then :
9766  printf %s "(cached) " >&6
9767else $as_nop
9768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769/* end confdefs.h.  */
9770int i;
9771int
9772main (void)
9773{
9774
9775  ;
9776  return 0;
9777}
9778_ACEOF
9779if ac_fn_c_try_link "$LINENO"
9780then :
9781  eval $cacheid=yes
9782else $as_nop
9783  eval $cacheid=no
9784fi
9785rm -f core conftest.err conftest.$ac_objext conftest.beam \
9786    conftest$ac_exeext conftest.$ac_ext
9787fi
9788
9789
9790		CFLAGS="$xorg_testset_save_CFLAGS"
9791
9792		eval supported=\$$cacheid
9793		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9794printf "%s\n" "$supported" >&6; }
9795		if test "$supported" = "yes" ; then
9796			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9797			found="yes"
9798		fi
9799	fi
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815xorg_testset_save_CFLAGS="$CFLAGS"
9816
9817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9818	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9819	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9820printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9821if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9822then :
9823  printf %s "(cached) " >&6
9824else $as_nop
9825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826/* end confdefs.h.  */
9827int i;
9828_ACEOF
9829if ac_fn_c_try_compile "$LINENO"
9830then :
9831  xorg_cv_cc_flag_unknown_warning_option=yes
9832else $as_nop
9833  xorg_cv_cc_flag_unknown_warning_option=no
9834fi
9835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9836fi
9837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9838printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9840	CFLAGS="$xorg_testset_save_CFLAGS"
9841fi
9842
9843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9846	fi
9847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9848	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9849printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9850if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9851then :
9852  printf %s "(cached) " >&6
9853else $as_nop
9854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855/* end confdefs.h.  */
9856int i;
9857_ACEOF
9858if ac_fn_c_try_compile "$LINENO"
9859then :
9860  xorg_cv_cc_flag_unused_command_line_argument=yes
9861else $as_nop
9862  xorg_cv_cc_flag_unused_command_line_argument=no
9863fi
9864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9865fi
9866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9867printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9868	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9869	CFLAGS="$xorg_testset_save_CFLAGS"
9870fi
9871
9872found="no"
9873
9874	if test $found = "no" ; then
9875		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9876			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9877		fi
9878
9879		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9880			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9881		fi
9882
9883		CFLAGS="$CFLAGS -Wreturn-type"
9884
9885		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9886printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9887		cacheid=xorg_cv_cc_flag__Wreturn_type
9888		if eval test \${$cacheid+y}
9889then :
9890  printf %s "(cached) " >&6
9891else $as_nop
9892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893/* end confdefs.h.  */
9894int i;
9895int
9896main (void)
9897{
9898
9899  ;
9900  return 0;
9901}
9902_ACEOF
9903if ac_fn_c_try_link "$LINENO"
9904then :
9905  eval $cacheid=yes
9906else $as_nop
9907  eval $cacheid=no
9908fi
9909rm -f core conftest.err conftest.$ac_objext conftest.beam \
9910    conftest$ac_exeext conftest.$ac_ext
9911fi
9912
9913
9914		CFLAGS="$xorg_testset_save_CFLAGS"
9915
9916		eval supported=\$$cacheid
9917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9918printf "%s\n" "$supported" >&6; }
9919		if test "$supported" = "yes" ; then
9920			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9921			found="yes"
9922		fi
9923	fi
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939xorg_testset_save_CFLAGS="$CFLAGS"
9940
9941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9942	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9944printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9945if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9946then :
9947  printf %s "(cached) " >&6
9948else $as_nop
9949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h.  */
9951int i;
9952_ACEOF
9953if ac_fn_c_try_compile "$LINENO"
9954then :
9955  xorg_cv_cc_flag_unknown_warning_option=yes
9956else $as_nop
9957  xorg_cv_cc_flag_unknown_warning_option=no
9958fi
9959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9960fi
9961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9962printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9964	CFLAGS="$xorg_testset_save_CFLAGS"
9965fi
9966
9967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9970	fi
9971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9972	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9973printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9974if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9975then :
9976  printf %s "(cached) " >&6
9977else $as_nop
9978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979/* end confdefs.h.  */
9980int i;
9981_ACEOF
9982if ac_fn_c_try_compile "$LINENO"
9983then :
9984  xorg_cv_cc_flag_unused_command_line_argument=yes
9985else $as_nop
9986  xorg_cv_cc_flag_unused_command_line_argument=no
9987fi
9988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9989fi
9990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9991printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9992	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9993	CFLAGS="$xorg_testset_save_CFLAGS"
9994fi
9995
9996found="no"
9997
9998	if test $found = "no" ; then
9999		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10000			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10001		fi
10002
10003		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10004			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10005		fi
10006
10007		CFLAGS="$CFLAGS -Wtrigraphs"
10008
10009		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10010printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10011		cacheid=xorg_cv_cc_flag__Wtrigraphs
10012		if eval test \${$cacheid+y}
10013then :
10014  printf %s "(cached) " >&6
10015else $as_nop
10016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017/* end confdefs.h.  */
10018int i;
10019int
10020main (void)
10021{
10022
10023  ;
10024  return 0;
10025}
10026_ACEOF
10027if ac_fn_c_try_link "$LINENO"
10028then :
10029  eval $cacheid=yes
10030else $as_nop
10031  eval $cacheid=no
10032fi
10033rm -f core conftest.err conftest.$ac_objext conftest.beam \
10034    conftest$ac_exeext conftest.$ac_ext
10035fi
10036
10037
10038		CFLAGS="$xorg_testset_save_CFLAGS"
10039
10040		eval supported=\$$cacheid
10041		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10042printf "%s\n" "$supported" >&6; }
10043		if test "$supported" = "yes" ; then
10044			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10045			found="yes"
10046		fi
10047	fi
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063xorg_testset_save_CFLAGS="$CFLAGS"
10064
10065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10066	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10068printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10069if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10070then :
10071  printf %s "(cached) " >&6
10072else $as_nop
10073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074/* end confdefs.h.  */
10075int i;
10076_ACEOF
10077if ac_fn_c_try_compile "$LINENO"
10078then :
10079  xorg_cv_cc_flag_unknown_warning_option=yes
10080else $as_nop
10081  xorg_cv_cc_flag_unknown_warning_option=no
10082fi
10083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10084fi
10085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10086printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10088	CFLAGS="$xorg_testset_save_CFLAGS"
10089fi
10090
10091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10094	fi
10095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10096	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10097printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10098if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10099then :
10100  printf %s "(cached) " >&6
10101else $as_nop
10102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103/* end confdefs.h.  */
10104int i;
10105_ACEOF
10106if ac_fn_c_try_compile "$LINENO"
10107then :
10108  xorg_cv_cc_flag_unused_command_line_argument=yes
10109else $as_nop
10110  xorg_cv_cc_flag_unused_command_line_argument=no
10111fi
10112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10113fi
10114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10115printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10116	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10117	CFLAGS="$xorg_testset_save_CFLAGS"
10118fi
10119
10120found="no"
10121
10122	if test $found = "no" ; then
10123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10125		fi
10126
10127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10129		fi
10130
10131		CFLAGS="$CFLAGS -Warray-bounds"
10132
10133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10134printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10135		cacheid=xorg_cv_cc_flag__Warray_bounds
10136		if eval test \${$cacheid+y}
10137then :
10138  printf %s "(cached) " >&6
10139else $as_nop
10140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141/* end confdefs.h.  */
10142int i;
10143int
10144main (void)
10145{
10146
10147  ;
10148  return 0;
10149}
10150_ACEOF
10151if ac_fn_c_try_link "$LINENO"
10152then :
10153  eval $cacheid=yes
10154else $as_nop
10155  eval $cacheid=no
10156fi
10157rm -f core conftest.err conftest.$ac_objext conftest.beam \
10158    conftest$ac_exeext conftest.$ac_ext
10159fi
10160
10161
10162		CFLAGS="$xorg_testset_save_CFLAGS"
10163
10164		eval supported=\$$cacheid
10165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10166printf "%s\n" "$supported" >&6; }
10167		if test "$supported" = "yes" ; then
10168			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10169			found="yes"
10170		fi
10171	fi
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187xorg_testset_save_CFLAGS="$CFLAGS"
10188
10189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10192printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10193if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10194then :
10195  printf %s "(cached) " >&6
10196else $as_nop
10197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198/* end confdefs.h.  */
10199int i;
10200_ACEOF
10201if ac_fn_c_try_compile "$LINENO"
10202then :
10203  xorg_cv_cc_flag_unknown_warning_option=yes
10204else $as_nop
10205  xorg_cv_cc_flag_unknown_warning_option=no
10206fi
10207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10208fi
10209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10210printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10212	CFLAGS="$xorg_testset_save_CFLAGS"
10213fi
10214
10215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10218	fi
10219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10221printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10222if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10223then :
10224  printf %s "(cached) " >&6
10225else $as_nop
10226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227/* end confdefs.h.  */
10228int i;
10229_ACEOF
10230if ac_fn_c_try_compile "$LINENO"
10231then :
10232  xorg_cv_cc_flag_unused_command_line_argument=yes
10233else $as_nop
10234  xorg_cv_cc_flag_unused_command_line_argument=no
10235fi
10236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10237fi
10238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10239printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10241	CFLAGS="$xorg_testset_save_CFLAGS"
10242fi
10243
10244found="no"
10245
10246	if test $found = "no" ; then
10247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10249		fi
10250
10251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10253		fi
10254
10255		CFLAGS="$CFLAGS -Wwrite-strings"
10256
10257		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10258printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10259		cacheid=xorg_cv_cc_flag__Wwrite_strings
10260		if eval test \${$cacheid+y}
10261then :
10262  printf %s "(cached) " >&6
10263else $as_nop
10264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265/* end confdefs.h.  */
10266int i;
10267int
10268main (void)
10269{
10270
10271  ;
10272  return 0;
10273}
10274_ACEOF
10275if ac_fn_c_try_link "$LINENO"
10276then :
10277  eval $cacheid=yes
10278else $as_nop
10279  eval $cacheid=no
10280fi
10281rm -f core conftest.err conftest.$ac_objext conftest.beam \
10282    conftest$ac_exeext conftest.$ac_ext
10283fi
10284
10285
10286		CFLAGS="$xorg_testset_save_CFLAGS"
10287
10288		eval supported=\$$cacheid
10289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10290printf "%s\n" "$supported" >&6; }
10291		if test "$supported" = "yes" ; then
10292			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10293			found="yes"
10294		fi
10295	fi
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311xorg_testset_save_CFLAGS="$CFLAGS"
10312
10313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10317if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10318then :
10319  printf %s "(cached) " >&6
10320else $as_nop
10321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322/* end confdefs.h.  */
10323int i;
10324_ACEOF
10325if ac_fn_c_try_compile "$LINENO"
10326then :
10327  xorg_cv_cc_flag_unknown_warning_option=yes
10328else $as_nop
10329  xorg_cv_cc_flag_unknown_warning_option=no
10330fi
10331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10332fi
10333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10336	CFLAGS="$xorg_testset_save_CFLAGS"
10337fi
10338
10339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10342	fi
10343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10344	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10346if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10347then :
10348  printf %s "(cached) " >&6
10349else $as_nop
10350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351/* end confdefs.h.  */
10352int i;
10353_ACEOF
10354if ac_fn_c_try_compile "$LINENO"
10355then :
10356  xorg_cv_cc_flag_unused_command_line_argument=yes
10357else $as_nop
10358  xorg_cv_cc_flag_unused_command_line_argument=no
10359fi
10360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10361fi
10362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10365	CFLAGS="$xorg_testset_save_CFLAGS"
10366fi
10367
10368found="no"
10369
10370	if test $found = "no" ; then
10371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10373		fi
10374
10375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10377		fi
10378
10379		CFLAGS="$CFLAGS -Waddress"
10380
10381		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10382printf %s "checking if $CC supports -Waddress... " >&6; }
10383		cacheid=xorg_cv_cc_flag__Waddress
10384		if eval test \${$cacheid+y}
10385then :
10386  printf %s "(cached) " >&6
10387else $as_nop
10388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389/* end confdefs.h.  */
10390int i;
10391int
10392main (void)
10393{
10394
10395  ;
10396  return 0;
10397}
10398_ACEOF
10399if ac_fn_c_try_link "$LINENO"
10400then :
10401  eval $cacheid=yes
10402else $as_nop
10403  eval $cacheid=no
10404fi
10405rm -f core conftest.err conftest.$ac_objext conftest.beam \
10406    conftest$ac_exeext conftest.$ac_ext
10407fi
10408
10409
10410		CFLAGS="$xorg_testset_save_CFLAGS"
10411
10412		eval supported=\$$cacheid
10413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10414printf "%s\n" "$supported" >&6; }
10415		if test "$supported" = "yes" ; then
10416			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10417			found="yes"
10418		fi
10419	fi
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435xorg_testset_save_CFLAGS="$CFLAGS"
10436
10437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10440printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10441if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10442then :
10443  printf %s "(cached) " >&6
10444else $as_nop
10445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446/* end confdefs.h.  */
10447int i;
10448_ACEOF
10449if ac_fn_c_try_compile "$LINENO"
10450then :
10451  xorg_cv_cc_flag_unknown_warning_option=yes
10452else $as_nop
10453  xorg_cv_cc_flag_unknown_warning_option=no
10454fi
10455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10456fi
10457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10458printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10460	CFLAGS="$xorg_testset_save_CFLAGS"
10461fi
10462
10463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10466	fi
10467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10468	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10469printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10470if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10471then :
10472  printf %s "(cached) " >&6
10473else $as_nop
10474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475/* end confdefs.h.  */
10476int i;
10477_ACEOF
10478if ac_fn_c_try_compile "$LINENO"
10479then :
10480  xorg_cv_cc_flag_unused_command_line_argument=yes
10481else $as_nop
10482  xorg_cv_cc_flag_unused_command_line_argument=no
10483fi
10484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10485fi
10486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10487printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10489	CFLAGS="$xorg_testset_save_CFLAGS"
10490fi
10491
10492found="no"
10493
10494	if test $found = "no" ; then
10495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10497		fi
10498
10499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10501		fi
10502
10503		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10504
10505		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10506printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10507		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10508		if eval test \${$cacheid+y}
10509then :
10510  printf %s "(cached) " >&6
10511else $as_nop
10512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513/* end confdefs.h.  */
10514int i;
10515int
10516main (void)
10517{
10518
10519  ;
10520  return 0;
10521}
10522_ACEOF
10523if ac_fn_c_try_link "$LINENO"
10524then :
10525  eval $cacheid=yes
10526else $as_nop
10527  eval $cacheid=no
10528fi
10529rm -f core conftest.err conftest.$ac_objext conftest.beam \
10530    conftest$ac_exeext conftest.$ac_ext
10531fi
10532
10533
10534		CFLAGS="$xorg_testset_save_CFLAGS"
10535
10536		eval supported=\$$cacheid
10537		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10538printf "%s\n" "$supported" >&6; }
10539		if test "$supported" = "yes" ; then
10540			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10541			found="yes"
10542		fi
10543	fi
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559xorg_testset_save_CFLAGS="$CFLAGS"
10560
10561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10563	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10564printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10565if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10566then :
10567  printf %s "(cached) " >&6
10568else $as_nop
10569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570/* end confdefs.h.  */
10571int i;
10572_ACEOF
10573if ac_fn_c_try_compile "$LINENO"
10574then :
10575  xorg_cv_cc_flag_unknown_warning_option=yes
10576else $as_nop
10577  xorg_cv_cc_flag_unknown_warning_option=no
10578fi
10579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10580fi
10581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10582printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10583	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10584	CFLAGS="$xorg_testset_save_CFLAGS"
10585fi
10586
10587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10588	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10589		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10590	fi
10591	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10592	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10593printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10594if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10595then :
10596  printf %s "(cached) " >&6
10597else $as_nop
10598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599/* end confdefs.h.  */
10600int i;
10601_ACEOF
10602if ac_fn_c_try_compile "$LINENO"
10603then :
10604  xorg_cv_cc_flag_unused_command_line_argument=yes
10605else $as_nop
10606  xorg_cv_cc_flag_unused_command_line_argument=no
10607fi
10608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10609fi
10610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10611printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10613	CFLAGS="$xorg_testset_save_CFLAGS"
10614fi
10615
10616found="no"
10617
10618	if test $found = "no" ; then
10619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10621		fi
10622
10623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10625		fi
10626
10627		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10628
10629		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10630printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10631		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10632		if eval test \${$cacheid+y}
10633then :
10634  printf %s "(cached) " >&6
10635else $as_nop
10636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637/* end confdefs.h.  */
10638int i;
10639int
10640main (void)
10641{
10642
10643  ;
10644  return 0;
10645}
10646_ACEOF
10647if ac_fn_c_try_link "$LINENO"
10648then :
10649  eval $cacheid=yes
10650else $as_nop
10651  eval $cacheid=no
10652fi
10653rm -f core conftest.err conftest.$ac_objext conftest.beam \
10654    conftest$ac_exeext conftest.$ac_ext
10655fi
10656
10657
10658		CFLAGS="$xorg_testset_save_CFLAGS"
10659
10660		eval supported=\$$cacheid
10661		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10662printf "%s\n" "$supported" >&6; }
10663		if test "$supported" = "yes" ; then
10664			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10665			found="yes"
10666		fi
10667	fi
10668
10669
10670fi
10671
10672
10673
10674
10675
10676
10677
10678		CWARNFLAGS="$BASE_CFLAGS"
10679		if  test "x$GCC" = xyes ; then
10680		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10681		fi
10682
10683
10684
10685
10686
10687
10688
10689
10690# Check whether --enable-strict-compilation was given.
10691if test ${enable_strict_compilation+y}
10692then :
10693  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10694else $as_nop
10695  STRICT_COMPILE=no
10696fi
10697
10698
10699
10700
10701
10702
10703STRICT_CFLAGS=""
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717xorg_testset_save_CFLAGS="$CFLAGS"
10718
10719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10720	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10723if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10724then :
10725  printf %s "(cached) " >&6
10726else $as_nop
10727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728/* end confdefs.h.  */
10729int i;
10730_ACEOF
10731if ac_fn_c_try_compile "$LINENO"
10732then :
10733  xorg_cv_cc_flag_unknown_warning_option=yes
10734else $as_nop
10735  xorg_cv_cc_flag_unknown_warning_option=no
10736fi
10737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10738fi
10739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10740printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10741	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10742	CFLAGS="$xorg_testset_save_CFLAGS"
10743fi
10744
10745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10746	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10747		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10748	fi
10749	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10750	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10751printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10752if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10753then :
10754  printf %s "(cached) " >&6
10755else $as_nop
10756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757/* end confdefs.h.  */
10758int i;
10759_ACEOF
10760if ac_fn_c_try_compile "$LINENO"
10761then :
10762  xorg_cv_cc_flag_unused_command_line_argument=yes
10763else $as_nop
10764  xorg_cv_cc_flag_unused_command_line_argument=no
10765fi
10766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10767fi
10768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10769printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10770	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10771	CFLAGS="$xorg_testset_save_CFLAGS"
10772fi
10773
10774found="no"
10775
10776	if test $found = "no" ; then
10777		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10779		fi
10780
10781		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10783		fi
10784
10785		CFLAGS="$CFLAGS -pedantic"
10786
10787		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10788printf %s "checking if $CC supports -pedantic... " >&6; }
10789		cacheid=xorg_cv_cc_flag__pedantic
10790		if eval test \${$cacheid+y}
10791then :
10792  printf %s "(cached) " >&6
10793else $as_nop
10794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795/* end confdefs.h.  */
10796int i;
10797int
10798main (void)
10799{
10800
10801  ;
10802  return 0;
10803}
10804_ACEOF
10805if ac_fn_c_try_link "$LINENO"
10806then :
10807  eval $cacheid=yes
10808else $as_nop
10809  eval $cacheid=no
10810fi
10811rm -f core conftest.err conftest.$ac_objext conftest.beam \
10812    conftest$ac_exeext conftest.$ac_ext
10813fi
10814
10815
10816		CFLAGS="$xorg_testset_save_CFLAGS"
10817
10818		eval supported=\$$cacheid
10819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10820printf "%s\n" "$supported" >&6; }
10821		if test "$supported" = "yes" ; then
10822			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10823			found="yes"
10824		fi
10825	fi
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841xorg_testset_save_CFLAGS="$CFLAGS"
10842
10843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10847if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10848then :
10849  printf %s "(cached) " >&6
10850else $as_nop
10851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852/* end confdefs.h.  */
10853int i;
10854_ACEOF
10855if ac_fn_c_try_compile "$LINENO"
10856then :
10857  xorg_cv_cc_flag_unknown_warning_option=yes
10858else $as_nop
10859  xorg_cv_cc_flag_unknown_warning_option=no
10860fi
10861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10862fi
10863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10865	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10866	CFLAGS="$xorg_testset_save_CFLAGS"
10867fi
10868
10869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10870	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10871		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10872	fi
10873	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10874	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10876if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10877then :
10878  printf %s "(cached) " >&6
10879else $as_nop
10880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881/* end confdefs.h.  */
10882int i;
10883_ACEOF
10884if ac_fn_c_try_compile "$LINENO"
10885then :
10886  xorg_cv_cc_flag_unused_command_line_argument=yes
10887else $as_nop
10888  xorg_cv_cc_flag_unused_command_line_argument=no
10889fi
10890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10891fi
10892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10895	CFLAGS="$xorg_testset_save_CFLAGS"
10896fi
10897
10898found="no"
10899
10900	if test $found = "no" ; then
10901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10903		fi
10904
10905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10907		fi
10908
10909		CFLAGS="$CFLAGS -Werror"
10910
10911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10912printf %s "checking if $CC supports -Werror... " >&6; }
10913		cacheid=xorg_cv_cc_flag__Werror
10914		if eval test \${$cacheid+y}
10915then :
10916  printf %s "(cached) " >&6
10917else $as_nop
10918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919/* end confdefs.h.  */
10920int i;
10921int
10922main (void)
10923{
10924
10925  ;
10926  return 0;
10927}
10928_ACEOF
10929if ac_fn_c_try_link "$LINENO"
10930then :
10931  eval $cacheid=yes
10932else $as_nop
10933  eval $cacheid=no
10934fi
10935rm -f core conftest.err conftest.$ac_objext conftest.beam \
10936    conftest$ac_exeext conftest.$ac_ext
10937fi
10938
10939
10940		CFLAGS="$xorg_testset_save_CFLAGS"
10941
10942		eval supported=\$$cacheid
10943		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10944printf "%s\n" "$supported" >&6; }
10945		if test "$supported" = "yes" ; then
10946			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10947			found="yes"
10948		fi
10949	fi
10950
10951	if test $found = "no" ; then
10952		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10953			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10954		fi
10955
10956		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10957			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10958		fi
10959
10960		CFLAGS="$CFLAGS -errwarn"
10961
10962		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10963printf %s "checking if $CC supports -errwarn... " >&6; }
10964		cacheid=xorg_cv_cc_flag__errwarn
10965		if eval test \${$cacheid+y}
10966then :
10967  printf %s "(cached) " >&6
10968else $as_nop
10969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970/* end confdefs.h.  */
10971int i;
10972int
10973main (void)
10974{
10975
10976  ;
10977  return 0;
10978}
10979_ACEOF
10980if ac_fn_c_try_link "$LINENO"
10981then :
10982  eval $cacheid=yes
10983else $as_nop
10984  eval $cacheid=no
10985fi
10986rm -f core conftest.err conftest.$ac_objext conftest.beam \
10987    conftest$ac_exeext conftest.$ac_ext
10988fi
10989
10990
10991		CFLAGS="$xorg_testset_save_CFLAGS"
10992
10993		eval supported=\$$cacheid
10994		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10995printf "%s\n" "$supported" >&6; }
10996		if test "$supported" = "yes" ; then
10997			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10998			found="yes"
10999		fi
11000	fi
11001
11002
11003
11004# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11005# activate it with -Werror, so we add it here explicitly.
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019xorg_testset_save_CFLAGS="$CFLAGS"
11020
11021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11022	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11023	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11024printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11025if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11026then :
11027  printf %s "(cached) " >&6
11028else $as_nop
11029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030/* end confdefs.h.  */
11031int i;
11032_ACEOF
11033if ac_fn_c_try_compile "$LINENO"
11034then :
11035  xorg_cv_cc_flag_unknown_warning_option=yes
11036else $as_nop
11037  xorg_cv_cc_flag_unknown_warning_option=no
11038fi
11039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11040fi
11041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11042printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11043	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11044	CFLAGS="$xorg_testset_save_CFLAGS"
11045fi
11046
11047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11048	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11049		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11050	fi
11051	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11052	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11053printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11054if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11055then :
11056  printf %s "(cached) " >&6
11057else $as_nop
11058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059/* end confdefs.h.  */
11060int i;
11061_ACEOF
11062if ac_fn_c_try_compile "$LINENO"
11063then :
11064  xorg_cv_cc_flag_unused_command_line_argument=yes
11065else $as_nop
11066  xorg_cv_cc_flag_unused_command_line_argument=no
11067fi
11068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11069fi
11070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11071printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11073	CFLAGS="$xorg_testset_save_CFLAGS"
11074fi
11075
11076found="no"
11077
11078	if test $found = "no" ; then
11079		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11081		fi
11082
11083		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11085		fi
11086
11087		CFLAGS="$CFLAGS -Werror=attributes"
11088
11089		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11090printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11091		cacheid=xorg_cv_cc_flag__Werror_attributes
11092		if eval test \${$cacheid+y}
11093then :
11094  printf %s "(cached) " >&6
11095else $as_nop
11096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097/* end confdefs.h.  */
11098int i;
11099int
11100main (void)
11101{
11102
11103  ;
11104  return 0;
11105}
11106_ACEOF
11107if ac_fn_c_try_link "$LINENO"
11108then :
11109  eval $cacheid=yes
11110else $as_nop
11111  eval $cacheid=no
11112fi
11113rm -f core conftest.err conftest.$ac_objext conftest.beam \
11114    conftest$ac_exeext conftest.$ac_ext
11115fi
11116
11117
11118		CFLAGS="$xorg_testset_save_CFLAGS"
11119
11120		eval supported=\$$cacheid
11121		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11122printf "%s\n" "$supported" >&6; }
11123		if test "$supported" = "yes" ; then
11124			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11125			found="yes"
11126		fi
11127	fi
11128
11129
11130
11131if test "x$STRICT_COMPILE" = "xyes"; then
11132    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11133    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11134fi
11135
11136
11137
11138
11139
11140
11141cat >>confdefs.h <<_ACEOF
11142#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11143_ACEOF
11144
11145	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11146	if test "x$PVM" = "x"; then
11147		PVM="0"
11148	fi
11149
11150printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11151
11152	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11153	if test "x$PVP" = "x"; then
11154		PVP="0"
11155	fi
11156
11157printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11158
11159
11160
11161CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11162mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11163|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11164touch \$(top_srcdir)/ChangeLog; \
11165echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11166
11167
11168
11169
11170macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11171INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11172mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11173|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11174touch \$(top_srcdir)/INSTALL; \
11175echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11176
11177
11178
11179
11180
11181
11182case $host_os in
11183    solaris*)
11184        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11185        # check for a man page file found in later versions that use
11186        # traditional section numbers instead
11187        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11188printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11189if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11190then :
11191  printf %s "(cached) " >&6
11192else $as_nop
11193  test "$cross_compiling" = yes &&
11194  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11195if test -r "/usr/share/man/man7/attributes.7"; then
11196  ac_cv_file__usr_share_man_man7_attributes_7=yes
11197else
11198  ac_cv_file__usr_share_man_man7_attributes_7=no
11199fi
11200fi
11201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11202printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11203if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11204then :
11205  SYSV_MAN_SECTIONS=false
11206else $as_nop
11207  SYSV_MAN_SECTIONS=true
11208fi
11209
11210        ;;
11211    *) SYSV_MAN_SECTIONS=false ;;
11212esac
11213
11214if test x$APP_MAN_SUFFIX = x    ; then
11215    APP_MAN_SUFFIX=1
11216fi
11217if test x$APP_MAN_DIR = x    ; then
11218    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11219fi
11220
11221if test x$LIB_MAN_SUFFIX = x    ; then
11222    LIB_MAN_SUFFIX=3
11223fi
11224if test x$LIB_MAN_DIR = x    ; then
11225    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11226fi
11227
11228if test x$FILE_MAN_SUFFIX = x    ; then
11229    case $SYSV_MAN_SECTIONS in
11230	true)				FILE_MAN_SUFFIX=4  ;;
11231	*)				FILE_MAN_SUFFIX=5  ;;
11232    esac
11233fi
11234if test x$FILE_MAN_DIR = x    ; then
11235    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11236fi
11237
11238if test x$MISC_MAN_SUFFIX = x    ; then
11239    case $SYSV_MAN_SECTIONS in
11240	true)				MISC_MAN_SUFFIX=5  ;;
11241	*)				MISC_MAN_SUFFIX=7  ;;
11242    esac
11243fi
11244if test x$MISC_MAN_DIR = x    ; then
11245    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11246fi
11247
11248if test x$DRIVER_MAN_SUFFIX = x    ; then
11249    case $SYSV_MAN_SECTIONS in
11250	true)				DRIVER_MAN_SUFFIX=7  ;;
11251	*)				DRIVER_MAN_SUFFIX=4  ;;
11252    esac
11253fi
11254if test x$DRIVER_MAN_DIR = x    ; then
11255    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11256fi
11257
11258if test x$ADMIN_MAN_SUFFIX = x    ; then
11259    case $SYSV_MAN_SECTIONS in
11260	true)				ADMIN_MAN_SUFFIX=1m ;;
11261	*)				ADMIN_MAN_SUFFIX=8  ;;
11262    esac
11263fi
11264if test x$ADMIN_MAN_DIR = x    ; then
11265    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11266fi
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282XORG_MAN_PAGE="X Version 11"
11283
11284MAN_SUBSTS="\
11285	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11286	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11287	-e 's|__xservername__|Xorg|g' \
11288	-e 's|__xconfigfile__|xorg.conf|g' \
11289	-e 's|__projectroot__|\$(prefix)|g' \
11290	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11291	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11292	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11293	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11294	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11295	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11296	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11297
11298
11299
11300# Check whether --enable-silent-rules was given.
11301if test ${enable_silent_rules+y}
11302then :
11303  enableval=$enable_silent_rules;
11304fi
11305
11306case $enable_silent_rules in # (((
11307  yes) AM_DEFAULT_VERBOSITY=0;;
11308   no) AM_DEFAULT_VERBOSITY=1;;
11309    *) AM_DEFAULT_VERBOSITY=0;;
11310esac
11311am_make=${MAKE-make}
11312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11313printf %s "checking whether $am_make supports nested variables... " >&6; }
11314if test ${am_cv_make_support_nested_variables+y}
11315then :
11316  printf %s "(cached) " >&6
11317else $as_nop
11318  if printf "%s\n" 'TRUE=$(BAR$(V))
11319BAR0=false
11320BAR1=true
11321V=1
11322am__doit:
11323	@$(TRUE)
11324.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11325  am_cv_make_support_nested_variables=yes
11326else
11327  am_cv_make_support_nested_variables=no
11328fi
11329fi
11330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11331printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11332if test $am_cv_make_support_nested_variables = yes; then
11333    AM_V='$(V)'
11334  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11335else
11336  AM_V=$AM_DEFAULT_VERBOSITY
11337  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11338fi
11339AM_BACKSLASH='\'
11340
11341
11342
11343# Checks for system functions
11344ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
11345if test "x$ac_cv_func_usleep" = xyes
11346then :
11347  printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
11348
11349fi
11350
11351
11352# Checks for pkg-config packages
11353
11354pkg_failed=no
11355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSET" >&5
11356printf %s "checking for XSET... " >&6; }
11357
11358if test -n "$XSET_CFLAGS"; then
11359    pkg_cv_XSET_CFLAGS="$XSET_CFLAGS"
11360 elif test -n "$PKG_CONFIG"; then
11361    if test -n "$PKG_CONFIG" && \
11362    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
11363  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
11364  ac_status=$?
11365  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11366  test $ac_status = 0; }; then
11367  pkg_cv_XSET_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xmuu" 2>/dev/null`
11368		      test "x$?" != "x0" && pkg_failed=yes
11369else
11370  pkg_failed=yes
11371fi
11372 else
11373    pkg_failed=untried
11374fi
11375if test -n "$XSET_LIBS"; then
11376    pkg_cv_XSET_LIBS="$XSET_LIBS"
11377 elif test -n "$PKG_CONFIG"; then
11378    if test -n "$PKG_CONFIG" && \
11379    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
11380  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
11381  ac_status=$?
11382  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11383  test $ac_status = 0; }; then
11384  pkg_cv_XSET_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xmuu" 2>/dev/null`
11385		      test "x$?" != "x0" && pkg_failed=yes
11386else
11387  pkg_failed=yes
11388fi
11389 else
11390    pkg_failed=untried
11391fi
11392
11393
11394
11395if test $pkg_failed = yes; then
11396   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397printf "%s\n" "no" >&6; }
11398
11399if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11400        _pkg_short_errors_supported=yes
11401else
11402        _pkg_short_errors_supported=no
11403fi
11404        if test $_pkg_short_errors_supported = yes; then
11405	        XSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xmuu" 2>&1`
11406        else
11407	        XSET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xmuu" 2>&1`
11408        fi
11409	# Put the nasty error message in config.log where it belongs
11410	echo "$XSET_PKG_ERRORS" >&5
11411
11412	as_fn_error $? "Package requirements (xproto >= 7.0.17 xmuu) were not met:
11413
11414$XSET_PKG_ERRORS
11415
11416Consider adjusting the PKG_CONFIG_PATH environment variable if you
11417installed software in a non-standard prefix.
11418
11419Alternatively, you may set the environment variables XSET_CFLAGS
11420and XSET_LIBS to avoid the need to call pkg-config.
11421See the pkg-config man page for more details." "$LINENO" 5
11422elif test $pkg_failed = untried; then
11423     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424printf "%s\n" "no" >&6; }
11425	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11426printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11427as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11428is in your PATH or set the PKG_CONFIG environment variable to the full
11429path to pkg-config.
11430
11431Alternatively, you may set the environment variables XSET_CFLAGS
11432and XSET_LIBS to avoid the need to call pkg-config.
11433See the pkg-config man page for more details.
11434
11435To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11436See \`config.log' for more details" "$LINENO" 5; }
11437else
11438	XSET_CFLAGS=$pkg_cv_XSET_CFLAGS
11439	XSET_LIBS=$pkg_cv_XSET_LIBS
11440        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11441printf "%s\n" "yes" >&6; }
11442
11443fi
11444
11445# This is used below to allow <X11/Xlib.h> to be found
11446
11447pkg_failed=no
11448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_X11" >&5
11449printf %s "checking for SET_X11... " >&6; }
11450
11451if test -n "$SET_X11_CFLAGS"; then
11452    pkg_cv_SET_X11_CFLAGS="$SET_X11_CFLAGS"
11453 elif test -n "$PKG_CONFIG"; then
11454    if test -n "$PKG_CONFIG" && \
11455    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11456  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11457  ac_status=$?
11458  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11459  test $ac_status = 0; }; then
11460  pkg_cv_SET_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
11461		      test "x$?" != "x0" && pkg_failed=yes
11462else
11463  pkg_failed=yes
11464fi
11465 else
11466    pkg_failed=untried
11467fi
11468if test -n "$SET_X11_LIBS"; then
11469    pkg_cv_SET_X11_LIBS="$SET_X11_LIBS"
11470 elif test -n "$PKG_CONFIG"; then
11471    if test -n "$PKG_CONFIG" && \
11472    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11473  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11474  ac_status=$?
11475  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11476  test $ac_status = 0; }; then
11477  pkg_cv_SET_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11478		      test "x$?" != "x0" && pkg_failed=yes
11479else
11480  pkg_failed=yes
11481fi
11482 else
11483    pkg_failed=untried
11484fi
11485
11486
11487
11488if test $pkg_failed = yes; then
11489   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490printf "%s\n" "no" >&6; }
11491
11492if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11493        _pkg_short_errors_supported=yes
11494else
11495        _pkg_short_errors_supported=no
11496fi
11497        if test $_pkg_short_errors_supported = yes; then
11498	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
11499        else
11500	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
11501        fi
11502	# Put the nasty error message in config.log where it belongs
11503	echo "$SET_X11_PKG_ERRORS" >&5
11504
11505	as_fn_error $? "Package requirements (x11) were not met:
11506
11507$SET_X11_PKG_ERRORS
11508
11509Consider adjusting the PKG_CONFIG_PATH environment variable if you
11510installed software in a non-standard prefix.
11511
11512Alternatively, you may set the environment variables SET_X11_CFLAGS
11513and SET_X11_LIBS to avoid the need to call pkg-config.
11514See the pkg-config man page for more details." "$LINENO" 5
11515elif test $pkg_failed = untried; then
11516     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517printf "%s\n" "no" >&6; }
11518	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11519printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11520as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11521is in your PATH or set the PKG_CONFIG environment variable to the full
11522path to pkg-config.
11523
11524Alternatively, you may set the environment variables SET_X11_CFLAGS
11525and SET_X11_LIBS to avoid the need to call pkg-config.
11526See the pkg-config man page for more details.
11527
11528To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11529See \`config.log' for more details" "$LINENO" 5; }
11530else
11531	SET_X11_CFLAGS=$pkg_cv_SET_X11_CFLAGS
11532	SET_X11_LIBS=$pkg_cv_SET_X11_LIBS
11533        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11534printf "%s\n" "yes" >&6; }
11535
11536fi
11537
11538
11539pkg_failed=no
11540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_XEXT" >&5
11541printf %s "checking for SET_XEXT... " >&6; }
11542
11543if test -n "$SET_XEXT_CFLAGS"; then
11544    pkg_cv_SET_XEXT_CFLAGS="$SET_XEXT_CFLAGS"
11545 elif test -n "$PKG_CONFIG"; then
11546    if test -n "$PKG_CONFIG" && \
11547    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11548  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11549  ac_status=$?
11550  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11551  test $ac_status = 0; }; then
11552  pkg_cv_SET_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
11553		      test "x$?" != "x0" && pkg_failed=yes
11554else
11555  pkg_failed=yes
11556fi
11557 else
11558    pkg_failed=untried
11559fi
11560if test -n "$SET_XEXT_LIBS"; then
11561    pkg_cv_SET_XEXT_LIBS="$SET_XEXT_LIBS"
11562 elif test -n "$PKG_CONFIG"; then
11563    if test -n "$PKG_CONFIG" && \
11564    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11565  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11566  ac_status=$?
11567  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11568  test $ac_status = 0; }; then
11569  pkg_cv_SET_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
11570		      test "x$?" != "x0" && pkg_failed=yes
11571else
11572  pkg_failed=yes
11573fi
11574 else
11575    pkg_failed=untried
11576fi
11577
11578
11579
11580if test $pkg_failed = yes; then
11581   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582printf "%s\n" "no" >&6; }
11583
11584if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11585        _pkg_short_errors_supported=yes
11586else
11587        _pkg_short_errors_supported=no
11588fi
11589        if test $_pkg_short_errors_supported = yes; then
11590	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
11591        else
11592	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
11593        fi
11594	# Put the nasty error message in config.log where it belongs
11595	echo "$SET_XEXT_PKG_ERRORS" >&5
11596
11597	echo "not found"
11598elif test $pkg_failed = untried; then
11599     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600printf "%s\n" "no" >&6; }
11601	echo "not found"
11602else
11603	SET_XEXT_CFLAGS=$pkg_cv_SET_XEXT_CFLAGS
11604	SET_XEXT_LIBS=$pkg_cv_SET_XEXT_LIBS
11605        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11606printf "%s\n" "yes" >&6; }
11607	SAVE_CPPFLAGS="$CPPFLAGS"
11608	CPPFLAGS="$CPPFLAGS $SET_XEXT_CFLAGS $SET_X11_CFLAGS"
11609	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dpms.h" "ac_cv_header_X11_extensions_dpms_h" "#include <X11/Xlib.h>
11610"
11611if test "x$ac_cv_header_X11_extensions_dpms_h" = xyes
11612then :
11613  printf "%s\n" "#define HAVE_X11_EXTENSIONS_DPMS_H 1" >>confdefs.h
11614
11615fi
11616ac_fn_c_check_header_compile "$LINENO" "X11/extensions/MITMisc.h" "ac_cv_header_X11_extensions_MITMisc_h" "#include <X11/Xlib.h>
11617"
11618if test "x$ac_cv_header_X11_extensions_MITMisc_h" = xyes
11619then :
11620  printf "%s\n" "#define HAVE_X11_EXTENSIONS_MITMISC_H 1" >>confdefs.h
11621
11622fi
11623
11624	CPPFLAGS="$SAVE_CPPFLAGS"
11625fi
11626
11627
11628pkg_failed=no
11629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_XKB" >&5
11630printf %s "checking for SET_XKB... " >&6; }
11631
11632if test -n "$SET_XKB_CFLAGS"; then
11633    pkg_cv_SET_XKB_CFLAGS="$SET_XKB_CFLAGS"
11634 elif test -n "$PKG_CONFIG"; then
11635    if test -n "$PKG_CONFIG" && \
11636    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11637  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11638  ac_status=$?
11639  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11640  test $ac_status = 0; }; then
11641  pkg_cv_SET_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
11642		      test "x$?" != "x0" && pkg_failed=yes
11643else
11644  pkg_failed=yes
11645fi
11646 else
11647    pkg_failed=untried
11648fi
11649if test -n "$SET_XKB_LIBS"; then
11650    pkg_cv_SET_XKB_LIBS="$SET_XKB_LIBS"
11651 elif test -n "$PKG_CONFIG"; then
11652    if test -n "$PKG_CONFIG" && \
11653    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11654  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11655  ac_status=$?
11656  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11657  test $ac_status = 0; }; then
11658  pkg_cv_SET_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11659		      test "x$?" != "x0" && pkg_failed=yes
11660else
11661  pkg_failed=yes
11662fi
11663 else
11664    pkg_failed=untried
11665fi
11666
11667
11668
11669if test $pkg_failed = yes; then
11670   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671printf "%s\n" "no" >&6; }
11672
11673if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11674        _pkg_short_errors_supported=yes
11675else
11676        _pkg_short_errors_supported=no
11677fi
11678        if test $_pkg_short_errors_supported = yes; then
11679	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
11680        else
11681	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
11682        fi
11683	# Put the nasty error message in config.log where it belongs
11684	echo "$SET_XKB_PKG_ERRORS" >&5
11685
11686	echo "not found"
11687elif test $pkg_failed = untried; then
11688     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689printf "%s\n" "no" >&6; }
11690	echo "not found"
11691else
11692	SET_XKB_CFLAGS=$pkg_cv_SET_XKB_CFLAGS
11693	SET_XKB_LIBS=$pkg_cv_SET_XKB_LIBS
11694        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11695printf "%s\n" "yes" >&6; }
11696	SAVE_CPPFLAGS="$CPPFLAGS"
11697	CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS"
11698	ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
11699"
11700if test "x$ac_cv_header_X11_XKBlib_h" = xyes
11701then :
11702  printf "%s\n" "#define HAVE_X11_XKBLIB_H 1" >>confdefs.h
11703
11704fi
11705
11706	CPPFLAGS="$SAVE_CPPFLAGS"
11707fi
11708
11709
11710# Check whether --with-xf86misc was given.
11711if test ${with_xf86misc+y}
11712then :
11713  withval=$with_xf86misc; USE_XF86MISC="$withval"
11714else $as_nop
11715  USE_XF86MISC="no"
11716fi
11717
11718if test "x$USE_XF86MISC" != "xno" ; then
11719
11720pkg_failed=no
11721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_XF86MISC" >&5
11722printf %s "checking for SET_XF86MISC... " >&6; }
11723
11724if test -n "$SET_XF86MISC_CFLAGS"; then
11725    pkg_cv_SET_XF86MISC_CFLAGS="$SET_XF86MISC_CFLAGS"
11726 elif test -n "$PKG_CONFIG"; then
11727    if test -n "$PKG_CONFIG" && \
11728    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11729  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11730  ac_status=$?
11731  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11732  test $ac_status = 0; }; then
11733  pkg_cv_SET_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
11734		      test "x$?" != "x0" && pkg_failed=yes
11735else
11736  pkg_failed=yes
11737fi
11738 else
11739    pkg_failed=untried
11740fi
11741if test -n "$SET_XF86MISC_LIBS"; then
11742    pkg_cv_SET_XF86MISC_LIBS="$SET_XF86MISC_LIBS"
11743 elif test -n "$PKG_CONFIG"; then
11744    if test -n "$PKG_CONFIG" && \
11745    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11746  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11747  ac_status=$?
11748  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11749  test $ac_status = 0; }; then
11750  pkg_cv_SET_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
11751		      test "x$?" != "x0" && pkg_failed=yes
11752else
11753  pkg_failed=yes
11754fi
11755 else
11756    pkg_failed=untried
11757fi
11758
11759
11760
11761if test $pkg_failed = yes; then
11762   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763printf "%s\n" "no" >&6; }
11764
11765if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11766        _pkg_short_errors_supported=yes
11767else
11768        _pkg_short_errors_supported=no
11769fi
11770        if test $_pkg_short_errors_supported = yes; then
11771	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86misc" 2>&1`
11772        else
11773	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86misc" 2>&1`
11774        fi
11775	# Put the nasty error message in config.log where it belongs
11776	echo "$SET_XF86MISC_PKG_ERRORS" >&5
11777
11778	echo "not found"
11779elif test $pkg_failed = untried; then
11780     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781printf "%s\n" "no" >&6; }
11782	echo "not found"
11783else
11784	SET_XF86MISC_CFLAGS=$pkg_cv_SET_XF86MISC_CFLAGS
11785	SET_XF86MISC_LIBS=$pkg_cv_SET_XF86MISC_LIBS
11786        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11787printf "%s\n" "yes" >&6; }
11788	SAVE_CPPFLAGS="$CPPFLAGS"
11789		CPPFLAGS="$CPPFLAGS $SET_XF86MISC_CFLAGS $SET_X11_CFLAGS"
11790		ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86misc.h" "ac_cv_header_X11_extensions_xf86misc_h" "#include <X11/Xlib.h>
11791#include <X11/Xproto.h>
11792"
11793if test "x$ac_cv_header_X11_extensions_xf86misc_h" = xyes
11794then :
11795  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86MISC_H 1" >>confdefs.h
11796
11797fi
11798ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86mscstr.h" "ac_cv_header_X11_extensions_xf86mscstr_h" "#include <X11/Xlib.h>
11799#include <X11/Xproto.h>
11800"
11801if test "x$ac_cv_header_X11_extensions_xf86mscstr_h" = xyes
11802then :
11803  printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86MSCSTR_H 1" >>confdefs.h
11804
11805fi
11806
11807		CPPFLAGS="$SAVE_CPPFLAGS"
11808fi
11809else
11810        echo "without xf86misc"
11811fi
11812
11813
11814# Check whether --with-fontcache was given.
11815if test ${with_fontcache+y}
11816then :
11817  withval=$with_fontcache; USE_XFONTCACHE="$withval"
11818else $as_nop
11819  USE_XFONTCACHE="yes"
11820fi
11821
11822if test "x$USE_XFONTCACHE" != "xno" ; then
11823
11824pkg_failed=no
11825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_FONTCACHE" >&5
11826printf %s "checking for SET_FONTCACHE... " >&6; }
11827
11828if test -n "$SET_FONTCACHE_CFLAGS"; then
11829    pkg_cv_SET_FONTCACHE_CFLAGS="$SET_FONTCACHE_CFLAGS"
11830 elif test -n "$PKG_CONFIG"; then
11831    if test -n "$PKG_CONFIG" && \
11832    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
11833  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
11834  ac_status=$?
11835  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11836  test $ac_status = 0; }; then
11837  pkg_cv_SET_FONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "xfontcache" 2>/dev/null`
11838		      test "x$?" != "x0" && pkg_failed=yes
11839else
11840  pkg_failed=yes
11841fi
11842 else
11843    pkg_failed=untried
11844fi
11845if test -n "$SET_FONTCACHE_LIBS"; then
11846    pkg_cv_SET_FONTCACHE_LIBS="$SET_FONTCACHE_LIBS"
11847 elif test -n "$PKG_CONFIG"; then
11848    if test -n "$PKG_CONFIG" && \
11849    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
11850  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
11851  ac_status=$?
11852  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11853  test $ac_status = 0; }; then
11854  pkg_cv_SET_FONTCACHE_LIBS=`$PKG_CONFIG --libs "xfontcache" 2>/dev/null`
11855		      test "x$?" != "x0" && pkg_failed=yes
11856else
11857  pkg_failed=yes
11858fi
11859 else
11860    pkg_failed=untried
11861fi
11862
11863
11864
11865if test $pkg_failed = yes; then
11866   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867printf "%s\n" "no" >&6; }
11868
11869if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11870        _pkg_short_errors_supported=yes
11871else
11872        _pkg_short_errors_supported=no
11873fi
11874        if test $_pkg_short_errors_supported = yes; then
11875	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfontcache" 2>&1`
11876        else
11877	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfontcache" 2>&1`
11878        fi
11879	# Put the nasty error message in config.log where it belongs
11880	echo "$SET_FONTCACHE_PKG_ERRORS" >&5
11881
11882	echo "not found"
11883elif test $pkg_failed = untried; then
11884     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885printf "%s\n" "no" >&6; }
11886	echo "not found"
11887else
11888	SET_FONTCACHE_CFLAGS=$pkg_cv_SET_FONTCACHE_CFLAGS
11889	SET_FONTCACHE_LIBS=$pkg_cv_SET_FONTCACHE_LIBS
11890        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11891printf "%s\n" "yes" >&6; }
11892	SAVE_CPPFLAGS="$CPPFLAGS"
11893		CPPFLAGS="$CPPFLAGS $SET_FONTCACHE_CFLAGS $SET_X11_CFLAGS"
11894		ac_fn_c_check_header_compile "$LINENO" "X11/extensions/fontcache.h" "ac_cv_header_X11_extensions_fontcache_h" "#include <X11/Xlib.h>
11895"
11896if test "x$ac_cv_header_X11_extensions_fontcache_h" = xyes
11897then :
11898  printf "%s\n" "#define HAVE_X11_EXTENSIONS_FONTCACHE_H 1" >>confdefs.h
11899
11900fi
11901ac_fn_c_check_header_compile "$LINENO" "X11/extensions/fontcacheP.h" "ac_cv_header_X11_extensions_fontcacheP_h" "#include <X11/Xlib.h>
11902"
11903if test "x$ac_cv_header_X11_extensions_fontcacheP_h" = xyes
11904then :
11905  printf "%s\n" "#define HAVE_X11_EXTENSIONS_FONTCACHEP_H 1" >>confdefs.h
11906
11907fi
11908
11909		CPPFLAGS="$SAVE_CPPFLAGS"
11910fi
11911else
11912	echo "without fontcache"
11913fi
11914
11915XSET_CFLAGS="$XSET_CFLAGS $SET_XEXT_CFLAGS $SET_XKB_CFLAGS $SET_XF86MISC_CFLAGS $SET_FONTCACHE_CFLAGS"
11916XSET_LIBS="$XSET_LIBS $SET_XEXT_LIBS $SET_XKB_LIBS $SET_XF86MISC_LIBS $SET_FONTCACHE_LIBS"
11917
11918
11919ac_config_files="$ac_config_files Makefile man/Makefile"
11920
11921cat >confcache <<\_ACEOF
11922# This file is a shell script that caches the results of configure
11923# tests run on this system so they can be shared between configure
11924# scripts and configure runs, see configure's option --config-cache.
11925# It is not useful on other systems.  If it contains results you don't
11926# want to keep, you may remove or edit it.
11927#
11928# config.status only pays attention to the cache file if you give it
11929# the --recheck option to rerun configure.
11930#
11931# `ac_cv_env_foo' variables (set or unset) will be overridden when
11932# loading this file, other *unset* `ac_cv_foo' will be assigned the
11933# following values.
11934
11935_ACEOF
11936
11937# The following way of writing the cache mishandles newlines in values,
11938# but we know of no workaround that is simple, portable, and efficient.
11939# So, we kill variables containing newlines.
11940# Ultrix sh set writes to stderr and can't be redirected directly,
11941# and sets the high bit in the cache file unless we assign to the vars.
11942(
11943  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11944    eval ac_val=\$$ac_var
11945    case $ac_val in #(
11946    *${as_nl}*)
11947      case $ac_var in #(
11948      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11949printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11950      esac
11951      case $ac_var in #(
11952      _ | IFS | as_nl) ;; #(
11953      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11954      *) { eval $ac_var=; unset $ac_var;} ;;
11955      esac ;;
11956    esac
11957  done
11958
11959  (set) 2>&1 |
11960    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11961    *${as_nl}ac_space=\ *)
11962      # `set' does not quote correctly, so add quotes: double-quote
11963      # substitution turns \\\\ into \\, and sed turns \\ into \.
11964      sed -n \
11965	"s/'/'\\\\''/g;
11966	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11967      ;; #(
11968    *)
11969      # `set' quotes correctly as required by POSIX, so do not add quotes.
11970      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11971      ;;
11972    esac |
11973    sort
11974) |
11975  sed '
11976     /^ac_cv_env_/b end
11977     t clear
11978     :clear
11979     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11980     t end
11981     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11982     :end' >>confcache
11983if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11984  if test -w "$cache_file"; then
11985    if test "x$cache_file" != "x/dev/null"; then
11986      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11987printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11988      if test ! -f "$cache_file" || test -h "$cache_file"; then
11989	cat confcache >"$cache_file"
11990      else
11991        case $cache_file in #(
11992        */* | ?:*)
11993	  mv -f confcache "$cache_file"$$ &&
11994	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11995        *)
11996	  mv -f confcache "$cache_file" ;;
11997	esac
11998      fi
11999    fi
12000  else
12001    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12002printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12003  fi
12004fi
12005rm -f confcache
12006
12007test "x$prefix" = xNONE && prefix=$ac_default_prefix
12008# Let make expand exec_prefix.
12009test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12010
12011DEFS=-DHAVE_CONFIG_H
12012
12013ac_libobjs=
12014ac_ltlibobjs=
12015U=
12016for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12017  # 1. Remove the extension, and $U if already installed.
12018  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12019  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12020  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12021  #    will be set to the directory where LIBOBJS objects are built.
12022  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12023  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12024done
12025LIBOBJS=$ac_libobjs
12026
12027LTLIBOBJS=$ac_ltlibobjs
12028
12029
12030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12031printf %s "checking that generated files are newer than configure... " >&6; }
12032   if test -n "$am_sleep_pid"; then
12033     # Hide warnings about reused PIDs.
12034     wait $am_sleep_pid 2>/dev/null
12035   fi
12036   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12037printf "%s\n" "done" >&6; }
12038if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12039  as_fn_error $? "conditional \"AMDEP\" was never defined.
12040Usually this means the macro was only invoked conditionally." "$LINENO" 5
12041fi
12042if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12043  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12044Usually this means the macro was only invoked conditionally." "$LINENO" 5
12045fi
12046 if test -n "$EXEEXT"; then
12047  am__EXEEXT_TRUE=
12048  am__EXEEXT_FALSE='#'
12049else
12050  am__EXEEXT_TRUE='#'
12051  am__EXEEXT_FALSE=
12052fi
12053
12054
12055: "${CONFIG_STATUS=./config.status}"
12056ac_write_fail=0
12057ac_clean_files_save=$ac_clean_files
12058ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12060printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12061as_write_fail=0
12062cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12063#! $SHELL
12064# Generated by $as_me.
12065# Run this file to recreate the current configuration.
12066# Compiler output produced by configure, useful for debugging
12067# configure, is in config.log if it exists.
12068
12069debug=false
12070ac_cs_recheck=false
12071ac_cs_silent=false
12072
12073SHELL=\${CONFIG_SHELL-$SHELL}
12074export SHELL
12075_ASEOF
12076cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12077## -------------------- ##
12078## M4sh Initialization. ##
12079## -------------------- ##
12080
12081# Be more Bourne compatible
12082DUALCASE=1; export DUALCASE # for MKS sh
12083as_nop=:
12084if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12085then :
12086  emulate sh
12087  NULLCMD=:
12088  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12089  # is contrary to our usage.  Disable this feature.
12090  alias -g '${1+"$@"}'='"$@"'
12091  setopt NO_GLOB_SUBST
12092else $as_nop
12093  case `(set -o) 2>/dev/null` in #(
12094  *posix*) :
12095    set -o posix ;; #(
12096  *) :
12097     ;;
12098esac
12099fi
12100
12101
12102
12103# Reset variables that may have inherited troublesome values from
12104# the environment.
12105
12106# IFS needs to be set, to space, tab, and newline, in precisely that order.
12107# (If _AS_PATH_WALK were called with IFS unset, it would have the
12108# side effect of setting IFS to empty, thus disabling word splitting.)
12109# Quoting is to prevent editors from complaining about space-tab.
12110as_nl='
12111'
12112export as_nl
12113IFS=" ""	$as_nl"
12114
12115PS1='$ '
12116PS2='> '
12117PS4='+ '
12118
12119# Ensure predictable behavior from utilities with locale-dependent output.
12120LC_ALL=C
12121export LC_ALL
12122LANGUAGE=C
12123export LANGUAGE
12124
12125# We cannot yet rely on "unset" to work, but we need these variables
12126# to be unset--not just set to an empty or harmless value--now, to
12127# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12128# also avoids known problems related to "unset" and subshell syntax
12129# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12130for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12131do eval test \${$as_var+y} \
12132  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12133done
12134
12135# Ensure that fds 0, 1, and 2 are open.
12136if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12137if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12138if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12139
12140# The user is always right.
12141if ${PATH_SEPARATOR+false} :; then
12142  PATH_SEPARATOR=:
12143  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12144    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12145      PATH_SEPARATOR=';'
12146  }
12147fi
12148
12149
12150# Find who we are.  Look in the path if we contain no directory separator.
12151as_myself=
12152case $0 in #((
12153  *[\\/]* ) as_myself=$0 ;;
12154  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155for as_dir in $PATH
12156do
12157  IFS=$as_save_IFS
12158  case $as_dir in #(((
12159    '') as_dir=./ ;;
12160    */) ;;
12161    *) as_dir=$as_dir/ ;;
12162  esac
12163    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12164  done
12165IFS=$as_save_IFS
12166
12167     ;;
12168esac
12169# We did not find ourselves, most probably we were run as `sh COMMAND'
12170# in which case we are not to be found in the path.
12171if test "x$as_myself" = x; then
12172  as_myself=$0
12173fi
12174if test ! -f "$as_myself"; then
12175  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12176  exit 1
12177fi
12178
12179
12180
12181# as_fn_error STATUS ERROR [LINENO LOG_FD]
12182# ----------------------------------------
12183# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12184# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12185# script with STATUS, using 1 if that was 0.
12186as_fn_error ()
12187{
12188  as_status=$1; test $as_status -eq 0 && as_status=1
12189  if test "$4"; then
12190    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12191    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12192  fi
12193  printf "%s\n" "$as_me: error: $2" >&2
12194  as_fn_exit $as_status
12195} # as_fn_error
12196
12197
12198
12199# as_fn_set_status STATUS
12200# -----------------------
12201# Set $? to STATUS, without forking.
12202as_fn_set_status ()
12203{
12204  return $1
12205} # as_fn_set_status
12206
12207# as_fn_exit STATUS
12208# -----------------
12209# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12210as_fn_exit ()
12211{
12212  set +e
12213  as_fn_set_status $1
12214  exit $1
12215} # as_fn_exit
12216
12217# as_fn_unset VAR
12218# ---------------
12219# Portably unset VAR.
12220as_fn_unset ()
12221{
12222  { eval $1=; unset $1;}
12223}
12224as_unset=as_fn_unset
12225
12226# as_fn_append VAR VALUE
12227# ----------------------
12228# Append the text in VALUE to the end of the definition contained in VAR. Take
12229# advantage of any shell optimizations that allow amortized linear growth over
12230# repeated appends, instead of the typical quadratic growth present in naive
12231# implementations.
12232if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12233then :
12234  eval 'as_fn_append ()
12235  {
12236    eval $1+=\$2
12237  }'
12238else $as_nop
12239  as_fn_append ()
12240  {
12241    eval $1=\$$1\$2
12242  }
12243fi # as_fn_append
12244
12245# as_fn_arith ARG...
12246# ------------------
12247# Perform arithmetic evaluation on the ARGs, and store the result in the
12248# global $as_val. Take advantage of shells that can avoid forks. The arguments
12249# must be portable across $(()) and expr.
12250if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12251then :
12252  eval 'as_fn_arith ()
12253  {
12254    as_val=$(( $* ))
12255  }'
12256else $as_nop
12257  as_fn_arith ()
12258  {
12259    as_val=`expr "$@" || test $? -eq 1`
12260  }
12261fi # as_fn_arith
12262
12263
12264if expr a : '\(a\)' >/dev/null 2>&1 &&
12265   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12266  as_expr=expr
12267else
12268  as_expr=false
12269fi
12270
12271if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12272  as_basename=basename
12273else
12274  as_basename=false
12275fi
12276
12277if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12278  as_dirname=dirname
12279else
12280  as_dirname=false
12281fi
12282
12283as_me=`$as_basename -- "$0" ||
12284$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12285	 X"$0" : 'X\(//\)$' \| \
12286	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12287printf "%s\n" X/"$0" |
12288    sed '/^.*\/\([^/][^/]*\)\/*$/{
12289	    s//\1/
12290	    q
12291	  }
12292	  /^X\/\(\/\/\)$/{
12293	    s//\1/
12294	    q
12295	  }
12296	  /^X\/\(\/\).*/{
12297	    s//\1/
12298	    q
12299	  }
12300	  s/.*/./; q'`
12301
12302# Avoid depending upon Character Ranges.
12303as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12304as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12305as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12306as_cr_digits='0123456789'
12307as_cr_alnum=$as_cr_Letters$as_cr_digits
12308
12309
12310# Determine whether it's possible to make 'echo' print without a newline.
12311# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12312# for compatibility with existing Makefiles.
12313ECHO_C= ECHO_N= ECHO_T=
12314case `echo -n x` in #(((((
12315-n*)
12316  case `echo 'xy\c'` in
12317  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12318  xy)  ECHO_C='\c';;
12319  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12320       ECHO_T='	';;
12321  esac;;
12322*)
12323  ECHO_N='-n';;
12324esac
12325
12326# For backward compatibility with old third-party macros, we provide
12327# the shell variables $as_echo and $as_echo_n.  New code should use
12328# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12329as_echo='printf %s\n'
12330as_echo_n='printf %s'
12331
12332rm -f conf$$ conf$$.exe conf$$.file
12333if test -d conf$$.dir; then
12334  rm -f conf$$.dir/conf$$.file
12335else
12336  rm -f conf$$.dir
12337  mkdir conf$$.dir 2>/dev/null
12338fi
12339if (echo >conf$$.file) 2>/dev/null; then
12340  if ln -s conf$$.file conf$$ 2>/dev/null; then
12341    as_ln_s='ln -s'
12342    # ... but there are two gotchas:
12343    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12344    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12345    # In both cases, we have to default to `cp -pR'.
12346    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12347      as_ln_s='cp -pR'
12348  elif ln conf$$.file conf$$ 2>/dev/null; then
12349    as_ln_s=ln
12350  else
12351    as_ln_s='cp -pR'
12352  fi
12353else
12354  as_ln_s='cp -pR'
12355fi
12356rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12357rmdir conf$$.dir 2>/dev/null
12358
12359
12360# as_fn_mkdir_p
12361# -------------
12362# Create "$as_dir" as a directory, including parents if necessary.
12363as_fn_mkdir_p ()
12364{
12365
12366  case $as_dir in #(
12367  -*) as_dir=./$as_dir;;
12368  esac
12369  test -d "$as_dir" || eval $as_mkdir_p || {
12370    as_dirs=
12371    while :; do
12372      case $as_dir in #(
12373      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12374      *) as_qdir=$as_dir;;
12375      esac
12376      as_dirs="'$as_qdir' $as_dirs"
12377      as_dir=`$as_dirname -- "$as_dir" ||
12378$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12379	 X"$as_dir" : 'X\(//\)[^/]' \| \
12380	 X"$as_dir" : 'X\(//\)$' \| \
12381	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12382printf "%s\n" X"$as_dir" |
12383    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12384	    s//\1/
12385	    q
12386	  }
12387	  /^X\(\/\/\)[^/].*/{
12388	    s//\1/
12389	    q
12390	  }
12391	  /^X\(\/\/\)$/{
12392	    s//\1/
12393	    q
12394	  }
12395	  /^X\(\/\).*/{
12396	    s//\1/
12397	    q
12398	  }
12399	  s/.*/./; q'`
12400      test -d "$as_dir" && break
12401    done
12402    test -z "$as_dirs" || eval "mkdir $as_dirs"
12403  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12404
12405
12406} # as_fn_mkdir_p
12407if mkdir -p . 2>/dev/null; then
12408  as_mkdir_p='mkdir -p "$as_dir"'
12409else
12410  test -d ./-p && rmdir ./-p
12411  as_mkdir_p=false
12412fi
12413
12414
12415# as_fn_executable_p FILE
12416# -----------------------
12417# Test if FILE is an executable regular file.
12418as_fn_executable_p ()
12419{
12420  test -f "$1" && test -x "$1"
12421} # as_fn_executable_p
12422as_test_x='test -x'
12423as_executable_p=as_fn_executable_p
12424
12425# Sed expression to map a string onto a valid CPP name.
12426as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12427
12428# Sed expression to map a string onto a valid variable name.
12429as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12430
12431
12432exec 6>&1
12433## ----------------------------------- ##
12434## Main body of $CONFIG_STATUS script. ##
12435## ----------------------------------- ##
12436_ASEOF
12437test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12438
12439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12440# Save the log message, to keep $0 and so on meaningful, and to
12441# report actual input values of CONFIG_FILES etc. instead of their
12442# values after options handling.
12443ac_log="
12444This file was extended by xset $as_me 1.2.5, which was
12445generated by GNU Autoconf 2.71.  Invocation command line was
12446
12447  CONFIG_FILES    = $CONFIG_FILES
12448  CONFIG_HEADERS  = $CONFIG_HEADERS
12449  CONFIG_LINKS    = $CONFIG_LINKS
12450  CONFIG_COMMANDS = $CONFIG_COMMANDS
12451  $ $0 $@
12452
12453on `(hostname || uname -n) 2>/dev/null | sed 1q`
12454"
12455
12456_ACEOF
12457
12458case $ac_config_files in *"
12459"*) set x $ac_config_files; shift; ac_config_files=$*;;
12460esac
12461
12462case $ac_config_headers in *"
12463"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12464esac
12465
12466
12467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12468# Files that config.status was made for.
12469config_files="$ac_config_files"
12470config_headers="$ac_config_headers"
12471config_commands="$ac_config_commands"
12472
12473_ACEOF
12474
12475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12476ac_cs_usage="\
12477\`$as_me' instantiates files and other configuration actions
12478from templates according to the current configuration.  Unless the files
12479and actions are specified as TAGs, all are instantiated by default.
12480
12481Usage: $0 [OPTION]... [TAG]...
12482
12483  -h, --help       print this help, then exit
12484  -V, --version    print version number and configuration settings, then exit
12485      --config     print configuration, then exit
12486  -q, --quiet, --silent
12487                   do not print progress messages
12488  -d, --debug      don't remove temporary files
12489      --recheck    update $as_me by reconfiguring in the same conditions
12490      --file=FILE[:TEMPLATE]
12491                   instantiate the configuration file FILE
12492      --header=FILE[:TEMPLATE]
12493                   instantiate the configuration header FILE
12494
12495Configuration files:
12496$config_files
12497
12498Configuration headers:
12499$config_headers
12500
12501Configuration commands:
12502$config_commands
12503
12504Report bugs to <https://gitlab.freedesktop.org/xorg/app/xset/-/issues>."
12505
12506_ACEOF
12507ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12508ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12510ac_cs_config='$ac_cs_config_escaped'
12511ac_cs_version="\\
12512xset config.status 1.2.5
12513configured by $0, generated by GNU Autoconf 2.71,
12514  with options \\"\$ac_cs_config\\"
12515
12516Copyright (C) 2021 Free Software Foundation, Inc.
12517This config.status script is free software; the Free Software Foundation
12518gives unlimited permission to copy, distribute and modify it."
12519
12520ac_pwd='$ac_pwd'
12521srcdir='$srcdir'
12522INSTALL='$INSTALL'
12523MKDIR_P='$MKDIR_P'
12524AWK='$AWK'
12525test -n "\$AWK" || AWK=awk
12526_ACEOF
12527
12528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12529# The default lists apply if the user does not specify any file.
12530ac_need_defaults=:
12531while test $# != 0
12532do
12533  case $1 in
12534  --*=?*)
12535    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12536    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12537    ac_shift=:
12538    ;;
12539  --*=)
12540    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12541    ac_optarg=
12542    ac_shift=:
12543    ;;
12544  *)
12545    ac_option=$1
12546    ac_optarg=$2
12547    ac_shift=shift
12548    ;;
12549  esac
12550
12551  case $ac_option in
12552  # Handling of the options.
12553  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12554    ac_cs_recheck=: ;;
12555  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12556    printf "%s\n" "$ac_cs_version"; exit ;;
12557  --config | --confi | --conf | --con | --co | --c )
12558    printf "%s\n" "$ac_cs_config"; exit ;;
12559  --debug | --debu | --deb | --de | --d | -d )
12560    debug=: ;;
12561  --file | --fil | --fi | --f )
12562    $ac_shift
12563    case $ac_optarg in
12564    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12565    '') as_fn_error $? "missing file argument" ;;
12566    esac
12567    as_fn_append CONFIG_FILES " '$ac_optarg'"
12568    ac_need_defaults=false;;
12569  --header | --heade | --head | --hea )
12570    $ac_shift
12571    case $ac_optarg in
12572    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12573    esac
12574    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12575    ac_need_defaults=false;;
12576  --he | --h)
12577    # Conflict between --help and --header
12578    as_fn_error $? "ambiguous option: \`$1'
12579Try \`$0 --help' for more information.";;
12580  --help | --hel | -h )
12581    printf "%s\n" "$ac_cs_usage"; exit ;;
12582  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12583  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12584    ac_cs_silent=: ;;
12585
12586  # This is an error.
12587  -*) as_fn_error $? "unrecognized option: \`$1'
12588Try \`$0 --help' for more information." ;;
12589
12590  *) as_fn_append ac_config_targets " $1"
12591     ac_need_defaults=false ;;
12592
12593  esac
12594  shift
12595done
12596
12597ac_configure_extra_args=
12598
12599if $ac_cs_silent; then
12600  exec 6>/dev/null
12601  ac_configure_extra_args="$ac_configure_extra_args --silent"
12602fi
12603
12604_ACEOF
12605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12606if \$ac_cs_recheck; then
12607  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12608  shift
12609  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12610  CONFIG_SHELL='$SHELL'
12611  export CONFIG_SHELL
12612  exec "\$@"
12613fi
12614
12615_ACEOF
12616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12617exec 5>>config.log
12618{
12619  echo
12620  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12621## Running $as_me. ##
12622_ASBOX
12623  printf "%s\n" "$ac_log"
12624} >&5
12625
12626_ACEOF
12627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12628#
12629# INIT-COMMANDS
12630#
12631AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12632
12633_ACEOF
12634
12635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12636
12637# Handling of arguments.
12638for ac_config_target in $ac_config_targets
12639do
12640  case $ac_config_target in
12641    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12642    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12643    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12644    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12645
12646  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12647  esac
12648done
12649
12650
12651# If the user did not use the arguments to specify the items to instantiate,
12652# then the envvar interface is used.  Set only those that are not.
12653# We use the long form for the default assignment because of an extremely
12654# bizarre bug on SunOS 4.1.3.
12655if $ac_need_defaults; then
12656  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12657  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12658  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12659fi
12660
12661# Have a temporary directory for convenience.  Make it in the build tree
12662# simply because there is no reason against having it here, and in addition,
12663# creating and moving files from /tmp can sometimes cause problems.
12664# Hook for its removal unless debugging.
12665# Note that there is a small window in which the directory will not be cleaned:
12666# after its creation but before its name has been assigned to `$tmp'.
12667$debug ||
12668{
12669  tmp= ac_tmp=
12670  trap 'exit_status=$?
12671  : "${ac_tmp:=$tmp}"
12672  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12673' 0
12674  trap 'as_fn_exit 1' 1 2 13 15
12675}
12676# Create a (secure) tmp directory for tmp files.
12677
12678{
12679  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12680  test -d "$tmp"
12681}  ||
12682{
12683  tmp=./conf$$-$RANDOM
12684  (umask 077 && mkdir "$tmp")
12685} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12686ac_tmp=$tmp
12687
12688# Set up the scripts for CONFIG_FILES section.
12689# No need to generate them if there are no CONFIG_FILES.
12690# This happens for instance with `./config.status config.h'.
12691if test -n "$CONFIG_FILES"; then
12692
12693
12694ac_cr=`echo X | tr X '\015'`
12695# On cygwin, bash can eat \r inside `` if the user requested igncr.
12696# But we know of no other shell where ac_cr would be empty at this
12697# point, so we can use a bashism as a fallback.
12698if test "x$ac_cr" = x; then
12699  eval ac_cr=\$\'\\r\'
12700fi
12701ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12702if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12703  ac_cs_awk_cr='\\r'
12704else
12705  ac_cs_awk_cr=$ac_cr
12706fi
12707
12708echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12709_ACEOF
12710
12711
12712{
12713  echo "cat >conf$$subs.awk <<_ACEOF" &&
12714  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12715  echo "_ACEOF"
12716} >conf$$subs.sh ||
12717  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12718ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12719ac_delim='%!_!# '
12720for ac_last_try in false false false false false :; do
12721  . ./conf$$subs.sh ||
12722    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12723
12724  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12725  if test $ac_delim_n = $ac_delim_num; then
12726    break
12727  elif $ac_last_try; then
12728    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12729  else
12730    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12731  fi
12732done
12733rm -f conf$$subs.sh
12734
12735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12736cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12737_ACEOF
12738sed -n '
12739h
12740s/^/S["/; s/!.*/"]=/
12741p
12742g
12743s/^[^!]*!//
12744:repl
12745t repl
12746s/'"$ac_delim"'$//
12747t delim
12748:nl
12749h
12750s/\(.\{148\}\)..*/\1/
12751t more1
12752s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12753p
12754n
12755b repl
12756:more1
12757s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12758p
12759g
12760s/.\{148\}//
12761t nl
12762:delim
12763h
12764s/\(.\{148\}\)..*/\1/
12765t more2
12766s/["\\]/\\&/g; s/^/"/; s/$/"/
12767p
12768b
12769:more2
12770s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12771p
12772g
12773s/.\{148\}//
12774t delim
12775' <conf$$subs.awk | sed '
12776/^[^""]/{
12777  N
12778  s/\n//
12779}
12780' >>$CONFIG_STATUS || ac_write_fail=1
12781rm -f conf$$subs.awk
12782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12783_ACAWK
12784cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12785  for (key in S) S_is_set[key] = 1
12786  FS = ""
12787
12788}
12789{
12790  line = $ 0
12791  nfields = split(line, field, "@")
12792  substed = 0
12793  len = length(field[1])
12794  for (i = 2; i < nfields; i++) {
12795    key = field[i]
12796    keylen = length(key)
12797    if (S_is_set[key]) {
12798      value = S[key]
12799      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12800      len += length(value) + length(field[++i])
12801      substed = 1
12802    } else
12803      len += 1 + keylen
12804  }
12805
12806  print line
12807}
12808
12809_ACAWK
12810_ACEOF
12811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12812if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12813  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12814else
12815  cat
12816fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12817  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12818_ACEOF
12819
12820# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12821# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12822# trailing colons and then remove the whole line if VPATH becomes empty
12823# (actually we leave an empty line to preserve line numbers).
12824if test "x$srcdir" = x.; then
12825  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12826h
12827s///
12828s/^/:/
12829s/[	 ]*$/:/
12830s/:\$(srcdir):/:/g
12831s/:\${srcdir}:/:/g
12832s/:@srcdir@:/:/g
12833s/^:*//
12834s/:*$//
12835x
12836s/\(=[	 ]*\).*/\1/
12837G
12838s/\n//
12839s/^[^=]*=[	 ]*$//
12840}'
12841fi
12842
12843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12844fi # test -n "$CONFIG_FILES"
12845
12846# Set up the scripts for CONFIG_HEADERS section.
12847# No need to generate them if there are no CONFIG_HEADERS.
12848# This happens for instance with `./config.status Makefile'.
12849if test -n "$CONFIG_HEADERS"; then
12850cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12851BEGIN {
12852_ACEOF
12853
12854# Transform confdefs.h into an awk script `defines.awk', embedded as
12855# here-document in config.status, that substitutes the proper values into
12856# config.h.in to produce config.h.
12857
12858# Create a delimiter string that does not exist in confdefs.h, to ease
12859# handling of long lines.
12860ac_delim='%!_!# '
12861for ac_last_try in false false :; do
12862  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12863  if test -z "$ac_tt"; then
12864    break
12865  elif $ac_last_try; then
12866    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12867  else
12868    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12869  fi
12870done
12871
12872# For the awk script, D is an array of macro values keyed by name,
12873# likewise P contains macro parameters if any.  Preserve backslash
12874# newline sequences.
12875
12876ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12877sed -n '
12878s/.\{148\}/&'"$ac_delim"'/g
12879t rset
12880:rset
12881s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12882t def
12883d
12884:def
12885s/\\$//
12886t bsnl
12887s/["\\]/\\&/g
12888s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12889D["\1"]=" \3"/p
12890s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12891d
12892:bsnl
12893s/["\\]/\\&/g
12894s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12895D["\1"]=" \3\\\\\\n"\\/p
12896t cont
12897s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12898t cont
12899d
12900:cont
12901n
12902s/.\{148\}/&'"$ac_delim"'/g
12903t clear
12904:clear
12905s/\\$//
12906t bsnlc
12907s/["\\]/\\&/g; s/^/"/; s/$/"/p
12908d
12909:bsnlc
12910s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12911b cont
12912' <confdefs.h | sed '
12913s/'"$ac_delim"'/"\\\
12914"/g' >>$CONFIG_STATUS || ac_write_fail=1
12915
12916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12917  for (key in D) D_is_set[key] = 1
12918  FS = ""
12919}
12920/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12921  line = \$ 0
12922  split(line, arg, " ")
12923  if (arg[1] == "#") {
12924    defundef = arg[2]
12925    mac1 = arg[3]
12926  } else {
12927    defundef = substr(arg[1], 2)
12928    mac1 = arg[2]
12929  }
12930  split(mac1, mac2, "(") #)
12931  macro = mac2[1]
12932  prefix = substr(line, 1, index(line, defundef) - 1)
12933  if (D_is_set[macro]) {
12934    # Preserve the white space surrounding the "#".
12935    print prefix "define", macro P[macro] D[macro]
12936    next
12937  } else {
12938    # Replace #undef with comments.  This is necessary, for example,
12939    # in the case of _POSIX_SOURCE, which is predefined and required
12940    # on some systems where configure will not decide to define it.
12941    if (defundef == "undef") {
12942      print "/*", prefix defundef, macro, "*/"
12943      next
12944    }
12945  }
12946}
12947{ print }
12948_ACAWK
12949_ACEOF
12950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12951  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12952fi # test -n "$CONFIG_HEADERS"
12953
12954
12955eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12956shift
12957for ac_tag
12958do
12959  case $ac_tag in
12960  :[FHLC]) ac_mode=$ac_tag; continue;;
12961  esac
12962  case $ac_mode$ac_tag in
12963  :[FHL]*:*);;
12964  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12965  :[FH]-) ac_tag=-:-;;
12966  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12967  esac
12968  ac_save_IFS=$IFS
12969  IFS=:
12970  set x $ac_tag
12971  IFS=$ac_save_IFS
12972  shift
12973  ac_file=$1
12974  shift
12975
12976  case $ac_mode in
12977  :L) ac_source=$1;;
12978  :[FH])
12979    ac_file_inputs=
12980    for ac_f
12981    do
12982      case $ac_f in
12983      -) ac_f="$ac_tmp/stdin";;
12984      *) # Look for the file first in the build tree, then in the source tree
12985	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12986	 # because $ac_f cannot contain `:'.
12987	 test -f "$ac_f" ||
12988	   case $ac_f in
12989	   [\\/$]*) false;;
12990	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12991	   esac ||
12992	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12993      esac
12994      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12995      as_fn_append ac_file_inputs " '$ac_f'"
12996    done
12997
12998    # Let's still pretend it is `configure' which instantiates (i.e., don't
12999    # use $as_me), people would be surprised to read:
13000    #    /* config.h.  Generated by config.status.  */
13001    configure_input='Generated from '`
13002	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13003	`' by configure.'
13004    if test x"$ac_file" != x-; then
13005      configure_input="$ac_file.  $configure_input"
13006      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13007printf "%s\n" "$as_me: creating $ac_file" >&6;}
13008    fi
13009    # Neutralize special characters interpreted by sed in replacement strings.
13010    case $configure_input in #(
13011    *\&* | *\|* | *\\* )
13012       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13013       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13014    *) ac_sed_conf_input=$configure_input;;
13015    esac
13016
13017    case $ac_tag in
13018    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13019      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13020    esac
13021    ;;
13022  esac
13023
13024  ac_dir=`$as_dirname -- "$ac_file" ||
13025$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13026	 X"$ac_file" : 'X\(//\)[^/]' \| \
13027	 X"$ac_file" : 'X\(//\)$' \| \
13028	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13029printf "%s\n" X"$ac_file" |
13030    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13031	    s//\1/
13032	    q
13033	  }
13034	  /^X\(\/\/\)[^/].*/{
13035	    s//\1/
13036	    q
13037	  }
13038	  /^X\(\/\/\)$/{
13039	    s//\1/
13040	    q
13041	  }
13042	  /^X\(\/\).*/{
13043	    s//\1/
13044	    q
13045	  }
13046	  s/.*/./; q'`
13047  as_dir="$ac_dir"; as_fn_mkdir_p
13048  ac_builddir=.
13049
13050case "$ac_dir" in
13051.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13052*)
13053  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13054  # A ".." for each directory in $ac_dir_suffix.
13055  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13056  case $ac_top_builddir_sub in
13057  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13058  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13059  esac ;;
13060esac
13061ac_abs_top_builddir=$ac_pwd
13062ac_abs_builddir=$ac_pwd$ac_dir_suffix
13063# for backward compatibility:
13064ac_top_builddir=$ac_top_build_prefix
13065
13066case $srcdir in
13067  .)  # We are building in place.
13068    ac_srcdir=.
13069    ac_top_srcdir=$ac_top_builddir_sub
13070    ac_abs_top_srcdir=$ac_pwd ;;
13071  [\\/]* | ?:[\\/]* )  # Absolute name.
13072    ac_srcdir=$srcdir$ac_dir_suffix;
13073    ac_top_srcdir=$srcdir
13074    ac_abs_top_srcdir=$srcdir ;;
13075  *) # Relative name.
13076    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13077    ac_top_srcdir=$ac_top_build_prefix$srcdir
13078    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13079esac
13080ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13081
13082
13083  case $ac_mode in
13084  :F)
13085  #
13086  # CONFIG_FILE
13087  #
13088
13089  case $INSTALL in
13090  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13091  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13092  esac
13093  ac_MKDIR_P=$MKDIR_P
13094  case $MKDIR_P in
13095  [\\/$]* | ?:[\\/]* ) ;;
13096  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13097  esac
13098_ACEOF
13099
13100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13101# If the template does not know about datarootdir, expand it.
13102# FIXME: This hack should be removed a few years after 2.60.
13103ac_datarootdir_hack=; ac_datarootdir_seen=
13104ac_sed_dataroot='
13105/datarootdir/ {
13106  p
13107  q
13108}
13109/@datadir@/p
13110/@docdir@/p
13111/@infodir@/p
13112/@localedir@/p
13113/@mandir@/p'
13114case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13115*datarootdir*) ac_datarootdir_seen=yes;;
13116*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13118printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13119_ACEOF
13120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13121  ac_datarootdir_hack='
13122  s&@datadir@&$datadir&g
13123  s&@docdir@&$docdir&g
13124  s&@infodir@&$infodir&g
13125  s&@localedir@&$localedir&g
13126  s&@mandir@&$mandir&g
13127  s&\\\${datarootdir}&$datarootdir&g' ;;
13128esac
13129_ACEOF
13130
13131# Neutralize VPATH when `$srcdir' = `.'.
13132# Shell code in configure.ac might set extrasub.
13133# FIXME: do we really want to maintain this feature?
13134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13135ac_sed_extra="$ac_vpsub
13136$extrasub
13137_ACEOF
13138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13139:t
13140/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13141s|@configure_input@|$ac_sed_conf_input|;t t
13142s&@top_builddir@&$ac_top_builddir_sub&;t t
13143s&@top_build_prefix@&$ac_top_build_prefix&;t t
13144s&@srcdir@&$ac_srcdir&;t t
13145s&@abs_srcdir@&$ac_abs_srcdir&;t t
13146s&@top_srcdir@&$ac_top_srcdir&;t t
13147s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13148s&@builddir@&$ac_builddir&;t t
13149s&@abs_builddir@&$ac_abs_builddir&;t t
13150s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13151s&@INSTALL@&$ac_INSTALL&;t t
13152s&@MKDIR_P@&$ac_MKDIR_P&;t t
13153$ac_datarootdir_hack
13154"
13155eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13156  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13157
13158test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13159  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13160  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13161      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13163which seems to be undefined.  Please make sure it is defined" >&5
13164printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13165which seems to be undefined.  Please make sure it is defined" >&2;}
13166
13167  rm -f "$ac_tmp/stdin"
13168  case $ac_file in
13169  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13170  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13171  esac \
13172  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13173 ;;
13174  :H)
13175  #
13176  # CONFIG_HEADER
13177  #
13178  if test x"$ac_file" != x-; then
13179    {
13180      printf "%s\n" "/* $configure_input  */" >&1 \
13181      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13182    } >"$ac_tmp/config.h" \
13183      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13184    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13185      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13186printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13187    else
13188      rm -f "$ac_file"
13189      mv "$ac_tmp/config.h" "$ac_file" \
13190	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13191    fi
13192  else
13193    printf "%s\n" "/* $configure_input  */" >&1 \
13194      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13195      || as_fn_error $? "could not create -" "$LINENO" 5
13196  fi
13197# Compute "$ac_file"'s index in $config_headers.
13198_am_arg="$ac_file"
13199_am_stamp_count=1
13200for _am_header in $config_headers :; do
13201  case $_am_header in
13202    $_am_arg | $_am_arg:* )
13203      break ;;
13204    * )
13205      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13206  esac
13207done
13208echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13209$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13210	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13211	 X"$_am_arg" : 'X\(//\)$' \| \
13212	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13213printf "%s\n" X"$_am_arg" |
13214    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13215	    s//\1/
13216	    q
13217	  }
13218	  /^X\(\/\/\)[^/].*/{
13219	    s//\1/
13220	    q
13221	  }
13222	  /^X\(\/\/\)$/{
13223	    s//\1/
13224	    q
13225	  }
13226	  /^X\(\/\).*/{
13227	    s//\1/
13228	    q
13229	  }
13230	  s/.*/./; q'`/stamp-h$_am_stamp_count
13231 ;;
13232
13233  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13234printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13235 ;;
13236  esac
13237
13238
13239  case $ac_file$ac_mode in
13240    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13241  # Older Autoconf quotes --file arguments for eval, but not when files
13242  # are listed without --file.  Let's play safe and only enable the eval
13243  # if we detect the quoting.
13244  # TODO: see whether this extra hack can be removed once we start
13245  # requiring Autoconf 2.70 or later.
13246  case $CONFIG_FILES in #(
13247  *\'*) :
13248    eval set x "$CONFIG_FILES" ;; #(
13249  *) :
13250    set x $CONFIG_FILES ;; #(
13251  *) :
13252     ;;
13253esac
13254  shift
13255  # Used to flag and report bootstrapping failures.
13256  am_rc=0
13257  for am_mf
13258  do
13259    # Strip MF so we end up with the name of the file.
13260    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13261    # Check whether this is an Automake generated Makefile which includes
13262    # dependency-tracking related rules and includes.
13263    # Grep'ing the whole file directly is not great: AIX grep has a line
13264    # limit of 2048, but all sed's we know have understand at least 4000.
13265    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13266      || continue
13267    am_dirpart=`$as_dirname -- "$am_mf" ||
13268$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13269	 X"$am_mf" : 'X\(//\)[^/]' \| \
13270	 X"$am_mf" : 'X\(//\)$' \| \
13271	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13272printf "%s\n" X"$am_mf" |
13273    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13274	    s//\1/
13275	    q
13276	  }
13277	  /^X\(\/\/\)[^/].*/{
13278	    s//\1/
13279	    q
13280	  }
13281	  /^X\(\/\/\)$/{
13282	    s//\1/
13283	    q
13284	  }
13285	  /^X\(\/\).*/{
13286	    s//\1/
13287	    q
13288	  }
13289	  s/.*/./; q'`
13290    am_filepart=`$as_basename -- "$am_mf" ||
13291$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13292	 X"$am_mf" : 'X\(//\)$' \| \
13293	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13294printf "%s\n" X/"$am_mf" |
13295    sed '/^.*\/\([^/][^/]*\)\/*$/{
13296	    s//\1/
13297	    q
13298	  }
13299	  /^X\/\(\/\/\)$/{
13300	    s//\1/
13301	    q
13302	  }
13303	  /^X\/\(\/\).*/{
13304	    s//\1/
13305	    q
13306	  }
13307	  s/.*/./; q'`
13308    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13309      && sed -e '/# am--include-marker/d' "$am_filepart" \
13310        | $MAKE -f - am--depfiles" >&5
13311   (cd "$am_dirpart" \
13312      && sed -e '/# am--include-marker/d' "$am_filepart" \
13313        | $MAKE -f - am--depfiles) >&5 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); } || am_rc=$?
13317  done
13318  if test $am_rc -ne 0; then
13319    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13320printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13321as_fn_error $? "Something went wrong bootstrapping makefile fragments
13322    for automatic dependency tracking.  If GNU make was not used, consider
13323    re-running the configure script with MAKE=\"gmake\" (or whatever is
13324    necessary).  You can also try re-running configure with the
13325    '--disable-dependency-tracking' option to at least be able to build
13326    the package (albeit without support for automatic dependency tracking).
13327See \`config.log' for more details" "$LINENO" 5; }
13328  fi
13329  { am_dirpart=; unset am_dirpart;}
13330  { am_filepart=; unset am_filepart;}
13331  { am_mf=; unset am_mf;}
13332  { am_rc=; unset am_rc;}
13333  rm -f conftest-deps.mk
13334}
13335 ;;
13336
13337  esac
13338done # for ac_tag
13339
13340
13341as_fn_exit 0
13342_ACEOF
13343ac_clean_files=$ac_clean_files_save
13344
13345test $ac_write_fail = 0 ||
13346  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13347
13348
13349# configure is writing to config.log, and then calls config.status.
13350# config.status does its own redirection, appending to config.log.
13351# Unfortunately, on DOS this fails, as config.log is still kept open
13352# by configure, so config.status won't be able to write to it; its
13353# output is simply discarded.  So we exec the FD to /dev/null,
13354# effectively closing config.log, so it can be properly (re)opened and
13355# appended to by config.status.  When coming back to configure, we
13356# need to make the FD available again.
13357if test "$no_create" != yes; then
13358  ac_cs_success=:
13359  ac_config_status_args=
13360  test "$silent" = yes &&
13361    ac_config_status_args="$ac_config_status_args --quiet"
13362  exec 5>/dev/null
13363  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13364  exec 5>>config.log
13365  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13366  # would make configure fail if this is the last instruction.
13367  $ac_cs_success || as_fn_exit 1
13368fi
13369if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13371printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13372fi
13373
13374
13375