1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xkbutils 1.0.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbutils/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
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 case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1"
188  if (eval "$as_required") 2>/dev/null
189then :
190  as_have_required=yes
191else case e in #(
192  e) as_have_required=no ;;
193esac
194fi
195  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196then :
197
198else case e in #(
199  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200as_found=false
201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202do
203  IFS=$as_save_IFS
204  case $as_dir in #(((
205    '') as_dir=./ ;;
206    */) ;;
207    *) as_dir=$as_dir/ ;;
208  esac
209  as_found=:
210  case $as_dir in #(
211	 /*)
212	   for as_base in sh bash ksh sh5; do
213	     # Try only shells that exist, to save several forks.
214	     as_shell=$as_dir$as_base
215	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217then :
218  CONFIG_SHELL=$as_shell as_have_required=yes
219		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220then :
221  break 2
222fi
223fi
224	   done;;
225       esac
226  as_found=false
227done
228IFS=$as_save_IFS
229if $as_found
230then :
231
232else case e in #(
233  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235then :
236  CONFIG_SHELL=$SHELL as_have_required=yes
237fi ;;
238esac
239fi
240
241
242      if test "x$CONFIG_SHELL" != x
243then :
244  export CONFIG_SHELL
245             # We cannot yet assume a decent shell, so we have to provide a
246# neutralization value for shells without unset; and this also
247# works around shells that cannot unset nonexistent variables.
248# Preserve -v and -x to the replacement shell.
249BASH_ENV=/dev/null
250ENV=/dev/null
251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252case $- in # ((((
253  *v*x* | *x*v* ) as_opts=-vx ;;
254  *v* ) as_opts=-v ;;
255  *x* ) as_opts=-x ;;
256  * ) as_opts= ;;
257esac
258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259# Admittedly, this is quite paranoid, since all the known shells bail
260# out after a failed 'exec'.
261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262exit 255
263fi
264
265    if test x$as_have_required = xno
266then :
267  printf "%s\n" "$0: This script requires a shell more modern than all"
268  printf "%s\n" "$0: the shells that I found on your system."
269  if test ${ZSH_VERSION+y} ; then
270    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272  else
273    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
274$0: https://gitlab.freedesktop.org/xorg/app/xkbutils/issues
275$0: about your system, including any error possibly output
276$0: before this message. Then install a modern shell, or
277$0: manually run the script under such a shell if you do
278$0: have one."
279  fi
280  exit 1
281fi ;;
282esac
283fi
284fi
285SHELL=${CONFIG_SHELL-/bin/sh}
286export SHELL
287# Unset more variables known to interfere with behavior of common tools.
288CLICOLOR_FORCE= GREP_OPTIONS=
289unset CLICOLOR_FORCE GREP_OPTIONS
290
291## --------------------- ##
292## M4sh Shell Functions. ##
293## --------------------- ##
294# as_fn_unset VAR
295# ---------------
296# Portably unset VAR.
297as_fn_unset ()
298{
299  { eval $1=; unset $1;}
300}
301as_unset=as_fn_unset
302
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309  return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317  set +e
318  as_fn_set_status $1
319  exit $1
320} # as_fn_exit
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
327
328  case $as_dir in #(
329  -*) as_dir=./$as_dir;;
330  esac
331  test -d "$as_dir" || eval $as_mkdir_p || {
332    as_dirs=
333    while :; do
334      case $as_dir in #(
335      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336      *) as_qdir=$as_dir;;
337      esac
338      as_dirs="'$as_qdir' $as_dirs"
339      as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341	 X"$as_dir" : 'X\(//\)[^/]' \| \
342	 X"$as_dir" : 'X\(//\)$' \| \
343	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344printf "%s\n" X"$as_dir" |
345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346	    s//\1/
347	    q
348	  }
349	  /^X\(\/\/\)[^/].*/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\).*/{
358	    s//\1/
359	    q
360	  }
361	  s/.*/./; q'`
362      test -d "$as_dir" && break
363    done
364    test -z "$as_dirs" || eval "mkdir $as_dirs"
365  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368} # as_fn_mkdir_p
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375  test -f "$1" && test -x "$1"
376} # as_fn_executable_p
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else case e in #(
390  e) as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  } ;;
394esac
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403then :
404  eval 'as_fn_arith ()
405  {
406    as_val=$(( $* ))
407  }'
408else case e in #(
409  e) as_fn_arith ()
410  {
411    as_val=`expr "$@" || test $? -eq 1`
412  } ;;
413esac
414fi # as_fn_arith
415
416
417# as_fn_error STATUS ERROR [LINENO LOG_FD]
418# ----------------------------------------
419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421# script with STATUS, using 1 if that was 0.
422as_fn_error ()
423{
424  as_status=$1; test $as_status -eq 0 && as_status=1
425  if test "$4"; then
426    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428  fi
429  printf "%s\n" "$as_me: error: $2" >&2
430  as_fn_exit $as_status
431} # as_fn_error
432
433if expr a : '\(a\)' >/dev/null 2>&1 &&
434   test "X`expr 00001 : '.*\(...\)'`" = X001; then
435  as_expr=expr
436else
437  as_expr=false
438fi
439
440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441  as_basename=basename
442else
443  as_basename=false
444fi
445
446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447  as_dirname=dirname
448else
449  as_dirname=false
450fi
451
452as_me=`$as_basename -- "$0" ||
453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454	 X"$0" : 'X\(//\)$' \| \
455	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456printf "%s\n" X/"$0" |
457    sed '/^.*\/\([^/][^/]*\)\/*$/{
458	    s//\1/
459	    q
460	  }
461	  /^X\/\(\/\/\)$/{
462	    s//\1/
463	    q
464	  }
465	  /^X\/\(\/\).*/{
466	    s//\1/
467	    q
468	  }
469	  s/.*/./; q'`
470
471# Avoid depending upon Character Ranges.
472as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475as_cr_digits='0123456789'
476as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479  as_lineno_1=$LINENO as_lineno_1a=$LINENO
480  as_lineno_2=$LINENO as_lineno_2a=$LINENO
481  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
484  sed -n '
485    p
486    /[$]LINENO/=
487  ' <$as_myself |
488    sed '
489      t clear
490      :clear
491      s/[$]LINENO.*/&-/
492      t lineno
493      b
494      :lineno
495      N
496      :loop
497      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498      t loop
499      s/-\n.*//
500    ' >$as_me.lineno &&
501  chmod +x "$as_me.lineno" ||
502    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505  # already done that, so ensure we don't try to do so again and fall
506  # in an infinite loop.  This has already happened in practice.
507  _as_can_reexec=no; export _as_can_reexec
508  # Don't try to exec as it changes $[0], causing all sort of problems
509  # (the dirname of $[0] is not the place where we might find the
510  # original and so on.  Autoconf is especially sensitive to this).
511  . "./$as_me.lineno"
512  # Exit status is that of the last command.
513  exit
514}
515
516
517# Determine whether it's possible to make 'echo' print without a newline.
518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519# for compatibility with existing Makefiles.
520ECHO_C= ECHO_N= ECHO_T=
521case `echo -n x` in #(((((
522-n*)
523  case `echo 'xy\c'` in
524  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
525  xy)  ECHO_C='\c';;
526  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
527       ECHO_T='	';;
528  esac;;
529*)
530  ECHO_N='-n';;
531esac
532
533# For backward compatibility with old third-party macros, we provide
534# the shell variables $as_echo and $as_echo_n.  New code should use
535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536as_echo='printf %s\n'
537as_echo_n='printf %s'
538
539rm -f conf$$ conf$$.exe conf$$.file
540if test -d conf$$.dir; then
541  rm -f conf$$.dir/conf$$.file
542else
543  rm -f conf$$.dir
544  mkdir conf$$.dir 2>/dev/null
545fi
546if (echo >conf$$.file) 2>/dev/null; then
547  if ln -s conf$$.file conf$$ 2>/dev/null; then
548    as_ln_s='ln -s'
549    # ... but there are two gotchas:
550    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552    # In both cases, we have to default to 'cp -pR'.
553    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554      as_ln_s='cp -pR'
555  elif ln conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s=ln
557  else
558    as_ln_s='cp -pR'
559  fi
560else
561  as_ln_s='cp -pR'
562fi
563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564rmdir conf$$.dir 2>/dev/null
565
566if mkdir -p . 2>/dev/null; then
567  as_mkdir_p='mkdir -p "$as_dir"'
568else
569  test -d ./-p && rmdir ./-p
570  as_mkdir_p=false
571fi
572
573as_test_x='test -x'
574as_executable_p=as_fn_executable_p
575
576# Sed expression to map a string onto a valid CPP name.
577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580# Sed expression to map a string onto a valid variable name.
581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585test -n "$DJDIR" || exec 7<&0 </dev/null
586exec 6>&1
587
588# Name of the host.
589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590# so uname gets run too.
591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593#
594# Initializations.
595#
596ac_default_prefix=/usr/local
597ac_clean_files=
598ac_config_libobj_dir=.
599LIBOBJS=
600cross_compiling=no
601subdirs=
602MFLAGS=
603MAKEFLAGS=
604
605# Identity of this package.
606PACKAGE_NAME='xkbutils'
607PACKAGE_TARNAME='xkbutils'
608PACKAGE_VERSION='1.0.6'
609PACKAGE_STRING='xkbutils 1.0.6'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbutils/issues'
611PACKAGE_URL=''
612
613ac_unique_file="Makefile.am"
614# Factoring default headers for most tests.
615ac_includes_default="\
616#include <stddef.h>
617#ifdef HAVE_STDIO_H
618# include <stdio.h>
619#endif
620#ifdef HAVE_STDLIB_H
621# include <stdlib.h>
622#endif
623#ifdef HAVE_STRING_H
624# include <string.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_STRINGS_H
633# include <strings.h>
634#endif
635#ifdef HAVE_SYS_TYPES_H
636# include <sys/types.h>
637#endif
638#ifdef HAVE_SYS_STAT_H
639# include <sys/stat.h>
640#endif
641#ifdef HAVE_UNISTD_H
642# include <unistd.h>
643#endif"
644
645ac_header_c_list=
646ac_subst_vars='am__EXEEXT_FALSE
647am__EXEEXT_TRUE
648LTLIBOBJS
649LIBOBJS
650XKBWATCH_LIBS
651XKBWATCH_CFLAGS
652XKBBELL_LIBS
653XKBBELL_CFLAGS
654XKBVLEDS_LIBS
655XKBVLEDS_CFLAGS
656MAN_SUBSTS
657XORG_MAN_PAGE
658ADMIN_MAN_DIR
659DRIVER_MAN_DIR
660MISC_MAN_DIR
661FILE_MAN_DIR
662LIB_MAN_DIR
663APP_MAN_DIR
664ADMIN_MAN_SUFFIX
665DRIVER_MAN_SUFFIX
666MISC_MAN_SUFFIX
667FILE_MAN_SUFFIX
668LIB_MAN_SUFFIX
669APP_MAN_SUFFIX
670SED
671host_os
672host_vendor
673host_cpu
674host
675build_os
676build_vendor
677build_cpu
678build
679INSTALL_CMD
680PKG_CONFIG_LIBDIR
681PKG_CONFIG_PATH
682PKG_CONFIG
683CHANGELOG_CMD
684STRICT_CFLAGS
685CWARNFLAGS
686BASE_CFLAGS
687am__fastdepCC_FALSE
688am__fastdepCC_TRUE
689CCDEPMODE
690am__nodep
691AMDEPBACKSLASH
692AMDEP_FALSE
693AMDEP_TRUE
694am__include
695DEPDIR
696OBJEXT
697EXEEXT
698ac_ct_CC
699CPPFLAGS
700LDFLAGS
701CFLAGS
702CC
703AM_BACKSLASH
704AM_DEFAULT_VERBOSITY
705AM_DEFAULT_V
706AM_V
707CSCOPE
708ETAGS
709CTAGS
710am__untar
711am__tar
712AMTAR
713am__leading_dot
714SET_MAKE
715AWK
716mkdir_p
717MKDIR_P
718INSTALL_STRIP_PROGRAM
719STRIP
720install_sh
721MAKEINFO
722AUTOHEADER
723AUTOMAKE
724AUTOCONF
725ACLOCAL
726VERSION
727PACKAGE
728CYGPATH_W
729am__isrc
730INSTALL_DATA
731INSTALL_SCRIPT
732INSTALL_PROGRAM
733target_alias
734host_alias
735build_alias
736LIBS
737ECHO_T
738ECHO_N
739ECHO_C
740DEFS
741mandir
742localedir
743libdir
744psdir
745pdfdir
746dvidir
747htmldir
748infodir
749docdir
750oldincludedir
751includedir
752runstatedir
753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_URL
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL
772am__quote'
773ac_subst_files=''
774ac_user_opts='
775enable_option_checking
776enable_silent_rules
777enable_dependency_tracking
778enable_selective_werror
779enable_strict_compilation
780'
781      ac_precious_vars='build_alias
782host_alias
783target_alias
784CC
785CFLAGS
786LDFLAGS
787LIBS
788CPPFLAGS
789PKG_CONFIG
790PKG_CONFIG_PATH
791PKG_CONFIG_LIBDIR
792XKBVLEDS_CFLAGS
793XKBVLEDS_LIBS
794XKBBELL_CFLAGS
795XKBBELL_LIBS
796XKBWATCH_CFLAGS
797XKBWATCH_LIBS'
798
799
800# Initialize some variables set by options.
801ac_init_help=
802ac_init_version=false
803ac_unrecognized_opts=
804ac_unrecognized_sep=
805# The variables have the same names as the options, with
806# dashes changed to underlines.
807cache_file=/dev/null
808exec_prefix=NONE
809no_create=
810no_recursion=
811prefix=NONE
812program_prefix=NONE
813program_suffix=NONE
814program_transform_name=s,x,x,
815silent=
816site=
817srcdir=
818verbose=
819x_includes=NONE
820x_libraries=NONE
821
822# Installation directory options.
823# These are left unexpanded so users can "make install exec_prefix=/foo"
824# and all the variables that are supposed to be based on exec_prefix
825# by default will actually change.
826# Use braces instead of parens because sh, perl, etc. also accept them.
827# (The list follows the same order as the GNU Coding Standards.)
828bindir='${exec_prefix}/bin'
829sbindir='${exec_prefix}/sbin'
830libexecdir='${exec_prefix}/libexec'
831datarootdir='${prefix}/share'
832datadir='${datarootdir}'
833sysconfdir='${prefix}/etc'
834sharedstatedir='${prefix}/com'
835localstatedir='${prefix}/var'
836runstatedir='${localstatedir}/run'
837includedir='${prefix}/include'
838oldincludedir='/usr/include'
839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
848
849ac_prev=
850ac_dashdash=
851for ac_option
852do
853  # If the previous option needs an argument, assign it.
854  if test -n "$ac_prev"; then
855    eval $ac_prev=\$ac_option
856    ac_prev=
857    continue
858  fi
859
860  case $ac_option in
861  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862  *=)   ac_optarg= ;;
863  *)    ac_optarg=yes ;;
864  esac
865
866  case $ac_dashdash$ac_option in
867  --)
868    ac_dashdash=yes ;;
869
870  -bindir | --bindir | --bindi | --bind | --bin | --bi)
871    ac_prev=bindir ;;
872  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873    bindir=$ac_optarg ;;
874
875  -build | --build | --buil | --bui | --bu)
876    ac_prev=build_alias ;;
877  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878    build_alias=$ac_optarg ;;
879
880  -cache-file | --cache-file | --cache-fil | --cache-fi \
881  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882    ac_prev=cache_file ;;
883  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885    cache_file=$ac_optarg ;;
886
887  --config-cache | -C)
888    cache_file=config.cache ;;
889
890  -datadir | --datadir | --datadi | --datad)
891    ac_prev=datadir ;;
892  -datadir=* | --datadir=* | --datadi=* | --datad=*)
893    datadir=$ac_optarg ;;
894
895  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896  | --dataroo | --dataro | --datar)
897    ac_prev=datarootdir ;;
898  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900    datarootdir=$ac_optarg ;;
901
902  -disable-* | --disable-*)
903    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904    # Reject names that are not valid shell variable names.
905    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906      as_fn_error $? "invalid feature name: '$ac_useropt'"
907    ac_useropt_orig=$ac_useropt
908    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
909    case $ac_user_opts in
910      *"
911"enable_$ac_useropt"
912"*) ;;
913      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914	 ac_unrecognized_sep=', ';;
915    esac
916    eval enable_$ac_useropt=no ;;
917
918  -docdir | --docdir | --docdi | --doc | --do)
919    ac_prev=docdir ;;
920  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921    docdir=$ac_optarg ;;
922
923  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924    ac_prev=dvidir ;;
925  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926    dvidir=$ac_optarg ;;
927
928  -enable-* | --enable-*)
929    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930    # Reject names that are not valid shell variable names.
931    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932      as_fn_error $? "invalid feature name: '$ac_useropt'"
933    ac_useropt_orig=$ac_useropt
934    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
935    case $ac_user_opts in
936      *"
937"enable_$ac_useropt"
938"*) ;;
939      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940	 ac_unrecognized_sep=', ';;
941    esac
942    eval enable_$ac_useropt=\$ac_optarg ;;
943
944  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946  | --exec | --exe | --ex)
947    ac_prev=exec_prefix ;;
948  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950  | --exec=* | --exe=* | --ex=*)
951    exec_prefix=$ac_optarg ;;
952
953  -gas | --gas | --ga | --g)
954    # Obsolete; use --with-gas.
955    with_gas=yes ;;
956
957  -help | --help | --hel | --he | -h)
958    ac_init_help=long ;;
959  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960    ac_init_help=recursive ;;
961  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962    ac_init_help=short ;;
963
964  -host | --host | --hos | --ho)
965    ac_prev=host_alias ;;
966  -host=* | --host=* | --hos=* | --ho=*)
967    host_alias=$ac_optarg ;;
968
969  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970    ac_prev=htmldir ;;
971  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972  | --ht=*)
973    htmldir=$ac_optarg ;;
974
975  -includedir | --includedir | --includedi | --included | --include \
976  | --includ | --inclu | --incl | --inc)
977    ac_prev=includedir ;;
978  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979  | --includ=* | --inclu=* | --incl=* | --inc=*)
980    includedir=$ac_optarg ;;
981
982  -infodir | --infodir | --infodi | --infod | --info | --inf)
983    ac_prev=infodir ;;
984  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985    infodir=$ac_optarg ;;
986
987  -libdir | --libdir | --libdi | --libd)
988    ac_prev=libdir ;;
989  -libdir=* | --libdir=* | --libdi=* | --libd=*)
990    libdir=$ac_optarg ;;
991
992  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993  | --libexe | --libex | --libe)
994    ac_prev=libexecdir ;;
995  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996  | --libexe=* | --libex=* | --libe=*)
997    libexecdir=$ac_optarg ;;
998
999  -localedir | --localedir | --localedi | --localed | --locale)
1000    ac_prev=localedir ;;
1001  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002    localedir=$ac_optarg ;;
1003
1004  -localstatedir | --localstatedir | --localstatedi | --localstated \
1005  | --localstate | --localstat | --localsta | --localst | --locals)
1006    ac_prev=localstatedir ;;
1007  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009    localstatedir=$ac_optarg ;;
1010
1011  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012    ac_prev=mandir ;;
1013  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014    mandir=$ac_optarg ;;
1015
1016  -nfp | --nfp | --nf)
1017    # Obsolete; use --without-fp.
1018    with_fp=no ;;
1019
1020  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021  | --no-cr | --no-c | -n)
1022    no_create=yes ;;
1023
1024  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026    no_recursion=yes ;;
1027
1028  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030  | --oldin | --oldi | --old | --ol | --o)
1031    ac_prev=oldincludedir ;;
1032  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035    oldincludedir=$ac_optarg ;;
1036
1037  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038    ac_prev=prefix ;;
1039  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040    prefix=$ac_optarg ;;
1041
1042  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043  | --program-pre | --program-pr | --program-p)
1044    ac_prev=program_prefix ;;
1045  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047    program_prefix=$ac_optarg ;;
1048
1049  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050  | --program-suf | --program-su | --program-s)
1051    ac_prev=program_suffix ;;
1052  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054    program_suffix=$ac_optarg ;;
1055
1056  -program-transform-name | --program-transform-name \
1057  | --program-transform-nam | --program-transform-na \
1058  | --program-transform-n | --program-transform- \
1059  | --program-transform | --program-transfor \
1060  | --program-transfo | --program-transf \
1061  | --program-trans | --program-tran \
1062  | --progr-tra | --program-tr | --program-t)
1063    ac_prev=program_transform_name ;;
1064  -program-transform-name=* | --program-transform-name=* \
1065  | --program-transform-nam=* | --program-transform-na=* \
1066  | --program-transform-n=* | --program-transform-=* \
1067  | --program-transform=* | --program-transfor=* \
1068  | --program-transfo=* | --program-transf=* \
1069  | --program-trans=* | --program-tran=* \
1070  | --progr-tra=* | --program-tr=* | --program-t=*)
1071    program_transform_name=$ac_optarg ;;
1072
1073  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074    ac_prev=pdfdir ;;
1075  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076    pdfdir=$ac_optarg ;;
1077
1078  -psdir | --psdir | --psdi | --psd | --ps)
1079    ac_prev=psdir ;;
1080  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081    psdir=$ac_optarg ;;
1082
1083  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084  | -silent | --silent | --silen | --sile | --sil)
1085    silent=yes ;;
1086
1087  -runstatedir | --runstatedir | --runstatedi | --runstated \
1088  | --runstate | --runstat | --runsta | --runst | --runs \
1089  | --run | --ru | --r)
1090    ac_prev=runstatedir ;;
1091  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1092  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1093  | --run=* | --ru=* | --r=*)
1094    runstatedir=$ac_optarg ;;
1095
1096  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097    ac_prev=sbindir ;;
1098  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099  | --sbi=* | --sb=*)
1100    sbindir=$ac_optarg ;;
1101
1102  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104  | --sharedst | --shareds | --shared | --share | --shar \
1105  | --sha | --sh)
1106    ac_prev=sharedstatedir ;;
1107  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110  | --sha=* | --sh=*)
1111    sharedstatedir=$ac_optarg ;;
1112
1113  -site | --site | --sit)
1114    ac_prev=site ;;
1115  -site=* | --site=* | --sit=*)
1116    site=$ac_optarg ;;
1117
1118  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119    ac_prev=srcdir ;;
1120  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121    srcdir=$ac_optarg ;;
1122
1123  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124  | --syscon | --sysco | --sysc | --sys | --sy)
1125    ac_prev=sysconfdir ;;
1126  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128    sysconfdir=$ac_optarg ;;
1129
1130  -target | --target | --targe | --targ | --tar | --ta | --t)
1131    ac_prev=target_alias ;;
1132  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133    target_alias=$ac_optarg ;;
1134
1135  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136    verbose=yes ;;
1137
1138  -version | --version | --versio | --versi | --vers | -V)
1139    ac_init_version=: ;;
1140
1141  -with-* | --with-*)
1142    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143    # Reject names that are not valid shell variable names.
1144    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145      as_fn_error $? "invalid package name: '$ac_useropt'"
1146    ac_useropt_orig=$ac_useropt
1147    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1148    case $ac_user_opts in
1149      *"
1150"with_$ac_useropt"
1151"*) ;;
1152      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153	 ac_unrecognized_sep=', ';;
1154    esac
1155    eval with_$ac_useropt=\$ac_optarg ;;
1156
1157  -without-* | --without-*)
1158    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159    # Reject names that are not valid shell variable names.
1160    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161      as_fn_error $? "invalid package name: '$ac_useropt'"
1162    ac_useropt_orig=$ac_useropt
1163    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1164    case $ac_user_opts in
1165      *"
1166"with_$ac_useropt"
1167"*) ;;
1168      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169	 ac_unrecognized_sep=', ';;
1170    esac
1171    eval with_$ac_useropt=no ;;
1172
1173  --x)
1174    # Obsolete; use --with-x.
1175    with_x=yes ;;
1176
1177  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178  | --x-incl | --x-inc | --x-in | --x-i)
1179    ac_prev=x_includes ;;
1180  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182    x_includes=$ac_optarg ;;
1183
1184  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186    ac_prev=x_libraries ;;
1187  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189    x_libraries=$ac_optarg ;;
1190
1191  -*) as_fn_error $? "unrecognized option: '$ac_option'
1192Try '$0 --help' for more information"
1193    ;;
1194
1195  *=*)
1196    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197    # Reject names that are not valid shell variable names.
1198    case $ac_envvar in #(
1199      '' | [0-9]* | *[!_$as_cr_alnum]* )
1200      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1201    esac
1202    eval $ac_envvar=\$ac_optarg
1203    export $ac_envvar ;;
1204
1205  *)
1206    # FIXME: should be removed in autoconf 3.0.
1207    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1208    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1210    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1211    ;;
1212
1213  esac
1214done
1215
1216if test -n "$ac_prev"; then
1217  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218  as_fn_error $? "missing argument to $ac_option"
1219fi
1220
1221if test -n "$ac_unrecognized_opts"; then
1222  case $enable_option_checking in
1223    no) ;;
1224    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1225    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226  esac
1227fi
1228
1229# Check all directory arguments for consistency.
1230for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231		datadir sysconfdir sharedstatedir localstatedir includedir \
1232		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233		libdir localedir mandir runstatedir
1234do
1235  eval ac_val=\$$ac_var
1236  # Remove trailing slashes.
1237  case $ac_val in
1238    */ )
1239      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240      eval $ac_var=\$ac_val;;
1241  esac
1242  # Be sure to have absolute directory names.
1243  case $ac_val in
1244    [\\/$]* | ?:[\\/]* )  continue;;
1245    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246  esac
1247  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248done
1249
1250# There might be people who depend on the old broken behavior: '$host'
1251# used to hold the argument of --host etc.
1252# FIXME: To remove some day.
1253build=$build_alias
1254host=$host_alias
1255target=$target_alias
1256
1257# FIXME: To remove some day.
1258if test "x$host_alias" != x; then
1259  if test "x$build_alias" = x; then
1260    cross_compiling=maybe
1261  elif test "x$build_alias" != "x$host_alias"; then
1262    cross_compiling=yes
1263  fi
1264fi
1265
1266ac_tool_prefix=
1267test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269test "$silent" = yes && exec 6>/dev/null
1270
1271
1272ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273ac_ls_di=`ls -di .` &&
1274ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275  as_fn_error $? "working directory cannot be determined"
1276test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277  as_fn_error $? "pwd does not report name of working directory"
1278
1279
1280# Find the source files, if location was not specified.
1281if test -z "$srcdir"; then
1282  ac_srcdir_defaulted=yes
1283  # Try the directory containing this script, then the parent directory.
1284  ac_confdir=`$as_dirname -- "$as_myself" ||
1285$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286	 X"$as_myself" : 'X\(//\)[^/]' \| \
1287	 X"$as_myself" : 'X\(//\)$' \| \
1288	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289printf "%s\n" X"$as_myself" |
1290    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\/\)[^/].*/{
1295	    s//\1/
1296	    q
1297	  }
1298	  /^X\(\/\/\)$/{
1299	    s//\1/
1300	    q
1301	  }
1302	  /^X\(\/\).*/{
1303	    s//\1/
1304	    q
1305	  }
1306	  s/.*/./; q'`
1307  srcdir=$ac_confdir
1308  if test ! -r "$srcdir/$ac_unique_file"; then
1309    srcdir=..
1310  fi
1311else
1312  ac_srcdir_defaulted=no
1313fi
1314if test ! -r "$srcdir/$ac_unique_file"; then
1315  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317fi
1318ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1319ac_abs_confdir=`(
1320	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321	pwd)`
1322# When building in place, set srcdir=.
1323if test "$ac_abs_confdir" = "$ac_pwd"; then
1324  srcdir=.
1325fi
1326# Remove unnecessary trailing slashes from srcdir.
1327# Double slashes in file names in object file debugging info
1328# mess up M-x gdb in Emacs.
1329case $srcdir in
1330*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331esac
1332for ac_var in $ac_precious_vars; do
1333  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334  eval ac_env_${ac_var}_value=\$${ac_var}
1335  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337done
1338
1339#
1340# Report the --help message.
1341#
1342if test "$ac_init_help" = "long"; then
1343  # Omit some internal or obsolete options to make the list less imposing.
1344  # This message is too long to be a string in the A/UX 3.1 sh.
1345  cat <<_ACEOF
1346'configure' configures xkbutils 1.0.6 to adapt to many kinds of systems.
1347
1348Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351VAR=VALUE.  See below for descriptions of some of the useful variables.
1352
1353Defaults for the options are specified in brackets.
1354
1355Configuration:
1356  -h, --help              display this help and exit
1357      --help=short        display options specific to this package
1358      --help=recursive    display the short help of all the included packages
1359  -V, --version           display version information and exit
1360  -q, --quiet, --silent   do not print 'checking ...' messages
1361      --cache-file=FILE   cache test results in FILE [disabled]
1362  -C, --config-cache      alias for '--cache-file=config.cache'
1363  -n, --no-create         do not create output files
1364      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1365
1366Installation directories:
1367  --prefix=PREFIX         install architecture-independent files in PREFIX
1368                          [$ac_default_prefix]
1369  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1370                          [PREFIX]
1371
1372By default, 'make install' will install all the files in
1373'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1374an installation prefix other than '$ac_default_prefix' using '--prefix',
1375for instance '--prefix=\$HOME'.
1376
1377For better control, use the options below.
1378
1379Fine tuning of the installation directories:
1380  --bindir=DIR            user executables [EPREFIX/bin]
1381  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1382  --libexecdir=DIR        program executables [EPREFIX/libexec]
1383  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1384  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1385  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1386  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1387  --libdir=DIR            object code libraries [EPREFIX/lib]
1388  --includedir=DIR        C header files [PREFIX/include]
1389  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1390  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1391  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1392  --infodir=DIR           info documentation [DATAROOTDIR/info]
1393  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1394  --mandir=DIR            man documentation [DATAROOTDIR/man]
1395  --docdir=DIR            documentation root [DATAROOTDIR/doc/xkbutils]
1396  --htmldir=DIR           html documentation [DOCDIR]
1397  --dvidir=DIR            dvi documentation [DOCDIR]
1398  --pdfdir=DIR            pdf documentation [DOCDIR]
1399  --psdir=DIR             ps documentation [DOCDIR]
1400_ACEOF
1401
1402  cat <<\_ACEOF
1403
1404Program names:
1405  --program-prefix=PREFIX            prepend PREFIX to installed program names
1406  --program-suffix=SUFFIX            append SUFFIX to installed program names
1407  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1408
1409System types:
1410  --build=BUILD     configure for building on BUILD [guessed]
1411  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1412_ACEOF
1413fi
1414
1415if test -n "$ac_init_help"; then
1416  case $ac_init_help in
1417     short | recursive ) echo "Configuration of xkbutils 1.0.6:";;
1418   esac
1419  cat <<\_ACEOF
1420
1421Optional Features:
1422  --disable-option-checking  ignore unrecognized --enable/--with options
1423  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1424  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1425  --enable-silent-rules   less verbose build output (undo: "make V=1")
1426  --disable-silent-rules  verbose build output (undo: "make V=0")
1427  --enable-dependency-tracking
1428                          do not reject slow dependency extractors
1429  --disable-dependency-tracking
1430                          speeds up one-time build
1431  --disable-selective-werror
1432                          Turn off selective compiler errors. (default:
1433                          enabled)
1434  --enable-strict-compilation
1435                          Enable all warnings from compiler and make them
1436                          errors (default: disabled)
1437
1438Some influential environment variables:
1439  CC          C compiler command
1440  CFLAGS      C compiler flags
1441  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1442              nonstandard directory <lib dir>
1443  LIBS        libraries to pass to the linker, e.g. -l<library>
1444  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445              you have headers in a nonstandard directory <include dir>
1446  PKG_CONFIG  path to pkg-config utility
1447  PKG_CONFIG_PATH
1448              directories to add to pkg-config's search path
1449  PKG_CONFIG_LIBDIR
1450              path overriding pkg-config's built-in search path
1451  XKBVLEDS_CFLAGS
1452              C compiler flags for XKBVLEDS, overriding pkg-config
1453  XKBVLEDS_LIBS
1454              linker flags for XKBVLEDS, overriding pkg-config
1455  XKBBELL_CFLAGS
1456              C compiler flags for XKBBELL, overriding pkg-config
1457  XKBBELL_LIBS
1458              linker flags for XKBBELL, overriding pkg-config
1459  XKBWATCH_CFLAGS
1460              C compiler flags for XKBWATCH, overriding pkg-config
1461  XKBWATCH_LIBS
1462              linker flags for XKBWATCH, overriding pkg-config
1463
1464Use these variables to override the choices made by 'configure' or to help
1465it to find libraries and programs with nonstandard names/locations.
1466
1467Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbutils/issues>.
1468_ACEOF
1469ac_status=$?
1470fi
1471
1472if test "$ac_init_help" = "recursive"; then
1473  # If there are subdirs, report their specific --help.
1474  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475    test -d "$ac_dir" ||
1476      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477      continue
1478    ac_builddir=.
1479
1480case "$ac_dir" in
1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482*)
1483  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1484  # A ".." for each directory in $ac_dir_suffix.
1485  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486  case $ac_top_builddir_sub in
1487  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489  esac ;;
1490esac
1491ac_abs_top_builddir=$ac_pwd
1492ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493# for backward compatibility:
1494ac_top_builddir=$ac_top_build_prefix
1495
1496case $srcdir in
1497  .)  # We are building in place.
1498    ac_srcdir=.
1499    ac_top_srcdir=$ac_top_builddir_sub
1500    ac_abs_top_srcdir=$ac_pwd ;;
1501  [\\/]* | ?:[\\/]* )  # Absolute name.
1502    ac_srcdir=$srcdir$ac_dir_suffix;
1503    ac_top_srcdir=$srcdir
1504    ac_abs_top_srcdir=$srcdir ;;
1505  *) # Relative name.
1506    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507    ac_top_srcdir=$ac_top_build_prefix$srcdir
1508    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509esac
1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512    cd "$ac_dir" || { ac_status=$?; continue; }
1513    # Check for configure.gnu first; this name is used for a wrapper for
1514    # Metaconfig's "Configure" on case-insensitive file systems.
1515    if test -f "$ac_srcdir/configure.gnu"; then
1516      echo &&
1517      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518    elif test -f "$ac_srcdir/configure"; then
1519      echo &&
1520      $SHELL "$ac_srcdir/configure" --help=recursive
1521    else
1522      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523    fi || ac_status=$?
1524    cd "$ac_pwd" || { ac_status=$?; break; }
1525  done
1526fi
1527
1528test -n "$ac_init_help" && exit $ac_status
1529if $ac_init_version; then
1530  cat <<\_ACEOF
1531xkbutils configure 1.0.6
1532generated by GNU Autoconf 2.72
1533
1534Copyright (C) 2023 Free Software Foundation, Inc.
1535This configure script is free software; the Free Software Foundation
1536gives unlimited permission to copy, distribute and modify it.
1537_ACEOF
1538  exit
1539fi
1540
1541## ------------------------ ##
1542## Autoconf initialization. ##
1543## ------------------------ ##
1544
1545# ac_fn_c_try_compile LINENO
1546# --------------------------
1547# Try to compile conftest.$ac_ext, and return whether this succeeded.
1548ac_fn_c_try_compile ()
1549{
1550  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551  rm -f conftest.$ac_objext conftest.beam
1552  if { { ac_try="$ac_compile"
1553case "(($ac_try" in
1554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555  *) ac_try_echo=$ac_try;;
1556esac
1557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558printf "%s\n" "$ac_try_echo"; } >&5
1559  (eval "$ac_compile") 2>conftest.err
1560  ac_status=$?
1561  if test -s conftest.err; then
1562    grep -v '^ *+' conftest.err >conftest.er1
1563    cat conftest.er1 >&5
1564    mv -f conftest.er1 conftest.err
1565  fi
1566  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567  test $ac_status = 0; } && {
1568	 test -z "$ac_c_werror_flag" ||
1569	 test ! -s conftest.err
1570       } && test -s conftest.$ac_objext
1571then :
1572  ac_retval=0
1573else case e in #(
1574  e) printf "%s\n" "$as_me: failed program was:" >&5
1575sed 's/^/| /' conftest.$ac_ext >&5
1576
1577	ac_retval=1 ;;
1578esac
1579fi
1580  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581  as_fn_set_status $ac_retval
1582
1583} # ac_fn_c_try_compile
1584
1585# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1586# ------------------------------------------------------------------
1587# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1588# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1589ac_fn_check_decl ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  as_decl_name=`echo $2|sed 's/ *(.*//'`
1593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1594printf %s "checking whether $as_decl_name is declared... " >&6; }
1595if eval test \${$3+y}
1596then :
1597  printf %s "(cached) " >&6
1598else case e in #(
1599  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1600  eval ac_save_FLAGS=\$$6
1601  as_fn_append $6 " $5"
1602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603/* end confdefs.h.  */
1604$4
1605int
1606main (void)
1607{
1608#ifndef $as_decl_name
1609#ifdef __cplusplus
1610  (void) $as_decl_use;
1611#else
1612  (void) $as_decl_name;
1613#endif
1614#endif
1615
1616  ;
1617  return 0;
1618}
1619_ACEOF
1620if ac_fn_c_try_compile "$LINENO"
1621then :
1622  eval "$3=yes"
1623else case e in #(
1624  e) eval "$3=no" ;;
1625esac
1626fi
1627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1628  eval $6=\$ac_save_FLAGS
1629 ;;
1630esac
1631fi
1632eval ac_res=\$$3
1633	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634printf "%s\n" "$ac_res" >&6; }
1635  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636
1637} # ac_fn_check_decl
1638
1639# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1640# -------------------------------------------------------
1641# Tests whether HEADER exists and can be compiled using the include files in
1642# INCLUDES, setting the cache variable VAR accordingly.
1643ac_fn_c_check_header_compile ()
1644{
1645  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647printf %s "checking for $2... " >&6; }
1648if eval test \${$3+y}
1649then :
1650  printf %s "(cached) " >&6
1651else case e in #(
1652  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653/* end confdefs.h.  */
1654$4
1655#include <$2>
1656_ACEOF
1657if ac_fn_c_try_compile "$LINENO"
1658then :
1659  eval "$3=yes"
1660else case e in #(
1661  e) eval "$3=no" ;;
1662esac
1663fi
1664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1665esac
1666fi
1667eval ac_res=\$$3
1668	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669printf "%s\n" "$ac_res" >&6; }
1670  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671
1672} # ac_fn_c_check_header_compile
1673
1674# ac_fn_c_try_link LINENO
1675# -----------------------
1676# Try to link conftest.$ac_ext, and return whether this succeeded.
1677ac_fn_c_try_link ()
1678{
1679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1681  if { { ac_try="$ac_link"
1682case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687printf "%s\n" "$ac_try_echo"; } >&5
1688  (eval "$ac_link") 2>conftest.err
1689  ac_status=$?
1690  if test -s conftest.err; then
1691    grep -v '^ *+' conftest.err >conftest.er1
1692    cat conftest.er1 >&5
1693    mv -f conftest.er1 conftest.err
1694  fi
1695  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696  test $ac_status = 0; } && {
1697	 test -z "$ac_c_werror_flag" ||
1698	 test ! -s conftest.err
1699       } && test -s conftest$ac_exeext && {
1700	 test "$cross_compiling" = yes ||
1701	 test -x conftest$ac_exeext
1702       }
1703then :
1704  ac_retval=0
1705else case e in #(
1706  e) printf "%s\n" "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709	ac_retval=1 ;;
1710esac
1711fi
1712  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1713  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1714  # interfere with the next link command; also delete a directory that is
1715  # left behind by Apple's compiler.  We do this before executing the actions.
1716  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718  as_fn_set_status $ac_retval
1719
1720} # ac_fn_c_try_link
1721
1722# ac_fn_c_check_func LINENO FUNC VAR
1723# ----------------------------------
1724# Tests whether FUNC exists, setting the cache variable VAR accordingly
1725ac_fn_c_check_func ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729printf %s "checking for $2... " >&6; }
1730if eval test \${$3+y}
1731then :
1732  printf %s "(cached) " >&6
1733else case e in #(
1734  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735/* end confdefs.h.  */
1736/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1737   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1738#define $2 innocuous_$2
1739
1740/* System header to define __stub macros and hopefully few prototypes,
1741   which can conflict with char $2 (void); below.  */
1742
1743#include <limits.h>
1744#undef $2
1745
1746/* Override any GCC internal prototype to avoid an error.
1747   Use char because int might match the return type of a GCC
1748   builtin and then its argument prototype would still apply.  */
1749#ifdef __cplusplus
1750extern "C"
1751#endif
1752char $2 (void);
1753/* The GNU C library defines this for functions which it implements
1754    to always fail with ENOSYS.  Some functions are actually named
1755    something starting with __ and the normal name is an alias.  */
1756#if defined __stub_$2 || defined __stub___$2
1757choke me
1758#endif
1759
1760int
1761main (void)
1762{
1763return $2 ();
1764  ;
1765  return 0;
1766}
1767_ACEOF
1768if ac_fn_c_try_link "$LINENO"
1769then :
1770  eval "$3=yes"
1771else case e in #(
1772  e) eval "$3=no" ;;
1773esac
1774fi
1775rm -f core conftest.err conftest.$ac_objext conftest.beam \
1776    conftest$ac_exeext conftest.$ac_ext ;;
1777esac
1778fi
1779eval ac_res=\$$3
1780	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781printf "%s\n" "$ac_res" >&6; }
1782  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784} # ac_fn_c_check_func
1785ac_configure_args_raw=
1786for ac_arg
1787do
1788  case $ac_arg in
1789  *\'*)
1790    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791  esac
1792  as_fn_append ac_configure_args_raw " '$ac_arg'"
1793done
1794
1795case $ac_configure_args_raw in
1796  *$as_nl*)
1797    ac_safe_unquote= ;;
1798  *)
1799    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1800    ac_unsafe_a="$ac_unsafe_z#~"
1801    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1802    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1803esac
1804
1805cat >config.log <<_ACEOF
1806This file contains any messages produced by compilers while
1807running configure, to aid debugging if configure makes a mistake.
1808
1809It was created by xkbutils $as_me 1.0.6, which was
1810generated by GNU Autoconf 2.72.  Invocation command line was
1811
1812  $ $0$ac_configure_args_raw
1813
1814_ACEOF
1815exec 5>>config.log
1816{
1817cat <<_ASUNAME
1818## --------- ##
1819## Platform. ##
1820## --------- ##
1821
1822hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1823uname -m = `(uname -m) 2>/dev/null || echo unknown`
1824uname -r = `(uname -r) 2>/dev/null || echo unknown`
1825uname -s = `(uname -s) 2>/dev/null || echo unknown`
1826uname -v = `(uname -v) 2>/dev/null || echo unknown`
1827
1828/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1829/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1830
1831/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1832/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1833/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1834/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1835/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1836/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1837/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1838
1839_ASUNAME
1840
1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842for as_dir in $PATH
1843do
1844  IFS=$as_save_IFS
1845  case $as_dir in #(((
1846    '') as_dir=./ ;;
1847    */) ;;
1848    *) as_dir=$as_dir/ ;;
1849  esac
1850    printf "%s\n" "PATH: $as_dir"
1851  done
1852IFS=$as_save_IFS
1853
1854} >&5
1855
1856cat >&5 <<_ACEOF
1857
1858
1859## ----------- ##
1860## Core tests. ##
1861## ----------- ##
1862
1863_ACEOF
1864
1865
1866# Keep a trace of the command line.
1867# Strip out --no-create and --no-recursion so they do not pile up.
1868# Strip out --silent because we don't want to record it for future runs.
1869# Also quote any args containing shell meta-characters.
1870# Make two passes to allow for proper duplicate-argument suppression.
1871ac_configure_args=
1872ac_configure_args0=
1873ac_configure_args1=
1874ac_must_keep_next=false
1875for ac_pass in 1 2
1876do
1877  for ac_arg
1878  do
1879    case $ac_arg in
1880    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1881    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1882    | -silent | --silent | --silen | --sile | --sil)
1883      continue ;;
1884    *\'*)
1885      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1886    esac
1887    case $ac_pass in
1888    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1889    2)
1890      as_fn_append ac_configure_args1 " '$ac_arg'"
1891      if test $ac_must_keep_next = true; then
1892	ac_must_keep_next=false # Got value, back to normal.
1893      else
1894	case $ac_arg in
1895	  *=* | --config-cache | -C | -disable-* | --disable-* \
1896	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1897	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1898	  | -with-* | --with-* | -without-* | --without-* | --x)
1899	    case "$ac_configure_args0 " in
1900	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1901	    esac
1902	    ;;
1903	  -* ) ac_must_keep_next=true ;;
1904	esac
1905      fi
1906      as_fn_append ac_configure_args " '$ac_arg'"
1907      ;;
1908    esac
1909  done
1910done
1911{ ac_configure_args0=; unset ac_configure_args0;}
1912{ ac_configure_args1=; unset ac_configure_args1;}
1913
1914# When interrupted or exit'd, cleanup temporary files, and complete
1915# config.log.  We remove comments because anyway the quotes in there
1916# would cause problems or look ugly.
1917# WARNING: Use '\'' to represent an apostrophe within the trap.
1918# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1919trap 'exit_status=$?
1920  # Sanitize IFS.
1921  IFS=" ""	$as_nl"
1922  # Save into config.log some information that might help in debugging.
1923  {
1924    echo
1925
1926    printf "%s\n" "## ---------------- ##
1927## Cache variables. ##
1928## ---------------- ##"
1929    echo
1930    # The following way of writing the cache mishandles newlines in values,
1931(
1932  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1933    eval ac_val=\$$ac_var
1934    case $ac_val in #(
1935    *${as_nl}*)
1936      case $ac_var in #(
1937      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1938printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1939      esac
1940      case $ac_var in #(
1941      _ | IFS | as_nl) ;; #(
1942      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1943      *) { eval $ac_var=; unset $ac_var;} ;;
1944      esac ;;
1945    esac
1946  done
1947  (set) 2>&1 |
1948    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1949    *${as_nl}ac_space=\ *)
1950      sed -n \
1951	"s/'\''/'\''\\\\'\'''\''/g;
1952	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1953      ;; #(
1954    *)
1955      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1956      ;;
1957    esac |
1958    sort
1959)
1960    echo
1961
1962    printf "%s\n" "## ----------------- ##
1963## Output variables. ##
1964## ----------------- ##"
1965    echo
1966    for ac_var in $ac_subst_vars
1967    do
1968      eval ac_val=\$$ac_var
1969      case $ac_val in
1970      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971      esac
1972      printf "%s\n" "$ac_var='\''$ac_val'\''"
1973    done | sort
1974    echo
1975
1976    if test -n "$ac_subst_files"; then
1977      printf "%s\n" "## ------------------- ##
1978## File substitutions. ##
1979## ------------------- ##"
1980      echo
1981      for ac_var in $ac_subst_files
1982      do
1983	eval ac_val=\$$ac_var
1984	case $ac_val in
1985	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1986	esac
1987	printf "%s\n" "$ac_var='\''$ac_val'\''"
1988      done | sort
1989      echo
1990    fi
1991
1992    if test -s confdefs.h; then
1993      printf "%s\n" "## ----------- ##
1994## confdefs.h. ##
1995## ----------- ##"
1996      echo
1997      cat confdefs.h
1998      echo
1999    fi
2000    test "$ac_signal" != 0 &&
2001      printf "%s\n" "$as_me: caught signal $ac_signal"
2002    printf "%s\n" "$as_me: exit $exit_status"
2003  } >&5
2004  rm -f core *.core core.conftest.* &&
2005    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2006    exit $exit_status
2007' 0
2008for ac_signal in 1 2 13 15; do
2009  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2010done
2011ac_signal=0
2012
2013# confdefs.h avoids OS command line length limits that DEFS can exceed.
2014rm -f -r conftest* confdefs.h
2015
2016printf "%s\n" "/* confdefs.h */" > confdefs.h
2017
2018# Predefined preprocessor variables.
2019
2020printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2021
2022printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2023
2024printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2025
2026printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2027
2028printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2029
2030printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2031
2032
2033# Let the site file select an alternate cache file if it wants to.
2034# Prefer an explicitly selected file to automatically selected ones.
2035if test -n "$CONFIG_SITE"; then
2036  ac_site_files="$CONFIG_SITE"
2037elif test "x$prefix" != xNONE; then
2038  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2039else
2040  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2041fi
2042
2043for ac_site_file in $ac_site_files
2044do
2045  case $ac_site_file in #(
2046  */*) :
2047     ;; #(
2048  *) :
2049    ac_site_file=./$ac_site_file ;;
2050esac
2051  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2052    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2053printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2054    sed 's/^/| /' "$ac_site_file" >&5
2055    . "$ac_site_file" \
2056      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2057printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2058as_fn_error $? "failed to load site script $ac_site_file
2059See 'config.log' for more details" "$LINENO" 5; }
2060  fi
2061done
2062
2063if test -r "$cache_file"; then
2064  # Some versions of bash will fail to source /dev/null (special files
2065  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2066  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2067    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2068printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2069    case $cache_file in
2070      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2071      *)                      . "./$cache_file";;
2072    esac
2073  fi
2074else
2075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2076printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2077  >$cache_file
2078fi
2079
2080# Test code for whether the C compiler supports C89 (global declarations)
2081ac_c_conftest_c89_globals='
2082/* Does the compiler advertise C89 conformance?
2083   Do not test the value of __STDC__, because some compilers set it to 0
2084   while being otherwise adequately conformant. */
2085#if !defined __STDC__
2086# error "Compiler does not advertise C89 conformance"
2087#endif
2088
2089#include <stddef.h>
2090#include <stdarg.h>
2091struct stat;
2092/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2093struct buf { int x; };
2094struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2095static char *e (char **p, int i)
2096{
2097  return p[i];
2098}
2099static char *f (char * (*g) (char **, int), char **p, ...)
2100{
2101  char *s;
2102  va_list v;
2103  va_start (v,p);
2104  s = g (p, va_arg (v,int));
2105  va_end (v);
2106  return s;
2107}
2108
2109/* C89 style stringification. */
2110#define noexpand_stringify(a) #a
2111const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2112
2113/* C89 style token pasting.  Exercises some of the corner cases that
2114   e.g. old MSVC gets wrong, but not very hard. */
2115#define noexpand_concat(a,b) a##b
2116#define expand_concat(a,b) noexpand_concat(a,b)
2117extern int vA;
2118extern int vbee;
2119#define aye A
2120#define bee B
2121int *pvA = &expand_concat(v,aye);
2122int *pvbee = &noexpand_concat(v,bee);
2123
2124/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2125   function prototypes and stuff, but not \xHH hex character constants.
2126   These do not provoke an error unfortunately, instead are silently treated
2127   as an "x".  The following induces an error, until -std is added to get
2128   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2129   array size at least.  It is necessary to write \x00 == 0 to get something
2130   that is true only with -std.  */
2131int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2132
2133/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2134   inside strings and character constants.  */
2135#define FOO(x) '\''x'\''
2136int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2137
2138int test (int i, double x);
2139struct s1 {int (*f) (int a);};
2140struct s2 {int (*f) (double a);};
2141int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2142               int, int);'
2143
2144# Test code for whether the C compiler supports C89 (body of main).
2145ac_c_conftest_c89_main='
2146ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2147'
2148
2149# Test code for whether the C compiler supports C99 (global declarations)
2150ac_c_conftest_c99_globals='
2151/* Does the compiler advertise C99 conformance? */
2152#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2153# error "Compiler does not advertise C99 conformance"
2154#endif
2155
2156// See if C++-style comments work.
2157
2158#include <stdbool.h>
2159extern int puts (const char *);
2160extern int printf (const char *, ...);
2161extern int dprintf (int, const char *, ...);
2162extern void *malloc (size_t);
2163extern void free (void *);
2164
2165// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2166// dprintf is used instead of fprintf to avoid needing to declare
2167// FILE and stderr.
2168#define debug(...) dprintf (2, __VA_ARGS__)
2169#define showlist(...) puts (#__VA_ARGS__)
2170#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2171static void
2172test_varargs_macros (void)
2173{
2174  int x = 1234;
2175  int y = 5678;
2176  debug ("Flag");
2177  debug ("X = %d\n", x);
2178  showlist (The first, second, and third items.);
2179  report (x>y, "x is %d but y is %d", x, y);
2180}
2181
2182// Check long long types.
2183#define BIG64 18446744073709551615ull
2184#define BIG32 4294967295ul
2185#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2186#if !BIG_OK
2187  #error "your preprocessor is broken"
2188#endif
2189#if BIG_OK
2190#else
2191  #error "your preprocessor is broken"
2192#endif
2193static long long int bignum = -9223372036854775807LL;
2194static unsigned long long int ubignum = BIG64;
2195
2196struct incomplete_array
2197{
2198  int datasize;
2199  double data[];
2200};
2201
2202struct named_init {
2203  int number;
2204  const wchar_t *name;
2205  double average;
2206};
2207
2208typedef const char *ccp;
2209
2210static inline int
2211test_restrict (ccp restrict text)
2212{
2213  // Iterate through items via the restricted pointer.
2214  // Also check for declarations in for loops.
2215  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2216    continue;
2217  return 0;
2218}
2219
2220// Check varargs and va_copy.
2221static bool
2222test_varargs (const char *format, ...)
2223{
2224  va_list args;
2225  va_start (args, format);
2226  va_list args_copy;
2227  va_copy (args_copy, args);
2228
2229  const char *str = "";
2230  int number = 0;
2231  float fnumber = 0;
2232
2233  while (*format)
2234    {
2235      switch (*format++)
2236	{
2237	case '\''s'\'': // string
2238	  str = va_arg (args_copy, const char *);
2239	  break;
2240	case '\''d'\'': // int
2241	  number = va_arg (args_copy, int);
2242	  break;
2243	case '\''f'\'': // float
2244	  fnumber = va_arg (args_copy, double);
2245	  break;
2246	default:
2247	  break;
2248	}
2249    }
2250  va_end (args_copy);
2251  va_end (args);
2252
2253  return *str && number && fnumber;
2254}
2255'
2256
2257# Test code for whether the C compiler supports C99 (body of main).
2258ac_c_conftest_c99_main='
2259  // Check bool.
2260  _Bool success = false;
2261  success |= (argc != 0);
2262
2263  // Check restrict.
2264  if (test_restrict ("String literal") == 0)
2265    success = true;
2266  char *restrict newvar = "Another string";
2267
2268  // Check varargs.
2269  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2270  test_varargs_macros ();
2271
2272  // Check flexible array members.
2273  struct incomplete_array *ia =
2274    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2275  ia->datasize = 10;
2276  for (int i = 0; i < ia->datasize; ++i)
2277    ia->data[i] = i * 1.234;
2278  // Work around memory leak warnings.
2279  free (ia);
2280
2281  // Check named initializers.
2282  struct named_init ni = {
2283    .number = 34,
2284    .name = L"Test wide string",
2285    .average = 543.34343,
2286  };
2287
2288  ni.number = 58;
2289
2290  int dynamic_array[ni.number];
2291  dynamic_array[0] = argv[0][0];
2292  dynamic_array[ni.number - 1] = 543;
2293
2294  // work around unused variable warnings
2295  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2296	 || dynamic_array[ni.number - 1] != 543);
2297'
2298
2299# Test code for whether the C compiler supports C11 (global declarations)
2300ac_c_conftest_c11_globals='
2301/* Does the compiler advertise C11 conformance? */
2302#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2303# error "Compiler does not advertise C11 conformance"
2304#endif
2305
2306// Check _Alignas.
2307char _Alignas (double) aligned_as_double;
2308char _Alignas (0) no_special_alignment;
2309extern char aligned_as_int;
2310char _Alignas (0) _Alignas (int) aligned_as_int;
2311
2312// Check _Alignof.
2313enum
2314{
2315  int_alignment = _Alignof (int),
2316  int_array_alignment = _Alignof (int[100]),
2317  char_alignment = _Alignof (char)
2318};
2319_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2320
2321// Check _Noreturn.
2322int _Noreturn does_not_return (void) { for (;;) continue; }
2323
2324// Check _Static_assert.
2325struct test_static_assert
2326{
2327  int x;
2328  _Static_assert (sizeof (int) <= sizeof (long int),
2329                  "_Static_assert does not work in struct");
2330  long int y;
2331};
2332
2333// Check UTF-8 literals.
2334#define u8 syntax error!
2335char const utf8_literal[] = u8"happens to be ASCII" "another string";
2336
2337// Check duplicate typedefs.
2338typedef long *long_ptr;
2339typedef long int *long_ptr;
2340typedef long_ptr long_ptr;
2341
2342// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2343struct anonymous
2344{
2345  union {
2346    struct { int i; int j; };
2347    struct { int k; long int l; } w;
2348  };
2349  int m;
2350} v1;
2351'
2352
2353# Test code for whether the C compiler supports C11 (body of main).
2354ac_c_conftest_c11_main='
2355  _Static_assert ((offsetof (struct anonymous, i)
2356		   == offsetof (struct anonymous, w.k)),
2357		  "Anonymous union alignment botch");
2358  v1.i = 2;
2359  v1.w.k = 5;
2360  ok |= v1.i != 5;
2361'
2362
2363# Test code for whether the C compiler supports C11 (complete).
2364ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2365${ac_c_conftest_c99_globals}
2366${ac_c_conftest_c11_globals}
2367
2368int
2369main (int argc, char **argv)
2370{
2371  int ok = 0;
2372  ${ac_c_conftest_c89_main}
2373  ${ac_c_conftest_c99_main}
2374  ${ac_c_conftest_c11_main}
2375  return ok;
2376}
2377"
2378
2379# Test code for whether the C compiler supports C99 (complete).
2380ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2381${ac_c_conftest_c99_globals}
2382
2383int
2384main (int argc, char **argv)
2385{
2386  int ok = 0;
2387  ${ac_c_conftest_c89_main}
2388  ${ac_c_conftest_c99_main}
2389  return ok;
2390}
2391"
2392
2393# Test code for whether the C compiler supports C89 (complete).
2394ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2395
2396int
2397main (int argc, char **argv)
2398{
2399  int ok = 0;
2400  ${ac_c_conftest_c89_main}
2401  return ok;
2402}
2403"
2404
2405as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2406as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2407as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2408as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2409as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2410as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2411as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2412as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2413as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2414
2415# Auxiliary files required by this configure script.
2416ac_aux_files="config.guess config.sub compile missing install-sh"
2417
2418# Locations in which to look for auxiliary files.
2419ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2420
2421# Search for a directory containing all of the required auxiliary files,
2422# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2423# If we don't find one directory that contains all the files we need,
2424# we report the set of missing files from the *first* directory in
2425# $ac_aux_dir_candidates and give up.
2426ac_missing_aux_files=""
2427ac_first_candidate=:
2428printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430as_found=false
2431for as_dir in $ac_aux_dir_candidates
2432do
2433  IFS=$as_save_IFS
2434  case $as_dir in #(((
2435    '') as_dir=./ ;;
2436    */) ;;
2437    *) as_dir=$as_dir/ ;;
2438  esac
2439  as_found=:
2440
2441  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2442  ac_aux_dir_found=yes
2443  ac_install_sh=
2444  for ac_aux in $ac_aux_files
2445  do
2446    # As a special case, if "install-sh" is required, that requirement
2447    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2448    # and $ac_install_sh is set appropriately for whichever one is found.
2449    if test x"$ac_aux" = x"install-sh"
2450    then
2451      if test -f "${as_dir}install-sh"; then
2452        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2453        ac_install_sh="${as_dir}install-sh -c"
2454      elif test -f "${as_dir}install.sh"; then
2455        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2456        ac_install_sh="${as_dir}install.sh -c"
2457      elif test -f "${as_dir}shtool"; then
2458        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2459        ac_install_sh="${as_dir}shtool install -c"
2460      else
2461        ac_aux_dir_found=no
2462        if $ac_first_candidate; then
2463          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2464        else
2465          break
2466        fi
2467      fi
2468    else
2469      if test -f "${as_dir}${ac_aux}"; then
2470        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2471      else
2472        ac_aux_dir_found=no
2473        if $ac_first_candidate; then
2474          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2475        else
2476          break
2477        fi
2478      fi
2479    fi
2480  done
2481  if test "$ac_aux_dir_found" = yes; then
2482    ac_aux_dir="$as_dir"
2483    break
2484  fi
2485  ac_first_candidate=false
2486
2487  as_found=false
2488done
2489IFS=$as_save_IFS
2490if $as_found
2491then :
2492
2493else case e in #(
2494  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2495esac
2496fi
2497
2498
2499# These three variables are undocumented and unsupported,
2500# and are intended to be withdrawn in a future Autoconf release.
2501# They can cause serious problems if a builder's source tree is in a directory
2502# whose full name contains unusual characters.
2503if test -f "${ac_aux_dir}config.guess"; then
2504  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2505fi
2506if test -f "${ac_aux_dir}config.sub"; then
2507  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2508fi
2509if test -f "$ac_aux_dir/configure"; then
2510  ac_configure="$SHELL ${ac_aux_dir}configure"
2511fi
2512
2513# Check that the precious variables saved in the cache have kept the same
2514# value.
2515ac_cache_corrupted=false
2516for ac_var in $ac_precious_vars; do
2517  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2518  eval ac_new_set=\$ac_env_${ac_var}_set
2519  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2520  eval ac_new_val=\$ac_env_${ac_var}_value
2521  case $ac_old_set,$ac_new_set in
2522    set,)
2523      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2524printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2525      ac_cache_corrupted=: ;;
2526    ,set)
2527      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2528printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2529      ac_cache_corrupted=: ;;
2530    ,);;
2531    *)
2532      if test "x$ac_old_val" != "x$ac_new_val"; then
2533	# differences in whitespace do not lead to failure.
2534	ac_old_val_w=`echo x $ac_old_val`
2535	ac_new_val_w=`echo x $ac_new_val`
2536	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2537	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2538printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2539	  ac_cache_corrupted=:
2540	else
2541	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2542printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2543	  eval $ac_var=\$ac_old_val
2544	fi
2545	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2546printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2547	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2548printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2549      fi;;
2550  esac
2551  # Pass precious variables to config.status.
2552  if test "$ac_new_set" = set; then
2553    case $ac_new_val in
2554    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2555    *) ac_arg=$ac_var=$ac_new_val ;;
2556    esac
2557    case " $ac_configure_args " in
2558      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2559      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2560    esac
2561  fi
2562done
2563if $ac_cache_corrupted; then
2564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2565printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2567printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2568  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2569	    and start over" "$LINENO" 5
2570fi
2571## -------------------- ##
2572## Main body of script. ##
2573## -------------------- ##
2574
2575ac_ext=c
2576ac_cpp='$CPP $CPPFLAGS'
2577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580
2581
2582
2583ac_config_headers="$ac_config_headers config.h"
2584
2585
2586# Initialize Automake
2587am__api_version='1.16'
2588
2589
2590
2591  # Find a good install program.  We prefer a C program (faster),
2592# so one script is as good as another.  But avoid the broken or
2593# incompatible versions:
2594# SysV /etc/install, /usr/sbin/install
2595# SunOS /usr/etc/install
2596# IRIX /sbin/install
2597# AIX /bin/install
2598# AmigaOS /C/install, which installs bootblocks on floppy discs
2599# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2600# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2601# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2602# OS/2's system install, which has a completely different semantic
2603# ./install, which can be erroneously created by make from ./install.sh.
2604# Reject install programs that cannot install multiple files.
2605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2606printf %s "checking for a BSD-compatible install... " >&6; }
2607if test -z "$INSTALL"; then
2608if test ${ac_cv_path_install+y}
2609then :
2610  printf %s "(cached) " >&6
2611else case e in #(
2612  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615  IFS=$as_save_IFS
2616  case $as_dir in #(((
2617    '') as_dir=./ ;;
2618    */) ;;
2619    *) as_dir=$as_dir/ ;;
2620  esac
2621    # Account for fact that we put trailing slashes in our PATH walk.
2622case $as_dir in #((
2623  ./ | /[cC]/* | \
2624  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2625  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2626  /usr/ucb/* ) ;;
2627  *)
2628    # OSF1 and SCO ODT 3.0 have their own names for install.
2629    # Don't use installbsd from OSF since it installs stuff as root
2630    # by default.
2631    for ac_prog in ginstall scoinst install; do
2632      for ac_exec_ext in '' $ac_executable_extensions; do
2633	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2634	  if test $ac_prog = install &&
2635	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2636	    # AIX install.  It has an incompatible calling convention.
2637	    :
2638	  elif test $ac_prog = install &&
2639	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2640	    # program-specific install script used by HP pwplus--don't use.
2641	    :
2642	  else
2643	    rm -rf conftest.one conftest.two conftest.dir
2644	    echo one > conftest.one
2645	    echo two > conftest.two
2646	    mkdir conftest.dir
2647	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2648	      test -s conftest.one && test -s conftest.two &&
2649	      test -s conftest.dir/conftest.one &&
2650	      test -s conftest.dir/conftest.two
2651	    then
2652	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2653	      break 3
2654	    fi
2655	  fi
2656	fi
2657      done
2658    done
2659    ;;
2660esac
2661
2662  done
2663IFS=$as_save_IFS
2664
2665rm -rf conftest.one conftest.two conftest.dir
2666 ;;
2667esac
2668fi
2669  if test ${ac_cv_path_install+y}; then
2670    INSTALL=$ac_cv_path_install
2671  else
2672    # As a last resort, use the slow shell script.  Don't cache a
2673    # value for INSTALL within a source directory, because that will
2674    # break other packages using the cache if that directory is
2675    # removed, or if the value is a relative name.
2676    INSTALL=$ac_install_sh
2677  fi
2678fi
2679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2680printf "%s\n" "$INSTALL" >&6; }
2681
2682# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2683# It thinks the first close brace ends the variable substitution.
2684test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2685
2686test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2687
2688test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2689
2690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2691printf %s "checking whether build environment is sane... " >&6; }
2692# Reject unsafe characters in $srcdir or the absolute working directory
2693# name.  Accept space and tab only in the latter.
2694am_lf='
2695'
2696case `pwd` in
2697  *[\\\"\#\$\&\'\`$am_lf]*)
2698    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2699esac
2700case $srcdir in
2701  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2702    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2703esac
2704
2705# Do 'set' in a subshell so we don't clobber the current shell's
2706# arguments.  Must try -L first in case configure is actually a
2707# symlink; some systems play weird games with the mod time of symlinks
2708# (eg FreeBSD returns the mod time of the symlink's containing
2709# directory).
2710if (
2711   am_has_slept=no
2712   for am_try in 1 2; do
2713     echo "timestamp, slept: $am_has_slept" > conftest.file
2714     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2715     if test "$*" = "X"; then
2716	# -L didn't work.
2717	set X `ls -t "$srcdir/configure" conftest.file`
2718     fi
2719     if test "$*" != "X $srcdir/configure conftest.file" \
2720	&& test "$*" != "X conftest.file $srcdir/configure"; then
2721
2722	# If neither matched, then we have a broken ls.  This can happen
2723	# if, for instance, CONFIG_SHELL is bash and it inherits a
2724	# broken ls alias from the environment.  This has actually
2725	# happened.  Such a system could not be considered "sane".
2726	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2727  alias in your environment" "$LINENO" 5
2728     fi
2729     if test "$2" = conftest.file || test $am_try -eq 2; then
2730       break
2731     fi
2732     # Just in case.
2733     sleep 1
2734     am_has_slept=yes
2735   done
2736   test "$2" = conftest.file
2737   )
2738then
2739   # Ok.
2740   :
2741else
2742   as_fn_error $? "newly created file is older than distributed files!
2743Check your system clock" "$LINENO" 5
2744fi
2745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2746printf "%s\n" "yes" >&6; }
2747# If we didn't sleep, we still need to ensure time stamps of config.status and
2748# generated files are strictly newer.
2749am_sleep_pid=
2750if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2751  ( sleep 1 ) &
2752  am_sleep_pid=$!
2753fi
2754
2755rm -f conftest.file
2756
2757test "$program_prefix" != NONE &&
2758  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2759# Use a double $ so make ignores it.
2760test "$program_suffix" != NONE &&
2761  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2762# Double any \ or $.
2763# By default was 's,x,x', remove it if useless.
2764ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2765program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2766
2767
2768# Expand $ac_aux_dir to an absolute path.
2769am_aux_dir=`cd "$ac_aux_dir" && pwd`
2770
2771
2772  if test x"${MISSING+set}" != xset; then
2773  MISSING="\${SHELL} '$am_aux_dir/missing'"
2774fi
2775# Use eval to expand $SHELL
2776if eval "$MISSING --is-lightweight"; then
2777  am_missing_run="$MISSING "
2778else
2779  am_missing_run=
2780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2781printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2782fi
2783
2784if test x"${install_sh+set}" != xset; then
2785  case $am_aux_dir in
2786  *\ * | *\	*)
2787    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2788  *)
2789    install_sh="\${SHELL} $am_aux_dir/install-sh"
2790  esac
2791fi
2792
2793# Installed binaries are usually stripped using 'strip' when the user
2794# run "make install-strip".  However 'strip' might not be the right
2795# tool to use in cross-compilation environments, therefore Automake
2796# will honor the 'STRIP' environment variable to overrule this program.
2797if test "$cross_compiling" != no; then
2798  if test -n "$ac_tool_prefix"; then
2799  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2800set dummy ${ac_tool_prefix}strip; ac_word=$2
2801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802printf %s "checking for $ac_word... " >&6; }
2803if test ${ac_cv_prog_STRIP+y}
2804then :
2805  printf %s "(cached) " >&6
2806else case e in #(
2807  e) if test -n "$STRIP"; then
2808  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2809else
2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813  IFS=$as_save_IFS
2814  case $as_dir in #(((
2815    '') as_dir=./ ;;
2816    */) ;;
2817    *) as_dir=$as_dir/ ;;
2818  esac
2819    for ac_exec_ext in '' $ac_executable_extensions; do
2820  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2821    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2822    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2823    break 2
2824  fi
2825done
2826  done
2827IFS=$as_save_IFS
2828
2829fi ;;
2830esac
2831fi
2832STRIP=$ac_cv_prog_STRIP
2833if test -n "$STRIP"; then
2834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2835printf "%s\n" "$STRIP" >&6; }
2836else
2837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838printf "%s\n" "no" >&6; }
2839fi
2840
2841
2842fi
2843if test -z "$ac_cv_prog_STRIP"; then
2844  ac_ct_STRIP=$STRIP
2845  # Extract the first word of "strip", so it can be a program name with args.
2846set dummy strip; ac_word=$2
2847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848printf %s "checking for $ac_word... " >&6; }
2849if test ${ac_cv_prog_ac_ct_STRIP+y}
2850then :
2851  printf %s "(cached) " >&6
2852else case e in #(
2853  e) if test -n "$ac_ct_STRIP"; then
2854  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2855else
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859  IFS=$as_save_IFS
2860  case $as_dir in #(((
2861    '') as_dir=./ ;;
2862    */) ;;
2863    *) as_dir=$as_dir/ ;;
2864  esac
2865    for ac_exec_ext in '' $ac_executable_extensions; do
2866  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2867    ac_cv_prog_ac_ct_STRIP="strip"
2868    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2869    break 2
2870  fi
2871done
2872  done
2873IFS=$as_save_IFS
2874
2875fi ;;
2876esac
2877fi
2878ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2879if test -n "$ac_ct_STRIP"; then
2880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2881printf "%s\n" "$ac_ct_STRIP" >&6; }
2882else
2883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884printf "%s\n" "no" >&6; }
2885fi
2886
2887  if test "x$ac_ct_STRIP" = x; then
2888    STRIP=":"
2889  else
2890    case $cross_compiling:$ac_tool_warned in
2891yes:)
2892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2893printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2894ac_tool_warned=yes ;;
2895esac
2896    STRIP=$ac_ct_STRIP
2897  fi
2898else
2899  STRIP="$ac_cv_prog_STRIP"
2900fi
2901
2902fi
2903INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2904
2905
2906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2907printf %s "checking for a race-free mkdir -p... " >&6; }
2908if test -z "$MKDIR_P"; then
2909  if test ${ac_cv_path_mkdir+y}
2910then :
2911  printf %s "(cached) " >&6
2912else case e in #(
2913  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2915do
2916  IFS=$as_save_IFS
2917  case $as_dir in #(((
2918    '') as_dir=./ ;;
2919    */) ;;
2920    *) as_dir=$as_dir/ ;;
2921  esac
2922    for ac_prog in mkdir gmkdir; do
2923	 for ac_exec_ext in '' $ac_executable_extensions; do
2924	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2925	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2926	     'mkdir ('*'coreutils) '* | \
2927	     *'BusyBox '* | \
2928	     'mkdir (fileutils) '4.1*)
2929	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2930	       break 3;;
2931	   esac
2932	 done
2933       done
2934  done
2935IFS=$as_save_IFS
2936 ;;
2937esac
2938fi
2939
2940  test -d ./--version && rmdir ./--version
2941  if test ${ac_cv_path_mkdir+y}; then
2942    MKDIR_P="$ac_cv_path_mkdir -p"
2943  else
2944    # As a last resort, use plain mkdir -p,
2945    # in the hope it doesn't have the bugs of ancient mkdir.
2946    MKDIR_P='mkdir -p'
2947  fi
2948fi
2949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2950printf "%s\n" "$MKDIR_P" >&6; }
2951
2952for ac_prog in gawk mawk nawk awk
2953do
2954  # Extract the first word of "$ac_prog", so it can be a program name with args.
2955set dummy $ac_prog; ac_word=$2
2956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957printf %s "checking for $ac_word... " >&6; }
2958if test ${ac_cv_prog_AWK+y}
2959then :
2960  printf %s "(cached) " >&6
2961else case e in #(
2962  e) if test -n "$AWK"; then
2963  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2964else
2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966for as_dir in $PATH
2967do
2968  IFS=$as_save_IFS
2969  case $as_dir in #(((
2970    '') as_dir=./ ;;
2971    */) ;;
2972    *) as_dir=$as_dir/ ;;
2973  esac
2974    for ac_exec_ext in '' $ac_executable_extensions; do
2975  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2976    ac_cv_prog_AWK="$ac_prog"
2977    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2978    break 2
2979  fi
2980done
2981  done
2982IFS=$as_save_IFS
2983
2984fi ;;
2985esac
2986fi
2987AWK=$ac_cv_prog_AWK
2988if test -n "$AWK"; then
2989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2990printf "%s\n" "$AWK" >&6; }
2991else
2992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993printf "%s\n" "no" >&6; }
2994fi
2995
2996
2997  test -n "$AWK" && break
2998done
2999
3000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3001printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3002set x ${MAKE-make}
3003ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3004if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3005then :
3006  printf %s "(cached) " >&6
3007else case e in #(
3008  e) cat >conftest.make <<\_ACEOF
3009SHELL = /bin/sh
3010all:
3011	@echo '@@@%%%=$(MAKE)=@@@%%%'
3012_ACEOF
3013# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3014case `${MAKE-make} -f conftest.make 2>/dev/null` in
3015  *@@@%%%=?*=@@@%%%*)
3016    eval ac_cv_prog_make_${ac_make}_set=yes;;
3017  *)
3018    eval ac_cv_prog_make_${ac_make}_set=no;;
3019esac
3020rm -f conftest.make ;;
3021esac
3022fi
3023if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3025printf "%s\n" "yes" >&6; }
3026  SET_MAKE=
3027else
3028  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029printf "%s\n" "no" >&6; }
3030  SET_MAKE="MAKE=${MAKE-make}"
3031fi
3032
3033rm -rf .tst 2>/dev/null
3034mkdir .tst 2>/dev/null
3035if test -d .tst; then
3036  am__leading_dot=.
3037else
3038  am__leading_dot=_
3039fi
3040rmdir .tst 2>/dev/null
3041
3042# Check whether --enable-silent-rules was given.
3043if test ${enable_silent_rules+y}
3044then :
3045  enableval=$enable_silent_rules;
3046fi
3047
3048case $enable_silent_rules in # (((
3049  yes) AM_DEFAULT_VERBOSITY=0;;
3050   no) AM_DEFAULT_VERBOSITY=1;;
3051    *) AM_DEFAULT_VERBOSITY=1;;
3052esac
3053am_make=${MAKE-make}
3054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3055printf %s "checking whether $am_make supports nested variables... " >&6; }
3056if test ${am_cv_make_support_nested_variables+y}
3057then :
3058  printf %s "(cached) " >&6
3059else case e in #(
3060  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3061BAR0=false
3062BAR1=true
3063V=1
3064am__doit:
3065	@$(TRUE)
3066.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3067  am_cv_make_support_nested_variables=yes
3068else
3069  am_cv_make_support_nested_variables=no
3070fi ;;
3071esac
3072fi
3073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3074printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3075if test $am_cv_make_support_nested_variables = yes; then
3076    AM_V='$(V)'
3077  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3078else
3079  AM_V=$AM_DEFAULT_VERBOSITY
3080  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3081fi
3082AM_BACKSLASH='\'
3083
3084if test "`cd $srcdir && pwd`" != "`pwd`"; then
3085  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3086  # is not polluted with repeated "-I."
3087  am__isrc=' -I$(srcdir)'
3088  # test to see if srcdir already configured
3089  if test -f $srcdir/config.status; then
3090    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3091  fi
3092fi
3093
3094# test whether we have cygpath
3095if test -z "$CYGPATH_W"; then
3096  if (cygpath --version) >/dev/null 2>/dev/null; then
3097    CYGPATH_W='cygpath -w'
3098  else
3099    CYGPATH_W=echo
3100  fi
3101fi
3102
3103
3104# Define the identity of the package.
3105 PACKAGE='xkbutils'
3106 VERSION='1.0.6'
3107
3108
3109printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3110
3111
3112printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3113
3114# Some tools Automake needs.
3115
3116ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3117
3118
3119AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3120
3121
3122AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3123
3124
3125AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3126
3127
3128MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3129
3130# For better backward compatibility.  To be removed once Automake 1.9.x
3131# dies out for good.  For more background, see:
3132# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3133# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3134mkdir_p='$(MKDIR_P)'
3135
3136# We need awk for the "check" target (and possibly the TAP driver).  The
3137# system "awk" is bad on some platforms.
3138# Always define AMTAR for backward compatibility.  Yes, it's still used
3139# in the wild :-(  We should find a proper way to deprecate it ...
3140AMTAR='$${TAR-tar}'
3141
3142
3143# We'll loop over all known methods to create a tar archive until one works.
3144_am_tools='gnutar  pax cpio none'
3145
3146am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3147
3148
3149
3150
3151
3152# Variables for tags utilities; see am/tags.am
3153if test -z "$CTAGS"; then
3154  CTAGS=ctags
3155fi
3156
3157if test -z "$ETAGS"; then
3158  ETAGS=etags
3159fi
3160
3161if test -z "$CSCOPE"; then
3162  CSCOPE=cscope
3163fi
3164
3165
3166
3167# POSIX will say in a future version that running "rm -f" with no argument
3168# is OK; and we want to be able to make that assumption in our Makefile
3169# recipes.  So use an aggressive probe to check that the usage we want is
3170# actually supported "in the wild" to an acceptable degree.
3171# See automake bug#10828.
3172# To make any issue more visible, cause the running configure to be aborted
3173# by default if the 'rm' program in use doesn't match our expectations; the
3174# user can still override this though.
3175if rm -f && rm -fr && rm -rf; then : OK; else
3176  cat >&2 <<'END'
3177Oops!
3178
3179Your 'rm' program seems unable to run without file operands specified
3180on the command line, even when the '-f' option is present.  This is contrary
3181to the behaviour of most rm programs out there, and not conforming with
3182the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3183
3184Please tell bug-automake@gnu.org about your system, including the value
3185of your $PATH and any error possibly output before this message.  This
3186can help us improve future automake versions.
3187
3188END
3189  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3190    echo 'Configuration will proceed anyway, since you have set the' >&2
3191    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3192    echo >&2
3193  else
3194    cat >&2 <<'END'
3195Aborting the configuration process, to ensure you take notice of the issue.
3196
3197You can download and install GNU coreutils to get an 'rm' implementation
3198that behaves properly: <https://www.gnu.org/software/coreutils/>.
3199
3200If you want to complete the configuration process using your problematic
3201'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3202to "yes", and re-run configure.
3203
3204END
3205    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3206  fi
3207fi
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218DEPDIR="${am__leading_dot}deps"
3219
3220ac_config_commands="$ac_config_commands depfiles"
3221
3222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3223printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3224cat > confinc.mk << 'END'
3225am__doit:
3226	@echo this is the am__doit target >confinc.out
3227.PHONY: am__doit
3228END
3229am__include="#"
3230am__quote=
3231# BSD make does it like this.
3232echo '.include "confinc.mk" # ignored' > confmf.BSD
3233# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3234echo 'include confinc.mk # ignored' > confmf.GNU
3235_am_result=no
3236for s in GNU BSD; do
3237  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3238   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3239   ac_status=$?
3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241   (exit $ac_status); }
3242  case $?:`cat confinc.out 2>/dev/null` in #(
3243  '0:this is the am__doit target') :
3244    case $s in #(
3245  BSD) :
3246    am__include='.include' am__quote='"' ;; #(
3247  *) :
3248    am__include='include' am__quote='' ;;
3249esac ;; #(
3250  *) :
3251     ;;
3252esac
3253  if test "$am__include" != "#"; then
3254    _am_result="yes ($s style)"
3255    break
3256  fi
3257done
3258rm -f confinc.* confmf.*
3259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3260printf "%s\n" "${_am_result}" >&6; }
3261
3262# Check whether --enable-dependency-tracking was given.
3263if test ${enable_dependency_tracking+y}
3264then :
3265  enableval=$enable_dependency_tracking;
3266fi
3267
3268if test "x$enable_dependency_tracking" != xno; then
3269  am_depcomp="$ac_aux_dir/depcomp"
3270  AMDEPBACKSLASH='\'
3271  am__nodep='_no'
3272fi
3273 if test "x$enable_dependency_tracking" != xno; then
3274  AMDEP_TRUE=
3275  AMDEP_FALSE='#'
3276else
3277  AMDEP_TRUE='#'
3278  AMDEP_FALSE=
3279fi
3280
3281
3282ac_ext=c
3283ac_cpp='$CPP $CPPFLAGS'
3284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3286ac_compiler_gnu=$ac_cv_c_compiler_gnu
3287if test -n "$ac_tool_prefix"; then
3288  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3289set dummy ${ac_tool_prefix}gcc; ac_word=$2
3290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291printf %s "checking for $ac_word... " >&6; }
3292if test ${ac_cv_prog_CC+y}
3293then :
3294  printf %s "(cached) " >&6
3295else case e in #(
3296  e) if test -n "$CC"; then
3297  ac_cv_prog_CC="$CC" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302  IFS=$as_save_IFS
3303  case $as_dir in #(((
3304    '') as_dir=./ ;;
3305    */) ;;
3306    *) as_dir=$as_dir/ ;;
3307  esac
3308    for ac_exec_ext in '' $ac_executable_extensions; do
3309  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3310    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3311    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3312    break 2
3313  fi
3314done
3315  done
3316IFS=$as_save_IFS
3317
3318fi ;;
3319esac
3320fi
3321CC=$ac_cv_prog_CC
3322if test -n "$CC"; then
3323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324printf "%s\n" "$CC" >&6; }
3325else
3326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327printf "%s\n" "no" >&6; }
3328fi
3329
3330
3331fi
3332if test -z "$ac_cv_prog_CC"; then
3333  ac_ct_CC=$CC
3334  # Extract the first word of "gcc", so it can be a program name with args.
3335set dummy gcc; ac_word=$2
3336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337printf %s "checking for $ac_word... " >&6; }
3338if test ${ac_cv_prog_ac_ct_CC+y}
3339then :
3340  printf %s "(cached) " >&6
3341else case e in #(
3342  e) if test -n "$ac_ct_CC"; then
3343  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3344else
3345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346for as_dir in $PATH
3347do
3348  IFS=$as_save_IFS
3349  case $as_dir in #(((
3350    '') as_dir=./ ;;
3351    */) ;;
3352    *) as_dir=$as_dir/ ;;
3353  esac
3354    for ac_exec_ext in '' $ac_executable_extensions; do
3355  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3356    ac_cv_prog_ac_ct_CC="gcc"
3357    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3358    break 2
3359  fi
3360done
3361  done
3362IFS=$as_save_IFS
3363
3364fi ;;
3365esac
3366fi
3367ac_ct_CC=$ac_cv_prog_ac_ct_CC
3368if test -n "$ac_ct_CC"; then
3369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3370printf "%s\n" "$ac_ct_CC" >&6; }
3371else
3372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373printf "%s\n" "no" >&6; }
3374fi
3375
3376  if test "x$ac_ct_CC" = x; then
3377    CC=""
3378  else
3379    case $cross_compiling:$ac_tool_warned in
3380yes:)
3381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3382printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3383ac_tool_warned=yes ;;
3384esac
3385    CC=$ac_ct_CC
3386  fi
3387else
3388  CC="$ac_cv_prog_CC"
3389fi
3390
3391if test -z "$CC"; then
3392          if test -n "$ac_tool_prefix"; then
3393    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3394set dummy ${ac_tool_prefix}cc; ac_word=$2
3395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396printf %s "checking for $ac_word... " >&6; }
3397if test ${ac_cv_prog_CC+y}
3398then :
3399  printf %s "(cached) " >&6
3400else case e in #(
3401  e) if test -n "$CC"; then
3402  ac_cv_prog_CC="$CC" # Let the user override the test.
3403else
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407  IFS=$as_save_IFS
3408  case $as_dir in #(((
3409    '') as_dir=./ ;;
3410    */) ;;
3411    *) as_dir=$as_dir/ ;;
3412  esac
3413    for ac_exec_ext in '' $ac_executable_extensions; do
3414  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3415    ac_cv_prog_CC="${ac_tool_prefix}cc"
3416    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3417    break 2
3418  fi
3419done
3420  done
3421IFS=$as_save_IFS
3422
3423fi ;;
3424esac
3425fi
3426CC=$ac_cv_prog_CC
3427if test -n "$CC"; then
3428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3429printf "%s\n" "$CC" >&6; }
3430else
3431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432printf "%s\n" "no" >&6; }
3433fi
3434
3435
3436  fi
3437fi
3438if test -z "$CC"; then
3439  # Extract the first word of "cc", so it can be a program name with args.
3440set dummy cc; ac_word=$2
3441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442printf %s "checking for $ac_word... " >&6; }
3443if test ${ac_cv_prog_CC+y}
3444then :
3445  printf %s "(cached) " >&6
3446else case e in #(
3447  e) if test -n "$CC"; then
3448  ac_cv_prog_CC="$CC" # Let the user override the test.
3449else
3450  ac_prog_rejected=no
3451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452for as_dir in $PATH
3453do
3454  IFS=$as_save_IFS
3455  case $as_dir in #(((
3456    '') as_dir=./ ;;
3457    */) ;;
3458    *) as_dir=$as_dir/ ;;
3459  esac
3460    for ac_exec_ext in '' $ac_executable_extensions; do
3461  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3462    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3463       ac_prog_rejected=yes
3464       continue
3465     fi
3466    ac_cv_prog_CC="cc"
3467    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3468    break 2
3469  fi
3470done
3471  done
3472IFS=$as_save_IFS
3473
3474if test $ac_prog_rejected = yes; then
3475  # We found a bogon in the path, so make sure we never use it.
3476  set dummy $ac_cv_prog_CC
3477  shift
3478  if test $# != 0; then
3479    # We chose a different compiler from the bogus one.
3480    # However, it has the same basename, so the bogon will be chosen
3481    # first if we set CC to just the basename; use the full file name.
3482    shift
3483    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3484  fi
3485fi
3486fi ;;
3487esac
3488fi
3489CC=$ac_cv_prog_CC
3490if test -n "$CC"; then
3491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3492printf "%s\n" "$CC" >&6; }
3493else
3494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495printf "%s\n" "no" >&6; }
3496fi
3497
3498
3499fi
3500if test -z "$CC"; then
3501  if test -n "$ac_tool_prefix"; then
3502  for ac_prog in cl.exe
3503  do
3504    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3505set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507printf %s "checking for $ac_word... " >&6; }
3508if test ${ac_cv_prog_CC+y}
3509then :
3510  printf %s "(cached) " >&6
3511else case e in #(
3512  e) if test -n "$CC"; then
3513  ac_cv_prog_CC="$CC" # Let the user override the test.
3514else
3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518  IFS=$as_save_IFS
3519  case $as_dir in #(((
3520    '') as_dir=./ ;;
3521    */) ;;
3522    *) as_dir=$as_dir/ ;;
3523  esac
3524    for ac_exec_ext in '' $ac_executable_extensions; do
3525  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3526    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3527    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3528    break 2
3529  fi
3530done
3531  done
3532IFS=$as_save_IFS
3533
3534fi ;;
3535esac
3536fi
3537CC=$ac_cv_prog_CC
3538if test -n "$CC"; then
3539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3540printf "%s\n" "$CC" >&6; }
3541else
3542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543printf "%s\n" "no" >&6; }
3544fi
3545
3546
3547    test -n "$CC" && break
3548  done
3549fi
3550if test -z "$CC"; then
3551  ac_ct_CC=$CC
3552  for ac_prog in cl.exe
3553do
3554  # Extract the first word of "$ac_prog", so it can be a program name with args.
3555set dummy $ac_prog; ac_word=$2
3556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557printf %s "checking for $ac_word... " >&6; }
3558if test ${ac_cv_prog_ac_ct_CC+y}
3559then :
3560  printf %s "(cached) " >&6
3561else case e in #(
3562  e) if test -n "$ac_ct_CC"; then
3563  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564else
3565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566for as_dir in $PATH
3567do
3568  IFS=$as_save_IFS
3569  case $as_dir in #(((
3570    '') as_dir=./ ;;
3571    */) ;;
3572    *) as_dir=$as_dir/ ;;
3573  esac
3574    for ac_exec_ext in '' $ac_executable_extensions; do
3575  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3576    ac_cv_prog_ac_ct_CC="$ac_prog"
3577    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3578    break 2
3579  fi
3580done
3581  done
3582IFS=$as_save_IFS
3583
3584fi ;;
3585esac
3586fi
3587ac_ct_CC=$ac_cv_prog_ac_ct_CC
3588if test -n "$ac_ct_CC"; then
3589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3590printf "%s\n" "$ac_ct_CC" >&6; }
3591else
3592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593printf "%s\n" "no" >&6; }
3594fi
3595
3596
3597  test -n "$ac_ct_CC" && break
3598done
3599
3600  if test "x$ac_ct_CC" = x; then
3601    CC=""
3602  else
3603    case $cross_compiling:$ac_tool_warned in
3604yes:)
3605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3606printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3607ac_tool_warned=yes ;;
3608esac
3609    CC=$ac_ct_CC
3610  fi
3611fi
3612
3613fi
3614if test -z "$CC"; then
3615  if test -n "$ac_tool_prefix"; then
3616  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3617set dummy ${ac_tool_prefix}clang; ac_word=$2
3618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619printf %s "checking for $ac_word... " >&6; }
3620if test ${ac_cv_prog_CC+y}
3621then :
3622  printf %s "(cached) " >&6
3623else case e in #(
3624  e) if test -n "$CC"; then
3625  ac_cv_prog_CC="$CC" # Let the user override the test.
3626else
3627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628for as_dir in $PATH
3629do
3630  IFS=$as_save_IFS
3631  case $as_dir in #(((
3632    '') as_dir=./ ;;
3633    */) ;;
3634    *) as_dir=$as_dir/ ;;
3635  esac
3636    for ac_exec_ext in '' $ac_executable_extensions; do
3637  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3638    ac_cv_prog_CC="${ac_tool_prefix}clang"
3639    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3640    break 2
3641  fi
3642done
3643  done
3644IFS=$as_save_IFS
3645
3646fi ;;
3647esac
3648fi
3649CC=$ac_cv_prog_CC
3650if test -n "$CC"; then
3651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3652printf "%s\n" "$CC" >&6; }
3653else
3654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655printf "%s\n" "no" >&6; }
3656fi
3657
3658
3659fi
3660if test -z "$ac_cv_prog_CC"; then
3661  ac_ct_CC=$CC
3662  # Extract the first word of "clang", so it can be a program name with args.
3663set dummy clang; ac_word=$2
3664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665printf %s "checking for $ac_word... " >&6; }
3666if test ${ac_cv_prog_ac_ct_CC+y}
3667then :
3668  printf %s "(cached) " >&6
3669else case e in #(
3670  e) if test -n "$ac_ct_CC"; then
3671  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3672else
3673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674for as_dir in $PATH
3675do
3676  IFS=$as_save_IFS
3677  case $as_dir in #(((
3678    '') as_dir=./ ;;
3679    */) ;;
3680    *) as_dir=$as_dir/ ;;
3681  esac
3682    for ac_exec_ext in '' $ac_executable_extensions; do
3683  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3684    ac_cv_prog_ac_ct_CC="clang"
3685    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3686    break 2
3687  fi
3688done
3689  done
3690IFS=$as_save_IFS
3691
3692fi ;;
3693esac
3694fi
3695ac_ct_CC=$ac_cv_prog_ac_ct_CC
3696if test -n "$ac_ct_CC"; then
3697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3698printf "%s\n" "$ac_ct_CC" >&6; }
3699else
3700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701printf "%s\n" "no" >&6; }
3702fi
3703
3704  if test "x$ac_ct_CC" = x; then
3705    CC=""
3706  else
3707    case $cross_compiling:$ac_tool_warned in
3708yes:)
3709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3710printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3711ac_tool_warned=yes ;;
3712esac
3713    CC=$ac_ct_CC
3714  fi
3715else
3716  CC="$ac_cv_prog_CC"
3717fi
3718
3719fi
3720
3721
3722test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3723printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3724as_fn_error $? "no acceptable C compiler found in \$PATH
3725See 'config.log' for more details" "$LINENO" 5; }
3726
3727# Provide some information about the compiler.
3728printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3729set X $ac_compile
3730ac_compiler=$2
3731for ac_option in --version -v -V -qversion -version; do
3732  { { ac_try="$ac_compiler $ac_option >&5"
3733case "(($ac_try" in
3734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735  *) ac_try_echo=$ac_try;;
3736esac
3737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738printf "%s\n" "$ac_try_echo"; } >&5
3739  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3740  ac_status=$?
3741  if test -s conftest.err; then
3742    sed '10a\
3743... rest of stderr output deleted ...
3744         10q' conftest.err >conftest.er1
3745    cat conftest.er1 >&5
3746  fi
3747  rm -f conftest.er1 conftest.err
3748  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749  test $ac_status = 0; }
3750done
3751
3752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753/* end confdefs.h.  */
3754
3755int
3756main (void)
3757{
3758
3759  ;
3760  return 0;
3761}
3762_ACEOF
3763ac_clean_files_save=$ac_clean_files
3764ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3765# Try to create an executable without -o first, disregard a.out.
3766# It will help us diagnose broken compilers, and finding out an intuition
3767# of exeext.
3768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3769printf %s "checking whether the C compiler works... " >&6; }
3770ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3771
3772# The possible output files:
3773ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3774
3775ac_rmfiles=
3776for ac_file in $ac_files
3777do
3778  case $ac_file in
3779    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3780    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3781  esac
3782done
3783rm -f $ac_rmfiles
3784
3785if { { ac_try="$ac_link_default"
3786case "(($ac_try" in
3787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788  *) ac_try_echo=$ac_try;;
3789esac
3790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791printf "%s\n" "$ac_try_echo"; } >&5
3792  (eval "$ac_link_default") 2>&5
3793  ac_status=$?
3794  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795  test $ac_status = 0; }
3796then :
3797  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3798# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3799# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3800# so that the user can short-circuit this test for compilers unknown to
3801# Autoconf.
3802for ac_file in $ac_files ''
3803do
3804  test -f "$ac_file" || continue
3805  case $ac_file in
3806    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3807	;;
3808    [ab].out )
3809	# We found the default executable, but exeext='' is most
3810	# certainly right.
3811	break;;
3812    *.* )
3813	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3814	then :; else
3815	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3816	fi
3817	# We set ac_cv_exeext here because the later test for it is not
3818	# safe: cross compilers may not add the suffix if given an '-o'
3819	# argument, so we may need to know it at that point already.
3820	# Even if this section looks crufty: it has the advantage of
3821	# actually working.
3822	break;;
3823    * )
3824	break;;
3825  esac
3826done
3827test "$ac_cv_exeext" = no && ac_cv_exeext=
3828
3829else case e in #(
3830  e) ac_file='' ;;
3831esac
3832fi
3833if test -z "$ac_file"
3834then :
3835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836printf "%s\n" "no" >&6; }
3837printf "%s\n" "$as_me: failed program was:" >&5
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
3840{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3841printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3842as_fn_error 77 "C compiler cannot create executables
3843See 'config.log' for more details" "$LINENO" 5; }
3844else case e in #(
3845  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3846printf "%s\n" "yes" >&6; } ;;
3847esac
3848fi
3849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3850printf %s "checking for C compiler default output file name... " >&6; }
3851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3852printf "%s\n" "$ac_file" >&6; }
3853ac_exeext=$ac_cv_exeext
3854
3855rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3856ac_clean_files=$ac_clean_files_save
3857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3858printf %s "checking for suffix of executables... " >&6; }
3859if { { ac_try="$ac_link"
3860case "(($ac_try" in
3861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862  *) ac_try_echo=$ac_try;;
3863esac
3864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865printf "%s\n" "$ac_try_echo"; } >&5
3866  (eval "$ac_link") 2>&5
3867  ac_status=$?
3868  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869  test $ac_status = 0; }
3870then :
3871  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3872# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3873# work properly (i.e., refer to 'conftest.exe'), while it won't with
3874# 'rm'.
3875for ac_file in conftest.exe conftest conftest.*; do
3876  test -f "$ac_file" || continue
3877  case $ac_file in
3878    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3879    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880	  break;;
3881    * ) break;;
3882  esac
3883done
3884else case e in #(
3885  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3886printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3887as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3888See 'config.log' for more details" "$LINENO" 5; } ;;
3889esac
3890fi
3891rm -f conftest conftest$ac_cv_exeext
3892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3893printf "%s\n" "$ac_cv_exeext" >&6; }
3894
3895rm -f conftest.$ac_ext
3896EXEEXT=$ac_cv_exeext
3897ac_exeext=$EXEEXT
3898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h.  */
3900#include <stdio.h>
3901int
3902main (void)
3903{
3904FILE *f = fopen ("conftest.out", "w");
3905 if (!f)
3906  return 1;
3907 return ferror (f) || fclose (f) != 0;
3908
3909  ;
3910  return 0;
3911}
3912_ACEOF
3913ac_clean_files="$ac_clean_files conftest.out"
3914# Check that the compiler produces executables we can run.  If not, either
3915# the compiler is broken, or we cross compile.
3916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3917printf %s "checking whether we are cross compiling... " >&6; }
3918if test "$cross_compiling" != yes; then
3919  { { ac_try="$ac_link"
3920case "(($ac_try" in
3921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922  *) ac_try_echo=$ac_try;;
3923esac
3924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925printf "%s\n" "$ac_try_echo"; } >&5
3926  (eval "$ac_link") 2>&5
3927  ac_status=$?
3928  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929  test $ac_status = 0; }
3930  if { ac_try='./conftest$ac_cv_exeext'
3931  { { case "(($ac_try" in
3932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933  *) ac_try_echo=$ac_try;;
3934esac
3935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936printf "%s\n" "$ac_try_echo"; } >&5
3937  (eval "$ac_try") 2>&5
3938  ac_status=$?
3939  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940  test $ac_status = 0; }; }; then
3941    cross_compiling=no
3942  else
3943    if test "$cross_compiling" = maybe; then
3944	cross_compiling=yes
3945    else
3946	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3947printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3948as_fn_error 77 "cannot run C compiled programs.
3949If you meant to cross compile, use '--host'.
3950See 'config.log' for more details" "$LINENO" 5; }
3951    fi
3952  fi
3953fi
3954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3955printf "%s\n" "$cross_compiling" >&6; }
3956
3957rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3958  conftest.o conftest.obj conftest.out
3959ac_clean_files=$ac_clean_files_save
3960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3961printf %s "checking for suffix of object files... " >&6; }
3962if test ${ac_cv_objext+y}
3963then :
3964  printf %s "(cached) " >&6
3965else case e in #(
3966  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967/* end confdefs.h.  */
3968
3969int
3970main (void)
3971{
3972
3973  ;
3974  return 0;
3975}
3976_ACEOF
3977rm -f conftest.o conftest.obj
3978if { { ac_try="$ac_compile"
3979case "(($ac_try" in
3980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981  *) ac_try_echo=$ac_try;;
3982esac
3983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984printf "%s\n" "$ac_try_echo"; } >&5
3985  (eval "$ac_compile") 2>&5
3986  ac_status=$?
3987  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3988  test $ac_status = 0; }
3989then :
3990  for ac_file in conftest.o conftest.obj conftest.*; do
3991  test -f "$ac_file" || continue;
3992  case $ac_file in
3993    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3994    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3995       break;;
3996  esac
3997done
3998else case e in #(
3999  e) printf "%s\n" "$as_me: failed program was:" >&5
4000sed 's/^/| /' conftest.$ac_ext >&5
4001
4002{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4003printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4004as_fn_error $? "cannot compute suffix of object files: cannot compile
4005See 'config.log' for more details" "$LINENO" 5; } ;;
4006esac
4007fi
4008rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4009esac
4010fi
4011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4012printf "%s\n" "$ac_cv_objext" >&6; }
4013OBJEXT=$ac_cv_objext
4014ac_objext=$OBJEXT
4015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4016printf %s "checking whether the compiler supports GNU C... " >&6; }
4017if test ${ac_cv_c_compiler_gnu+y}
4018then :
4019  printf %s "(cached) " >&6
4020else case e in #(
4021  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022/* end confdefs.h.  */
4023
4024int
4025main (void)
4026{
4027#ifndef __GNUC__
4028       choke me
4029#endif
4030
4031  ;
4032  return 0;
4033}
4034_ACEOF
4035if ac_fn_c_try_compile "$LINENO"
4036then :
4037  ac_compiler_gnu=yes
4038else case e in #(
4039  e) ac_compiler_gnu=no ;;
4040esac
4041fi
4042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4043ac_cv_c_compiler_gnu=$ac_compiler_gnu
4044 ;;
4045esac
4046fi
4047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4048printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4049ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050
4051if test $ac_compiler_gnu = yes; then
4052  GCC=yes
4053else
4054  GCC=
4055fi
4056ac_test_CFLAGS=${CFLAGS+y}
4057ac_save_CFLAGS=$CFLAGS
4058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4059printf %s "checking whether $CC accepts -g... " >&6; }
4060if test ${ac_cv_prog_cc_g+y}
4061then :
4062  printf %s "(cached) " >&6
4063else case e in #(
4064  e) ac_save_c_werror_flag=$ac_c_werror_flag
4065   ac_c_werror_flag=yes
4066   ac_cv_prog_cc_g=no
4067   CFLAGS="-g"
4068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h.  */
4070
4071int
4072main (void)
4073{
4074
4075  ;
4076  return 0;
4077}
4078_ACEOF
4079if ac_fn_c_try_compile "$LINENO"
4080then :
4081  ac_cv_prog_cc_g=yes
4082else case e in #(
4083  e) CFLAGS=""
4084      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085/* end confdefs.h.  */
4086
4087int
4088main (void)
4089{
4090
4091  ;
4092  return 0;
4093}
4094_ACEOF
4095if ac_fn_c_try_compile "$LINENO"
4096then :
4097
4098else case e in #(
4099  e) ac_c_werror_flag=$ac_save_c_werror_flag
4100	 CFLAGS="-g"
4101	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102/* end confdefs.h.  */
4103
4104int
4105main (void)
4106{
4107
4108  ;
4109  return 0;
4110}
4111_ACEOF
4112if ac_fn_c_try_compile "$LINENO"
4113then :
4114  ac_cv_prog_cc_g=yes
4115fi
4116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4117esac
4118fi
4119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4120esac
4121fi
4122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4123   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4124esac
4125fi
4126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4127printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4128if test $ac_test_CFLAGS; then
4129  CFLAGS=$ac_save_CFLAGS
4130elif test $ac_cv_prog_cc_g = yes; then
4131  if test "$GCC" = yes; then
4132    CFLAGS="-g -O2"
4133  else
4134    CFLAGS="-g"
4135  fi
4136else
4137  if test "$GCC" = yes; then
4138    CFLAGS="-O2"
4139  else
4140    CFLAGS=
4141  fi
4142fi
4143ac_prog_cc_stdc=no
4144if test x$ac_prog_cc_stdc = xno
4145then :
4146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4147printf %s "checking for $CC option to enable C11 features... " >&6; }
4148if test ${ac_cv_prog_cc_c11+y}
4149then :
4150  printf %s "(cached) " >&6
4151else case e in #(
4152  e) ac_cv_prog_cc_c11=no
4153ac_save_CC=$CC
4154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155/* end confdefs.h.  */
4156$ac_c_conftest_c11_program
4157_ACEOF
4158for ac_arg in '' -std=gnu11
4159do
4160  CC="$ac_save_CC $ac_arg"
4161  if ac_fn_c_try_compile "$LINENO"
4162then :
4163  ac_cv_prog_cc_c11=$ac_arg
4164fi
4165rm -f core conftest.err conftest.$ac_objext conftest.beam
4166  test "x$ac_cv_prog_cc_c11" != "xno" && break
4167done
4168rm -f conftest.$ac_ext
4169CC=$ac_save_CC ;;
4170esac
4171fi
4172
4173if test "x$ac_cv_prog_cc_c11" = xno
4174then :
4175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4176printf "%s\n" "unsupported" >&6; }
4177else case e in #(
4178  e) if test "x$ac_cv_prog_cc_c11" = x
4179then :
4180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4181printf "%s\n" "none needed" >&6; }
4182else case e in #(
4183  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4184printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4185     CC="$CC $ac_cv_prog_cc_c11" ;;
4186esac
4187fi
4188  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4189  ac_prog_cc_stdc=c11 ;;
4190esac
4191fi
4192fi
4193if test x$ac_prog_cc_stdc = xno
4194then :
4195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4196printf %s "checking for $CC option to enable C99 features... " >&6; }
4197if test ${ac_cv_prog_cc_c99+y}
4198then :
4199  printf %s "(cached) " >&6
4200else case e in #(
4201  e) ac_cv_prog_cc_c99=no
4202ac_save_CC=$CC
4203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h.  */
4205$ac_c_conftest_c99_program
4206_ACEOF
4207for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4208do
4209  CC="$ac_save_CC $ac_arg"
4210  if ac_fn_c_try_compile "$LINENO"
4211then :
4212  ac_cv_prog_cc_c99=$ac_arg
4213fi
4214rm -f core conftest.err conftest.$ac_objext conftest.beam
4215  test "x$ac_cv_prog_cc_c99" != "xno" && break
4216done
4217rm -f conftest.$ac_ext
4218CC=$ac_save_CC ;;
4219esac
4220fi
4221
4222if test "x$ac_cv_prog_cc_c99" = xno
4223then :
4224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4225printf "%s\n" "unsupported" >&6; }
4226else case e in #(
4227  e) if test "x$ac_cv_prog_cc_c99" = x
4228then :
4229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4230printf "%s\n" "none needed" >&6; }
4231else case e in #(
4232  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4233printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4234     CC="$CC $ac_cv_prog_cc_c99" ;;
4235esac
4236fi
4237  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4238  ac_prog_cc_stdc=c99 ;;
4239esac
4240fi
4241fi
4242if test x$ac_prog_cc_stdc = xno
4243then :
4244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4245printf %s "checking for $CC option to enable C89 features... " >&6; }
4246if test ${ac_cv_prog_cc_c89+y}
4247then :
4248  printf %s "(cached) " >&6
4249else case e in #(
4250  e) ac_cv_prog_cc_c89=no
4251ac_save_CC=$CC
4252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253/* end confdefs.h.  */
4254$ac_c_conftest_c89_program
4255_ACEOF
4256for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4257do
4258  CC="$ac_save_CC $ac_arg"
4259  if ac_fn_c_try_compile "$LINENO"
4260then :
4261  ac_cv_prog_cc_c89=$ac_arg
4262fi
4263rm -f core conftest.err conftest.$ac_objext conftest.beam
4264  test "x$ac_cv_prog_cc_c89" != "xno" && break
4265done
4266rm -f conftest.$ac_ext
4267CC=$ac_save_CC ;;
4268esac
4269fi
4270
4271if test "x$ac_cv_prog_cc_c89" = xno
4272then :
4273  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4274printf "%s\n" "unsupported" >&6; }
4275else case e in #(
4276  e) if test "x$ac_cv_prog_cc_c89" = x
4277then :
4278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4279printf "%s\n" "none needed" >&6; }
4280else case e in #(
4281  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4282printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4283     CC="$CC $ac_cv_prog_cc_c89" ;;
4284esac
4285fi
4286  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4287  ac_prog_cc_stdc=c89 ;;
4288esac
4289fi
4290fi
4291
4292ac_ext=c
4293ac_cpp='$CPP $CPPFLAGS'
4294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297
4298
4299  ac_ext=c
4300ac_cpp='$CPP $CPPFLAGS'
4301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4305printf %s "checking whether $CC understands -c and -o together... " >&6; }
4306if test ${am_cv_prog_cc_c_o+y}
4307then :
4308  printf %s "(cached) " >&6
4309else case e in #(
4310  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311/* end confdefs.h.  */
4312
4313int
4314main (void)
4315{
4316
4317  ;
4318  return 0;
4319}
4320_ACEOF
4321  # Make sure it works both with $CC and with simple cc.
4322  # Following AC_PROG_CC_C_O, we do the test twice because some
4323  # compilers refuse to overwrite an existing .o file with -o,
4324  # though they will create one.
4325  am_cv_prog_cc_c_o=yes
4326  for am_i in 1 2; do
4327    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4328   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4329   ac_status=$?
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); } \
4332         && test -f conftest2.$ac_objext; then
4333      : OK
4334    else
4335      am_cv_prog_cc_c_o=no
4336      break
4337    fi
4338  done
4339  rm -f core conftest*
4340  unset am_i ;;
4341esac
4342fi
4343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4344printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4345if test "$am_cv_prog_cc_c_o" != yes; then
4346   # Losing compiler, so override with the script.
4347   # FIXME: It is wrong to rewrite CC.
4348   # But if we don't then we get into trouble of one sort or another.
4349   # A longer-term fix would be to have automake use am__CC in this case,
4350   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4351   CC="$am_aux_dir/compile $CC"
4352fi
4353ac_ext=c
4354ac_cpp='$CPP $CPPFLAGS'
4355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358
4359
4360depcc="$CC"   am_compiler_list=
4361
4362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4363printf %s "checking dependency style of $depcc... " >&6; }
4364if test ${am_cv_CC_dependencies_compiler_type+y}
4365then :
4366  printf %s "(cached) " >&6
4367else case e in #(
4368  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4369  # We make a subdir and do the tests there.  Otherwise we can end up
4370  # making bogus files that we don't know about and never remove.  For
4371  # instance it was reported that on HP-UX the gcc test will end up
4372  # making a dummy file named 'D' -- because '-MD' means "put the output
4373  # in D".
4374  rm -rf conftest.dir
4375  mkdir conftest.dir
4376  # Copy depcomp to subdir because otherwise we won't find it if we're
4377  # using a relative directory.
4378  cp "$am_depcomp" conftest.dir
4379  cd conftest.dir
4380  # We will build objects and dependencies in a subdirectory because
4381  # it helps to detect inapplicable dependency modes.  For instance
4382  # both Tru64's cc and ICC support -MD to output dependencies as a
4383  # side effect of compilation, but ICC will put the dependencies in
4384  # the current directory while Tru64 will put them in the object
4385  # directory.
4386  mkdir sub
4387
4388  am_cv_CC_dependencies_compiler_type=none
4389  if test "$am_compiler_list" = ""; then
4390     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4391  fi
4392  am__universal=false
4393  case " $depcc " in #(
4394     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4395     esac
4396
4397  for depmode in $am_compiler_list; do
4398    # Setup a source with many dependencies, because some compilers
4399    # like to wrap large dependency lists on column 80 (with \), and
4400    # we should not choose a depcomp mode which is confused by this.
4401    #
4402    # We need to recreate these files for each test, as the compiler may
4403    # overwrite some of them when testing with obscure command lines.
4404    # This happens at least with the AIX C compiler.
4405    : > sub/conftest.c
4406    for i in 1 2 3 4 5 6; do
4407      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4408      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4409      # Solaris 10 /bin/sh.
4410      echo '/* dummy */' > sub/conftst$i.h
4411    done
4412    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4413
4414    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4415    # mode.  It turns out that the SunPro C++ compiler does not properly
4416    # handle '-M -o', and we need to detect this.  Also, some Intel
4417    # versions had trouble with output in subdirs.
4418    am__obj=sub/conftest.${OBJEXT-o}
4419    am__minus_obj="-o $am__obj"
4420    case $depmode in
4421    gcc)
4422      # This depmode causes a compiler race in universal mode.
4423      test "$am__universal" = false || continue
4424      ;;
4425    nosideeffect)
4426      # After this tag, mechanisms are not by side-effect, so they'll
4427      # only be used when explicitly requested.
4428      if test "x$enable_dependency_tracking" = xyes; then
4429	continue
4430      else
4431	break
4432      fi
4433      ;;
4434    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4435      # This compiler won't grok '-c -o', but also, the minuso test has
4436      # not run yet.  These depmodes are late enough in the game, and
4437      # so weak that their functioning should not be impacted.
4438      am__obj=conftest.${OBJEXT-o}
4439      am__minus_obj=
4440      ;;
4441    none) break ;;
4442    esac
4443    if depmode=$depmode \
4444       source=sub/conftest.c object=$am__obj \
4445       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4446       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4447         >/dev/null 2>conftest.err &&
4448       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4449       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4450       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4451       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4452      # icc doesn't choke on unknown options, it will just issue warnings
4453      # or remarks (even with -Werror).  So we grep stderr for any message
4454      # that says an option was ignored or not supported.
4455      # When given -MP, icc 7.0 and 7.1 complain thusly:
4456      #   icc: Command line warning: ignoring option '-M'; no argument required
4457      # The diagnosis changed in icc 8.0:
4458      #   icc: Command line remark: option '-MP' not supported
4459      if (grep 'ignoring option' conftest.err ||
4460          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4461        am_cv_CC_dependencies_compiler_type=$depmode
4462        break
4463      fi
4464    fi
4465  done
4466
4467  cd ..
4468  rm -rf conftest.dir
4469else
4470  am_cv_CC_dependencies_compiler_type=none
4471fi
4472 ;;
4473esac
4474fi
4475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4476printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4477CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4478
4479 if
4480  test "x$enable_dependency_tracking" != xno \
4481  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4482  am__fastdepCC_TRUE=
4483  am__fastdepCC_FALSE='#'
4484else
4485  am__fastdepCC_TRUE='#'
4486  am__fastdepCC_FALSE=
4487fi
4488
4489
4490
4491
4492# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4506printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4507if test ${ac_cv_c_undeclared_builtin_options+y}
4508then :
4509  printf %s "(cached) " >&6
4510else case e in #(
4511  e) ac_save_CFLAGS=$CFLAGS
4512   ac_cv_c_undeclared_builtin_options='cannot detect'
4513   for ac_arg in '' -fno-builtin; do
4514     CFLAGS="$ac_save_CFLAGS $ac_arg"
4515     # This test program should *not* compile successfully.
4516     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517/* end confdefs.h.  */
4518
4519int
4520main (void)
4521{
4522(void) strchr;
4523  ;
4524  return 0;
4525}
4526_ACEOF
4527if ac_fn_c_try_compile "$LINENO"
4528then :
4529
4530else case e in #(
4531  e) # This test program should compile successfully.
4532        # No library function is consistently available on
4533        # freestanding implementations, so test against a dummy
4534        # declaration.  Include always-available headers on the
4535        # off chance that they somehow elicit warnings.
4536        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h.  */
4538#include <float.h>
4539#include <limits.h>
4540#include <stdarg.h>
4541#include <stddef.h>
4542extern void ac_decl (int, char *);
4543
4544int
4545main (void)
4546{
4547(void) ac_decl (0, (char *) 0);
4548  (void) ac_decl;
4549
4550  ;
4551  return 0;
4552}
4553_ACEOF
4554if ac_fn_c_try_compile "$LINENO"
4555then :
4556  if test x"$ac_arg" = x
4557then :
4558  ac_cv_c_undeclared_builtin_options='none needed'
4559else case e in #(
4560  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4561esac
4562fi
4563          break
4564fi
4565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4566esac
4567fi
4568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4569    done
4570    CFLAGS=$ac_save_CFLAGS
4571   ;;
4572esac
4573fi
4574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4575printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4576  case $ac_cv_c_undeclared_builtin_options in #(
4577  'cannot detect') :
4578    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4579printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4580as_fn_error $? "cannot make $CC report undeclared builtins
4581See 'config.log' for more details" "$LINENO" 5; } ;; #(
4582  'none needed') :
4583    ac_c_undeclared_builtin_options='' ;; #(
4584  *) :
4585    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4586esac
4587
4588ac_header= ac_cache=
4589for ac_item in $ac_header_c_list
4590do
4591  if test $ac_cache; then
4592    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4593    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4594      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4595    fi
4596    ac_header= ac_cache=
4597  elif test $ac_header; then
4598    ac_cache=$ac_item
4599  else
4600    ac_header=$ac_item
4601  fi
4602done
4603
4604
4605
4606
4607
4608
4609
4610
4611if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4612then :
4613
4614printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4615
4616fi
4617
4618
4619
4620
4621ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4622if test "x$ac_cv_have_decl___clang__" = xyes
4623then :
4624  CLANGCC="yes"
4625else case e in #(
4626  e) CLANGCC="no" ;;
4627esac
4628fi
4629ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4630if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4631then :
4632  INTELCC="yes"
4633else case e in #(
4634  e) INTELCC="no" ;;
4635esac
4636fi
4637ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4638if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4639then :
4640  SUNCC="yes"
4641else case e in #(
4642  e) SUNCC="no" ;;
4643esac
4644fi
4645
4646
4647
4648
4649
4650
4651
4652
4653if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4654	if test -n "$ac_tool_prefix"; then
4655  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4656set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658printf %s "checking for $ac_word... " >&6; }
4659if test ${ac_cv_path_PKG_CONFIG+y}
4660then :
4661  printf %s "(cached) " >&6
4662else case e in #(
4663  e) case $PKG_CONFIG in
4664  [\\/]* | ?:[\\/]*)
4665  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4666  ;;
4667  *)
4668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669for as_dir in $PATH
4670do
4671  IFS=$as_save_IFS
4672  case $as_dir in #(((
4673    '') as_dir=./ ;;
4674    */) ;;
4675    *) as_dir=$as_dir/ ;;
4676  esac
4677    for ac_exec_ext in '' $ac_executable_extensions; do
4678  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4679    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4680    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4681    break 2
4682  fi
4683done
4684  done
4685IFS=$as_save_IFS
4686
4687  ;;
4688esac ;;
4689esac
4690fi
4691PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4692if test -n "$PKG_CONFIG"; then
4693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4694printf "%s\n" "$PKG_CONFIG" >&6; }
4695else
4696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697printf "%s\n" "no" >&6; }
4698fi
4699
4700
4701fi
4702if test -z "$ac_cv_path_PKG_CONFIG"; then
4703  ac_pt_PKG_CONFIG=$PKG_CONFIG
4704  # Extract the first word of "pkg-config", so it can be a program name with args.
4705set dummy pkg-config; ac_word=$2
4706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707printf %s "checking for $ac_word... " >&6; }
4708if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4709then :
4710  printf %s "(cached) " >&6
4711else case e in #(
4712  e) case $ac_pt_PKG_CONFIG in
4713  [\\/]* | ?:[\\/]*)
4714  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4715  ;;
4716  *)
4717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720  IFS=$as_save_IFS
4721  case $as_dir in #(((
4722    '') as_dir=./ ;;
4723    */) ;;
4724    *) as_dir=$as_dir/ ;;
4725  esac
4726    for ac_exec_ext in '' $ac_executable_extensions; do
4727  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4728    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4729    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4730    break 2
4731  fi
4732done
4733  done
4734IFS=$as_save_IFS
4735
4736  ;;
4737esac ;;
4738esac
4739fi
4740ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4741if test -n "$ac_pt_PKG_CONFIG"; then
4742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4743printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4744else
4745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746printf "%s\n" "no" >&6; }
4747fi
4748
4749  if test "x$ac_pt_PKG_CONFIG" = x; then
4750    PKG_CONFIG=""
4751  else
4752    case $cross_compiling:$ac_tool_warned in
4753yes:)
4754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4755printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4756ac_tool_warned=yes ;;
4757esac
4758    PKG_CONFIG=$ac_pt_PKG_CONFIG
4759  fi
4760else
4761  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4762fi
4763
4764fi
4765if test -n "$PKG_CONFIG"; then
4766	_pkg_min_version=0.9.0
4767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4768printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4769	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4771printf "%s\n" "yes" >&6; }
4772	else
4773		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774printf "%s\n" "no" >&6; }
4775		PKG_CONFIG=""
4776	fi
4777fi
4778
4779
4780  # Make sure we can run config.sub.
4781$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4782  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4783
4784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4785printf %s "checking build system type... " >&6; }
4786if test ${ac_cv_build+y}
4787then :
4788  printf %s "(cached) " >&6
4789else case e in #(
4790  e) ac_build_alias=$build_alias
4791test "x$ac_build_alias" = x &&
4792  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4793test "x$ac_build_alias" = x &&
4794  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4795ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4796  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4797 ;;
4798esac
4799fi
4800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4801printf "%s\n" "$ac_cv_build" >&6; }
4802case $ac_cv_build in
4803*-*-*) ;;
4804*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4805esac
4806build=$ac_cv_build
4807ac_save_IFS=$IFS; IFS='-'
4808set x $ac_cv_build
4809shift
4810build_cpu=$1
4811build_vendor=$2
4812shift; shift
4813# Remember, the first character of IFS is used to create $*,
4814# except with old shells:
4815build_os=$*
4816IFS=$ac_save_IFS
4817case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4818
4819
4820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4821printf %s "checking host system type... " >&6; }
4822if test ${ac_cv_host+y}
4823then :
4824  printf %s "(cached) " >&6
4825else case e in #(
4826  e) if test "x$host_alias" = x; then
4827  ac_cv_host=$ac_cv_build
4828else
4829  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4830    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4831fi
4832 ;;
4833esac
4834fi
4835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4836printf "%s\n" "$ac_cv_host" >&6; }
4837case $ac_cv_host in
4838*-*-*) ;;
4839*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4840esac
4841host=$ac_cv_host
4842ac_save_IFS=$IFS; IFS='-'
4843set x $ac_cv_host
4844shift
4845host_cpu=$1
4846host_vendor=$2
4847shift; shift
4848# Remember, the first character of IFS is used to create $*,
4849# except with old shells:
4850host_os=$*
4851IFS=$ac_save_IFS
4852case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4853
4854
4855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4856printf %s "checking for a sed that does not truncate output... " >&6; }
4857if test ${ac_cv_path_SED+y}
4858then :
4859  printf %s "(cached) " >&6
4860else case e in #(
4861  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4862     for ac_i in 1 2 3 4 5 6 7; do
4863       ac_script="$ac_script$as_nl$ac_script"
4864     done
4865     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4866     { ac_script=; unset ac_script;}
4867     if test -z "$SED"; then
4868  ac_path_SED_found=false
4869  # Loop through the user's path and test for each of PROGNAME-LIST
4870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873  IFS=$as_save_IFS
4874  case $as_dir in #(((
4875    '') as_dir=./ ;;
4876    */) ;;
4877    *) as_dir=$as_dir/ ;;
4878  esac
4879    for ac_prog in sed gsed
4880   do
4881    for ac_exec_ext in '' $ac_executable_extensions; do
4882      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4883      as_fn_executable_p "$ac_path_SED" || continue
4884# Check for GNU ac_path_SED and select it if it is found.
4885  # Check for GNU $ac_path_SED
4886case `"$ac_path_SED" --version 2>&1` in #(
4887*GNU*)
4888  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4889#(
4890*)
4891  ac_count=0
4892  printf %s 0123456789 >"conftest.in"
4893  while :
4894  do
4895    cat "conftest.in" "conftest.in" >"conftest.tmp"
4896    mv "conftest.tmp" "conftest.in"
4897    cp "conftest.in" "conftest.nl"
4898    printf "%s\n" '' >> "conftest.nl"
4899    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4900    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4901    as_fn_arith $ac_count + 1 && ac_count=$as_val
4902    if test $ac_count -gt ${ac_path_SED_max-0}; then
4903      # Best one so far, save it but keep looking for a better one
4904      ac_cv_path_SED="$ac_path_SED"
4905      ac_path_SED_max=$ac_count
4906    fi
4907    # 10*(2^10) chars as input seems more than enough
4908    test $ac_count -gt 10 && break
4909  done
4910  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4911esac
4912
4913      $ac_path_SED_found && break 3
4914    done
4915  done
4916  done
4917IFS=$as_save_IFS
4918  if test -z "$ac_cv_path_SED"; then
4919    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4920  fi
4921else
4922  ac_cv_path_SED=$SED
4923fi
4924 ;;
4925esac
4926fi
4927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4928printf "%s\n" "$ac_cv_path_SED" >&6; }
4929 SED="$ac_cv_path_SED"
4930  rm -f conftest.sed
4931
4932
4933
4934
4935
4936
4937# Check whether --enable-selective-werror was given.
4938if test ${enable_selective_werror+y}
4939then :
4940  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4941else case e in #(
4942  e) SELECTIVE_WERROR=yes ;;
4943esac
4944fi
4945
4946
4947
4948
4949
4950# -v is too short to test reliably with XORG_TESTSET_CFLAG
4951if test "x$SUNCC" = "xyes"; then
4952    BASE_CFLAGS="-v"
4953else
4954    BASE_CFLAGS=""
4955fi
4956
4957# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971xorg_testset_save_CFLAGS="$CFLAGS"
4972
4973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4974	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4975	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4976printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4977if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4978then :
4979  printf %s "(cached) " >&6
4980else case e in #(
4981  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982/* end confdefs.h.  */
4983int i;
4984_ACEOF
4985if ac_fn_c_try_compile "$LINENO"
4986then :
4987  xorg_cv_cc_flag_unknown_warning_option=yes
4988else case e in #(
4989  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4990esac
4991fi
4992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4993esac
4994fi
4995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4996printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4997	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4998	CFLAGS="$xorg_testset_save_CFLAGS"
4999fi
5000
5001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5002	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5003		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5004	fi
5005	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5006	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5007printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5008if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5009then :
5010  printf %s "(cached) " >&6
5011else case e in #(
5012  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013/* end confdefs.h.  */
5014int i;
5015_ACEOF
5016if ac_fn_c_try_compile "$LINENO"
5017then :
5018  xorg_cv_cc_flag_unused_command_line_argument=yes
5019else case e in #(
5020  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5021esac
5022fi
5023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5024esac
5025fi
5026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5027printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5028	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5029	CFLAGS="$xorg_testset_save_CFLAGS"
5030fi
5031
5032found="no"
5033
5034	if test $found = "no" ; then
5035		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5036			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5037		fi
5038
5039		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5040			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5041		fi
5042
5043		CFLAGS="$CFLAGS -Wall"
5044
5045		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5046printf %s "checking if $CC supports -Wall... " >&6; }
5047		cacheid=xorg_cv_cc_flag__Wall
5048		if eval test \${$cacheid+y}
5049then :
5050  printf %s "(cached) " >&6
5051else case e in #(
5052  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053/* end confdefs.h.  */
5054int i;
5055int
5056main (void)
5057{
5058
5059  ;
5060  return 0;
5061}
5062_ACEOF
5063if ac_fn_c_try_link "$LINENO"
5064then :
5065  eval $cacheid=yes
5066else case e in #(
5067  e) eval $cacheid=no ;;
5068esac
5069fi
5070rm -f core conftest.err conftest.$ac_objext conftest.beam \
5071    conftest$ac_exeext conftest.$ac_ext ;;
5072esac
5073fi
5074
5075
5076		CFLAGS="$xorg_testset_save_CFLAGS"
5077
5078		eval supported=\$$cacheid
5079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5080printf "%s\n" "$supported" >&6; }
5081		if test "$supported" = "yes" ; then
5082			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5083			found="yes"
5084		fi
5085	fi
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101xorg_testset_save_CFLAGS="$CFLAGS"
5102
5103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5104	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5105	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5106printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5107if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5108then :
5109  printf %s "(cached) " >&6
5110else case e in #(
5111  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112/* end confdefs.h.  */
5113int i;
5114_ACEOF
5115if ac_fn_c_try_compile "$LINENO"
5116then :
5117  xorg_cv_cc_flag_unknown_warning_option=yes
5118else case e in #(
5119  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5120esac
5121fi
5122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5123esac
5124fi
5125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5126printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5127	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5128	CFLAGS="$xorg_testset_save_CFLAGS"
5129fi
5130
5131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5132	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5133		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5134	fi
5135	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5136	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5137printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5138if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5139then :
5140  printf %s "(cached) " >&6
5141else case e in #(
5142  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143/* end confdefs.h.  */
5144int i;
5145_ACEOF
5146if ac_fn_c_try_compile "$LINENO"
5147then :
5148  xorg_cv_cc_flag_unused_command_line_argument=yes
5149else case e in #(
5150  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5151esac
5152fi
5153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5154esac
5155fi
5156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5157printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5158	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5159	CFLAGS="$xorg_testset_save_CFLAGS"
5160fi
5161
5162found="no"
5163
5164	if test $found = "no" ; then
5165		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5167		fi
5168
5169		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5171		fi
5172
5173		CFLAGS="$CFLAGS -Wpointer-arith"
5174
5175		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5176printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5177		cacheid=xorg_cv_cc_flag__Wpointer_arith
5178		if eval test \${$cacheid+y}
5179then :
5180  printf %s "(cached) " >&6
5181else case e in #(
5182  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183/* end confdefs.h.  */
5184int i;
5185int
5186main (void)
5187{
5188
5189  ;
5190  return 0;
5191}
5192_ACEOF
5193if ac_fn_c_try_link "$LINENO"
5194then :
5195  eval $cacheid=yes
5196else case e in #(
5197  e) eval $cacheid=no ;;
5198esac
5199fi
5200rm -f core conftest.err conftest.$ac_objext conftest.beam \
5201    conftest$ac_exeext conftest.$ac_ext ;;
5202esac
5203fi
5204
5205
5206		CFLAGS="$xorg_testset_save_CFLAGS"
5207
5208		eval supported=\$$cacheid
5209		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5210printf "%s\n" "$supported" >&6; }
5211		if test "$supported" = "yes" ; then
5212			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5213			found="yes"
5214		fi
5215	fi
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231xorg_testset_save_CFLAGS="$CFLAGS"
5232
5233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5234	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5236printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5237if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5238then :
5239  printf %s "(cached) " >&6
5240else case e in #(
5241  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242/* end confdefs.h.  */
5243int i;
5244_ACEOF
5245if ac_fn_c_try_compile "$LINENO"
5246then :
5247  xorg_cv_cc_flag_unknown_warning_option=yes
5248else case e in #(
5249  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5250esac
5251fi
5252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5253esac
5254fi
5255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5257	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5258	CFLAGS="$xorg_testset_save_CFLAGS"
5259fi
5260
5261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5262	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5263		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5264	fi
5265	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5266	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5268if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5269then :
5270  printf %s "(cached) " >&6
5271else case e in #(
5272  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273/* end confdefs.h.  */
5274int i;
5275_ACEOF
5276if ac_fn_c_try_compile "$LINENO"
5277then :
5278  xorg_cv_cc_flag_unused_command_line_argument=yes
5279else case e in #(
5280  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5281esac
5282fi
5283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5284esac
5285fi
5286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5287printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5288	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5289	CFLAGS="$xorg_testset_save_CFLAGS"
5290fi
5291
5292found="no"
5293
5294	if test $found = "no" ; then
5295		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5296			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5297		fi
5298
5299		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5300			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5301		fi
5302
5303		CFLAGS="$CFLAGS -Wmissing-declarations"
5304
5305		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5306printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5307		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5308		if eval test \${$cacheid+y}
5309then :
5310  printf %s "(cached) " >&6
5311else case e in #(
5312  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313/* end confdefs.h.  */
5314int i;
5315int
5316main (void)
5317{
5318
5319  ;
5320  return 0;
5321}
5322_ACEOF
5323if ac_fn_c_try_link "$LINENO"
5324then :
5325  eval $cacheid=yes
5326else case e in #(
5327  e) eval $cacheid=no ;;
5328esac
5329fi
5330rm -f core conftest.err conftest.$ac_objext conftest.beam \
5331    conftest$ac_exeext conftest.$ac_ext ;;
5332esac
5333fi
5334
5335
5336		CFLAGS="$xorg_testset_save_CFLAGS"
5337
5338		eval supported=\$$cacheid
5339		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5340printf "%s\n" "$supported" >&6; }
5341		if test "$supported" = "yes" ; then
5342			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5343			found="yes"
5344		fi
5345	fi
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361xorg_testset_save_CFLAGS="$CFLAGS"
5362
5363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5364	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5365	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5366printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5367if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5368then :
5369  printf %s "(cached) " >&6
5370else case e in #(
5371  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372/* end confdefs.h.  */
5373int i;
5374_ACEOF
5375if ac_fn_c_try_compile "$LINENO"
5376then :
5377  xorg_cv_cc_flag_unknown_warning_option=yes
5378else case e in #(
5379  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5380esac
5381fi
5382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5383esac
5384fi
5385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5386printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5387	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5388	CFLAGS="$xorg_testset_save_CFLAGS"
5389fi
5390
5391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5392	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5393		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5394	fi
5395	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5396	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5397printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5398if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5399then :
5400  printf %s "(cached) " >&6
5401else case e in #(
5402  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403/* end confdefs.h.  */
5404int i;
5405_ACEOF
5406if ac_fn_c_try_compile "$LINENO"
5407then :
5408  xorg_cv_cc_flag_unused_command_line_argument=yes
5409else case e in #(
5410  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5411esac
5412fi
5413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5414esac
5415fi
5416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5417printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5418	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5419	CFLAGS="$xorg_testset_save_CFLAGS"
5420fi
5421
5422found="no"
5423
5424	if test $found = "no" ; then
5425		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5426			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5427		fi
5428
5429		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5430			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5431		fi
5432
5433		CFLAGS="$CFLAGS -Wformat=2"
5434
5435		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5436printf %s "checking if $CC supports -Wformat=2... " >&6; }
5437		cacheid=xorg_cv_cc_flag__Wformat_2
5438		if eval test \${$cacheid+y}
5439then :
5440  printf %s "(cached) " >&6
5441else case e in #(
5442  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443/* end confdefs.h.  */
5444int i;
5445int
5446main (void)
5447{
5448
5449  ;
5450  return 0;
5451}
5452_ACEOF
5453if ac_fn_c_try_link "$LINENO"
5454then :
5455  eval $cacheid=yes
5456else case e in #(
5457  e) eval $cacheid=no ;;
5458esac
5459fi
5460rm -f core conftest.err conftest.$ac_objext conftest.beam \
5461    conftest$ac_exeext conftest.$ac_ext ;;
5462esac
5463fi
5464
5465
5466		CFLAGS="$xorg_testset_save_CFLAGS"
5467
5468		eval supported=\$$cacheid
5469		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5470printf "%s\n" "$supported" >&6; }
5471		if test "$supported" = "yes" ; then
5472			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5473			found="yes"
5474		fi
5475	fi
5476
5477	if test $found = "no" ; then
5478		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5479			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5480		fi
5481
5482		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5483			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5484		fi
5485
5486		CFLAGS="$CFLAGS -Wformat"
5487
5488		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5489printf %s "checking if $CC supports -Wformat... " >&6; }
5490		cacheid=xorg_cv_cc_flag__Wformat
5491		if eval test \${$cacheid+y}
5492then :
5493  printf %s "(cached) " >&6
5494else case e in #(
5495  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496/* end confdefs.h.  */
5497int i;
5498int
5499main (void)
5500{
5501
5502  ;
5503  return 0;
5504}
5505_ACEOF
5506if ac_fn_c_try_link "$LINENO"
5507then :
5508  eval $cacheid=yes
5509else case e in #(
5510  e) eval $cacheid=no ;;
5511esac
5512fi
5513rm -f core conftest.err conftest.$ac_objext conftest.beam \
5514    conftest$ac_exeext conftest.$ac_ext ;;
5515esac
5516fi
5517
5518
5519		CFLAGS="$xorg_testset_save_CFLAGS"
5520
5521		eval supported=\$$cacheid
5522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5523printf "%s\n" "$supported" >&6; }
5524		if test "$supported" = "yes" ; then
5525			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5526			found="yes"
5527		fi
5528	fi
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546xorg_testset_save_CFLAGS="$CFLAGS"
5547
5548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5550	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5551printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5552if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5553then :
5554  printf %s "(cached) " >&6
5555else case e in #(
5556  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557/* end confdefs.h.  */
5558int i;
5559_ACEOF
5560if ac_fn_c_try_compile "$LINENO"
5561then :
5562  xorg_cv_cc_flag_unknown_warning_option=yes
5563else case e in #(
5564  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5565esac
5566fi
5567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5568esac
5569fi
5570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5571printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5573	CFLAGS="$xorg_testset_save_CFLAGS"
5574fi
5575
5576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5579	fi
5580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5582printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5583if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5584then :
5585  printf %s "(cached) " >&6
5586else case e in #(
5587  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588/* end confdefs.h.  */
5589int i;
5590_ACEOF
5591if ac_fn_c_try_compile "$LINENO"
5592then :
5593  xorg_cv_cc_flag_unused_command_line_argument=yes
5594else case e in #(
5595  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5596esac
5597fi
5598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5599esac
5600fi
5601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5602printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5604	CFLAGS="$xorg_testset_save_CFLAGS"
5605fi
5606
5607found="no"
5608
5609	if test $found = "no" ; then
5610		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5612		fi
5613
5614		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5616		fi
5617
5618		CFLAGS="$CFLAGS -Wstrict-prototypes"
5619
5620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5621printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5622		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5623		if eval test \${$cacheid+y}
5624then :
5625  printf %s "(cached) " >&6
5626else case e in #(
5627  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628/* end confdefs.h.  */
5629int i;
5630int
5631main (void)
5632{
5633
5634  ;
5635  return 0;
5636}
5637_ACEOF
5638if ac_fn_c_try_link "$LINENO"
5639then :
5640  eval $cacheid=yes
5641else case e in #(
5642  e) eval $cacheid=no ;;
5643esac
5644fi
5645rm -f core conftest.err conftest.$ac_objext conftest.beam \
5646    conftest$ac_exeext conftest.$ac_ext ;;
5647esac
5648fi
5649
5650
5651		CFLAGS="$xorg_testset_save_CFLAGS"
5652
5653		eval supported=\$$cacheid
5654		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5655printf "%s\n" "$supported" >&6; }
5656		if test "$supported" = "yes" ; then
5657			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5658			found="yes"
5659		fi
5660	fi
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676xorg_testset_save_CFLAGS="$CFLAGS"
5677
5678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5679	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5680	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5681printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5682if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5683then :
5684  printf %s "(cached) " >&6
5685else case e in #(
5686  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687/* end confdefs.h.  */
5688int i;
5689_ACEOF
5690if ac_fn_c_try_compile "$LINENO"
5691then :
5692  xorg_cv_cc_flag_unknown_warning_option=yes
5693else case e in #(
5694  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5695esac
5696fi
5697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5698esac
5699fi
5700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5701printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5703	CFLAGS="$xorg_testset_save_CFLAGS"
5704fi
5705
5706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5709	fi
5710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5712printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5713if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5714then :
5715  printf %s "(cached) " >&6
5716else case e in #(
5717  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h.  */
5719int i;
5720_ACEOF
5721if ac_fn_c_try_compile "$LINENO"
5722then :
5723  xorg_cv_cc_flag_unused_command_line_argument=yes
5724else case e in #(
5725  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5726esac
5727fi
5728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5729esac
5730fi
5731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5732printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5733	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5734	CFLAGS="$xorg_testset_save_CFLAGS"
5735fi
5736
5737found="no"
5738
5739	if test $found = "no" ; then
5740		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5741			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5742		fi
5743
5744		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5745			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5746		fi
5747
5748		CFLAGS="$CFLAGS -Wmissing-prototypes"
5749
5750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5751printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5752		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5753		if eval test \${$cacheid+y}
5754then :
5755  printf %s "(cached) " >&6
5756else case e in #(
5757  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758/* end confdefs.h.  */
5759int i;
5760int
5761main (void)
5762{
5763
5764  ;
5765  return 0;
5766}
5767_ACEOF
5768if ac_fn_c_try_link "$LINENO"
5769then :
5770  eval $cacheid=yes
5771else case e in #(
5772  e) eval $cacheid=no ;;
5773esac
5774fi
5775rm -f core conftest.err conftest.$ac_objext conftest.beam \
5776    conftest$ac_exeext conftest.$ac_ext ;;
5777esac
5778fi
5779
5780
5781		CFLAGS="$xorg_testset_save_CFLAGS"
5782
5783		eval supported=\$$cacheid
5784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5785printf "%s\n" "$supported" >&6; }
5786		if test "$supported" = "yes" ; then
5787			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5788			found="yes"
5789		fi
5790	fi
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806xorg_testset_save_CFLAGS="$CFLAGS"
5807
5808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5809	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5811printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5812if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5813then :
5814  printf %s "(cached) " >&6
5815else case e in #(
5816  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817/* end confdefs.h.  */
5818int i;
5819_ACEOF
5820if ac_fn_c_try_compile "$LINENO"
5821then :
5822  xorg_cv_cc_flag_unknown_warning_option=yes
5823else case e in #(
5824  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5825esac
5826fi
5827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5828esac
5829fi
5830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5831printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5832	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5833	CFLAGS="$xorg_testset_save_CFLAGS"
5834fi
5835
5836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5837	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5838		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5839	fi
5840	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5841	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5842printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5843if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5844then :
5845  printf %s "(cached) " >&6
5846else case e in #(
5847  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848/* end confdefs.h.  */
5849int i;
5850_ACEOF
5851if ac_fn_c_try_compile "$LINENO"
5852then :
5853  xorg_cv_cc_flag_unused_command_line_argument=yes
5854else case e in #(
5855  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5856esac
5857fi
5858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5859esac
5860fi
5861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5862printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5863	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5864	CFLAGS="$xorg_testset_save_CFLAGS"
5865fi
5866
5867found="no"
5868
5869	if test $found = "no" ; then
5870		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5871			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872		fi
5873
5874		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5875			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5876		fi
5877
5878		CFLAGS="$CFLAGS -Wnested-externs"
5879
5880		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5881printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5882		cacheid=xorg_cv_cc_flag__Wnested_externs
5883		if eval test \${$cacheid+y}
5884then :
5885  printf %s "(cached) " >&6
5886else case e in #(
5887  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888/* end confdefs.h.  */
5889int i;
5890int
5891main (void)
5892{
5893
5894  ;
5895  return 0;
5896}
5897_ACEOF
5898if ac_fn_c_try_link "$LINENO"
5899then :
5900  eval $cacheid=yes
5901else case e in #(
5902  e) eval $cacheid=no ;;
5903esac
5904fi
5905rm -f core conftest.err conftest.$ac_objext conftest.beam \
5906    conftest$ac_exeext conftest.$ac_ext ;;
5907esac
5908fi
5909
5910
5911		CFLAGS="$xorg_testset_save_CFLAGS"
5912
5913		eval supported=\$$cacheid
5914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5915printf "%s\n" "$supported" >&6; }
5916		if test "$supported" = "yes" ; then
5917			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5918			found="yes"
5919		fi
5920	fi
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936xorg_testset_save_CFLAGS="$CFLAGS"
5937
5938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5939	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5942if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5943then :
5944  printf %s "(cached) " >&6
5945else case e in #(
5946  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h.  */
5948int i;
5949_ACEOF
5950if ac_fn_c_try_compile "$LINENO"
5951then :
5952  xorg_cv_cc_flag_unknown_warning_option=yes
5953else case e in #(
5954  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5955esac
5956fi
5957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5958esac
5959fi
5960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5963	CFLAGS="$xorg_testset_save_CFLAGS"
5964fi
5965
5966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5969	fi
5970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5973if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5974then :
5975  printf %s "(cached) " >&6
5976else case e in #(
5977  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978/* end confdefs.h.  */
5979int i;
5980_ACEOF
5981if ac_fn_c_try_compile "$LINENO"
5982then :
5983  xorg_cv_cc_flag_unused_command_line_argument=yes
5984else case e in #(
5985  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5986esac
5987fi
5988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5989esac
5990fi
5991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5992printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5993	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5994	CFLAGS="$xorg_testset_save_CFLAGS"
5995fi
5996
5997found="no"
5998
5999	if test $found = "no" ; then
6000		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6001			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6002		fi
6003
6004		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6005			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6006		fi
6007
6008		CFLAGS="$CFLAGS -Wbad-function-cast"
6009
6010		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6011printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6012		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6013		if eval test \${$cacheid+y}
6014then :
6015  printf %s "(cached) " >&6
6016else case e in #(
6017  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018/* end confdefs.h.  */
6019int i;
6020int
6021main (void)
6022{
6023
6024  ;
6025  return 0;
6026}
6027_ACEOF
6028if ac_fn_c_try_link "$LINENO"
6029then :
6030  eval $cacheid=yes
6031else case e in #(
6032  e) eval $cacheid=no ;;
6033esac
6034fi
6035rm -f core conftest.err conftest.$ac_objext conftest.beam \
6036    conftest$ac_exeext conftest.$ac_ext ;;
6037esac
6038fi
6039
6040
6041		CFLAGS="$xorg_testset_save_CFLAGS"
6042
6043		eval supported=\$$cacheid
6044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6045printf "%s\n" "$supported" >&6; }
6046		if test "$supported" = "yes" ; then
6047			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6048			found="yes"
6049		fi
6050	fi
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066xorg_testset_save_CFLAGS="$CFLAGS"
6067
6068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6069	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6071printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6072if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6073then :
6074  printf %s "(cached) " >&6
6075else case e in #(
6076  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077/* end confdefs.h.  */
6078int i;
6079_ACEOF
6080if ac_fn_c_try_compile "$LINENO"
6081then :
6082  xorg_cv_cc_flag_unknown_warning_option=yes
6083else case e in #(
6084  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6085esac
6086fi
6087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6088esac
6089fi
6090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6091printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6092	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6093	CFLAGS="$xorg_testset_save_CFLAGS"
6094fi
6095
6096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6097	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6098		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6099	fi
6100	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6101	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6102printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6103if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6104then :
6105  printf %s "(cached) " >&6
6106else case e in #(
6107  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h.  */
6109int i;
6110_ACEOF
6111if ac_fn_c_try_compile "$LINENO"
6112then :
6113  xorg_cv_cc_flag_unused_command_line_argument=yes
6114else case e in #(
6115  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6116esac
6117fi
6118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6119esac
6120fi
6121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6122printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6123	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6124	CFLAGS="$xorg_testset_save_CFLAGS"
6125fi
6126
6127found="no"
6128
6129	if test $found = "no" ; then
6130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6132		fi
6133
6134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6136		fi
6137
6138		CFLAGS="$CFLAGS -Wold-style-definition"
6139
6140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6141printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6142		cacheid=xorg_cv_cc_flag__Wold_style_definition
6143		if eval test \${$cacheid+y}
6144then :
6145  printf %s "(cached) " >&6
6146else case e in #(
6147  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148/* end confdefs.h.  */
6149int i;
6150int
6151main (void)
6152{
6153
6154  ;
6155  return 0;
6156}
6157_ACEOF
6158if ac_fn_c_try_link "$LINENO"
6159then :
6160  eval $cacheid=yes
6161else case e in #(
6162  e) eval $cacheid=no ;;
6163esac
6164fi
6165rm -f core conftest.err conftest.$ac_objext conftest.beam \
6166    conftest$ac_exeext conftest.$ac_ext ;;
6167esac
6168fi
6169
6170
6171		CFLAGS="$xorg_testset_save_CFLAGS"
6172
6173		eval supported=\$$cacheid
6174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6175printf "%s\n" "$supported" >&6; }
6176		if test "$supported" = "yes" ; then
6177			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6178			found="yes"
6179		fi
6180	fi
6181
6182	if test $found = "no" ; then
6183		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6184			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6185		fi
6186
6187		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6188			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6189		fi
6190
6191		CFLAGS="$CFLAGS -fd"
6192
6193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6194printf %s "checking if $CC supports -fd... " >&6; }
6195		cacheid=xorg_cv_cc_flag__fd
6196		if eval test \${$cacheid+y}
6197then :
6198  printf %s "(cached) " >&6
6199else case e in #(
6200  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201/* end confdefs.h.  */
6202int i;
6203int
6204main (void)
6205{
6206
6207  ;
6208  return 0;
6209}
6210_ACEOF
6211if ac_fn_c_try_link "$LINENO"
6212then :
6213  eval $cacheid=yes
6214else case e in #(
6215  e) eval $cacheid=no ;;
6216esac
6217fi
6218rm -f core conftest.err conftest.$ac_objext conftest.beam \
6219    conftest$ac_exeext conftest.$ac_ext ;;
6220esac
6221fi
6222
6223
6224		CFLAGS="$xorg_testset_save_CFLAGS"
6225
6226		eval supported=\$$cacheid
6227		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6228printf "%s\n" "$supported" >&6; }
6229		if test "$supported" = "yes" ; then
6230			BASE_CFLAGS="$BASE_CFLAGS -fd"
6231			found="yes"
6232		fi
6233	fi
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249xorg_testset_save_CFLAGS="$CFLAGS"
6250
6251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6254printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6255if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6256then :
6257  printf %s "(cached) " >&6
6258else case e in #(
6259  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260/* end confdefs.h.  */
6261int i;
6262_ACEOF
6263if ac_fn_c_try_compile "$LINENO"
6264then :
6265  xorg_cv_cc_flag_unknown_warning_option=yes
6266else case e in #(
6267  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6268esac
6269fi
6270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6271esac
6272fi
6273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6274printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6275	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6276	CFLAGS="$xorg_testset_save_CFLAGS"
6277fi
6278
6279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6280	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6281		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6282	fi
6283	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6284	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6285printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6286if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6287then :
6288  printf %s "(cached) " >&6
6289else case e in #(
6290  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291/* end confdefs.h.  */
6292int i;
6293_ACEOF
6294if ac_fn_c_try_compile "$LINENO"
6295then :
6296  xorg_cv_cc_flag_unused_command_line_argument=yes
6297else case e in #(
6298  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6299esac
6300fi
6301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6302esac
6303fi
6304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6305printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6306	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6307	CFLAGS="$xorg_testset_save_CFLAGS"
6308fi
6309
6310found="no"
6311
6312	if test $found = "no" ; then
6313		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6314			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6315		fi
6316
6317		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6318			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6319		fi
6320
6321		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6322
6323		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6324printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6325		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6326		if eval test \${$cacheid+y}
6327then :
6328  printf %s "(cached) " >&6
6329else case e in #(
6330  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331/* end confdefs.h.  */
6332int i;
6333int
6334main (void)
6335{
6336
6337  ;
6338  return 0;
6339}
6340_ACEOF
6341if ac_fn_c_try_link "$LINENO"
6342then :
6343  eval $cacheid=yes
6344else case e in #(
6345  e) eval $cacheid=no ;;
6346esac
6347fi
6348rm -f core conftest.err conftest.$ac_objext conftest.beam \
6349    conftest$ac_exeext conftest.$ac_ext ;;
6350esac
6351fi
6352
6353
6354		CFLAGS="$xorg_testset_save_CFLAGS"
6355
6356		eval supported=\$$cacheid
6357		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6358printf "%s\n" "$supported" >&6; }
6359		if test "$supported" = "yes" ; then
6360			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6361			found="yes"
6362		fi
6363	fi
6364
6365
6366
6367
6368
6369# This chunk adds additional warnings that could catch undesired effects.
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383xorg_testset_save_CFLAGS="$CFLAGS"
6384
6385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6386	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6387	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6388printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6389if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6390then :
6391  printf %s "(cached) " >&6
6392else case e in #(
6393  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394/* end confdefs.h.  */
6395int i;
6396_ACEOF
6397if ac_fn_c_try_compile "$LINENO"
6398then :
6399  xorg_cv_cc_flag_unknown_warning_option=yes
6400else case e in #(
6401  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6402esac
6403fi
6404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6405esac
6406fi
6407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6408printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6409	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6410	CFLAGS="$xorg_testset_save_CFLAGS"
6411fi
6412
6413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6414	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6415		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6416	fi
6417	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6418	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6419printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6420if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6421then :
6422  printf %s "(cached) " >&6
6423else case e in #(
6424  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425/* end confdefs.h.  */
6426int i;
6427_ACEOF
6428if ac_fn_c_try_compile "$LINENO"
6429then :
6430  xorg_cv_cc_flag_unused_command_line_argument=yes
6431else case e in #(
6432  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6433esac
6434fi
6435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6436esac
6437fi
6438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6439printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6440	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6441	CFLAGS="$xorg_testset_save_CFLAGS"
6442fi
6443
6444found="no"
6445
6446	if test $found = "no" ; then
6447		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6448			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6449		fi
6450
6451		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6452			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6453		fi
6454
6455		CFLAGS="$CFLAGS -Wunused"
6456
6457		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6458printf %s "checking if $CC supports -Wunused... " >&6; }
6459		cacheid=xorg_cv_cc_flag__Wunused
6460		if eval test \${$cacheid+y}
6461then :
6462  printf %s "(cached) " >&6
6463else case e in #(
6464  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465/* end confdefs.h.  */
6466int i;
6467int
6468main (void)
6469{
6470
6471  ;
6472  return 0;
6473}
6474_ACEOF
6475if ac_fn_c_try_link "$LINENO"
6476then :
6477  eval $cacheid=yes
6478else case e in #(
6479  e) eval $cacheid=no ;;
6480esac
6481fi
6482rm -f core conftest.err conftest.$ac_objext conftest.beam \
6483    conftest$ac_exeext conftest.$ac_ext ;;
6484esac
6485fi
6486
6487
6488		CFLAGS="$xorg_testset_save_CFLAGS"
6489
6490		eval supported=\$$cacheid
6491		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6492printf "%s\n" "$supported" >&6; }
6493		if test "$supported" = "yes" ; then
6494			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6495			found="yes"
6496		fi
6497	fi
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513xorg_testset_save_CFLAGS="$CFLAGS"
6514
6515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6516	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6517	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6518printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6519if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6520then :
6521  printf %s "(cached) " >&6
6522else case e in #(
6523  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524/* end confdefs.h.  */
6525int i;
6526_ACEOF
6527if ac_fn_c_try_compile "$LINENO"
6528then :
6529  xorg_cv_cc_flag_unknown_warning_option=yes
6530else case e in #(
6531  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6532esac
6533fi
6534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6535esac
6536fi
6537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6538printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6539	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6540	CFLAGS="$xorg_testset_save_CFLAGS"
6541fi
6542
6543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6544	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6545		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6546	fi
6547	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6548	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6549printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6550if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6551then :
6552  printf %s "(cached) " >&6
6553else case e in #(
6554  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555/* end confdefs.h.  */
6556int i;
6557_ACEOF
6558if ac_fn_c_try_compile "$LINENO"
6559then :
6560  xorg_cv_cc_flag_unused_command_line_argument=yes
6561else case e in #(
6562  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6563esac
6564fi
6565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6566esac
6567fi
6568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6569printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6570	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6571	CFLAGS="$xorg_testset_save_CFLAGS"
6572fi
6573
6574found="no"
6575
6576	if test $found = "no" ; then
6577		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6579		fi
6580
6581		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6583		fi
6584
6585		CFLAGS="$CFLAGS -Wuninitialized"
6586
6587		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6588printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6589		cacheid=xorg_cv_cc_flag__Wuninitialized
6590		if eval test \${$cacheid+y}
6591then :
6592  printf %s "(cached) " >&6
6593else case e in #(
6594  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595/* end confdefs.h.  */
6596int i;
6597int
6598main (void)
6599{
6600
6601  ;
6602  return 0;
6603}
6604_ACEOF
6605if ac_fn_c_try_link "$LINENO"
6606then :
6607  eval $cacheid=yes
6608else case e in #(
6609  e) eval $cacheid=no ;;
6610esac
6611fi
6612rm -f core conftest.err conftest.$ac_objext conftest.beam \
6613    conftest$ac_exeext conftest.$ac_ext ;;
6614esac
6615fi
6616
6617
6618		CFLAGS="$xorg_testset_save_CFLAGS"
6619
6620		eval supported=\$$cacheid
6621		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6622printf "%s\n" "$supported" >&6; }
6623		if test "$supported" = "yes" ; then
6624			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6625			found="yes"
6626		fi
6627	fi
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643xorg_testset_save_CFLAGS="$CFLAGS"
6644
6645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6646	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6647	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6648printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6649if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6650then :
6651  printf %s "(cached) " >&6
6652else case e in #(
6653  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654/* end confdefs.h.  */
6655int i;
6656_ACEOF
6657if ac_fn_c_try_compile "$LINENO"
6658then :
6659  xorg_cv_cc_flag_unknown_warning_option=yes
6660else case e in #(
6661  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6662esac
6663fi
6664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6665esac
6666fi
6667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6670	CFLAGS="$xorg_testset_save_CFLAGS"
6671fi
6672
6673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676	fi
6677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6678	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6680if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6681then :
6682  printf %s "(cached) " >&6
6683else case e in #(
6684  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685/* end confdefs.h.  */
6686int i;
6687_ACEOF
6688if ac_fn_c_try_compile "$LINENO"
6689then :
6690  xorg_cv_cc_flag_unused_command_line_argument=yes
6691else case e in #(
6692  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6693esac
6694fi
6695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6696esac
6697fi
6698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6699printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6700	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6701	CFLAGS="$xorg_testset_save_CFLAGS"
6702fi
6703
6704found="no"
6705
6706	if test $found = "no" ; then
6707		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6709		fi
6710
6711		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6713		fi
6714
6715		CFLAGS="$CFLAGS -Wshadow"
6716
6717		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6718printf %s "checking if $CC supports -Wshadow... " >&6; }
6719		cacheid=xorg_cv_cc_flag__Wshadow
6720		if eval test \${$cacheid+y}
6721then :
6722  printf %s "(cached) " >&6
6723else case e in #(
6724  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725/* end confdefs.h.  */
6726int i;
6727int
6728main (void)
6729{
6730
6731  ;
6732  return 0;
6733}
6734_ACEOF
6735if ac_fn_c_try_link "$LINENO"
6736then :
6737  eval $cacheid=yes
6738else case e in #(
6739  e) eval $cacheid=no ;;
6740esac
6741fi
6742rm -f core conftest.err conftest.$ac_objext conftest.beam \
6743    conftest$ac_exeext conftest.$ac_ext ;;
6744esac
6745fi
6746
6747
6748		CFLAGS="$xorg_testset_save_CFLAGS"
6749
6750		eval supported=\$$cacheid
6751		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6752printf "%s\n" "$supported" >&6; }
6753		if test "$supported" = "yes" ; then
6754			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6755			found="yes"
6756		fi
6757	fi
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773xorg_testset_save_CFLAGS="$CFLAGS"
6774
6775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6776	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6777	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6779if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6780then :
6781  printf %s "(cached) " >&6
6782else case e in #(
6783  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784/* end confdefs.h.  */
6785int i;
6786_ACEOF
6787if ac_fn_c_try_compile "$LINENO"
6788then :
6789  xorg_cv_cc_flag_unknown_warning_option=yes
6790else case e in #(
6791  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6792esac
6793fi
6794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6795esac
6796fi
6797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6798printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6799	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6800	CFLAGS="$xorg_testset_save_CFLAGS"
6801fi
6802
6803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6804	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6805		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806	fi
6807	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6808	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6809printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6810if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6811then :
6812  printf %s "(cached) " >&6
6813else case e in #(
6814  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815/* end confdefs.h.  */
6816int i;
6817_ACEOF
6818if ac_fn_c_try_compile "$LINENO"
6819then :
6820  xorg_cv_cc_flag_unused_command_line_argument=yes
6821else case e in #(
6822  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6823esac
6824fi
6825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6826esac
6827fi
6828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6829printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6830	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6831	CFLAGS="$xorg_testset_save_CFLAGS"
6832fi
6833
6834found="no"
6835
6836	if test $found = "no" ; then
6837		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6839		fi
6840
6841		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6843		fi
6844
6845		CFLAGS="$CFLAGS -Wmissing-noreturn"
6846
6847		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6848printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6849		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6850		if eval test \${$cacheid+y}
6851then :
6852  printf %s "(cached) " >&6
6853else case e in #(
6854  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855/* end confdefs.h.  */
6856int i;
6857int
6858main (void)
6859{
6860
6861  ;
6862  return 0;
6863}
6864_ACEOF
6865if ac_fn_c_try_link "$LINENO"
6866then :
6867  eval $cacheid=yes
6868else case e in #(
6869  e) eval $cacheid=no ;;
6870esac
6871fi
6872rm -f core conftest.err conftest.$ac_objext conftest.beam \
6873    conftest$ac_exeext conftest.$ac_ext ;;
6874esac
6875fi
6876
6877
6878		CFLAGS="$xorg_testset_save_CFLAGS"
6879
6880		eval supported=\$$cacheid
6881		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6882printf "%s\n" "$supported" >&6; }
6883		if test "$supported" = "yes" ; then
6884			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6885			found="yes"
6886		fi
6887	fi
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903xorg_testset_save_CFLAGS="$CFLAGS"
6904
6905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6906	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6907	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6908printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6909if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6910then :
6911  printf %s "(cached) " >&6
6912else case e in #(
6913  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914/* end confdefs.h.  */
6915int i;
6916_ACEOF
6917if ac_fn_c_try_compile "$LINENO"
6918then :
6919  xorg_cv_cc_flag_unknown_warning_option=yes
6920else case e in #(
6921  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6922esac
6923fi
6924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6925esac
6926fi
6927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6928printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6929	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6930	CFLAGS="$xorg_testset_save_CFLAGS"
6931fi
6932
6933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6934	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6935		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6936	fi
6937	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6938	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6939printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6940if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6941then :
6942  printf %s "(cached) " >&6
6943else case e in #(
6944  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945/* end confdefs.h.  */
6946int i;
6947_ACEOF
6948if ac_fn_c_try_compile "$LINENO"
6949then :
6950  xorg_cv_cc_flag_unused_command_line_argument=yes
6951else case e in #(
6952  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6953esac
6954fi
6955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6956esac
6957fi
6958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6959printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6961	CFLAGS="$xorg_testset_save_CFLAGS"
6962fi
6963
6964found="no"
6965
6966	if test $found = "no" ; then
6967		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969		fi
6970
6971		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6973		fi
6974
6975		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6976
6977		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6978printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6979		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6980		if eval test \${$cacheid+y}
6981then :
6982  printf %s "(cached) " >&6
6983else case e in #(
6984  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985/* end confdefs.h.  */
6986int i;
6987int
6988main (void)
6989{
6990
6991  ;
6992  return 0;
6993}
6994_ACEOF
6995if ac_fn_c_try_link "$LINENO"
6996then :
6997  eval $cacheid=yes
6998else case e in #(
6999  e) eval $cacheid=no ;;
7000esac
7001fi
7002rm -f core conftest.err conftest.$ac_objext conftest.beam \
7003    conftest$ac_exeext conftest.$ac_ext ;;
7004esac
7005fi
7006
7007
7008		CFLAGS="$xorg_testset_save_CFLAGS"
7009
7010		eval supported=\$$cacheid
7011		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7012printf "%s\n" "$supported" >&6; }
7013		if test "$supported" = "yes" ; then
7014			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7015			found="yes"
7016		fi
7017	fi
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033xorg_testset_save_CFLAGS="$CFLAGS"
7034
7035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7036	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7037	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7038printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7039if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7040then :
7041  printf %s "(cached) " >&6
7042else case e in #(
7043  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044/* end confdefs.h.  */
7045int i;
7046_ACEOF
7047if ac_fn_c_try_compile "$LINENO"
7048then :
7049  xorg_cv_cc_flag_unknown_warning_option=yes
7050else case e in #(
7051  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7052esac
7053fi
7054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7055esac
7056fi
7057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7058printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7060	CFLAGS="$xorg_testset_save_CFLAGS"
7061fi
7062
7063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7066	fi
7067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7068	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7069printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7070if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7071then :
7072  printf %s "(cached) " >&6
7073else case e in #(
7074  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075/* end confdefs.h.  */
7076int i;
7077_ACEOF
7078if ac_fn_c_try_compile "$LINENO"
7079then :
7080  xorg_cv_cc_flag_unused_command_line_argument=yes
7081else case e in #(
7082  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7083esac
7084fi
7085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7086esac
7087fi
7088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7089printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7090	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7091	CFLAGS="$xorg_testset_save_CFLAGS"
7092fi
7093
7094found="no"
7095
7096	if test $found = "no" ; then
7097		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7098			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7099		fi
7100
7101		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7102			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7103		fi
7104
7105		CFLAGS="$CFLAGS -Wredundant-decls"
7106
7107		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7108printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7109		cacheid=xorg_cv_cc_flag__Wredundant_decls
7110		if eval test \${$cacheid+y}
7111then :
7112  printf %s "(cached) " >&6
7113else case e in #(
7114  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115/* end confdefs.h.  */
7116int i;
7117int
7118main (void)
7119{
7120
7121  ;
7122  return 0;
7123}
7124_ACEOF
7125if ac_fn_c_try_link "$LINENO"
7126then :
7127  eval $cacheid=yes
7128else case e in #(
7129  e) eval $cacheid=no ;;
7130esac
7131fi
7132rm -f core conftest.err conftest.$ac_objext conftest.beam \
7133    conftest$ac_exeext conftest.$ac_ext ;;
7134esac
7135fi
7136
7137
7138		CFLAGS="$xorg_testset_save_CFLAGS"
7139
7140		eval supported=\$$cacheid
7141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7142printf "%s\n" "$supported" >&6; }
7143		if test "$supported" = "yes" ; then
7144			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7145			found="yes"
7146		fi
7147	fi
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163xorg_testset_save_CFLAGS="$CFLAGS"
7164
7165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7167	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7168printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7169if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7170then :
7171  printf %s "(cached) " >&6
7172else case e in #(
7173  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174/* end confdefs.h.  */
7175int i;
7176_ACEOF
7177if ac_fn_c_try_compile "$LINENO"
7178then :
7179  xorg_cv_cc_flag_unknown_warning_option=yes
7180else case e in #(
7181  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7182esac
7183fi
7184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7185esac
7186fi
7187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7188printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7189	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7190	CFLAGS="$xorg_testset_save_CFLAGS"
7191fi
7192
7193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7194	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7195		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7196	fi
7197	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7198	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7199printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7200if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7201then :
7202  printf %s "(cached) " >&6
7203else case e in #(
7204  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h.  */
7206int i;
7207_ACEOF
7208if ac_fn_c_try_compile "$LINENO"
7209then :
7210  xorg_cv_cc_flag_unused_command_line_argument=yes
7211else case e in #(
7212  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7213esac
7214fi
7215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7216esac
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 case e in #(
7244  e) 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 case e in #(
7259  e) eval $cacheid=no ;;
7260esac
7261fi
7262rm -f core conftest.err conftest.$ac_objext conftest.beam \
7263    conftest$ac_exeext conftest.$ac_ext ;;
7264esac
7265fi
7266
7267
7268		CFLAGS="$xorg_testset_save_CFLAGS"
7269
7270		eval supported=\$$cacheid
7271		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7272printf "%s\n" "$supported" >&6; }
7273		if test "$supported" = "yes" ; then
7274			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7275			found="yes"
7276		fi
7277	fi
7278
7279
7280
7281# These are currently disabled because they are noisy.  They will be enabled
7282# in the future once the codebase is sufficiently modernized to silence
7283# them.  For now, I don't want them to drown out the other warnings.
7284# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7285# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7286# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7287
7288# Turn some warnings into errors, so we don't accidentally get successful builds
7289# when there are problems that should be fixed.
7290
7291if test "x$SELECTIVE_WERROR" = "xyes" ; then
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305xorg_testset_save_CFLAGS="$CFLAGS"
7306
7307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7311if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7312then :
7313  printf %s "(cached) " >&6
7314else case e in #(
7315  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316/* end confdefs.h.  */
7317int i;
7318_ACEOF
7319if ac_fn_c_try_compile "$LINENO"
7320then :
7321  xorg_cv_cc_flag_unknown_warning_option=yes
7322else case e in #(
7323  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7324esac
7325fi
7326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7327esac
7328fi
7329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7330printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7331	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7332	CFLAGS="$xorg_testset_save_CFLAGS"
7333fi
7334
7335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7336	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7337		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338	fi
7339	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7340	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7341printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7342if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7343then :
7344  printf %s "(cached) " >&6
7345else case e in #(
7346  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347/* end confdefs.h.  */
7348int i;
7349_ACEOF
7350if ac_fn_c_try_compile "$LINENO"
7351then :
7352  xorg_cv_cc_flag_unused_command_line_argument=yes
7353else case e in #(
7354  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7355esac
7356fi
7357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7358esac
7359fi
7360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7361printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7362	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7363	CFLAGS="$xorg_testset_save_CFLAGS"
7364fi
7365
7366found="no"
7367
7368	if test $found = "no" ; then
7369		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7370			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7371		fi
7372
7373		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7374			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7375		fi
7376
7377		CFLAGS="$CFLAGS -Werror=implicit"
7378
7379		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7380printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7381		cacheid=xorg_cv_cc_flag__Werror_implicit
7382		if eval test \${$cacheid+y}
7383then :
7384  printf %s "(cached) " >&6
7385else case e in #(
7386  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387/* end confdefs.h.  */
7388int i;
7389int
7390main (void)
7391{
7392
7393  ;
7394  return 0;
7395}
7396_ACEOF
7397if ac_fn_c_try_link "$LINENO"
7398then :
7399  eval $cacheid=yes
7400else case e in #(
7401  e) eval $cacheid=no ;;
7402esac
7403fi
7404rm -f core conftest.err conftest.$ac_objext conftest.beam \
7405    conftest$ac_exeext conftest.$ac_ext ;;
7406esac
7407fi
7408
7409
7410		CFLAGS="$xorg_testset_save_CFLAGS"
7411
7412		eval supported=\$$cacheid
7413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7414printf "%s\n" "$supported" >&6; }
7415		if test "$supported" = "yes" ; then
7416			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7417			found="yes"
7418		fi
7419	fi
7420
7421	if test $found = "no" ; then
7422		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7424		fi
7425
7426		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7428		fi
7429
7430		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7431
7432		{ 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
7433printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7434		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7435		if eval test \${$cacheid+y}
7436then :
7437  printf %s "(cached) " >&6
7438else case e in #(
7439  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440/* end confdefs.h.  */
7441int i;
7442int
7443main (void)
7444{
7445
7446  ;
7447  return 0;
7448}
7449_ACEOF
7450if ac_fn_c_try_link "$LINENO"
7451then :
7452  eval $cacheid=yes
7453else case e in #(
7454  e) eval $cacheid=no ;;
7455esac
7456fi
7457rm -f core conftest.err conftest.$ac_objext conftest.beam \
7458    conftest$ac_exeext conftest.$ac_ext ;;
7459esac
7460fi
7461
7462
7463		CFLAGS="$xorg_testset_save_CFLAGS"
7464
7465		eval supported=\$$cacheid
7466		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7467printf "%s\n" "$supported" >&6; }
7468		if test "$supported" = "yes" ; then
7469			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7470			found="yes"
7471		fi
7472	fi
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488xorg_testset_save_CFLAGS="$CFLAGS"
7489
7490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7493printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7494if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7495then :
7496  printf %s "(cached) " >&6
7497else case e in #(
7498  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499/* end confdefs.h.  */
7500int i;
7501_ACEOF
7502if ac_fn_c_try_compile "$LINENO"
7503then :
7504  xorg_cv_cc_flag_unknown_warning_option=yes
7505else case e in #(
7506  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7507esac
7508fi
7509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7510esac
7511fi
7512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7513printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7514	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7515	CFLAGS="$xorg_testset_save_CFLAGS"
7516fi
7517
7518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7519	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7520		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7521	fi
7522	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7523	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7524printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7525if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7526then :
7527  printf %s "(cached) " >&6
7528else case e in #(
7529  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530/* end confdefs.h.  */
7531int i;
7532_ACEOF
7533if ac_fn_c_try_compile "$LINENO"
7534then :
7535  xorg_cv_cc_flag_unused_command_line_argument=yes
7536else case e in #(
7537  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7538esac
7539fi
7540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7541esac
7542fi
7543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7546	CFLAGS="$xorg_testset_save_CFLAGS"
7547fi
7548
7549found="no"
7550
7551	if test $found = "no" ; then
7552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7554		fi
7555
7556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7558		fi
7559
7560		CFLAGS="$CFLAGS -Werror=nonnull"
7561
7562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7563printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7564		cacheid=xorg_cv_cc_flag__Werror_nonnull
7565		if eval test \${$cacheid+y}
7566then :
7567  printf %s "(cached) " >&6
7568else case e in #(
7569  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570/* end confdefs.h.  */
7571int i;
7572int
7573main (void)
7574{
7575
7576  ;
7577  return 0;
7578}
7579_ACEOF
7580if ac_fn_c_try_link "$LINENO"
7581then :
7582  eval $cacheid=yes
7583else case e in #(
7584  e) eval $cacheid=no ;;
7585esac
7586fi
7587rm -f core conftest.err conftest.$ac_objext conftest.beam \
7588    conftest$ac_exeext conftest.$ac_ext ;;
7589esac
7590fi
7591
7592
7593		CFLAGS="$xorg_testset_save_CFLAGS"
7594
7595		eval supported=\$$cacheid
7596		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7597printf "%s\n" "$supported" >&6; }
7598		if test "$supported" = "yes" ; then
7599			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7600			found="yes"
7601		fi
7602	fi
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618xorg_testset_save_CFLAGS="$CFLAGS"
7619
7620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7622	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7624if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7625then :
7626  printf %s "(cached) " >&6
7627else case e in #(
7628  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629/* end confdefs.h.  */
7630int i;
7631_ACEOF
7632if ac_fn_c_try_compile "$LINENO"
7633then :
7634  xorg_cv_cc_flag_unknown_warning_option=yes
7635else case e in #(
7636  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7637esac
7638fi
7639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7640esac
7641fi
7642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7643printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7644	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7645	CFLAGS="$xorg_testset_save_CFLAGS"
7646fi
7647
7648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7649	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7650		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7651	fi
7652	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7653	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7654printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7655if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7656then :
7657  printf %s "(cached) " >&6
7658else case e in #(
7659  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660/* end confdefs.h.  */
7661int i;
7662_ACEOF
7663if ac_fn_c_try_compile "$LINENO"
7664then :
7665  xorg_cv_cc_flag_unused_command_line_argument=yes
7666else case e in #(
7667  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7668esac
7669fi
7670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7671esac
7672fi
7673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7675	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7676	CFLAGS="$xorg_testset_save_CFLAGS"
7677fi
7678
7679found="no"
7680
7681	if test $found = "no" ; then
7682		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7683			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7684		fi
7685
7686		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7687			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7688		fi
7689
7690		CFLAGS="$CFLAGS -Werror=init-self"
7691
7692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7693printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7694		cacheid=xorg_cv_cc_flag__Werror_init_self
7695		if eval test \${$cacheid+y}
7696then :
7697  printf %s "(cached) " >&6
7698else case e in #(
7699  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700/* end confdefs.h.  */
7701int i;
7702int
7703main (void)
7704{
7705
7706  ;
7707  return 0;
7708}
7709_ACEOF
7710if ac_fn_c_try_link "$LINENO"
7711then :
7712  eval $cacheid=yes
7713else case e in #(
7714  e) eval $cacheid=no ;;
7715esac
7716fi
7717rm -f core conftest.err conftest.$ac_objext conftest.beam \
7718    conftest$ac_exeext conftest.$ac_ext ;;
7719esac
7720fi
7721
7722
7723		CFLAGS="$xorg_testset_save_CFLAGS"
7724
7725		eval supported=\$$cacheid
7726		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7727printf "%s\n" "$supported" >&6; }
7728		if test "$supported" = "yes" ; then
7729			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7730			found="yes"
7731		fi
7732	fi
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748xorg_testset_save_CFLAGS="$CFLAGS"
7749
7750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7751	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7752	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7753printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7754if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7755then :
7756  printf %s "(cached) " >&6
7757else case e in #(
7758  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759/* end confdefs.h.  */
7760int i;
7761_ACEOF
7762if ac_fn_c_try_compile "$LINENO"
7763then :
7764  xorg_cv_cc_flag_unknown_warning_option=yes
7765else case e in #(
7766  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7767esac
7768fi
7769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7770esac
7771fi
7772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7773printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7774	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7775	CFLAGS="$xorg_testset_save_CFLAGS"
7776fi
7777
7778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7779	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7780		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7781	fi
7782	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7783	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7784printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7785if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7786then :
7787  printf %s "(cached) " >&6
7788else case e in #(
7789  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790/* end confdefs.h.  */
7791int i;
7792_ACEOF
7793if ac_fn_c_try_compile "$LINENO"
7794then :
7795  xorg_cv_cc_flag_unused_command_line_argument=yes
7796else case e in #(
7797  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7798esac
7799fi
7800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7801esac
7802fi
7803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7804printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7805	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7806	CFLAGS="$xorg_testset_save_CFLAGS"
7807fi
7808
7809found="no"
7810
7811	if test $found = "no" ; then
7812		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7813			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7814		fi
7815
7816		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7817			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7818		fi
7819
7820		CFLAGS="$CFLAGS -Werror=main"
7821
7822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7823printf %s "checking if $CC supports -Werror=main... " >&6; }
7824		cacheid=xorg_cv_cc_flag__Werror_main
7825		if eval test \${$cacheid+y}
7826then :
7827  printf %s "(cached) " >&6
7828else case e in #(
7829  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830/* end confdefs.h.  */
7831int i;
7832int
7833main (void)
7834{
7835
7836  ;
7837  return 0;
7838}
7839_ACEOF
7840if ac_fn_c_try_link "$LINENO"
7841then :
7842  eval $cacheid=yes
7843else case e in #(
7844  e) eval $cacheid=no ;;
7845esac
7846fi
7847rm -f core conftest.err conftest.$ac_objext conftest.beam \
7848    conftest$ac_exeext conftest.$ac_ext ;;
7849esac
7850fi
7851
7852
7853		CFLAGS="$xorg_testset_save_CFLAGS"
7854
7855		eval supported=\$$cacheid
7856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7857printf "%s\n" "$supported" >&6; }
7858		if test "$supported" = "yes" ; then
7859			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7860			found="yes"
7861		fi
7862	fi
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878xorg_testset_save_CFLAGS="$CFLAGS"
7879
7880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7881	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7882	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7883printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7884if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7885then :
7886  printf %s "(cached) " >&6
7887else case e in #(
7888  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889/* end confdefs.h.  */
7890int i;
7891_ACEOF
7892if ac_fn_c_try_compile "$LINENO"
7893then :
7894  xorg_cv_cc_flag_unknown_warning_option=yes
7895else case e in #(
7896  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7897esac
7898fi
7899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7900esac
7901fi
7902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7903printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7905	CFLAGS="$xorg_testset_save_CFLAGS"
7906fi
7907
7908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7911	fi
7912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7913	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7914printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7915if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7916then :
7917  printf %s "(cached) " >&6
7918else case e in #(
7919  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920/* end confdefs.h.  */
7921int i;
7922_ACEOF
7923if ac_fn_c_try_compile "$LINENO"
7924then :
7925  xorg_cv_cc_flag_unused_command_line_argument=yes
7926else case e in #(
7927  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7928esac
7929fi
7930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7931esac
7932fi
7933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7934printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7935	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7936	CFLAGS="$xorg_testset_save_CFLAGS"
7937fi
7938
7939found="no"
7940
7941	if test $found = "no" ; then
7942		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7943			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7944		fi
7945
7946		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7947			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7948		fi
7949
7950		CFLAGS="$CFLAGS -Werror=missing-braces"
7951
7952		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7953printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7954		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7955		if eval test \${$cacheid+y}
7956then :
7957  printf %s "(cached) " >&6
7958else case e in #(
7959  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960/* end confdefs.h.  */
7961int i;
7962int
7963main (void)
7964{
7965
7966  ;
7967  return 0;
7968}
7969_ACEOF
7970if ac_fn_c_try_link "$LINENO"
7971then :
7972  eval $cacheid=yes
7973else case e in #(
7974  e) eval $cacheid=no ;;
7975esac
7976fi
7977rm -f core conftest.err conftest.$ac_objext conftest.beam \
7978    conftest$ac_exeext conftest.$ac_ext ;;
7979esac
7980fi
7981
7982
7983		CFLAGS="$xorg_testset_save_CFLAGS"
7984
7985		eval supported=\$$cacheid
7986		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7987printf "%s\n" "$supported" >&6; }
7988		if test "$supported" = "yes" ; then
7989			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7990			found="yes"
7991		fi
7992	fi
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008xorg_testset_save_CFLAGS="$CFLAGS"
8009
8010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8012	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8013printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8014if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8015then :
8016  printf %s "(cached) " >&6
8017else case e in #(
8018  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019/* end confdefs.h.  */
8020int i;
8021_ACEOF
8022if ac_fn_c_try_compile "$LINENO"
8023then :
8024  xorg_cv_cc_flag_unknown_warning_option=yes
8025else case e in #(
8026  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8027esac
8028fi
8029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8030esac
8031fi
8032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8033printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8034	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8035	CFLAGS="$xorg_testset_save_CFLAGS"
8036fi
8037
8038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8039	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8040		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8041	fi
8042	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8044printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8045if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8046then :
8047  printf %s "(cached) " >&6
8048else case e in #(
8049  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050/* end confdefs.h.  */
8051int i;
8052_ACEOF
8053if ac_fn_c_try_compile "$LINENO"
8054then :
8055  xorg_cv_cc_flag_unused_command_line_argument=yes
8056else case e in #(
8057  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8058esac
8059fi
8060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8061esac
8062fi
8063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8064printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8065	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8066	CFLAGS="$xorg_testset_save_CFLAGS"
8067fi
8068
8069found="no"
8070
8071	if test $found = "no" ; then
8072		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8073			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8074		fi
8075
8076		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8077			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8078		fi
8079
8080		CFLAGS="$CFLAGS -Werror=sequence-point"
8081
8082		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8083printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8084		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8085		if eval test \${$cacheid+y}
8086then :
8087  printf %s "(cached) " >&6
8088else case e in #(
8089  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090/* end confdefs.h.  */
8091int i;
8092int
8093main (void)
8094{
8095
8096  ;
8097  return 0;
8098}
8099_ACEOF
8100if ac_fn_c_try_link "$LINENO"
8101then :
8102  eval $cacheid=yes
8103else case e in #(
8104  e) eval $cacheid=no ;;
8105esac
8106fi
8107rm -f core conftest.err conftest.$ac_objext conftest.beam \
8108    conftest$ac_exeext conftest.$ac_ext ;;
8109esac
8110fi
8111
8112
8113		CFLAGS="$xorg_testset_save_CFLAGS"
8114
8115		eval supported=\$$cacheid
8116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8117printf "%s\n" "$supported" >&6; }
8118		if test "$supported" = "yes" ; then
8119			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8120			found="yes"
8121		fi
8122	fi
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138xorg_testset_save_CFLAGS="$CFLAGS"
8139
8140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8141	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8143printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8144if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8145then :
8146  printf %s "(cached) " >&6
8147else case e in #(
8148  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149/* end confdefs.h.  */
8150int i;
8151_ACEOF
8152if ac_fn_c_try_compile "$LINENO"
8153then :
8154  xorg_cv_cc_flag_unknown_warning_option=yes
8155else case e in #(
8156  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8157esac
8158fi
8159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8160esac
8161fi
8162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8163printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8165	CFLAGS="$xorg_testset_save_CFLAGS"
8166fi
8167
8168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8171	fi
8172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8173	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8174printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8175if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8176then :
8177  printf %s "(cached) " >&6
8178else case e in #(
8179  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180/* end confdefs.h.  */
8181int i;
8182_ACEOF
8183if ac_fn_c_try_compile "$LINENO"
8184then :
8185  xorg_cv_cc_flag_unused_command_line_argument=yes
8186else case e in #(
8187  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8188esac
8189fi
8190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8191esac
8192fi
8193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8194printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8196	CFLAGS="$xorg_testset_save_CFLAGS"
8197fi
8198
8199found="no"
8200
8201	if test $found = "no" ; then
8202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8204		fi
8205
8206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8208		fi
8209
8210		CFLAGS="$CFLAGS -Werror=return-type"
8211
8212		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8213printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8214		cacheid=xorg_cv_cc_flag__Werror_return_type
8215		if eval test \${$cacheid+y}
8216then :
8217  printf %s "(cached) " >&6
8218else case e in #(
8219  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220/* end confdefs.h.  */
8221int i;
8222int
8223main (void)
8224{
8225
8226  ;
8227  return 0;
8228}
8229_ACEOF
8230if ac_fn_c_try_link "$LINENO"
8231then :
8232  eval $cacheid=yes
8233else case e in #(
8234  e) eval $cacheid=no ;;
8235esac
8236fi
8237rm -f core conftest.err conftest.$ac_objext conftest.beam \
8238    conftest$ac_exeext conftest.$ac_ext ;;
8239esac
8240fi
8241
8242
8243		CFLAGS="$xorg_testset_save_CFLAGS"
8244
8245		eval supported=\$$cacheid
8246		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8247printf "%s\n" "$supported" >&6; }
8248		if test "$supported" = "yes" ; then
8249			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8250			found="yes"
8251		fi
8252	fi
8253
8254	if test $found = "no" ; then
8255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8257		fi
8258
8259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8261		fi
8262
8263		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8264
8265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8266printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8267		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8268		if eval test \${$cacheid+y}
8269then :
8270  printf %s "(cached) " >&6
8271else case e in #(
8272  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273/* end confdefs.h.  */
8274int i;
8275int
8276main (void)
8277{
8278
8279  ;
8280  return 0;
8281}
8282_ACEOF
8283if ac_fn_c_try_link "$LINENO"
8284then :
8285  eval $cacheid=yes
8286else case e in #(
8287  e) eval $cacheid=no ;;
8288esac
8289fi
8290rm -f core conftest.err conftest.$ac_objext conftest.beam \
8291    conftest$ac_exeext conftest.$ac_ext ;;
8292esac
8293fi
8294
8295
8296		CFLAGS="$xorg_testset_save_CFLAGS"
8297
8298		eval supported=\$$cacheid
8299		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8300printf "%s\n" "$supported" >&6; }
8301		if test "$supported" = "yes" ; then
8302			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8303			found="yes"
8304		fi
8305	fi
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321xorg_testset_save_CFLAGS="$CFLAGS"
8322
8323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8324	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8325	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8326printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8327if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8328then :
8329  printf %s "(cached) " >&6
8330else case e in #(
8331  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332/* end confdefs.h.  */
8333int i;
8334_ACEOF
8335if ac_fn_c_try_compile "$LINENO"
8336then :
8337  xorg_cv_cc_flag_unknown_warning_option=yes
8338else case e in #(
8339  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8340esac
8341fi
8342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8343esac
8344fi
8345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8346printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8347	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8348	CFLAGS="$xorg_testset_save_CFLAGS"
8349fi
8350
8351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8352	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8353		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8354	fi
8355	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8356	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8357printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8358if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8359then :
8360  printf %s "(cached) " >&6
8361else case e in #(
8362  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363/* end confdefs.h.  */
8364int i;
8365_ACEOF
8366if ac_fn_c_try_compile "$LINENO"
8367then :
8368  xorg_cv_cc_flag_unused_command_line_argument=yes
8369else case e in #(
8370  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8371esac
8372fi
8373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8374esac
8375fi
8376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8377printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8379	CFLAGS="$xorg_testset_save_CFLAGS"
8380fi
8381
8382found="no"
8383
8384	if test $found = "no" ; then
8385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8387		fi
8388
8389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8391		fi
8392
8393		CFLAGS="$CFLAGS -Werror=trigraphs"
8394
8395		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8396printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8397		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8398		if eval test \${$cacheid+y}
8399then :
8400  printf %s "(cached) " >&6
8401else case e in #(
8402  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403/* end confdefs.h.  */
8404int i;
8405int
8406main (void)
8407{
8408
8409  ;
8410  return 0;
8411}
8412_ACEOF
8413if ac_fn_c_try_link "$LINENO"
8414then :
8415  eval $cacheid=yes
8416else case e in #(
8417  e) eval $cacheid=no ;;
8418esac
8419fi
8420rm -f core conftest.err conftest.$ac_objext conftest.beam \
8421    conftest$ac_exeext conftest.$ac_ext ;;
8422esac
8423fi
8424
8425
8426		CFLAGS="$xorg_testset_save_CFLAGS"
8427
8428		eval supported=\$$cacheid
8429		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8430printf "%s\n" "$supported" >&6; }
8431		if test "$supported" = "yes" ; then
8432			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8433			found="yes"
8434		fi
8435	fi
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451xorg_testset_save_CFLAGS="$CFLAGS"
8452
8453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8454	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8455	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8456printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8457if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8458then :
8459  printf %s "(cached) " >&6
8460else case e in #(
8461  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462/* end confdefs.h.  */
8463int i;
8464_ACEOF
8465if ac_fn_c_try_compile "$LINENO"
8466then :
8467  xorg_cv_cc_flag_unknown_warning_option=yes
8468else case e in #(
8469  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8470esac
8471fi
8472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8473esac
8474fi
8475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8476printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8477	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8478	CFLAGS="$xorg_testset_save_CFLAGS"
8479fi
8480
8481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8482	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8483		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8484	fi
8485	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8486	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8487printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8488if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8489then :
8490  printf %s "(cached) " >&6
8491else case e in #(
8492  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493/* end confdefs.h.  */
8494int i;
8495_ACEOF
8496if ac_fn_c_try_compile "$LINENO"
8497then :
8498  xorg_cv_cc_flag_unused_command_line_argument=yes
8499else case e in #(
8500  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8501esac
8502fi
8503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8504esac
8505fi
8506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8507printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8508	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8509	CFLAGS="$xorg_testset_save_CFLAGS"
8510fi
8511
8512found="no"
8513
8514	if test $found = "no" ; then
8515		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8516			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8517		fi
8518
8519		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8520			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8521		fi
8522
8523		CFLAGS="$CFLAGS -Werror=array-bounds"
8524
8525		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8526printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8527		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8528		if eval test \${$cacheid+y}
8529then :
8530  printf %s "(cached) " >&6
8531else case e in #(
8532  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533/* end confdefs.h.  */
8534int i;
8535int
8536main (void)
8537{
8538
8539  ;
8540  return 0;
8541}
8542_ACEOF
8543if ac_fn_c_try_link "$LINENO"
8544then :
8545  eval $cacheid=yes
8546else case e in #(
8547  e) eval $cacheid=no ;;
8548esac
8549fi
8550rm -f core conftest.err conftest.$ac_objext conftest.beam \
8551    conftest$ac_exeext conftest.$ac_ext ;;
8552esac
8553fi
8554
8555
8556		CFLAGS="$xorg_testset_save_CFLAGS"
8557
8558		eval supported=\$$cacheid
8559		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8560printf "%s\n" "$supported" >&6; }
8561		if test "$supported" = "yes" ; then
8562			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8563			found="yes"
8564		fi
8565	fi
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581xorg_testset_save_CFLAGS="$CFLAGS"
8582
8583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8584	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8585	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8586printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8587if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8588then :
8589  printf %s "(cached) " >&6
8590else case e in #(
8591  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592/* end confdefs.h.  */
8593int i;
8594_ACEOF
8595if ac_fn_c_try_compile "$LINENO"
8596then :
8597  xorg_cv_cc_flag_unknown_warning_option=yes
8598else case e in #(
8599  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8600esac
8601fi
8602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8603esac
8604fi
8605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8606printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8607	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8608	CFLAGS="$xorg_testset_save_CFLAGS"
8609fi
8610
8611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8612	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8613		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8614	fi
8615	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8616	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8617printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8618if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8619then :
8620  printf %s "(cached) " >&6
8621else case e in #(
8622  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623/* end confdefs.h.  */
8624int i;
8625_ACEOF
8626if ac_fn_c_try_compile "$LINENO"
8627then :
8628  xorg_cv_cc_flag_unused_command_line_argument=yes
8629else case e in #(
8630  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8631esac
8632fi
8633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8634esac
8635fi
8636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8637printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8638	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8639	CFLAGS="$xorg_testset_save_CFLAGS"
8640fi
8641
8642found="no"
8643
8644	if test $found = "no" ; then
8645		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8646			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8647		fi
8648
8649		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8650			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8651		fi
8652
8653		CFLAGS="$CFLAGS -Werror=write-strings"
8654
8655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8656printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8657		cacheid=xorg_cv_cc_flag__Werror_write_strings
8658		if eval test \${$cacheid+y}
8659then :
8660  printf %s "(cached) " >&6
8661else case e in #(
8662  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663/* end confdefs.h.  */
8664int i;
8665int
8666main (void)
8667{
8668
8669  ;
8670  return 0;
8671}
8672_ACEOF
8673if ac_fn_c_try_link "$LINENO"
8674then :
8675  eval $cacheid=yes
8676else case e in #(
8677  e) eval $cacheid=no ;;
8678esac
8679fi
8680rm -f core conftest.err conftest.$ac_objext conftest.beam \
8681    conftest$ac_exeext conftest.$ac_ext ;;
8682esac
8683fi
8684
8685
8686		CFLAGS="$xorg_testset_save_CFLAGS"
8687
8688		eval supported=\$$cacheid
8689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8690printf "%s\n" "$supported" >&6; }
8691		if test "$supported" = "yes" ; then
8692			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8693			found="yes"
8694		fi
8695	fi
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711xorg_testset_save_CFLAGS="$CFLAGS"
8712
8713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8714	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8715	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8716printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8717if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8718then :
8719  printf %s "(cached) " >&6
8720else case e in #(
8721  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722/* end confdefs.h.  */
8723int i;
8724_ACEOF
8725if ac_fn_c_try_compile "$LINENO"
8726then :
8727  xorg_cv_cc_flag_unknown_warning_option=yes
8728else case e in #(
8729  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8730esac
8731fi
8732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8733esac
8734fi
8735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8736printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8737	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8738	CFLAGS="$xorg_testset_save_CFLAGS"
8739fi
8740
8741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8742	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8743		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8744	fi
8745	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8746	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8747printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8748if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8749then :
8750  printf %s "(cached) " >&6
8751else case e in #(
8752  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753/* end confdefs.h.  */
8754int i;
8755_ACEOF
8756if ac_fn_c_try_compile "$LINENO"
8757then :
8758  xorg_cv_cc_flag_unused_command_line_argument=yes
8759else case e in #(
8760  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8761esac
8762fi
8763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8764esac
8765fi
8766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8767printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8768	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8769	CFLAGS="$xorg_testset_save_CFLAGS"
8770fi
8771
8772found="no"
8773
8774	if test $found = "no" ; then
8775		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8776			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8777		fi
8778
8779		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8780			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8781		fi
8782
8783		CFLAGS="$CFLAGS -Werror=address"
8784
8785		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8786printf %s "checking if $CC supports -Werror=address... " >&6; }
8787		cacheid=xorg_cv_cc_flag__Werror_address
8788		if eval test \${$cacheid+y}
8789then :
8790  printf %s "(cached) " >&6
8791else case e in #(
8792  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793/* end confdefs.h.  */
8794int i;
8795int
8796main (void)
8797{
8798
8799  ;
8800  return 0;
8801}
8802_ACEOF
8803if ac_fn_c_try_link "$LINENO"
8804then :
8805  eval $cacheid=yes
8806else case e in #(
8807  e) eval $cacheid=no ;;
8808esac
8809fi
8810rm -f core conftest.err conftest.$ac_objext conftest.beam \
8811    conftest$ac_exeext conftest.$ac_ext ;;
8812esac
8813fi
8814
8815
8816		CFLAGS="$xorg_testset_save_CFLAGS"
8817
8818		eval supported=\$$cacheid
8819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8820printf "%s\n" "$supported" >&6; }
8821		if test "$supported" = "yes" ; then
8822			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8823			found="yes"
8824		fi
8825	fi
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841xorg_testset_save_CFLAGS="$CFLAGS"
8842
8843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8847if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8848then :
8849  printf %s "(cached) " >&6
8850else case e in #(
8851  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852/* end confdefs.h.  */
8853int i;
8854_ACEOF
8855if ac_fn_c_try_compile "$LINENO"
8856then :
8857  xorg_cv_cc_flag_unknown_warning_option=yes
8858else case e in #(
8859  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8860esac
8861fi
8862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8863esac
8864fi
8865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8866printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8867	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8868	CFLAGS="$xorg_testset_save_CFLAGS"
8869fi
8870
8871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8872	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874	fi
8875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8876	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8877printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8878if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8879then :
8880  printf %s "(cached) " >&6
8881else case e in #(
8882  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883/* end confdefs.h.  */
8884int i;
8885_ACEOF
8886if ac_fn_c_try_compile "$LINENO"
8887then :
8888  xorg_cv_cc_flag_unused_command_line_argument=yes
8889else case e in #(
8890  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8891esac
8892fi
8893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8894esac
8895fi
8896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8897printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8898	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8899	CFLAGS="$xorg_testset_save_CFLAGS"
8900fi
8901
8902found="no"
8903
8904	if test $found = "no" ; then
8905		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8907		fi
8908
8909		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8911		fi
8912
8913		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8914
8915		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8916printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8917		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8918		if eval test \${$cacheid+y}
8919then :
8920  printf %s "(cached) " >&6
8921else case e in #(
8922  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923/* end confdefs.h.  */
8924int i;
8925int
8926main (void)
8927{
8928
8929  ;
8930  return 0;
8931}
8932_ACEOF
8933if ac_fn_c_try_link "$LINENO"
8934then :
8935  eval $cacheid=yes
8936else case e in #(
8937  e) eval $cacheid=no ;;
8938esac
8939fi
8940rm -f core conftest.err conftest.$ac_objext conftest.beam \
8941    conftest$ac_exeext conftest.$ac_ext ;;
8942esac
8943fi
8944
8945
8946		CFLAGS="$xorg_testset_save_CFLAGS"
8947
8948		eval supported=\$$cacheid
8949		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8950printf "%s\n" "$supported" >&6; }
8951		if test "$supported" = "yes" ; then
8952			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8953			found="yes"
8954		fi
8955	fi
8956
8957	if test $found = "no" ; then
8958		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8960		fi
8961
8962		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8964		fi
8965
8966		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8967
8968		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8969printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8970		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8971		if eval test \${$cacheid+y}
8972then :
8973  printf %s "(cached) " >&6
8974else case e in #(
8975  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h.  */
8977int i;
8978int
8979main (void)
8980{
8981
8982  ;
8983  return 0;
8984}
8985_ACEOF
8986if ac_fn_c_try_link "$LINENO"
8987then :
8988  eval $cacheid=yes
8989else case e in #(
8990  e) eval $cacheid=no ;;
8991esac
8992fi
8993rm -f core conftest.err conftest.$ac_objext conftest.beam \
8994    conftest$ac_exeext conftest.$ac_ext ;;
8995esac
8996fi
8997
8998
8999		CFLAGS="$xorg_testset_save_CFLAGS"
9000
9001		eval supported=\$$cacheid
9002		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9003printf "%s\n" "$supported" >&6; }
9004		if test "$supported" = "yes" ; then
9005			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9006			found="yes"
9007		fi
9008	fi
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024xorg_testset_save_CFLAGS="$CFLAGS"
9025
9026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9027	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9028	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9029printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9030if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9031then :
9032  printf %s "(cached) " >&6
9033else case e in #(
9034  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035/* end confdefs.h.  */
9036int i;
9037_ACEOF
9038if ac_fn_c_try_compile "$LINENO"
9039then :
9040  xorg_cv_cc_flag_unknown_warning_option=yes
9041else case e in #(
9042  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9043esac
9044fi
9045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9046esac
9047fi
9048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9049printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9051	CFLAGS="$xorg_testset_save_CFLAGS"
9052fi
9053
9054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9057	fi
9058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9060printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9061if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9062then :
9063  printf %s "(cached) " >&6
9064else case e in #(
9065  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066/* end confdefs.h.  */
9067int i;
9068_ACEOF
9069if ac_fn_c_try_compile "$LINENO"
9070then :
9071  xorg_cv_cc_flag_unused_command_line_argument=yes
9072else case e in #(
9073  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9074esac
9075fi
9076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9077esac
9078fi
9079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9080printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9081	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9082	CFLAGS="$xorg_testset_save_CFLAGS"
9083fi
9084
9085found="no"
9086
9087	if test $found = "no" ; then
9088		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9089			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9090		fi
9091
9092		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9093			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9094		fi
9095
9096		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9097
9098		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9099printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9100		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9101		if eval test \${$cacheid+y}
9102then :
9103  printf %s "(cached) " >&6
9104else case e in #(
9105  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106/* end confdefs.h.  */
9107int i;
9108int
9109main (void)
9110{
9111
9112  ;
9113  return 0;
9114}
9115_ACEOF
9116if ac_fn_c_try_link "$LINENO"
9117then :
9118  eval $cacheid=yes
9119else case e in #(
9120  e) eval $cacheid=no ;;
9121esac
9122fi
9123rm -f core conftest.err conftest.$ac_objext conftest.beam \
9124    conftest$ac_exeext conftest.$ac_ext ;;
9125esac
9126fi
9127
9128
9129		CFLAGS="$xorg_testset_save_CFLAGS"
9130
9131		eval supported=\$$cacheid
9132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9133printf "%s\n" "$supported" >&6; }
9134		if test "$supported" = "yes" ; then
9135			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9136			found="yes"
9137		fi
9138	fi
9139
9140 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9141else
9142{ 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
9143printf "%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;}
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157xorg_testset_save_CFLAGS="$CFLAGS"
9158
9159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9161	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9163if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9164then :
9165  printf %s "(cached) " >&6
9166else case e in #(
9167  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168/* end confdefs.h.  */
9169int i;
9170_ACEOF
9171if ac_fn_c_try_compile "$LINENO"
9172then :
9173  xorg_cv_cc_flag_unknown_warning_option=yes
9174else case e in #(
9175  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9176esac
9177fi
9178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9179esac
9180fi
9181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9182printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9183	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9184	CFLAGS="$xorg_testset_save_CFLAGS"
9185fi
9186
9187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9188	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9189		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9190	fi
9191	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9192	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9193printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9194if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9195then :
9196  printf %s "(cached) " >&6
9197else case e in #(
9198  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199/* end confdefs.h.  */
9200int i;
9201_ACEOF
9202if ac_fn_c_try_compile "$LINENO"
9203then :
9204  xorg_cv_cc_flag_unused_command_line_argument=yes
9205else case e in #(
9206  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9207esac
9208fi
9209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9210esac
9211fi
9212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9213printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9214	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9215	CFLAGS="$xorg_testset_save_CFLAGS"
9216fi
9217
9218found="no"
9219
9220	if test $found = "no" ; then
9221		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9222			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223		fi
9224
9225		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9226			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9227		fi
9228
9229		CFLAGS="$CFLAGS -Wimplicit"
9230
9231		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9232printf %s "checking if $CC supports -Wimplicit... " >&6; }
9233		cacheid=xorg_cv_cc_flag__Wimplicit
9234		if eval test \${$cacheid+y}
9235then :
9236  printf %s "(cached) " >&6
9237else case e in #(
9238  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239/* end confdefs.h.  */
9240int i;
9241int
9242main (void)
9243{
9244
9245  ;
9246  return 0;
9247}
9248_ACEOF
9249if ac_fn_c_try_link "$LINENO"
9250then :
9251  eval $cacheid=yes
9252else case e in #(
9253  e) eval $cacheid=no ;;
9254esac
9255fi
9256rm -f core conftest.err conftest.$ac_objext conftest.beam \
9257    conftest$ac_exeext conftest.$ac_ext ;;
9258esac
9259fi
9260
9261
9262		CFLAGS="$xorg_testset_save_CFLAGS"
9263
9264		eval supported=\$$cacheid
9265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9266printf "%s\n" "$supported" >&6; }
9267		if test "$supported" = "yes" ; then
9268			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9269			found="yes"
9270		fi
9271	fi
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287xorg_testset_save_CFLAGS="$CFLAGS"
9288
9289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9290	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9291	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9292printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9293if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9294then :
9295  printf %s "(cached) " >&6
9296else case e in #(
9297  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298/* end confdefs.h.  */
9299int i;
9300_ACEOF
9301if ac_fn_c_try_compile "$LINENO"
9302then :
9303  xorg_cv_cc_flag_unknown_warning_option=yes
9304else case e in #(
9305  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9306esac
9307fi
9308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9309esac
9310fi
9311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9312printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9313	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9314	CFLAGS="$xorg_testset_save_CFLAGS"
9315fi
9316
9317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9318	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9319		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9320	fi
9321	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9322	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9323printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9324if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9325then :
9326  printf %s "(cached) " >&6
9327else case e in #(
9328  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329/* end confdefs.h.  */
9330int i;
9331_ACEOF
9332if ac_fn_c_try_compile "$LINENO"
9333then :
9334  xorg_cv_cc_flag_unused_command_line_argument=yes
9335else case e in #(
9336  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9337esac
9338fi
9339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9340esac
9341fi
9342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9343printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9344	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9345	CFLAGS="$xorg_testset_save_CFLAGS"
9346fi
9347
9348found="no"
9349
9350	if test $found = "no" ; then
9351		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9353		fi
9354
9355		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9357		fi
9358
9359		CFLAGS="$CFLAGS -Wnonnull"
9360
9361		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9362printf %s "checking if $CC supports -Wnonnull... " >&6; }
9363		cacheid=xorg_cv_cc_flag__Wnonnull
9364		if eval test \${$cacheid+y}
9365then :
9366  printf %s "(cached) " >&6
9367else case e in #(
9368  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369/* end confdefs.h.  */
9370int i;
9371int
9372main (void)
9373{
9374
9375  ;
9376  return 0;
9377}
9378_ACEOF
9379if ac_fn_c_try_link "$LINENO"
9380then :
9381  eval $cacheid=yes
9382else case e in #(
9383  e) eval $cacheid=no ;;
9384esac
9385fi
9386rm -f core conftest.err conftest.$ac_objext conftest.beam \
9387    conftest$ac_exeext conftest.$ac_ext ;;
9388esac
9389fi
9390
9391
9392		CFLAGS="$xorg_testset_save_CFLAGS"
9393
9394		eval supported=\$$cacheid
9395		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9396printf "%s\n" "$supported" >&6; }
9397		if test "$supported" = "yes" ; then
9398			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9399			found="yes"
9400		fi
9401	fi
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417xorg_testset_save_CFLAGS="$CFLAGS"
9418
9419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9420	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9421	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9422printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9423if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9424then :
9425  printf %s "(cached) " >&6
9426else case e in #(
9427  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428/* end confdefs.h.  */
9429int i;
9430_ACEOF
9431if ac_fn_c_try_compile "$LINENO"
9432then :
9433  xorg_cv_cc_flag_unknown_warning_option=yes
9434else case e in #(
9435  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9436esac
9437fi
9438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9439esac
9440fi
9441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9442printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9443	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9444	CFLAGS="$xorg_testset_save_CFLAGS"
9445fi
9446
9447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9448	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9449		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9450	fi
9451	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9452	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9453printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9454if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9455then :
9456  printf %s "(cached) " >&6
9457else case e in #(
9458  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459/* end confdefs.h.  */
9460int i;
9461_ACEOF
9462if ac_fn_c_try_compile "$LINENO"
9463then :
9464  xorg_cv_cc_flag_unused_command_line_argument=yes
9465else case e in #(
9466  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9467esac
9468fi
9469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9470esac
9471fi
9472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9473printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9474	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9475	CFLAGS="$xorg_testset_save_CFLAGS"
9476fi
9477
9478found="no"
9479
9480	if test $found = "no" ; then
9481		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9482			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9483		fi
9484
9485		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9486			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9487		fi
9488
9489		CFLAGS="$CFLAGS -Winit-self"
9490
9491		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9492printf %s "checking if $CC supports -Winit-self... " >&6; }
9493		cacheid=xorg_cv_cc_flag__Winit_self
9494		if eval test \${$cacheid+y}
9495then :
9496  printf %s "(cached) " >&6
9497else case e in #(
9498  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499/* end confdefs.h.  */
9500int i;
9501int
9502main (void)
9503{
9504
9505  ;
9506  return 0;
9507}
9508_ACEOF
9509if ac_fn_c_try_link "$LINENO"
9510then :
9511  eval $cacheid=yes
9512else case e in #(
9513  e) eval $cacheid=no ;;
9514esac
9515fi
9516rm -f core conftest.err conftest.$ac_objext conftest.beam \
9517    conftest$ac_exeext conftest.$ac_ext ;;
9518esac
9519fi
9520
9521
9522		CFLAGS="$xorg_testset_save_CFLAGS"
9523
9524		eval supported=\$$cacheid
9525		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9526printf "%s\n" "$supported" >&6; }
9527		if test "$supported" = "yes" ; then
9528			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9529			found="yes"
9530		fi
9531	fi
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547xorg_testset_save_CFLAGS="$CFLAGS"
9548
9549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9550	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9551	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9552printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9553if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9554then :
9555  printf %s "(cached) " >&6
9556else case e in #(
9557  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h.  */
9559int i;
9560_ACEOF
9561if ac_fn_c_try_compile "$LINENO"
9562then :
9563  xorg_cv_cc_flag_unknown_warning_option=yes
9564else case e in #(
9565  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9566esac
9567fi
9568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9569esac
9570fi
9571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9572printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9573	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9574	CFLAGS="$xorg_testset_save_CFLAGS"
9575fi
9576
9577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9578	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9579		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580	fi
9581	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9582	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9583printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9584if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9585then :
9586  printf %s "(cached) " >&6
9587else case e in #(
9588  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589/* end confdefs.h.  */
9590int i;
9591_ACEOF
9592if ac_fn_c_try_compile "$LINENO"
9593then :
9594  xorg_cv_cc_flag_unused_command_line_argument=yes
9595else case e in #(
9596  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9597esac
9598fi
9599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9600esac
9601fi
9602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9603printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9604	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9605	CFLAGS="$xorg_testset_save_CFLAGS"
9606fi
9607
9608found="no"
9609
9610	if test $found = "no" ; then
9611		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9612			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9613		fi
9614
9615		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9616			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9617		fi
9618
9619		CFLAGS="$CFLAGS -Wmain"
9620
9621		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9622printf %s "checking if $CC supports -Wmain... " >&6; }
9623		cacheid=xorg_cv_cc_flag__Wmain
9624		if eval test \${$cacheid+y}
9625then :
9626  printf %s "(cached) " >&6
9627else case e in #(
9628  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629/* end confdefs.h.  */
9630int i;
9631int
9632main (void)
9633{
9634
9635  ;
9636  return 0;
9637}
9638_ACEOF
9639if ac_fn_c_try_link "$LINENO"
9640then :
9641  eval $cacheid=yes
9642else case e in #(
9643  e) eval $cacheid=no ;;
9644esac
9645fi
9646rm -f core conftest.err conftest.$ac_objext conftest.beam \
9647    conftest$ac_exeext conftest.$ac_ext ;;
9648esac
9649fi
9650
9651
9652		CFLAGS="$xorg_testset_save_CFLAGS"
9653
9654		eval supported=\$$cacheid
9655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9656printf "%s\n" "$supported" >&6; }
9657		if test "$supported" = "yes" ; then
9658			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9659			found="yes"
9660		fi
9661	fi
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677xorg_testset_save_CFLAGS="$CFLAGS"
9678
9679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9680	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9682printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9683if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9684then :
9685  printf %s "(cached) " >&6
9686else case e in #(
9687  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688/* end confdefs.h.  */
9689int i;
9690_ACEOF
9691if ac_fn_c_try_compile "$LINENO"
9692then :
9693  xorg_cv_cc_flag_unknown_warning_option=yes
9694else case e in #(
9695  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9696esac
9697fi
9698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9699esac
9700fi
9701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9702printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9703	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9704	CFLAGS="$xorg_testset_save_CFLAGS"
9705fi
9706
9707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9708	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9709		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9710	fi
9711	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9712	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9713printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9714if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9715then :
9716  printf %s "(cached) " >&6
9717else case e in #(
9718  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719/* end confdefs.h.  */
9720int i;
9721_ACEOF
9722if ac_fn_c_try_compile "$LINENO"
9723then :
9724  xorg_cv_cc_flag_unused_command_line_argument=yes
9725else case e in #(
9726  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9727esac
9728fi
9729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9730esac
9731fi
9732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9733printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9734	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9735	CFLAGS="$xorg_testset_save_CFLAGS"
9736fi
9737
9738found="no"
9739
9740	if test $found = "no" ; then
9741		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9742			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9743		fi
9744
9745		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9746			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9747		fi
9748
9749		CFLAGS="$CFLAGS -Wmissing-braces"
9750
9751		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9752printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9753		cacheid=xorg_cv_cc_flag__Wmissing_braces
9754		if eval test \${$cacheid+y}
9755then :
9756  printf %s "(cached) " >&6
9757else case e in #(
9758  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759/* end confdefs.h.  */
9760int i;
9761int
9762main (void)
9763{
9764
9765  ;
9766  return 0;
9767}
9768_ACEOF
9769if ac_fn_c_try_link "$LINENO"
9770then :
9771  eval $cacheid=yes
9772else case e in #(
9773  e) eval $cacheid=no ;;
9774esac
9775fi
9776rm -f core conftest.err conftest.$ac_objext conftest.beam \
9777    conftest$ac_exeext conftest.$ac_ext ;;
9778esac
9779fi
9780
9781
9782		CFLAGS="$xorg_testset_save_CFLAGS"
9783
9784		eval supported=\$$cacheid
9785		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9786printf "%s\n" "$supported" >&6; }
9787		if test "$supported" = "yes" ; then
9788			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9789			found="yes"
9790		fi
9791	fi
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807xorg_testset_save_CFLAGS="$CFLAGS"
9808
9809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9810	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9811	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9812printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9813if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9814then :
9815  printf %s "(cached) " >&6
9816else case e in #(
9817  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818/* end confdefs.h.  */
9819int i;
9820_ACEOF
9821if ac_fn_c_try_compile "$LINENO"
9822then :
9823  xorg_cv_cc_flag_unknown_warning_option=yes
9824else case e in #(
9825  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9826esac
9827fi
9828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9829esac
9830fi
9831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9832printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9833	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9834	CFLAGS="$xorg_testset_save_CFLAGS"
9835fi
9836
9837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9838	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9839		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9840	fi
9841	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9842	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9843printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9844if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9845then :
9846  printf %s "(cached) " >&6
9847else case e in #(
9848  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849/* end confdefs.h.  */
9850int i;
9851_ACEOF
9852if ac_fn_c_try_compile "$LINENO"
9853then :
9854  xorg_cv_cc_flag_unused_command_line_argument=yes
9855else case e in #(
9856  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9857esac
9858fi
9859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9860esac
9861fi
9862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9863printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9864	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9865	CFLAGS="$xorg_testset_save_CFLAGS"
9866fi
9867
9868found="no"
9869
9870	if test $found = "no" ; then
9871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9873		fi
9874
9875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9877		fi
9878
9879		CFLAGS="$CFLAGS -Wsequence-point"
9880
9881		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9882printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9883		cacheid=xorg_cv_cc_flag__Wsequence_point
9884		if eval test \${$cacheid+y}
9885then :
9886  printf %s "(cached) " >&6
9887else case e in #(
9888  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889/* end confdefs.h.  */
9890int i;
9891int
9892main (void)
9893{
9894
9895  ;
9896  return 0;
9897}
9898_ACEOF
9899if ac_fn_c_try_link "$LINENO"
9900then :
9901  eval $cacheid=yes
9902else case e in #(
9903  e) eval $cacheid=no ;;
9904esac
9905fi
9906rm -f core conftest.err conftest.$ac_objext conftest.beam \
9907    conftest$ac_exeext conftest.$ac_ext ;;
9908esac
9909fi
9910
9911
9912		CFLAGS="$xorg_testset_save_CFLAGS"
9913
9914		eval supported=\$$cacheid
9915		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9916printf "%s\n" "$supported" >&6; }
9917		if test "$supported" = "yes" ; then
9918			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9919			found="yes"
9920		fi
9921	fi
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937xorg_testset_save_CFLAGS="$CFLAGS"
9938
9939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9940	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9941	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9942printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9943if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9944then :
9945  printf %s "(cached) " >&6
9946else case e in #(
9947  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948/* end confdefs.h.  */
9949int i;
9950_ACEOF
9951if ac_fn_c_try_compile "$LINENO"
9952then :
9953  xorg_cv_cc_flag_unknown_warning_option=yes
9954else case e in #(
9955  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9956esac
9957fi
9958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9959esac
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 case e in #(
9978  e) 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 case e in #(
9986  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9987esac
9988fi
9989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9990esac
9991fi
9992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9993printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9994	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9995	CFLAGS="$xorg_testset_save_CFLAGS"
9996fi
9997
9998found="no"
9999
10000	if test $found = "no" ; then
10001		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10002			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10003		fi
10004
10005		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10006			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10007		fi
10008
10009		CFLAGS="$CFLAGS -Wreturn-type"
10010
10011		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10012printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10013		cacheid=xorg_cv_cc_flag__Wreturn_type
10014		if eval test \${$cacheid+y}
10015then :
10016  printf %s "(cached) " >&6
10017else case e in #(
10018  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019/* end confdefs.h.  */
10020int i;
10021int
10022main (void)
10023{
10024
10025  ;
10026  return 0;
10027}
10028_ACEOF
10029if ac_fn_c_try_link "$LINENO"
10030then :
10031  eval $cacheid=yes
10032else case e in #(
10033  e) eval $cacheid=no ;;
10034esac
10035fi
10036rm -f core conftest.err conftest.$ac_objext conftest.beam \
10037    conftest$ac_exeext conftest.$ac_ext ;;
10038esac
10039fi
10040
10041
10042		CFLAGS="$xorg_testset_save_CFLAGS"
10043
10044		eval supported=\$$cacheid
10045		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10046printf "%s\n" "$supported" >&6; }
10047		if test "$supported" = "yes" ; then
10048			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10049			found="yes"
10050		fi
10051	fi
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067xorg_testset_save_CFLAGS="$CFLAGS"
10068
10069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10070	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10071	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10072printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10073if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10074then :
10075  printf %s "(cached) " >&6
10076else case e in #(
10077  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078/* end confdefs.h.  */
10079int i;
10080_ACEOF
10081if ac_fn_c_try_compile "$LINENO"
10082then :
10083  xorg_cv_cc_flag_unknown_warning_option=yes
10084else case e in #(
10085  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10086esac
10087fi
10088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10089esac
10090fi
10091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10092printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10094	CFLAGS="$xorg_testset_save_CFLAGS"
10095fi
10096
10097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10100	fi
10101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10103printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10104if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10105then :
10106  printf %s "(cached) " >&6
10107else case e in #(
10108  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h.  */
10110int i;
10111_ACEOF
10112if ac_fn_c_try_compile "$LINENO"
10113then :
10114  xorg_cv_cc_flag_unused_command_line_argument=yes
10115else case e in #(
10116  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10117esac
10118fi
10119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10120esac
10121fi
10122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10123printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10124	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10125	CFLAGS="$xorg_testset_save_CFLAGS"
10126fi
10127
10128found="no"
10129
10130	if test $found = "no" ; then
10131		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10132			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10133		fi
10134
10135		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10136			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10137		fi
10138
10139		CFLAGS="$CFLAGS -Wtrigraphs"
10140
10141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10142printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10143		cacheid=xorg_cv_cc_flag__Wtrigraphs
10144		if eval test \${$cacheid+y}
10145then :
10146  printf %s "(cached) " >&6
10147else case e in #(
10148  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149/* end confdefs.h.  */
10150int i;
10151int
10152main (void)
10153{
10154
10155  ;
10156  return 0;
10157}
10158_ACEOF
10159if ac_fn_c_try_link "$LINENO"
10160then :
10161  eval $cacheid=yes
10162else case e in #(
10163  e) eval $cacheid=no ;;
10164esac
10165fi
10166rm -f core conftest.err conftest.$ac_objext conftest.beam \
10167    conftest$ac_exeext conftest.$ac_ext ;;
10168esac
10169fi
10170
10171
10172		CFLAGS="$xorg_testset_save_CFLAGS"
10173
10174		eval supported=\$$cacheid
10175		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10176printf "%s\n" "$supported" >&6; }
10177		if test "$supported" = "yes" ; then
10178			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10179			found="yes"
10180		fi
10181	fi
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197xorg_testset_save_CFLAGS="$CFLAGS"
10198
10199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10200	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10201	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10202printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10203if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10204then :
10205  printf %s "(cached) " >&6
10206else case e in #(
10207  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208/* end confdefs.h.  */
10209int i;
10210_ACEOF
10211if ac_fn_c_try_compile "$LINENO"
10212then :
10213  xorg_cv_cc_flag_unknown_warning_option=yes
10214else case e in #(
10215  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10216esac
10217fi
10218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10219esac
10220fi
10221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10222printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10223	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10224	CFLAGS="$xorg_testset_save_CFLAGS"
10225fi
10226
10227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10228	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10229		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10230	fi
10231	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10232	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10233printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10234if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10235then :
10236  printf %s "(cached) " >&6
10237else case e in #(
10238  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239/* end confdefs.h.  */
10240int i;
10241_ACEOF
10242if ac_fn_c_try_compile "$LINENO"
10243then :
10244  xorg_cv_cc_flag_unused_command_line_argument=yes
10245else case e in #(
10246  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10247esac
10248fi
10249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10250esac
10251fi
10252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10253printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10254	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10255	CFLAGS="$xorg_testset_save_CFLAGS"
10256fi
10257
10258found="no"
10259
10260	if test $found = "no" ; then
10261		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10263		fi
10264
10265		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10267		fi
10268
10269		CFLAGS="$CFLAGS -Warray-bounds"
10270
10271		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10272printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10273		cacheid=xorg_cv_cc_flag__Warray_bounds
10274		if eval test \${$cacheid+y}
10275then :
10276  printf %s "(cached) " >&6
10277else case e in #(
10278  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279/* end confdefs.h.  */
10280int i;
10281int
10282main (void)
10283{
10284
10285  ;
10286  return 0;
10287}
10288_ACEOF
10289if ac_fn_c_try_link "$LINENO"
10290then :
10291  eval $cacheid=yes
10292else case e in #(
10293  e) eval $cacheid=no ;;
10294esac
10295fi
10296rm -f core conftest.err conftest.$ac_objext conftest.beam \
10297    conftest$ac_exeext conftest.$ac_ext ;;
10298esac
10299fi
10300
10301
10302		CFLAGS="$xorg_testset_save_CFLAGS"
10303
10304		eval supported=\$$cacheid
10305		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10306printf "%s\n" "$supported" >&6; }
10307		if test "$supported" = "yes" ; then
10308			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10309			found="yes"
10310		fi
10311	fi
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327xorg_testset_save_CFLAGS="$CFLAGS"
10328
10329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10330	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10331	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10332printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10333if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10334then :
10335  printf %s "(cached) " >&6
10336else case e in #(
10337  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338/* end confdefs.h.  */
10339int i;
10340_ACEOF
10341if ac_fn_c_try_compile "$LINENO"
10342then :
10343  xorg_cv_cc_flag_unknown_warning_option=yes
10344else case e in #(
10345  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10346esac
10347fi
10348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10349esac
10350fi
10351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10352printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10353	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10354	CFLAGS="$xorg_testset_save_CFLAGS"
10355fi
10356
10357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10358	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10359		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10360	fi
10361	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10362	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10363printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10364if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10365then :
10366  printf %s "(cached) " >&6
10367else case e in #(
10368  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369/* end confdefs.h.  */
10370int i;
10371_ACEOF
10372if ac_fn_c_try_compile "$LINENO"
10373then :
10374  xorg_cv_cc_flag_unused_command_line_argument=yes
10375else case e in #(
10376  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10377esac
10378fi
10379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10380esac
10381fi
10382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10383printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10384	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10385	CFLAGS="$xorg_testset_save_CFLAGS"
10386fi
10387
10388found="no"
10389
10390	if test $found = "no" ; then
10391		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10392			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10393		fi
10394
10395		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10396			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10397		fi
10398
10399		CFLAGS="$CFLAGS -Wwrite-strings"
10400
10401		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10402printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10403		cacheid=xorg_cv_cc_flag__Wwrite_strings
10404		if eval test \${$cacheid+y}
10405then :
10406  printf %s "(cached) " >&6
10407else case e in #(
10408  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409/* end confdefs.h.  */
10410int i;
10411int
10412main (void)
10413{
10414
10415  ;
10416  return 0;
10417}
10418_ACEOF
10419if ac_fn_c_try_link "$LINENO"
10420then :
10421  eval $cacheid=yes
10422else case e in #(
10423  e) eval $cacheid=no ;;
10424esac
10425fi
10426rm -f core conftest.err conftest.$ac_objext conftest.beam \
10427    conftest$ac_exeext conftest.$ac_ext ;;
10428esac
10429fi
10430
10431
10432		CFLAGS="$xorg_testset_save_CFLAGS"
10433
10434		eval supported=\$$cacheid
10435		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10436printf "%s\n" "$supported" >&6; }
10437		if test "$supported" = "yes" ; then
10438			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10439			found="yes"
10440		fi
10441	fi
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457xorg_testset_save_CFLAGS="$CFLAGS"
10458
10459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10460	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10461	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10462printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10463if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10464then :
10465  printf %s "(cached) " >&6
10466else case e in #(
10467  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468/* end confdefs.h.  */
10469int i;
10470_ACEOF
10471if ac_fn_c_try_compile "$LINENO"
10472then :
10473  xorg_cv_cc_flag_unknown_warning_option=yes
10474else case e in #(
10475  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10476esac
10477fi
10478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10479esac
10480fi
10481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10484	CFLAGS="$xorg_testset_save_CFLAGS"
10485fi
10486
10487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10490	fi
10491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10494if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10495then :
10496  printf %s "(cached) " >&6
10497else case e in #(
10498  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499/* end confdefs.h.  */
10500int i;
10501_ACEOF
10502if ac_fn_c_try_compile "$LINENO"
10503then :
10504  xorg_cv_cc_flag_unused_command_line_argument=yes
10505else case e in #(
10506  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10507esac
10508fi
10509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10510esac
10511fi
10512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10513printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10514	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10515	CFLAGS="$xorg_testset_save_CFLAGS"
10516fi
10517
10518found="no"
10519
10520	if test $found = "no" ; then
10521		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10522			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10523		fi
10524
10525		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10526			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10527		fi
10528
10529		CFLAGS="$CFLAGS -Waddress"
10530
10531		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10532printf %s "checking if $CC supports -Waddress... " >&6; }
10533		cacheid=xorg_cv_cc_flag__Waddress
10534		if eval test \${$cacheid+y}
10535then :
10536  printf %s "(cached) " >&6
10537else case e in #(
10538  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539/* end confdefs.h.  */
10540int i;
10541int
10542main (void)
10543{
10544
10545  ;
10546  return 0;
10547}
10548_ACEOF
10549if ac_fn_c_try_link "$LINENO"
10550then :
10551  eval $cacheid=yes
10552else case e in #(
10553  e) eval $cacheid=no ;;
10554esac
10555fi
10556rm -f core conftest.err conftest.$ac_objext conftest.beam \
10557    conftest$ac_exeext conftest.$ac_ext ;;
10558esac
10559fi
10560
10561
10562		CFLAGS="$xorg_testset_save_CFLAGS"
10563
10564		eval supported=\$$cacheid
10565		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10566printf "%s\n" "$supported" >&6; }
10567		if test "$supported" = "yes" ; then
10568			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10569			found="yes"
10570		fi
10571	fi
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587xorg_testset_save_CFLAGS="$CFLAGS"
10588
10589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10590	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10591	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10592printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10593if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10594then :
10595  printf %s "(cached) " >&6
10596else case e in #(
10597  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598/* end confdefs.h.  */
10599int i;
10600_ACEOF
10601if ac_fn_c_try_compile "$LINENO"
10602then :
10603  xorg_cv_cc_flag_unknown_warning_option=yes
10604else case e in #(
10605  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10606esac
10607fi
10608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10609esac
10610fi
10611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10612printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10613	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10614	CFLAGS="$xorg_testset_save_CFLAGS"
10615fi
10616
10617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10618	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10619		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10620	fi
10621	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10622	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10623printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10624if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10625then :
10626  printf %s "(cached) " >&6
10627else case e in #(
10628  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629/* end confdefs.h.  */
10630int i;
10631_ACEOF
10632if ac_fn_c_try_compile "$LINENO"
10633then :
10634  xorg_cv_cc_flag_unused_command_line_argument=yes
10635else case e in #(
10636  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10637esac
10638fi
10639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10640esac
10641fi
10642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10643printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10644	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10645	CFLAGS="$xorg_testset_save_CFLAGS"
10646fi
10647
10648found="no"
10649
10650	if test $found = "no" ; then
10651		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10652			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10653		fi
10654
10655		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10656			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10657		fi
10658
10659		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10660
10661		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10662printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10663		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10664		if eval test \${$cacheid+y}
10665then :
10666  printf %s "(cached) " >&6
10667else case e in #(
10668  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669/* end confdefs.h.  */
10670int i;
10671int
10672main (void)
10673{
10674
10675  ;
10676  return 0;
10677}
10678_ACEOF
10679if ac_fn_c_try_link "$LINENO"
10680then :
10681  eval $cacheid=yes
10682else case e in #(
10683  e) eval $cacheid=no ;;
10684esac
10685fi
10686rm -f core conftest.err conftest.$ac_objext conftest.beam \
10687    conftest$ac_exeext conftest.$ac_ext ;;
10688esac
10689fi
10690
10691
10692		CFLAGS="$xorg_testset_save_CFLAGS"
10693
10694		eval supported=\$$cacheid
10695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10696printf "%s\n" "$supported" >&6; }
10697		if test "$supported" = "yes" ; then
10698			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10699			found="yes"
10700		fi
10701	fi
10702
10703
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 case e in #(
10727  e) 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 case e in #(
10735  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10736esac
10737fi
10738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10739esac
10740fi
10741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10742printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10743	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10744	CFLAGS="$xorg_testset_save_CFLAGS"
10745fi
10746
10747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10748	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10749		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10750	fi
10751	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10752	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10753printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10754if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10755then :
10756  printf %s "(cached) " >&6
10757else case e in #(
10758  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759/* end confdefs.h.  */
10760int i;
10761_ACEOF
10762if ac_fn_c_try_compile "$LINENO"
10763then :
10764  xorg_cv_cc_flag_unused_command_line_argument=yes
10765else case e in #(
10766  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10767esac
10768fi
10769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10770esac
10771fi
10772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10773printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10774	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10775	CFLAGS="$xorg_testset_save_CFLAGS"
10776fi
10777
10778found="no"
10779
10780	if test $found = "no" ; then
10781		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10782			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10783		fi
10784
10785		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10786			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10787		fi
10788
10789		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10790
10791		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10792printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10793		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10794		if eval test \${$cacheid+y}
10795then :
10796  printf %s "(cached) " >&6
10797else case e in #(
10798  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799/* end confdefs.h.  */
10800int i;
10801int
10802main (void)
10803{
10804
10805  ;
10806  return 0;
10807}
10808_ACEOF
10809if ac_fn_c_try_link "$LINENO"
10810then :
10811  eval $cacheid=yes
10812else case e in #(
10813  e) eval $cacheid=no ;;
10814esac
10815fi
10816rm -f core conftest.err conftest.$ac_objext conftest.beam \
10817    conftest$ac_exeext conftest.$ac_ext ;;
10818esac
10819fi
10820
10821
10822		CFLAGS="$xorg_testset_save_CFLAGS"
10823
10824		eval supported=\$$cacheid
10825		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10826printf "%s\n" "$supported" >&6; }
10827		if test "$supported" = "yes" ; then
10828			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10829			found="yes"
10830		fi
10831	fi
10832
10833
10834fi
10835
10836
10837
10838
10839
10840
10841
10842		CWARNFLAGS="$BASE_CFLAGS"
10843		if  test "x$GCC" = xyes ; then
10844		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10845		fi
10846
10847
10848
10849
10850
10851
10852
10853
10854# Check whether --enable-strict-compilation was given.
10855if test ${enable_strict_compilation+y}
10856then :
10857  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10858else case e in #(
10859  e) STRICT_COMPILE=no ;;
10860esac
10861fi
10862
10863
10864
10865
10866
10867
10868STRICT_CFLAGS=""
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882xorg_testset_save_CFLAGS="$CFLAGS"
10883
10884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10886	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10887printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10888if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10889then :
10890  printf %s "(cached) " >&6
10891else case e in #(
10892  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893/* end confdefs.h.  */
10894int i;
10895_ACEOF
10896if ac_fn_c_try_compile "$LINENO"
10897then :
10898  xorg_cv_cc_flag_unknown_warning_option=yes
10899else case e in #(
10900  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10901esac
10902fi
10903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10904esac
10905fi
10906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10907printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10908	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10909	CFLAGS="$xorg_testset_save_CFLAGS"
10910fi
10911
10912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10913	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10914		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10915	fi
10916	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10917	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10918printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10919if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10920then :
10921  printf %s "(cached) " >&6
10922else case e in #(
10923  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924/* end confdefs.h.  */
10925int i;
10926_ACEOF
10927if ac_fn_c_try_compile "$LINENO"
10928then :
10929  xorg_cv_cc_flag_unused_command_line_argument=yes
10930else case e in #(
10931  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10932esac
10933fi
10934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10935esac
10936fi
10937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10938printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10940	CFLAGS="$xorg_testset_save_CFLAGS"
10941fi
10942
10943found="no"
10944
10945	if test $found = "no" ; then
10946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10948		fi
10949
10950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10952		fi
10953
10954		CFLAGS="$CFLAGS -pedantic"
10955
10956		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10957printf %s "checking if $CC supports -pedantic... " >&6; }
10958		cacheid=xorg_cv_cc_flag__pedantic
10959		if eval test \${$cacheid+y}
10960then :
10961  printf %s "(cached) " >&6
10962else case e in #(
10963  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964/* end confdefs.h.  */
10965int i;
10966int
10967main (void)
10968{
10969
10970  ;
10971  return 0;
10972}
10973_ACEOF
10974if ac_fn_c_try_link "$LINENO"
10975then :
10976  eval $cacheid=yes
10977else case e in #(
10978  e) eval $cacheid=no ;;
10979esac
10980fi
10981rm -f core conftest.err conftest.$ac_objext conftest.beam \
10982    conftest$ac_exeext conftest.$ac_ext ;;
10983esac
10984fi
10985
10986
10987		CFLAGS="$xorg_testset_save_CFLAGS"
10988
10989		eval supported=\$$cacheid
10990		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10991printf "%s\n" "$supported" >&6; }
10992		if test "$supported" = "yes" ; then
10993			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10994			found="yes"
10995		fi
10996	fi
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012xorg_testset_save_CFLAGS="$CFLAGS"
11013
11014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11015	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11016	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11017printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11018if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11019then :
11020  printf %s "(cached) " >&6
11021else case e in #(
11022  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023/* end confdefs.h.  */
11024int i;
11025_ACEOF
11026if ac_fn_c_try_compile "$LINENO"
11027then :
11028  xorg_cv_cc_flag_unknown_warning_option=yes
11029else case e in #(
11030  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11031esac
11032fi
11033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11034esac
11035fi
11036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11037printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11038	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11039	CFLAGS="$xorg_testset_save_CFLAGS"
11040fi
11041
11042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11043	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11044		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11045	fi
11046	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11047	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11048printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11049if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11050then :
11051  printf %s "(cached) " >&6
11052else case e in #(
11053  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054/* end confdefs.h.  */
11055int i;
11056_ACEOF
11057if ac_fn_c_try_compile "$LINENO"
11058then :
11059  xorg_cv_cc_flag_unused_command_line_argument=yes
11060else case e in #(
11061  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11062esac
11063fi
11064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11065esac
11066fi
11067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11068printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11069	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11070	CFLAGS="$xorg_testset_save_CFLAGS"
11071fi
11072
11073found="no"
11074
11075	if test $found = "no" ; then
11076		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11077			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11078		fi
11079
11080		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11081			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11082		fi
11083
11084		CFLAGS="$CFLAGS -Werror"
11085
11086		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11087printf %s "checking if $CC supports -Werror... " >&6; }
11088		cacheid=xorg_cv_cc_flag__Werror
11089		if eval test \${$cacheid+y}
11090then :
11091  printf %s "(cached) " >&6
11092else case e in #(
11093  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094/* end confdefs.h.  */
11095int i;
11096int
11097main (void)
11098{
11099
11100  ;
11101  return 0;
11102}
11103_ACEOF
11104if ac_fn_c_try_link "$LINENO"
11105then :
11106  eval $cacheid=yes
11107else case e in #(
11108  e) eval $cacheid=no ;;
11109esac
11110fi
11111rm -f core conftest.err conftest.$ac_objext conftest.beam \
11112    conftest$ac_exeext conftest.$ac_ext ;;
11113esac
11114fi
11115
11116
11117		CFLAGS="$xorg_testset_save_CFLAGS"
11118
11119		eval supported=\$$cacheid
11120		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11121printf "%s\n" "$supported" >&6; }
11122		if test "$supported" = "yes" ; then
11123			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11124			found="yes"
11125		fi
11126	fi
11127
11128	if test $found = "no" ; then
11129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11131		fi
11132
11133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11135		fi
11136
11137		CFLAGS="$CFLAGS -errwarn"
11138
11139		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11140printf %s "checking if $CC supports -errwarn... " >&6; }
11141		cacheid=xorg_cv_cc_flag__errwarn
11142		if eval test \${$cacheid+y}
11143then :
11144  printf %s "(cached) " >&6
11145else case e in #(
11146  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147/* end confdefs.h.  */
11148int i;
11149int
11150main (void)
11151{
11152
11153  ;
11154  return 0;
11155}
11156_ACEOF
11157if ac_fn_c_try_link "$LINENO"
11158then :
11159  eval $cacheid=yes
11160else case e in #(
11161  e) eval $cacheid=no ;;
11162esac
11163fi
11164rm -f core conftest.err conftest.$ac_objext conftest.beam \
11165    conftest$ac_exeext conftest.$ac_ext ;;
11166esac
11167fi
11168
11169
11170		CFLAGS="$xorg_testset_save_CFLAGS"
11171
11172		eval supported=\$$cacheid
11173		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11174printf "%s\n" "$supported" >&6; }
11175		if test "$supported" = "yes" ; then
11176			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11177			found="yes"
11178		fi
11179	fi
11180
11181
11182
11183# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11184# activate it with -Werror, so we add it here explicitly.
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198xorg_testset_save_CFLAGS="$CFLAGS"
11199
11200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11202	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11203printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11204if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11205then :
11206  printf %s "(cached) " >&6
11207else case e in #(
11208  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209/* end confdefs.h.  */
11210int i;
11211_ACEOF
11212if ac_fn_c_try_compile "$LINENO"
11213then :
11214  xorg_cv_cc_flag_unknown_warning_option=yes
11215else case e in #(
11216  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11217esac
11218fi
11219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11220esac
11221fi
11222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11223printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11225	CFLAGS="$xorg_testset_save_CFLAGS"
11226fi
11227
11228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11231	fi
11232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11233	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11234printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11235if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11236then :
11237  printf %s "(cached) " >&6
11238else case e in #(
11239  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240/* end confdefs.h.  */
11241int i;
11242_ACEOF
11243if ac_fn_c_try_compile "$LINENO"
11244then :
11245  xorg_cv_cc_flag_unused_command_line_argument=yes
11246else case e in #(
11247  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11248esac
11249fi
11250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11251esac
11252fi
11253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11254printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11256	CFLAGS="$xorg_testset_save_CFLAGS"
11257fi
11258
11259found="no"
11260
11261	if test $found = "no" ; then
11262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11264		fi
11265
11266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11268		fi
11269
11270		CFLAGS="$CFLAGS -Werror=attributes"
11271
11272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11273printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11274		cacheid=xorg_cv_cc_flag__Werror_attributes
11275		if eval test \${$cacheid+y}
11276then :
11277  printf %s "(cached) " >&6
11278else case e in #(
11279  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280/* end confdefs.h.  */
11281int i;
11282int
11283main (void)
11284{
11285
11286  ;
11287  return 0;
11288}
11289_ACEOF
11290if ac_fn_c_try_link "$LINENO"
11291then :
11292  eval $cacheid=yes
11293else case e in #(
11294  e) eval $cacheid=no ;;
11295esac
11296fi
11297rm -f core conftest.err conftest.$ac_objext conftest.beam \
11298    conftest$ac_exeext conftest.$ac_ext ;;
11299esac
11300fi
11301
11302
11303		CFLAGS="$xorg_testset_save_CFLAGS"
11304
11305		eval supported=\$$cacheid
11306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11307printf "%s\n" "$supported" >&6; }
11308		if test "$supported" = "yes" ; then
11309			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11310			found="yes"
11311		fi
11312	fi
11313
11314
11315
11316if test "x$STRICT_COMPILE" = "xyes"; then
11317    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11318    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11319fi
11320
11321
11322
11323
11324
11325
11326
11327
11328cat >>confdefs.h <<_ACEOF
11329#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11330_ACEOF
11331
11332	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11333	if test "x$PVM" = "x"; then
11334		PVM="0"
11335	fi
11336
11337printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11338
11339	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11340	if test "x$PVP" = "x"; then
11341		PVP="0"
11342	fi
11343
11344printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11345
11346
11347
11348CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11349mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11350|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11351touch \$(top_srcdir)/ChangeLog; \
11352echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11353
11354
11355
11356
11357macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11358INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11359mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11360|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11361touch \$(top_srcdir)/INSTALL; \
11362echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11363
11364
11365
11366
11367
11368
11369case $host_os in
11370    solaris*)
11371        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11372        # check for a man page file found in later versions that use
11373        # traditional section numbers instead
11374        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11375printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11376if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11377then :
11378  printf %s "(cached) " >&6
11379else case e in #(
11380  e) test "$cross_compiling" = yes &&
11381  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11382if test -r "/usr/share/man/man7/attributes.7"; then
11383  ac_cv_file__usr_share_man_man7_attributes_7=yes
11384else
11385  ac_cv_file__usr_share_man_man7_attributes_7=no
11386fi ;;
11387esac
11388fi
11389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11390printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11391if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11392then :
11393  SYSV_MAN_SECTIONS=false
11394else case e in #(
11395  e) SYSV_MAN_SECTIONS=true ;;
11396esac
11397fi
11398
11399        ;;
11400    *) SYSV_MAN_SECTIONS=false ;;
11401esac
11402
11403if test x$APP_MAN_SUFFIX = x    ; then
11404    APP_MAN_SUFFIX=1
11405fi
11406if test x$APP_MAN_DIR = x    ; then
11407    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11408fi
11409
11410if test x$LIB_MAN_SUFFIX = x    ; then
11411    LIB_MAN_SUFFIX=3
11412fi
11413if test x$LIB_MAN_DIR = x    ; then
11414    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11415fi
11416
11417if test x$FILE_MAN_SUFFIX = x    ; then
11418    case $SYSV_MAN_SECTIONS in
11419	true)				FILE_MAN_SUFFIX=4  ;;
11420	*)				FILE_MAN_SUFFIX=5  ;;
11421    esac
11422fi
11423if test x$FILE_MAN_DIR = x    ; then
11424    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11425fi
11426
11427if test x$MISC_MAN_SUFFIX = x    ; then
11428    case $SYSV_MAN_SECTIONS in
11429	true)				MISC_MAN_SUFFIX=5  ;;
11430	*)				MISC_MAN_SUFFIX=7  ;;
11431    esac
11432fi
11433if test x$MISC_MAN_DIR = x    ; then
11434    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11435fi
11436
11437if test x$DRIVER_MAN_SUFFIX = x    ; then
11438    case $SYSV_MAN_SECTIONS in
11439	true)				DRIVER_MAN_SUFFIX=7  ;;
11440	*)				DRIVER_MAN_SUFFIX=4  ;;
11441    esac
11442fi
11443if test x$DRIVER_MAN_DIR = x    ; then
11444    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11445fi
11446
11447if test x$ADMIN_MAN_SUFFIX = x    ; then
11448    case $SYSV_MAN_SECTIONS in
11449	true)				ADMIN_MAN_SUFFIX=1m ;;
11450	*)				ADMIN_MAN_SUFFIX=8  ;;
11451    esac
11452fi
11453if test x$ADMIN_MAN_DIR = x    ; then
11454    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11455fi
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471XORG_MAN_PAGE="X Version 11"
11472
11473MAN_SUBSTS="\
11474	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11475	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11476	-e 's|__xservername__|Xorg|g' \
11477	-e 's|__xconfigfile__|xorg.conf|g' \
11478	-e 's|__projectroot__|\$(prefix)|g' \
11479	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11480	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11481	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11482	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11483	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11484	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11485	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11486
11487
11488
11489# Check whether --enable-silent-rules was given.
11490if test ${enable_silent_rules+y}
11491then :
11492  enableval=$enable_silent_rules;
11493fi
11494
11495case $enable_silent_rules in # (((
11496  yes) AM_DEFAULT_VERBOSITY=0;;
11497   no) AM_DEFAULT_VERBOSITY=1;;
11498    *) AM_DEFAULT_VERBOSITY=0;;
11499esac
11500am_make=${MAKE-make}
11501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11502printf %s "checking whether $am_make supports nested variables... " >&6; }
11503if test ${am_cv_make_support_nested_variables+y}
11504then :
11505  printf %s "(cached) " >&6
11506else case e in #(
11507  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11508BAR0=false
11509BAR1=true
11510V=1
11511am__doit:
11512	@$(TRUE)
11513.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11514  am_cv_make_support_nested_variables=yes
11515else
11516  am_cv_make_support_nested_variables=no
11517fi ;;
11518esac
11519fi
11520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11521printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11522if test $am_cv_make_support_nested_variables = yes; then
11523    AM_V='$(V)'
11524  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11525else
11526  AM_V=$AM_DEFAULT_VERBOSITY
11527  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11528fi
11529AM_BACKSLASH='\'
11530
11531
11532
11533
11534ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
11535if test "x$ac_cv_func_strcasecmp" = xyes
11536then :
11537  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
11538
11539fi
11540
11541
11542# xkbvleds checks
11543
11544pkg_failed=no
11545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBVLEDS" >&5
11546printf %s "checking for XKBVLEDS... " >&6; }
11547
11548if test -n "$XKBVLEDS_CFLAGS"; then
11549    pkg_cv_XKBVLEDS_CFLAGS="$XKBVLEDS_CFLAGS"
11550 elif test -n "$PKG_CONFIG"; then
11551    if test -n "$PKG_CONFIG" && \
11552    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
11553  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
11554  ac_status=$?
11555  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11556  test $ac_status = 0; }; then
11557  pkg_cv_XKBVLEDS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
11558		      test "x$?" != "x0" && pkg_failed=yes
11559else
11560  pkg_failed=yes
11561fi
11562 else
11563    pkg_failed=untried
11564fi
11565if test -n "$XKBVLEDS_LIBS"; then
11566    pkg_cv_XKBVLEDS_LIBS="$XKBVLEDS_LIBS"
11567 elif test -n "$PKG_CONFIG"; then
11568    if test -n "$PKG_CONFIG" && \
11569    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
11570  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
11571  ac_status=$?
11572  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11573  test $ac_status = 0; }; then
11574  pkg_cv_XKBVLEDS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
11575		      test "x$?" != "x0" && pkg_failed=yes
11576else
11577  pkg_failed=yes
11578fi
11579 else
11580    pkg_failed=untried
11581fi
11582
11583
11584
11585if test $pkg_failed = yes; then
11586   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587printf "%s\n" "no" >&6; }
11588
11589if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11590        _pkg_short_errors_supported=yes
11591else
11592        _pkg_short_errors_supported=no
11593fi
11594        if test $_pkg_short_errors_supported = yes; then
11595	        XKBVLEDS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
11596        else
11597	        XKBVLEDS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
11598        fi
11599	# Put the nasty error message in config.log where it belongs
11600	echo "$XKBVLEDS_PKG_ERRORS" >&5
11601
11602	as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt x11) were not met:
11603
11604$XKBVLEDS_PKG_ERRORS
11605
11606Consider adjusting the PKG_CONFIG_PATH environment variable if you
11607installed software in a non-standard prefix.
11608
11609Alternatively, you may set the environment variables XKBVLEDS_CFLAGS
11610and XKBVLEDS_LIBS to avoid the need to call pkg-config.
11611See the pkg-config man page for more details." "$LINENO" 5
11612elif test $pkg_failed = untried; then
11613     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614printf "%s\n" "no" >&6; }
11615	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11616printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11617as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11618is in your PATH or set the PKG_CONFIG environment variable to the full
11619path to pkg-config.
11620
11621Alternatively, you may set the environment variables XKBVLEDS_CFLAGS
11622and XKBVLEDS_LIBS to avoid the need to call pkg-config.
11623See the pkg-config man page for more details.
11624
11625To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11626See 'config.log' for more details" "$LINENO" 5; }
11627else
11628	XKBVLEDS_CFLAGS=$pkg_cv_XKBVLEDS_CFLAGS
11629	XKBVLEDS_LIBS=$pkg_cv_XKBVLEDS_LIBS
11630        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11631printf "%s\n" "yes" >&6; }
11632
11633fi
11634
11635# xkbbell checks
11636
11637pkg_failed=no
11638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBBELL" >&5
11639printf %s "checking for XKBBELL... " >&6; }
11640
11641if test -n "$XKBBELL_CFLAGS"; then
11642    pkg_cv_XKBBELL_CFLAGS="$XKBBELL_CFLAGS"
11643 elif test -n "$PKG_CONFIG"; then
11644    if test -n "$PKG_CONFIG" && \
11645    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto inputproto x11\""; } >&5
11646  ($PKG_CONFIG --exists --print-errors "xproto inputproto x11") 2>&5
11647  ac_status=$?
11648  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11649  test $ac_status = 0; }; then
11650  pkg_cv_XKBBELL_CFLAGS=`$PKG_CONFIG --cflags "xproto inputproto x11" 2>/dev/null`
11651		      test "x$?" != "x0" && pkg_failed=yes
11652else
11653  pkg_failed=yes
11654fi
11655 else
11656    pkg_failed=untried
11657fi
11658if test -n "$XKBBELL_LIBS"; then
11659    pkg_cv_XKBBELL_LIBS="$XKBBELL_LIBS"
11660 elif test -n "$PKG_CONFIG"; then
11661    if test -n "$PKG_CONFIG" && \
11662    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto inputproto x11\""; } >&5
11663  ($PKG_CONFIG --exists --print-errors "xproto inputproto x11") 2>&5
11664  ac_status=$?
11665  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11666  test $ac_status = 0; }; then
11667  pkg_cv_XKBBELL_LIBS=`$PKG_CONFIG --libs "xproto inputproto x11" 2>/dev/null`
11668		      test "x$?" != "x0" && pkg_failed=yes
11669else
11670  pkg_failed=yes
11671fi
11672 else
11673    pkg_failed=untried
11674fi
11675
11676
11677
11678if test $pkg_failed = yes; then
11679   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680printf "%s\n" "no" >&6; }
11681
11682if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11683        _pkg_short_errors_supported=yes
11684else
11685        _pkg_short_errors_supported=no
11686fi
11687        if test $_pkg_short_errors_supported = yes; then
11688	        XKBBELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto inputproto x11" 2>&1`
11689        else
11690	        XKBBELL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto inputproto x11" 2>&1`
11691        fi
11692	# Put the nasty error message in config.log where it belongs
11693	echo "$XKBBELL_PKG_ERRORS" >&5
11694
11695	as_fn_error $? "Package requirements (xproto inputproto x11) were not met:
11696
11697$XKBBELL_PKG_ERRORS
11698
11699Consider adjusting the PKG_CONFIG_PATH environment variable if you
11700installed software in a non-standard prefix.
11701
11702Alternatively, you may set the environment variables XKBBELL_CFLAGS
11703and XKBBELL_LIBS to avoid the need to call pkg-config.
11704See the pkg-config man page for more details." "$LINENO" 5
11705elif test $pkg_failed = untried; then
11706     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707printf "%s\n" "no" >&6; }
11708	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11709printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11710as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11711is in your PATH or set the PKG_CONFIG environment variable to the full
11712path to pkg-config.
11713
11714Alternatively, you may set the environment variables XKBBELL_CFLAGS
11715and XKBBELL_LIBS to avoid the need to call pkg-config.
11716See the pkg-config man page for more details.
11717
11718To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11719See 'config.log' for more details" "$LINENO" 5; }
11720else
11721	XKBBELL_CFLAGS=$pkg_cv_XKBBELL_CFLAGS
11722	XKBBELL_LIBS=$pkg_cv_XKBBELL_LIBS
11723        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724printf "%s\n" "yes" >&6; }
11725
11726fi
11727
11728# xkbwatch checks
11729
11730pkg_failed=no
11731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBWATCH" >&5
11732printf %s "checking for XKBWATCH... " >&6; }
11733
11734if test -n "$XKBWATCH_CFLAGS"; then
11735    pkg_cv_XKBWATCH_CFLAGS="$XKBWATCH_CFLAGS"
11736 elif test -n "$PKG_CONFIG"; then
11737    if test -n "$PKG_CONFIG" && \
11738    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
11739  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
11740  ac_status=$?
11741  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11742  test $ac_status = 0; }; then
11743  pkg_cv_XKBWATCH_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
11744		      test "x$?" != "x0" && pkg_failed=yes
11745else
11746  pkg_failed=yes
11747fi
11748 else
11749    pkg_failed=untried
11750fi
11751if test -n "$XKBWATCH_LIBS"; then
11752    pkg_cv_XKBWATCH_LIBS="$XKBWATCH_LIBS"
11753 elif test -n "$PKG_CONFIG"; then
11754    if test -n "$PKG_CONFIG" && \
11755    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
11756  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
11757  ac_status=$?
11758  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11759  test $ac_status = 0; }; then
11760  pkg_cv_XKBWATCH_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
11761		      test "x$?" != "x0" && pkg_failed=yes
11762else
11763  pkg_failed=yes
11764fi
11765 else
11766    pkg_failed=untried
11767fi
11768
11769
11770
11771if test $pkg_failed = yes; then
11772   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773printf "%s\n" "no" >&6; }
11774
11775if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11776        _pkg_short_errors_supported=yes
11777else
11778        _pkg_short_errors_supported=no
11779fi
11780        if test $_pkg_short_errors_supported = yes; then
11781	        XKBWATCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
11782        else
11783	        XKBWATCH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
11784        fi
11785	# Put the nasty error message in config.log where it belongs
11786	echo "$XKBWATCH_PKG_ERRORS" >&5
11787
11788	as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt x11) were not met:
11789
11790$XKBWATCH_PKG_ERRORS
11791
11792Consider adjusting the PKG_CONFIG_PATH environment variable if you
11793installed software in a non-standard prefix.
11794
11795Alternatively, you may set the environment variables XKBWATCH_CFLAGS
11796and XKBWATCH_LIBS to avoid the need to call pkg-config.
11797See the pkg-config man page for more details." "$LINENO" 5
11798elif test $pkg_failed = untried; then
11799     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800printf "%s\n" "no" >&6; }
11801	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11802printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11803as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11804is in your PATH or set the PKG_CONFIG environment variable to the full
11805path to pkg-config.
11806
11807Alternatively, you may set the environment variables XKBWATCH_CFLAGS
11808and XKBWATCH_LIBS to avoid the need to call pkg-config.
11809See the pkg-config man page for more details.
11810
11811To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11812See 'config.log' for more details" "$LINENO" 5; }
11813else
11814	XKBWATCH_CFLAGS=$pkg_cv_XKBWATCH_CFLAGS
11815	XKBWATCH_LIBS=$pkg_cv_XKBWATCH_LIBS
11816        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11817printf "%s\n" "yes" >&6; }
11818
11819fi
11820
11821ac_config_files="$ac_config_files Makefile man/Makefile"
11822
11823cat >confcache <<\_ACEOF
11824# This file is a shell script that caches the results of configure
11825# tests run on this system so they can be shared between configure
11826# scripts and configure runs, see configure's option --config-cache.
11827# It is not useful on other systems.  If it contains results you don't
11828# want to keep, you may remove or edit it.
11829#
11830# config.status only pays attention to the cache file if you give it
11831# the --recheck option to rerun configure.
11832#
11833# 'ac_cv_env_foo' variables (set or unset) will be overridden when
11834# loading this file, other *unset* 'ac_cv_foo' will be assigned the
11835# following values.
11836
11837_ACEOF
11838
11839# The following way of writing the cache mishandles newlines in values,
11840# but we know of no workaround that is simple, portable, and efficient.
11841# So, we kill variables containing newlines.
11842# Ultrix sh set writes to stderr and can't be redirected directly,
11843# and sets the high bit in the cache file unless we assign to the vars.
11844(
11845  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11846    eval ac_val=\$$ac_var
11847    case $ac_val in #(
11848    *${as_nl}*)
11849      case $ac_var in #(
11850      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11851printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11852      esac
11853      case $ac_var in #(
11854      _ | IFS | as_nl) ;; #(
11855      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11856      *) { eval $ac_var=; unset $ac_var;} ;;
11857      esac ;;
11858    esac
11859  done
11860
11861  (set) 2>&1 |
11862    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11863    *${as_nl}ac_space=\ *)
11864      # 'set' does not quote correctly, so add quotes: double-quote
11865      # substitution turns \\\\ into \\, and sed turns \\ into \.
11866      sed -n \
11867	"s/'/'\\\\''/g;
11868	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11869      ;; #(
11870    *)
11871      # 'set' quotes correctly as required by POSIX, so do not add quotes.
11872      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11873      ;;
11874    esac |
11875    sort
11876) |
11877  sed '
11878     /^ac_cv_env_/b end
11879     t clear
11880     :clear
11881     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11882     t end
11883     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11884     :end' >>confcache
11885if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11886  if test -w "$cache_file"; then
11887    if test "x$cache_file" != "x/dev/null"; then
11888      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11889printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11890      if test ! -f "$cache_file" || test -h "$cache_file"; then
11891	cat confcache >"$cache_file"
11892      else
11893        case $cache_file in #(
11894        */* | ?:*)
11895	  mv -f confcache "$cache_file"$$ &&
11896	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11897        *)
11898	  mv -f confcache "$cache_file" ;;
11899	esac
11900      fi
11901    fi
11902  else
11903    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11904printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11905  fi
11906fi
11907rm -f confcache
11908
11909test "x$prefix" = xNONE && prefix=$ac_default_prefix
11910# Let make expand exec_prefix.
11911test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11912
11913DEFS=-DHAVE_CONFIG_H
11914
11915ac_libobjs=
11916ac_ltlibobjs=
11917U=
11918for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11919  # 1. Remove the extension, and $U if already installed.
11920  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11921  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11922  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11923  #    will be set to the directory where LIBOBJS objects are built.
11924  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11925  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11926done
11927LIBOBJS=$ac_libobjs
11928
11929LTLIBOBJS=$ac_ltlibobjs
11930
11931
11932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11933printf %s "checking that generated files are newer than configure... " >&6; }
11934   if test -n "$am_sleep_pid"; then
11935     # Hide warnings about reused PIDs.
11936     wait $am_sleep_pid 2>/dev/null
11937   fi
11938   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11939printf "%s\n" "done" >&6; }
11940 if test -n "$EXEEXT"; then
11941  am__EXEEXT_TRUE=
11942  am__EXEEXT_FALSE='#'
11943else
11944  am__EXEEXT_TRUE='#'
11945  am__EXEEXT_FALSE=
11946fi
11947
11948if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11949  as_fn_error $? "conditional \"AMDEP\" was never defined.
11950Usually this means the macro was only invoked conditionally." "$LINENO" 5
11951fi
11952if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11953  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11954Usually this means the macro was only invoked conditionally." "$LINENO" 5
11955fi
11956
11957: "${CONFIG_STATUS=./config.status}"
11958ac_write_fail=0
11959ac_clean_files_save=$ac_clean_files
11960ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11962printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11963as_write_fail=0
11964cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11965#! $SHELL
11966# Generated by $as_me.
11967# Run this file to recreate the current configuration.
11968# Compiler output produced by configure, useful for debugging
11969# configure, is in config.log if it exists.
11970
11971debug=false
11972ac_cs_recheck=false
11973ac_cs_silent=false
11974
11975SHELL=\${CONFIG_SHELL-$SHELL}
11976export SHELL
11977_ASEOF
11978cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11979## -------------------- ##
11980## M4sh Initialization. ##
11981## -------------------- ##
11982
11983# Be more Bourne compatible
11984DUALCASE=1; export DUALCASE # for MKS sh
11985if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11986then :
11987  emulate sh
11988  NULLCMD=:
11989  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11990  # is contrary to our usage.  Disable this feature.
11991  alias -g '${1+"$@"}'='"$@"'
11992  setopt NO_GLOB_SUBST
11993else case e in #(
11994  e) case `(set -o) 2>/dev/null` in #(
11995  *posix*) :
11996    set -o posix ;; #(
11997  *) :
11998     ;;
11999esac ;;
12000esac
12001fi
12002
12003
12004
12005# Reset variables that may have inherited troublesome values from
12006# the environment.
12007
12008# IFS needs to be set, to space, tab, and newline, in precisely that order.
12009# (If _AS_PATH_WALK were called with IFS unset, it would have the
12010# side effect of setting IFS to empty, thus disabling word splitting.)
12011# Quoting is to prevent editors from complaining about space-tab.
12012as_nl='
12013'
12014export as_nl
12015IFS=" ""	$as_nl"
12016
12017PS1='$ '
12018PS2='> '
12019PS4='+ '
12020
12021# Ensure predictable behavior from utilities with locale-dependent output.
12022LC_ALL=C
12023export LC_ALL
12024LANGUAGE=C
12025export LANGUAGE
12026
12027# We cannot yet rely on "unset" to work, but we need these variables
12028# to be unset--not just set to an empty or harmless value--now, to
12029# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12030# also avoids known problems related to "unset" and subshell syntax
12031# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12032for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12033do eval test \${$as_var+y} \
12034  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12035done
12036
12037# Ensure that fds 0, 1, and 2 are open.
12038if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12039if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12040if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12041
12042# The user is always right.
12043if ${PATH_SEPARATOR+false} :; then
12044  PATH_SEPARATOR=:
12045  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12046    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12047      PATH_SEPARATOR=';'
12048  }
12049fi
12050
12051
12052# Find who we are.  Look in the path if we contain no directory separator.
12053as_myself=
12054case $0 in #((
12055  *[\\/]* ) as_myself=$0 ;;
12056  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057for as_dir in $PATH
12058do
12059  IFS=$as_save_IFS
12060  case $as_dir in #(((
12061    '') as_dir=./ ;;
12062    */) ;;
12063    *) as_dir=$as_dir/ ;;
12064  esac
12065    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12066  done
12067IFS=$as_save_IFS
12068
12069     ;;
12070esac
12071# We did not find ourselves, most probably we were run as 'sh COMMAND'
12072# in which case we are not to be found in the path.
12073if test "x$as_myself" = x; then
12074  as_myself=$0
12075fi
12076if test ! -f "$as_myself"; then
12077  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12078  exit 1
12079fi
12080
12081
12082
12083# as_fn_error STATUS ERROR [LINENO LOG_FD]
12084# ----------------------------------------
12085# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12086# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12087# script with STATUS, using 1 if that was 0.
12088as_fn_error ()
12089{
12090  as_status=$1; test $as_status -eq 0 && as_status=1
12091  if test "$4"; then
12092    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12093    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12094  fi
12095  printf "%s\n" "$as_me: error: $2" >&2
12096  as_fn_exit $as_status
12097} # as_fn_error
12098
12099
12100# as_fn_set_status STATUS
12101# -----------------------
12102# Set $? to STATUS, without forking.
12103as_fn_set_status ()
12104{
12105  return $1
12106} # as_fn_set_status
12107
12108# as_fn_exit STATUS
12109# -----------------
12110# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12111as_fn_exit ()
12112{
12113  set +e
12114  as_fn_set_status $1
12115  exit $1
12116} # as_fn_exit
12117
12118# as_fn_unset VAR
12119# ---------------
12120# Portably unset VAR.
12121as_fn_unset ()
12122{
12123  { eval $1=; unset $1;}
12124}
12125as_unset=as_fn_unset
12126
12127# as_fn_append VAR VALUE
12128# ----------------------
12129# Append the text in VALUE to the end of the definition contained in VAR. Take
12130# advantage of any shell optimizations that allow amortized linear growth over
12131# repeated appends, instead of the typical quadratic growth present in naive
12132# implementations.
12133if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12134then :
12135  eval 'as_fn_append ()
12136  {
12137    eval $1+=\$2
12138  }'
12139else case e in #(
12140  e) as_fn_append ()
12141  {
12142    eval $1=\$$1\$2
12143  } ;;
12144esac
12145fi # as_fn_append
12146
12147# as_fn_arith ARG...
12148# ------------------
12149# Perform arithmetic evaluation on the ARGs, and store the result in the
12150# global $as_val. Take advantage of shells that can avoid forks. The arguments
12151# must be portable across $(()) and expr.
12152if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12153then :
12154  eval 'as_fn_arith ()
12155  {
12156    as_val=$(( $* ))
12157  }'
12158else case e in #(
12159  e) as_fn_arith ()
12160  {
12161    as_val=`expr "$@" || test $? -eq 1`
12162  } ;;
12163esac
12164fi # as_fn_arith
12165
12166
12167if expr a : '\(a\)' >/dev/null 2>&1 &&
12168   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12169  as_expr=expr
12170else
12171  as_expr=false
12172fi
12173
12174if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12175  as_basename=basename
12176else
12177  as_basename=false
12178fi
12179
12180if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12181  as_dirname=dirname
12182else
12183  as_dirname=false
12184fi
12185
12186as_me=`$as_basename -- "$0" ||
12187$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12188	 X"$0" : 'X\(//\)$' \| \
12189	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12190printf "%s\n" X/"$0" |
12191    sed '/^.*\/\([^/][^/]*\)\/*$/{
12192	    s//\1/
12193	    q
12194	  }
12195	  /^X\/\(\/\/\)$/{
12196	    s//\1/
12197	    q
12198	  }
12199	  /^X\/\(\/\).*/{
12200	    s//\1/
12201	    q
12202	  }
12203	  s/.*/./; q'`
12204
12205# Avoid depending upon Character Ranges.
12206as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12207as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12208as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12209as_cr_digits='0123456789'
12210as_cr_alnum=$as_cr_Letters$as_cr_digits
12211
12212
12213# Determine whether it's possible to make 'echo' print without a newline.
12214# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12215# for compatibility with existing Makefiles.
12216ECHO_C= ECHO_N= ECHO_T=
12217case `echo -n x` in #(((((
12218-n*)
12219  case `echo 'xy\c'` in
12220  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12221  xy)  ECHO_C='\c';;
12222  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12223       ECHO_T='	';;
12224  esac;;
12225*)
12226  ECHO_N='-n';;
12227esac
12228
12229# For backward compatibility with old third-party macros, we provide
12230# the shell variables $as_echo and $as_echo_n.  New code should use
12231# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12232as_echo='printf %s\n'
12233as_echo_n='printf %s'
12234
12235rm -f conf$$ conf$$.exe conf$$.file
12236if test -d conf$$.dir; then
12237  rm -f conf$$.dir/conf$$.file
12238else
12239  rm -f conf$$.dir
12240  mkdir conf$$.dir 2>/dev/null
12241fi
12242if (echo >conf$$.file) 2>/dev/null; then
12243  if ln -s conf$$.file conf$$ 2>/dev/null; then
12244    as_ln_s='ln -s'
12245    # ... but there are two gotchas:
12246    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12247    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12248    # In both cases, we have to default to 'cp -pR'.
12249    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12250      as_ln_s='cp -pR'
12251  elif ln conf$$.file conf$$ 2>/dev/null; then
12252    as_ln_s=ln
12253  else
12254    as_ln_s='cp -pR'
12255  fi
12256else
12257  as_ln_s='cp -pR'
12258fi
12259rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12260rmdir conf$$.dir 2>/dev/null
12261
12262
12263# as_fn_mkdir_p
12264# -------------
12265# Create "$as_dir" as a directory, including parents if necessary.
12266as_fn_mkdir_p ()
12267{
12268
12269  case $as_dir in #(
12270  -*) as_dir=./$as_dir;;
12271  esac
12272  test -d "$as_dir" || eval $as_mkdir_p || {
12273    as_dirs=
12274    while :; do
12275      case $as_dir in #(
12276      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12277      *) as_qdir=$as_dir;;
12278      esac
12279      as_dirs="'$as_qdir' $as_dirs"
12280      as_dir=`$as_dirname -- "$as_dir" ||
12281$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12282	 X"$as_dir" : 'X\(//\)[^/]' \| \
12283	 X"$as_dir" : 'X\(//\)$' \| \
12284	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12285printf "%s\n" X"$as_dir" |
12286    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12287	    s//\1/
12288	    q
12289	  }
12290	  /^X\(\/\/\)[^/].*/{
12291	    s//\1/
12292	    q
12293	  }
12294	  /^X\(\/\/\)$/{
12295	    s//\1/
12296	    q
12297	  }
12298	  /^X\(\/\).*/{
12299	    s//\1/
12300	    q
12301	  }
12302	  s/.*/./; q'`
12303      test -d "$as_dir" && break
12304    done
12305    test -z "$as_dirs" || eval "mkdir $as_dirs"
12306  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12307
12308
12309} # as_fn_mkdir_p
12310if mkdir -p . 2>/dev/null; then
12311  as_mkdir_p='mkdir -p "$as_dir"'
12312else
12313  test -d ./-p && rmdir ./-p
12314  as_mkdir_p=false
12315fi
12316
12317
12318# as_fn_executable_p FILE
12319# -----------------------
12320# Test if FILE is an executable regular file.
12321as_fn_executable_p ()
12322{
12323  test -f "$1" && test -x "$1"
12324} # as_fn_executable_p
12325as_test_x='test -x'
12326as_executable_p=as_fn_executable_p
12327
12328# Sed expression to map a string onto a valid CPP name.
12329as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12330as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12331
12332# Sed expression to map a string onto a valid variable name.
12333as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12334as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12335
12336
12337exec 6>&1
12338## ----------------------------------- ##
12339## Main body of $CONFIG_STATUS script. ##
12340## ----------------------------------- ##
12341_ASEOF
12342test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12343
12344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12345# Save the log message, to keep $0 and so on meaningful, and to
12346# report actual input values of CONFIG_FILES etc. instead of their
12347# values after options handling.
12348ac_log="
12349This file was extended by xkbutils $as_me 1.0.6, which was
12350generated by GNU Autoconf 2.72.  Invocation command line was
12351
12352  CONFIG_FILES    = $CONFIG_FILES
12353  CONFIG_HEADERS  = $CONFIG_HEADERS
12354  CONFIG_LINKS    = $CONFIG_LINKS
12355  CONFIG_COMMANDS = $CONFIG_COMMANDS
12356  $ $0 $@
12357
12358on `(hostname || uname -n) 2>/dev/null | sed 1q`
12359"
12360
12361_ACEOF
12362
12363case $ac_config_files in *"
12364"*) set x $ac_config_files; shift; ac_config_files=$*;;
12365esac
12366
12367case $ac_config_headers in *"
12368"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12369esac
12370
12371
12372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12373# Files that config.status was made for.
12374config_files="$ac_config_files"
12375config_headers="$ac_config_headers"
12376config_commands="$ac_config_commands"
12377
12378_ACEOF
12379
12380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12381ac_cs_usage="\
12382'$as_me' instantiates files and other configuration actions
12383from templates according to the current configuration.  Unless the files
12384and actions are specified as TAGs, all are instantiated by default.
12385
12386Usage: $0 [OPTION]... [TAG]...
12387
12388  -h, --help       print this help, then exit
12389  -V, --version    print version number and configuration settings, then exit
12390      --config     print configuration, then exit
12391  -q, --quiet, --silent
12392                   do not print progress messages
12393  -d, --debug      don't remove temporary files
12394      --recheck    update $as_me by reconfiguring in the same conditions
12395      --file=FILE[:TEMPLATE]
12396                   instantiate the configuration file FILE
12397      --header=FILE[:TEMPLATE]
12398                   instantiate the configuration header FILE
12399
12400Configuration files:
12401$config_files
12402
12403Configuration headers:
12404$config_headers
12405
12406Configuration commands:
12407$config_commands
12408
12409Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbutils/issues>."
12410
12411_ACEOF
12412ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12413ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12415ac_cs_config='$ac_cs_config_escaped'
12416ac_cs_version="\\
12417xkbutils config.status 1.0.6
12418configured by $0, generated by GNU Autoconf 2.72,
12419  with options \\"\$ac_cs_config\\"
12420
12421Copyright (C) 2023 Free Software Foundation, Inc.
12422This config.status script is free software; the Free Software Foundation
12423gives unlimited permission to copy, distribute and modify it."
12424
12425ac_pwd='$ac_pwd'
12426srcdir='$srcdir'
12427INSTALL='$INSTALL'
12428MKDIR_P='$MKDIR_P'
12429AWK='$AWK'
12430test -n "\$AWK" || AWK=awk
12431_ACEOF
12432
12433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12434# The default lists apply if the user does not specify any file.
12435ac_need_defaults=:
12436while test $# != 0
12437do
12438  case $1 in
12439  --*=?*)
12440    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12441    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12442    ac_shift=:
12443    ;;
12444  --*=)
12445    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12446    ac_optarg=
12447    ac_shift=:
12448    ;;
12449  *)
12450    ac_option=$1
12451    ac_optarg=$2
12452    ac_shift=shift
12453    ;;
12454  esac
12455
12456  case $ac_option in
12457  # Handling of the options.
12458  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12459    ac_cs_recheck=: ;;
12460  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12461    printf "%s\n" "$ac_cs_version"; exit ;;
12462  --config | --confi | --conf | --con | --co | --c )
12463    printf "%s\n" "$ac_cs_config"; exit ;;
12464  --debug | --debu | --deb | --de | --d | -d )
12465    debug=: ;;
12466  --file | --fil | --fi | --f )
12467    $ac_shift
12468    case $ac_optarg in
12469    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12470    '') as_fn_error $? "missing file argument" ;;
12471    esac
12472    as_fn_append CONFIG_FILES " '$ac_optarg'"
12473    ac_need_defaults=false;;
12474  --header | --heade | --head | --hea )
12475    $ac_shift
12476    case $ac_optarg in
12477    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12478    esac
12479    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12480    ac_need_defaults=false;;
12481  --he | --h)
12482    # Conflict between --help and --header
12483    as_fn_error $? "ambiguous option: '$1'
12484Try '$0 --help' for more information.";;
12485  --help | --hel | -h )
12486    printf "%s\n" "$ac_cs_usage"; exit ;;
12487  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12488  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12489    ac_cs_silent=: ;;
12490
12491  # This is an error.
12492  -*) as_fn_error $? "unrecognized option: '$1'
12493Try '$0 --help' for more information." ;;
12494
12495  *) as_fn_append ac_config_targets " $1"
12496     ac_need_defaults=false ;;
12497
12498  esac
12499  shift
12500done
12501
12502ac_configure_extra_args=
12503
12504if $ac_cs_silent; then
12505  exec 6>/dev/null
12506  ac_configure_extra_args="$ac_configure_extra_args --silent"
12507fi
12508
12509_ACEOF
12510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12511if \$ac_cs_recheck; then
12512  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12513  shift
12514  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12515  CONFIG_SHELL='$SHELL'
12516  export CONFIG_SHELL
12517  exec "\$@"
12518fi
12519
12520_ACEOF
12521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12522exec 5>>config.log
12523{
12524  echo
12525  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12526## Running $as_me. ##
12527_ASBOX
12528  printf "%s\n" "$ac_log"
12529} >&5
12530
12531_ACEOF
12532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12533#
12534# INIT-COMMANDS
12535#
12536AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12537
12538_ACEOF
12539
12540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12541
12542# Handling of arguments.
12543for ac_config_target in $ac_config_targets
12544do
12545  case $ac_config_target in
12546    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12547    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12548    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12549    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12550
12551  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12552  esac
12553done
12554
12555
12556# If the user did not use the arguments to specify the items to instantiate,
12557# then the envvar interface is used.  Set only those that are not.
12558# We use the long form for the default assignment because of an extremely
12559# bizarre bug on SunOS 4.1.3.
12560if $ac_need_defaults; then
12561  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12562  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12563  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12564fi
12565
12566# Have a temporary directory for convenience.  Make it in the build tree
12567# simply because there is no reason against having it here, and in addition,
12568# creating and moving files from /tmp can sometimes cause problems.
12569# Hook for its removal unless debugging.
12570# Note that there is a small window in which the directory will not be cleaned:
12571# after its creation but before its name has been assigned to '$tmp'.
12572$debug ||
12573{
12574  tmp= ac_tmp=
12575  trap 'exit_status=$?
12576  : "${ac_tmp:=$tmp}"
12577  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12578' 0
12579  trap 'as_fn_exit 1' 1 2 13 15
12580}
12581# Create a (secure) tmp directory for tmp files.
12582
12583{
12584  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12585  test -d "$tmp"
12586}  ||
12587{
12588  tmp=./conf$$-$RANDOM
12589  (umask 077 && mkdir "$tmp")
12590} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12591ac_tmp=$tmp
12592
12593# Set up the scripts for CONFIG_FILES section.
12594# No need to generate them if there are no CONFIG_FILES.
12595# This happens for instance with './config.status config.h'.
12596if test -n "$CONFIG_FILES"; then
12597
12598
12599ac_cr=`echo X | tr X '\015'`
12600# On cygwin, bash can eat \r inside `` if the user requested igncr.
12601# But we know of no other shell where ac_cr would be empty at this
12602# point, so we can use a bashism as a fallback.
12603if test "x$ac_cr" = x; then
12604  eval ac_cr=\$\'\\r\'
12605fi
12606ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12607if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12608  ac_cs_awk_cr='\\r'
12609else
12610  ac_cs_awk_cr=$ac_cr
12611fi
12612
12613echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12614_ACEOF
12615
12616
12617{
12618  echo "cat >conf$$subs.awk <<_ACEOF" &&
12619  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12620  echo "_ACEOF"
12621} >conf$$subs.sh ||
12622  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12623ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12624ac_delim='%!_!# '
12625for ac_last_try in false false false false false :; do
12626  . ./conf$$subs.sh ||
12627    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12628
12629  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12630  if test $ac_delim_n = $ac_delim_num; then
12631    break
12632  elif $ac_last_try; then
12633    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12634  else
12635    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12636  fi
12637done
12638rm -f conf$$subs.sh
12639
12640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12641cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12642_ACEOF
12643sed -n '
12644h
12645s/^/S["/; s/!.*/"]=/
12646p
12647g
12648s/^[^!]*!//
12649:repl
12650t repl
12651s/'"$ac_delim"'$//
12652t delim
12653:nl
12654h
12655s/\(.\{148\}\)..*/\1/
12656t more1
12657s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12658p
12659n
12660b repl
12661:more1
12662s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12663p
12664g
12665s/.\{148\}//
12666t nl
12667:delim
12668h
12669s/\(.\{148\}\)..*/\1/
12670t more2
12671s/["\\]/\\&/g; s/^/"/; s/$/"/
12672p
12673b
12674:more2
12675s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12676p
12677g
12678s/.\{148\}//
12679t delim
12680' <conf$$subs.awk | sed '
12681/^[^""]/{
12682  N
12683  s/\n//
12684}
12685' >>$CONFIG_STATUS || ac_write_fail=1
12686rm -f conf$$subs.awk
12687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12688_ACAWK
12689cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12690  for (key in S) S_is_set[key] = 1
12691  FS = ""
12692
12693}
12694{
12695  line = $ 0
12696  nfields = split(line, field, "@")
12697  substed = 0
12698  len = length(field[1])
12699  for (i = 2; i < nfields; i++) {
12700    key = field[i]
12701    keylen = length(key)
12702    if (S_is_set[key]) {
12703      value = S[key]
12704      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12705      len += length(value) + length(field[++i])
12706      substed = 1
12707    } else
12708      len += 1 + keylen
12709  }
12710
12711  print line
12712}
12713
12714_ACAWK
12715_ACEOF
12716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12717if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12718  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12719else
12720  cat
12721fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12722  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12723_ACEOF
12724
12725# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12726# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12727# trailing colons and then remove the whole line if VPATH becomes empty
12728# (actually we leave an empty line to preserve line numbers).
12729if test "x$srcdir" = x.; then
12730  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12731h
12732s///
12733s/^/:/
12734s/[	 ]*$/:/
12735s/:\$(srcdir):/:/g
12736s/:\${srcdir}:/:/g
12737s/:@srcdir@:/:/g
12738s/^:*//
12739s/:*$//
12740x
12741s/\(=[	 ]*\).*/\1/
12742G
12743s/\n//
12744s/^[^=]*=[	 ]*$//
12745}'
12746fi
12747
12748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12749fi # test -n "$CONFIG_FILES"
12750
12751# Set up the scripts for CONFIG_HEADERS section.
12752# No need to generate them if there are no CONFIG_HEADERS.
12753# This happens for instance with './config.status Makefile'.
12754if test -n "$CONFIG_HEADERS"; then
12755cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12756BEGIN {
12757_ACEOF
12758
12759# Transform confdefs.h into an awk script 'defines.awk', embedded as
12760# here-document in config.status, that substitutes the proper values into
12761# config.h.in to produce config.h.
12762
12763# Create a delimiter string that does not exist in confdefs.h, to ease
12764# handling of long lines.
12765ac_delim='%!_!# '
12766for ac_last_try in false false :; do
12767  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12768  if test -z "$ac_tt"; then
12769    break
12770  elif $ac_last_try; then
12771    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12772  else
12773    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12774  fi
12775done
12776
12777# For the awk script, D is an array of macro values keyed by name,
12778# likewise P contains macro parameters if any.  Preserve backslash
12779# newline sequences.
12780
12781ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12782sed -n '
12783s/.\{148\}/&'"$ac_delim"'/g
12784t rset
12785:rset
12786s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12787t def
12788d
12789:def
12790s/\\$//
12791t bsnl
12792s/["\\]/\\&/g
12793s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12794D["\1"]=" \3"/p
12795s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12796d
12797:bsnl
12798s/["\\]/\\&/g
12799s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12800D["\1"]=" \3\\\\\\n"\\/p
12801t cont
12802s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12803t cont
12804d
12805:cont
12806n
12807s/.\{148\}/&'"$ac_delim"'/g
12808t clear
12809:clear
12810s/\\$//
12811t bsnlc
12812s/["\\]/\\&/g; s/^/"/; s/$/"/p
12813d
12814:bsnlc
12815s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12816b cont
12817' <confdefs.h | sed '
12818s/'"$ac_delim"'/"\\\
12819"/g' >>$CONFIG_STATUS || ac_write_fail=1
12820
12821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12822  for (key in D) D_is_set[key] = 1
12823  FS = ""
12824}
12825/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12826  line = \$ 0
12827  split(line, arg, " ")
12828  if (arg[1] == "#") {
12829    defundef = arg[2]
12830    mac1 = arg[3]
12831  } else {
12832    defundef = substr(arg[1], 2)
12833    mac1 = arg[2]
12834  }
12835  split(mac1, mac2, "(") #)
12836  macro = mac2[1]
12837  prefix = substr(line, 1, index(line, defundef) - 1)
12838  if (D_is_set[macro]) {
12839    # Preserve the white space surrounding the "#".
12840    print prefix "define", macro P[macro] D[macro]
12841    next
12842  } else {
12843    # Replace #undef with comments.  This is necessary, for example,
12844    # in the case of _POSIX_SOURCE, which is predefined and required
12845    # on some systems where configure will not decide to define it.
12846    if (defundef == "undef") {
12847      print "/*", prefix defundef, macro, "*/"
12848      next
12849    }
12850  }
12851}
12852{ print }
12853_ACAWK
12854_ACEOF
12855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12856  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12857fi # test -n "$CONFIG_HEADERS"
12858
12859
12860eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12861shift
12862for ac_tag
12863do
12864  case $ac_tag in
12865  :[FHLC]) ac_mode=$ac_tag; continue;;
12866  esac
12867  case $ac_mode$ac_tag in
12868  :[FHL]*:*);;
12869  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12870  :[FH]-) ac_tag=-:-;;
12871  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12872  esac
12873  ac_save_IFS=$IFS
12874  IFS=:
12875  set x $ac_tag
12876  IFS=$ac_save_IFS
12877  shift
12878  ac_file=$1
12879  shift
12880
12881  case $ac_mode in
12882  :L) ac_source=$1;;
12883  :[FH])
12884    ac_file_inputs=
12885    for ac_f
12886    do
12887      case $ac_f in
12888      -) ac_f="$ac_tmp/stdin";;
12889      *) # Look for the file first in the build tree, then in the source tree
12890	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12891	 # because $ac_f cannot contain ':'.
12892	 test -f "$ac_f" ||
12893	   case $ac_f in
12894	   [\\/$]*) false;;
12895	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12896	   esac ||
12897	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12898      esac
12899      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12900      as_fn_append ac_file_inputs " '$ac_f'"
12901    done
12902
12903    # Let's still pretend it is 'configure' which instantiates (i.e., don't
12904    # use $as_me), people would be surprised to read:
12905    #    /* config.h.  Generated by config.status.  */
12906    configure_input='Generated from '`
12907	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12908	`' by configure.'
12909    if test x"$ac_file" != x-; then
12910      configure_input="$ac_file.  $configure_input"
12911      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12912printf "%s\n" "$as_me: creating $ac_file" >&6;}
12913    fi
12914    # Neutralize special characters interpreted by sed in replacement strings.
12915    case $configure_input in #(
12916    *\&* | *\|* | *\\* )
12917       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12918       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12919    *) ac_sed_conf_input=$configure_input;;
12920    esac
12921
12922    case $ac_tag in
12923    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12924      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12925    esac
12926    ;;
12927  esac
12928
12929  ac_dir=`$as_dirname -- "$ac_file" ||
12930$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12931	 X"$ac_file" : 'X\(//\)[^/]' \| \
12932	 X"$ac_file" : 'X\(//\)$' \| \
12933	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12934printf "%s\n" X"$ac_file" |
12935    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12936	    s//\1/
12937	    q
12938	  }
12939	  /^X\(\/\/\)[^/].*/{
12940	    s//\1/
12941	    q
12942	  }
12943	  /^X\(\/\/\)$/{
12944	    s//\1/
12945	    q
12946	  }
12947	  /^X\(\/\).*/{
12948	    s//\1/
12949	    q
12950	  }
12951	  s/.*/./; q'`
12952  as_dir="$ac_dir"; as_fn_mkdir_p
12953  ac_builddir=.
12954
12955case "$ac_dir" in
12956.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12957*)
12958  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12959  # A ".." for each directory in $ac_dir_suffix.
12960  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12961  case $ac_top_builddir_sub in
12962  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12963  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12964  esac ;;
12965esac
12966ac_abs_top_builddir=$ac_pwd
12967ac_abs_builddir=$ac_pwd$ac_dir_suffix
12968# for backward compatibility:
12969ac_top_builddir=$ac_top_build_prefix
12970
12971case $srcdir in
12972  .)  # We are building in place.
12973    ac_srcdir=.
12974    ac_top_srcdir=$ac_top_builddir_sub
12975    ac_abs_top_srcdir=$ac_pwd ;;
12976  [\\/]* | ?:[\\/]* )  # Absolute name.
12977    ac_srcdir=$srcdir$ac_dir_suffix;
12978    ac_top_srcdir=$srcdir
12979    ac_abs_top_srcdir=$srcdir ;;
12980  *) # Relative name.
12981    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12982    ac_top_srcdir=$ac_top_build_prefix$srcdir
12983    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12984esac
12985ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12986
12987
12988  case $ac_mode in
12989  :F)
12990  #
12991  # CONFIG_FILE
12992  #
12993
12994  case $INSTALL in
12995  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12996  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12997  esac
12998  ac_MKDIR_P=$MKDIR_P
12999  case $MKDIR_P in
13000  [\\/$]* | ?:[\\/]* ) ;;
13001  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13002  esac
13003_ACEOF
13004
13005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13006# If the template does not know about datarootdir, expand it.
13007# FIXME: This hack should be removed a few years after 2.60.
13008ac_datarootdir_hack=; ac_datarootdir_seen=
13009ac_sed_dataroot='
13010/datarootdir/ {
13011  p
13012  q
13013}
13014/@datadir@/p
13015/@docdir@/p
13016/@infodir@/p
13017/@localedir@/p
13018/@mandir@/p'
13019case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13020*datarootdir*) ac_datarootdir_seen=yes;;
13021*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13023printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13024_ACEOF
13025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13026  ac_datarootdir_hack='
13027  s&@datadir@&$datadir&g
13028  s&@docdir@&$docdir&g
13029  s&@infodir@&$infodir&g
13030  s&@localedir@&$localedir&g
13031  s&@mandir@&$mandir&g
13032  s&\\\${datarootdir}&$datarootdir&g' ;;
13033esac
13034_ACEOF
13035
13036# Neutralize VPATH when '$srcdir' = '.'.
13037# Shell code in configure.ac might set extrasub.
13038# FIXME: do we really want to maintain this feature?
13039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13040ac_sed_extra="$ac_vpsub
13041$extrasub
13042_ACEOF
13043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13044:t
13045/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13046s|@configure_input@|$ac_sed_conf_input|;t t
13047s&@top_builddir@&$ac_top_builddir_sub&;t t
13048s&@top_build_prefix@&$ac_top_build_prefix&;t t
13049s&@srcdir@&$ac_srcdir&;t t
13050s&@abs_srcdir@&$ac_abs_srcdir&;t t
13051s&@top_srcdir@&$ac_top_srcdir&;t t
13052s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13053s&@builddir@&$ac_builddir&;t t
13054s&@abs_builddir@&$ac_abs_builddir&;t t
13055s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13056s&@INSTALL@&$ac_INSTALL&;t t
13057s&@MKDIR_P@&$ac_MKDIR_P&;t t
13058$ac_datarootdir_hack
13059"
13060eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13061  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13062
13063test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13064  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13065  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13066      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13068which seems to be undefined.  Please make sure it is defined" >&5
13069printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13070which seems to be undefined.  Please make sure it is defined" >&2;}
13071
13072  rm -f "$ac_tmp/stdin"
13073  case $ac_file in
13074  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13075  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13076  esac \
13077  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13078 ;;
13079  :H)
13080  #
13081  # CONFIG_HEADER
13082  #
13083  if test x"$ac_file" != x-; then
13084    {
13085      printf "%s\n" "/* $configure_input  */" >&1 \
13086      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13087    } >"$ac_tmp/config.h" \
13088      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13089    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13090      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13091printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13092    else
13093      rm -f "$ac_file"
13094      mv "$ac_tmp/config.h" "$ac_file" \
13095	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13096    fi
13097  else
13098    printf "%s\n" "/* $configure_input  */" >&1 \
13099      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13100      || as_fn_error $? "could not create -" "$LINENO" 5
13101  fi
13102# Compute "$ac_file"'s index in $config_headers.
13103_am_arg="$ac_file"
13104_am_stamp_count=1
13105for _am_header in $config_headers :; do
13106  case $_am_header in
13107    $_am_arg | $_am_arg:* )
13108      break ;;
13109    * )
13110      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13111  esac
13112done
13113echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13114$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13115	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13116	 X"$_am_arg" : 'X\(//\)$' \| \
13117	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13118printf "%s\n" X"$_am_arg" |
13119    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13120	    s//\1/
13121	    q
13122	  }
13123	  /^X\(\/\/\)[^/].*/{
13124	    s//\1/
13125	    q
13126	  }
13127	  /^X\(\/\/\)$/{
13128	    s//\1/
13129	    q
13130	  }
13131	  /^X\(\/\).*/{
13132	    s//\1/
13133	    q
13134	  }
13135	  s/.*/./; q'`/stamp-h$_am_stamp_count
13136 ;;
13137
13138  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13139printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13140 ;;
13141  esac
13142
13143
13144  case $ac_file$ac_mode in
13145    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13146  # Older Autoconf quotes --file arguments for eval, but not when files
13147  # are listed without --file.  Let's play safe and only enable the eval
13148  # if we detect the quoting.
13149  # TODO: see whether this extra hack can be removed once we start
13150  # requiring Autoconf 2.70 or later.
13151  case $CONFIG_FILES in #(
13152  *\'*) :
13153    eval set x "$CONFIG_FILES" ;; #(
13154  *) :
13155    set x $CONFIG_FILES ;; #(
13156  *) :
13157     ;;
13158esac
13159  shift
13160  # Used to flag and report bootstrapping failures.
13161  am_rc=0
13162  for am_mf
13163  do
13164    # Strip MF so we end up with the name of the file.
13165    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13166    # Check whether this is an Automake generated Makefile which includes
13167    # dependency-tracking related rules and includes.
13168    # Grep'ing the whole file directly is not great: AIX grep has a line
13169    # limit of 2048, but all sed's we know have understand at least 4000.
13170    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13171      || continue
13172    am_dirpart=`$as_dirname -- "$am_mf" ||
13173$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13174	 X"$am_mf" : 'X\(//\)[^/]' \| \
13175	 X"$am_mf" : 'X\(//\)$' \| \
13176	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13177printf "%s\n" X"$am_mf" |
13178    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13179	    s//\1/
13180	    q
13181	  }
13182	  /^X\(\/\/\)[^/].*/{
13183	    s//\1/
13184	    q
13185	  }
13186	  /^X\(\/\/\)$/{
13187	    s//\1/
13188	    q
13189	  }
13190	  /^X\(\/\).*/{
13191	    s//\1/
13192	    q
13193	  }
13194	  s/.*/./; q'`
13195    am_filepart=`$as_basename -- "$am_mf" ||
13196$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13197	 X"$am_mf" : 'X\(//\)$' \| \
13198	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13199printf "%s\n" X/"$am_mf" |
13200    sed '/^.*\/\([^/][^/]*\)\/*$/{
13201	    s//\1/
13202	    q
13203	  }
13204	  /^X\/\(\/\/\)$/{
13205	    s//\1/
13206	    q
13207	  }
13208	  /^X\/\(\/\).*/{
13209	    s//\1/
13210	    q
13211	  }
13212	  s/.*/./; q'`
13213    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13214      && sed -e '/# am--include-marker/d' "$am_filepart" \
13215        | $MAKE -f - am--depfiles" >&5
13216   (cd "$am_dirpart" \
13217      && sed -e '/# am--include-marker/d' "$am_filepart" \
13218        | $MAKE -f - am--depfiles) >&5 2>&5
13219   ac_status=$?
13220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); } || am_rc=$?
13222  done
13223  if test $am_rc -ne 0; then
13224    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13225printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13226as_fn_error $? "Something went wrong bootstrapping makefile fragments
13227    for automatic dependency tracking.  If GNU make was not used, consider
13228    re-running the configure script with MAKE=\"gmake\" (or whatever is
13229    necessary).  You can also try re-running configure with the
13230    '--disable-dependency-tracking' option to at least be able to build
13231    the package (albeit without support for automatic dependency tracking).
13232See 'config.log' for more details" "$LINENO" 5; }
13233  fi
13234  { am_dirpart=; unset am_dirpart;}
13235  { am_filepart=; unset am_filepart;}
13236  { am_mf=; unset am_mf;}
13237  { am_rc=; unset am_rc;}
13238  rm -f conftest-deps.mk
13239}
13240 ;;
13241
13242  esac
13243done # for ac_tag
13244
13245
13246as_fn_exit 0
13247_ACEOF
13248ac_clean_files=$ac_clean_files_save
13249
13250test $ac_write_fail = 0 ||
13251  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13252
13253
13254# configure is writing to config.log, and then calls config.status.
13255# config.status does its own redirection, appending to config.log.
13256# Unfortunately, on DOS this fails, as config.log is still kept open
13257# by configure, so config.status won't be able to write to it; its
13258# output is simply discarded.  So we exec the FD to /dev/null,
13259# effectively closing config.log, so it can be properly (re)opened and
13260# appended to by config.status.  When coming back to configure, we
13261# need to make the FD available again.
13262if test "$no_create" != yes; then
13263  ac_cs_success=:
13264  ac_config_status_args=
13265  test "$silent" = yes &&
13266    ac_config_status_args="$ac_config_status_args --quiet"
13267  exec 5>/dev/null
13268  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13269  exec 5>>config.log
13270  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13271  # would make configure fail if this is the last instruction.
13272  $ac_cs_success || as_fn_exit 1
13273fi
13274if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13276printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13277fi
13278
13279
13280