configure revision 945aa7e3
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xkbutils 1.0.5.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbutils/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1"
187  if (eval "$as_required") 2>/dev/null
188then :
189  as_have_required=yes
190else $as_nop
191  as_have_required=no
192fi
193  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194then :
195
196else $as_nop
197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198as_found=false
199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200do
201  IFS=$as_save_IFS
202  case $as_dir in #(((
203    '') as_dir=./ ;;
204    */) ;;
205    *) as_dir=$as_dir/ ;;
206  esac
207  as_found=:
208  case $as_dir in #(
209	 /*)
210	   for as_base in sh bash ksh sh5; do
211	     # Try only shells that exist, to save several forks.
212	     as_shell=$as_dir$as_base
213	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215then :
216  CONFIG_SHELL=$as_shell as_have_required=yes
217		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218then :
219  break 2
220fi
221fi
222	   done;;
223       esac
224  as_found=false
225done
226IFS=$as_save_IFS
227if $as_found
228then :
229
230else $as_nop
231  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi
236fi
237
238
239      if test "x$CONFIG_SHELL" != x
240then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno
263then :
264  printf "%s\n" "$0: This script requires a shell more modern than all"
265  printf "%s\n" "$0: the shells that I found on your system."
266  if test ${ZSH_VERSION+y} ; then
267    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269  else
270    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271$0: https://gitlab.freedesktop.org/xorg/app/xkbutils/issues
272$0: about your system, including any error possibly output
273$0: before this message. Then install a modern shell, or
274$0: manually run the script under such a shell if you do
275$0: have one."
276  fi
277  exit 1
278fi
279fi
280fi
281SHELL=${CONFIG_SHELL-/bin/sh}
282export SHELL
283# Unset more variables known to interfere with behavior of common tools.
284CLICOLOR_FORCE= GREP_OPTIONS=
285unset CLICOLOR_FORCE GREP_OPTIONS
286
287## --------------------- ##
288## M4sh Shell Functions. ##
289## --------------------- ##
290# as_fn_unset VAR
291# ---------------
292# Portably unset VAR.
293as_fn_unset ()
294{
295  { eval $1=; unset $1;}
296}
297as_unset=as_fn_unset
298
299
300# as_fn_set_status STATUS
301# -----------------------
302# Set $? to STATUS, without forking.
303as_fn_set_status ()
304{
305  return $1
306} # as_fn_set_status
307
308# as_fn_exit STATUS
309# -----------------
310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311as_fn_exit ()
312{
313  set +e
314  as_fn_set_status $1
315  exit $1
316} # as_fn_exit
317# as_fn_nop
318# ---------
319# Do nothing but, unlike ":", preserve the value of $?.
320as_fn_nop ()
321{
322  return $?
323}
324as_nop=as_fn_nop
325
326# as_fn_mkdir_p
327# -------------
328# Create "$as_dir" as a directory, including parents if necessary.
329as_fn_mkdir_p ()
330{
331
332  case $as_dir in #(
333  -*) as_dir=./$as_dir;;
334  esac
335  test -d "$as_dir" || eval $as_mkdir_p || {
336    as_dirs=
337    while :; do
338      case $as_dir in #(
339      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340      *) as_qdir=$as_dir;;
341      esac
342      as_dirs="'$as_qdir' $as_dirs"
343      as_dir=`$as_dirname -- "$as_dir" ||
344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345	 X"$as_dir" : 'X\(//\)[^/]' \| \
346	 X"$as_dir" : 'X\(//\)$' \| \
347	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348printf "%s\n" X"$as_dir" |
349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)[^/].*/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\).*/{
362	    s//\1/
363	    q
364	  }
365	  s/.*/./; q'`
366      test -d "$as_dir" && break
367    done
368    test -z "$as_dirs" || eval "mkdir $as_dirs"
369  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372} # as_fn_mkdir_p
373
374# as_fn_executable_p FILE
375# -----------------------
376# Test if FILE is an executable regular file.
377as_fn_executable_p ()
378{
379  test -f "$1" && test -x "$1"
380} # as_fn_executable_p
381# as_fn_append VAR VALUE
382# ----------------------
383# Append the text in VALUE to the end of the definition contained in VAR. Take
384# advantage of any shell optimizations that allow amortized linear growth over
385# repeated appends, instead of the typical quadratic growth present in naive
386# implementations.
387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388then :
389  eval 'as_fn_append ()
390  {
391    eval $1+=\$2
392  }'
393else $as_nop
394  as_fn_append ()
395  {
396    eval $1=\$$1\$2
397  }
398fi # as_fn_append
399
400# as_fn_arith ARG...
401# ------------------
402# Perform arithmetic evaluation on the ARGs, and store the result in the
403# global $as_val. Take advantage of shells that can avoid forks. The arguments
404# must be portable across $(()) and expr.
405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406then :
407  eval 'as_fn_arith ()
408  {
409    as_val=$(( $* ))
410  }'
411else $as_nop
412  as_fn_arith ()
413  {
414    as_val=`expr "$@" || test $? -eq 1`
415  }
416fi # as_fn_arith
417
418# as_fn_nop
419# ---------
420# Do nothing but, unlike ":", preserve the value of $?.
421as_fn_nop ()
422{
423  return $?
424}
425as_nop=as_fn_nop
426
427# as_fn_error STATUS ERROR [LINENO LOG_FD]
428# ----------------------------------------
429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431# script with STATUS, using 1 if that was 0.
432as_fn_error ()
433{
434  as_status=$1; test $as_status -eq 0 && as_status=1
435  if test "$4"; then
436    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438  fi
439  printf "%s\n" "$as_me: error: $2" >&2
440  as_fn_exit $as_status
441} # as_fn_error
442
443if expr a : '\(a\)' >/dev/null 2>&1 &&
444   test "X`expr 00001 : '.*\(...\)'`" = X001; then
445  as_expr=expr
446else
447  as_expr=false
448fi
449
450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451  as_basename=basename
452else
453  as_basename=false
454fi
455
456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457  as_dirname=dirname
458else
459  as_dirname=false
460fi
461
462as_me=`$as_basename -- "$0" ||
463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464	 X"$0" : 'X\(//\)$' \| \
465	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466printf "%s\n" X/"$0" |
467    sed '/^.*\/\([^/][^/]*\)\/*$/{
468	    s//\1/
469	    q
470	  }
471	  /^X\/\(\/\/\)$/{
472	    s//\1/
473	    q
474	  }
475	  /^X\/\(\/\).*/{
476	    s//\1/
477	    q
478	  }
479	  s/.*/./; q'`
480
481# Avoid depending upon Character Ranges.
482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485as_cr_digits='0123456789'
486as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489  as_lineno_1=$LINENO as_lineno_1a=$LINENO
490  as_lineno_2=$LINENO as_lineno_2a=$LINENO
491  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
494  sed -n '
495    p
496    /[$]LINENO/=
497  ' <$as_myself |
498    sed '
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547
548rm -f conf$$ conf$$.exe conf$$.file
549if test -d conf$$.dir; then
550  rm -f conf$$.dir/conf$$.file
551else
552  rm -f conf$$.dir
553  mkdir conf$$.dir 2>/dev/null
554fi
555if (echo >conf$$.file) 2>/dev/null; then
556  if ln -s conf$$.file conf$$ 2>/dev/null; then
557    as_ln_s='ln -s'
558    # ... but there are two gotchas:
559    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561    # In both cases, we have to default to `cp -pR'.
562    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563      as_ln_s='cp -pR'
564  elif ln conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s=ln
566  else
567    as_ln_s='cp -pR'
568  fi
569else
570  as_ln_s='cp -pR'
571fi
572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573rmdir conf$$.dir 2>/dev/null
574
575if mkdir -p . 2>/dev/null; then
576  as_mkdir_p='mkdir -p "$as_dir"'
577else
578  test -d ./-p && rmdir ./-p
579  as_mkdir_p=false
580fi
581
582as_test_x='test -x'
583as_executable_p=as_fn_executable_p
584
585# Sed expression to map a string onto a valid CPP name.
586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588# Sed expression to map a string onto a valid variable name.
589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592test -n "$DJDIR" || exec 7<&0 </dev/null
593exec 6>&1
594
595# Name of the host.
596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597# so uname gets run too.
598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600#
601# Initializations.
602#
603ac_default_prefix=/usr/local
604ac_clean_files=
605ac_config_libobj_dir=.
606LIBOBJS=
607cross_compiling=no
608subdirs=
609MFLAGS=
610MAKEFLAGS=
611
612# Identity of this package.
613PACKAGE_NAME='xkbutils'
614PACKAGE_TARNAME='xkbutils'
615PACKAGE_VERSION='1.0.5'
616PACKAGE_STRING='xkbutils 1.0.5'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbutils/issues'
618PACKAGE_URL=''
619
620ac_unique_file="Makefile.am"
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657XKBWATCH_LIBS
658XKBWATCH_CFLAGS
659XKBBELL_LIBS
660XKBBELL_CFLAGS
661XKBVLEDS_LIBS
662XKBVLEDS_CFLAGS
663MAN_SUBSTS
664XORG_MAN_PAGE
665ADMIN_MAN_DIR
666DRIVER_MAN_DIR
667MISC_MAN_DIR
668FILE_MAN_DIR
669LIB_MAN_DIR
670APP_MAN_DIR
671ADMIN_MAN_SUFFIX
672DRIVER_MAN_SUFFIX
673MISC_MAN_SUFFIX
674FILE_MAN_SUFFIX
675LIB_MAN_SUFFIX
676APP_MAN_SUFFIX
677SED
678host_os
679host_vendor
680host_cpu
681host
682build_os
683build_vendor
684build_cpu
685build
686INSTALL_CMD
687PKG_CONFIG_LIBDIR
688PKG_CONFIG_PATH
689PKG_CONFIG
690CHANGELOG_CMD
691STRICT_CFLAGS
692CWARNFLAGS
693BASE_CFLAGS
694am__fastdepCC_FALSE
695am__fastdepCC_TRUE
696CCDEPMODE
697am__nodep
698AMDEPBACKSLASH
699AMDEP_FALSE
700AMDEP_TRUE
701am__include
702DEPDIR
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710AM_BACKSLASH
711AM_DEFAULT_VERBOSITY
712AM_DEFAULT_V
713AM_V
714CSCOPE
715ETAGS
716CTAGS
717am__untar
718am__tar
719AMTAR
720am__leading_dot
721SET_MAKE
722AWK
723mkdir_p
724MKDIR_P
725INSTALL_STRIP_PROGRAM
726STRIP
727install_sh
728MAKEINFO
729AUTOHEADER
730AUTOMAKE
731AUTOCONF
732ACLOCAL
733VERSION
734PACKAGE
735CYGPATH_W
736am__isrc
737INSTALL_DATA
738INSTALL_SCRIPT
739INSTALL_PROGRAM
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759runstatedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL
779am__quote'
780ac_subst_files=''
781ac_user_opts='
782enable_option_checking
783enable_silent_rules
784enable_dependency_tracking
785enable_selective_werror
786enable_strict_compilation
787'
788      ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796PKG_CONFIG
797PKG_CONFIG_PATH
798PKG_CONFIG_LIBDIR
799XKBVLEDS_CFLAGS
800XKBVLEDS_LIBS
801XKBBELL_CFLAGS
802XKBBELL_LIBS
803XKBWATCH_CFLAGS
804XKBWATCH_LIBS'
805
806
807# Initialize some variables set by options.
808ac_init_help=
809ac_init_version=false
810ac_unrecognized_opts=
811ac_unrecognized_sep=
812# The variables have the same names as the options, with
813# dashes changed to underlines.
814cache_file=/dev/null
815exec_prefix=NONE
816no_create=
817no_recursion=
818prefix=NONE
819program_prefix=NONE
820program_suffix=NONE
821program_transform_name=s,x,x,
822silent=
823site=
824srcdir=
825verbose=
826x_includes=NONE
827x_libraries=NONE
828
829# Installation directory options.
830# These are left unexpanded so users can "make install exec_prefix=/foo"
831# and all the variables that are supposed to be based on exec_prefix
832# by default will actually change.
833# Use braces instead of parens because sh, perl, etc. also accept them.
834# (The list follows the same order as the GNU Coding Standards.)
835bindir='${exec_prefix}/bin'
836sbindir='${exec_prefix}/sbin'
837libexecdir='${exec_prefix}/libexec'
838datarootdir='${prefix}/share'
839datadir='${datarootdir}'
840sysconfdir='${prefix}/etc'
841sharedstatedir='${prefix}/com'
842localstatedir='${prefix}/var'
843runstatedir='${localstatedir}/run'
844includedir='${prefix}/include'
845oldincludedir='/usr/include'
846docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
847infodir='${datarootdir}/info'
848htmldir='${docdir}'
849dvidir='${docdir}'
850pdfdir='${docdir}'
851psdir='${docdir}'
852libdir='${exec_prefix}/lib'
853localedir='${datarootdir}/locale'
854mandir='${datarootdir}/man'
855
856ac_prev=
857ac_dashdash=
858for ac_option
859do
860  # If the previous option needs an argument, assign it.
861  if test -n "$ac_prev"; then
862    eval $ac_prev=\$ac_option
863    ac_prev=
864    continue
865  fi
866
867  case $ac_option in
868  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869  *=)   ac_optarg= ;;
870  *)    ac_optarg=yes ;;
871  esac
872
873  case $ac_dashdash$ac_option in
874  --)
875    ac_dashdash=yes ;;
876
877  -bindir | --bindir | --bindi | --bind | --bin | --bi)
878    ac_prev=bindir ;;
879  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880    bindir=$ac_optarg ;;
881
882  -build | --build | --buil | --bui | --bu)
883    ac_prev=build_alias ;;
884  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885    build_alias=$ac_optarg ;;
886
887  -cache-file | --cache-file | --cache-fil | --cache-fi \
888  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889    ac_prev=cache_file ;;
890  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892    cache_file=$ac_optarg ;;
893
894  --config-cache | -C)
895    cache_file=config.cache ;;
896
897  -datadir | --datadir | --datadi | --datad)
898    ac_prev=datadir ;;
899  -datadir=* | --datadir=* | --datadi=* | --datad=*)
900    datadir=$ac_optarg ;;
901
902  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903  | --dataroo | --dataro | --datar)
904    ac_prev=datarootdir ;;
905  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907    datarootdir=$ac_optarg ;;
908
909  -disable-* | --disable-*)
910    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911    # Reject names that are not valid shell variable names.
912    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913      as_fn_error $? "invalid feature name: \`$ac_useropt'"
914    ac_useropt_orig=$ac_useropt
915    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
916    case $ac_user_opts in
917      *"
918"enable_$ac_useropt"
919"*) ;;
920      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921	 ac_unrecognized_sep=', ';;
922    esac
923    eval enable_$ac_useropt=no ;;
924
925  -docdir | --docdir | --docdi | --doc | --do)
926    ac_prev=docdir ;;
927  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928    docdir=$ac_optarg ;;
929
930  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931    ac_prev=dvidir ;;
932  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933    dvidir=$ac_optarg ;;
934
935  -enable-* | --enable-*)
936    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937    # Reject names that are not valid shell variable names.
938    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939      as_fn_error $? "invalid feature name: \`$ac_useropt'"
940    ac_useropt_orig=$ac_useropt
941    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
942    case $ac_user_opts in
943      *"
944"enable_$ac_useropt"
945"*) ;;
946      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947	 ac_unrecognized_sep=', ';;
948    esac
949    eval enable_$ac_useropt=\$ac_optarg ;;
950
951  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953  | --exec | --exe | --ex)
954    ac_prev=exec_prefix ;;
955  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957  | --exec=* | --exe=* | --ex=*)
958    exec_prefix=$ac_optarg ;;
959
960  -gas | --gas | --ga | --g)
961    # Obsolete; use --with-gas.
962    with_gas=yes ;;
963
964  -help | --help | --hel | --he | -h)
965    ac_init_help=long ;;
966  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967    ac_init_help=recursive ;;
968  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969    ac_init_help=short ;;
970
971  -host | --host | --hos | --ho)
972    ac_prev=host_alias ;;
973  -host=* | --host=* | --hos=* | --ho=*)
974    host_alias=$ac_optarg ;;
975
976  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977    ac_prev=htmldir ;;
978  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979  | --ht=*)
980    htmldir=$ac_optarg ;;
981
982  -includedir | --includedir | --includedi | --included | --include \
983  | --includ | --inclu | --incl | --inc)
984    ac_prev=includedir ;;
985  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986  | --includ=* | --inclu=* | --incl=* | --inc=*)
987    includedir=$ac_optarg ;;
988
989  -infodir | --infodir | --infodi | --infod | --info | --inf)
990    ac_prev=infodir ;;
991  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992    infodir=$ac_optarg ;;
993
994  -libdir | --libdir | --libdi | --libd)
995    ac_prev=libdir ;;
996  -libdir=* | --libdir=* | --libdi=* | --libd=*)
997    libdir=$ac_optarg ;;
998
999  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000  | --libexe | --libex | --libe)
1001    ac_prev=libexecdir ;;
1002  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003  | --libexe=* | --libex=* | --libe=*)
1004    libexecdir=$ac_optarg ;;
1005
1006  -localedir | --localedir | --localedi | --localed | --locale)
1007    ac_prev=localedir ;;
1008  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009    localedir=$ac_optarg ;;
1010
1011  -localstatedir | --localstatedir | --localstatedi | --localstated \
1012  | --localstate | --localstat | --localsta | --localst | --locals)
1013    ac_prev=localstatedir ;;
1014  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016    localstatedir=$ac_optarg ;;
1017
1018  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019    ac_prev=mandir ;;
1020  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021    mandir=$ac_optarg ;;
1022
1023  -nfp | --nfp | --nf)
1024    # Obsolete; use --without-fp.
1025    with_fp=no ;;
1026
1027  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028  | --no-cr | --no-c | -n)
1029    no_create=yes ;;
1030
1031  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033    no_recursion=yes ;;
1034
1035  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037  | --oldin | --oldi | --old | --ol | --o)
1038    ac_prev=oldincludedir ;;
1039  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042    oldincludedir=$ac_optarg ;;
1043
1044  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045    ac_prev=prefix ;;
1046  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047    prefix=$ac_optarg ;;
1048
1049  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050  | --program-pre | --program-pr | --program-p)
1051    ac_prev=program_prefix ;;
1052  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054    program_prefix=$ac_optarg ;;
1055
1056  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057  | --program-suf | --program-su | --program-s)
1058    ac_prev=program_suffix ;;
1059  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061    program_suffix=$ac_optarg ;;
1062
1063  -program-transform-name | --program-transform-name \
1064  | --program-transform-nam | --program-transform-na \
1065  | --program-transform-n | --program-transform- \
1066  | --program-transform | --program-transfor \
1067  | --program-transfo | --program-transf \
1068  | --program-trans | --program-tran \
1069  | --progr-tra | --program-tr | --program-t)
1070    ac_prev=program_transform_name ;;
1071  -program-transform-name=* | --program-transform-name=* \
1072  | --program-transform-nam=* | --program-transform-na=* \
1073  | --program-transform-n=* | --program-transform-=* \
1074  | --program-transform=* | --program-transfor=* \
1075  | --program-transfo=* | --program-transf=* \
1076  | --program-trans=* | --program-tran=* \
1077  | --progr-tra=* | --program-tr=* | --program-t=*)
1078    program_transform_name=$ac_optarg ;;
1079
1080  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081    ac_prev=pdfdir ;;
1082  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083    pdfdir=$ac_optarg ;;
1084
1085  -psdir | --psdir | --psdi | --psd | --ps)
1086    ac_prev=psdir ;;
1087  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088    psdir=$ac_optarg ;;
1089
1090  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091  | -silent | --silent | --silen | --sile | --sil)
1092    silent=yes ;;
1093
1094  -runstatedir | --runstatedir | --runstatedi | --runstated \
1095  | --runstate | --runstat | --runsta | --runst | --runs \
1096  | --run | --ru | --r)
1097    ac_prev=runstatedir ;;
1098  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1099  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1100  | --run=* | --ru=* | --r=*)
1101    runstatedir=$ac_optarg ;;
1102
1103  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104    ac_prev=sbindir ;;
1105  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106  | --sbi=* | --sb=*)
1107    sbindir=$ac_optarg ;;
1108
1109  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111  | --sharedst | --shareds | --shared | --share | --shar \
1112  | --sha | --sh)
1113    ac_prev=sharedstatedir ;;
1114  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117  | --sha=* | --sh=*)
1118    sharedstatedir=$ac_optarg ;;
1119
1120  -site | --site | --sit)
1121    ac_prev=site ;;
1122  -site=* | --site=* | --sit=*)
1123    site=$ac_optarg ;;
1124
1125  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126    ac_prev=srcdir ;;
1127  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128    srcdir=$ac_optarg ;;
1129
1130  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131  | --syscon | --sysco | --sysc | --sys | --sy)
1132    ac_prev=sysconfdir ;;
1133  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135    sysconfdir=$ac_optarg ;;
1136
1137  -target | --target | --targe | --targ | --tar | --ta | --t)
1138    ac_prev=target_alias ;;
1139  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140    target_alias=$ac_optarg ;;
1141
1142  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143    verbose=yes ;;
1144
1145  -version | --version | --versio | --versi | --vers | -V)
1146    ac_init_version=: ;;
1147
1148  -with-* | --with-*)
1149    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150    # Reject names that are not valid shell variable names.
1151    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152      as_fn_error $? "invalid package name: \`$ac_useropt'"
1153    ac_useropt_orig=$ac_useropt
1154    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1155    case $ac_user_opts in
1156      *"
1157"with_$ac_useropt"
1158"*) ;;
1159      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160	 ac_unrecognized_sep=', ';;
1161    esac
1162    eval with_$ac_useropt=\$ac_optarg ;;
1163
1164  -without-* | --without-*)
1165    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166    # Reject names that are not valid shell variable names.
1167    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168      as_fn_error $? "invalid package name: \`$ac_useropt'"
1169    ac_useropt_orig=$ac_useropt
1170    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1171    case $ac_user_opts in
1172      *"
1173"with_$ac_useropt"
1174"*) ;;
1175      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176	 ac_unrecognized_sep=', ';;
1177    esac
1178    eval with_$ac_useropt=no ;;
1179
1180  --x)
1181    # Obsolete; use --with-x.
1182    with_x=yes ;;
1183
1184  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185  | --x-incl | --x-inc | --x-in | --x-i)
1186    ac_prev=x_includes ;;
1187  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189    x_includes=$ac_optarg ;;
1190
1191  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193    ac_prev=x_libraries ;;
1194  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196    x_libraries=$ac_optarg ;;
1197
1198  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199Try \`$0 --help' for more information"
1200    ;;
1201
1202  *=*)
1203    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204    # Reject names that are not valid shell variable names.
1205    case $ac_envvar in #(
1206      '' | [0-9]* | *[!_$as_cr_alnum]* )
1207      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208    esac
1209    eval $ac_envvar=\$ac_optarg
1210    export $ac_envvar ;;
1211
1212  *)
1213    # FIXME: should be removed in autoconf 3.0.
1214    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1215    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1217    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218    ;;
1219
1220  esac
1221done
1222
1223if test -n "$ac_prev"; then
1224  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225  as_fn_error $? "missing argument to $ac_option"
1226fi
1227
1228if test -n "$ac_unrecognized_opts"; then
1229  case $enable_option_checking in
1230    no) ;;
1231    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233  esac
1234fi
1235
1236# Check all directory arguments for consistency.
1237for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238		datadir sysconfdir sharedstatedir localstatedir includedir \
1239		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240		libdir localedir mandir runstatedir
1241do
1242  eval ac_val=\$$ac_var
1243  # Remove trailing slashes.
1244  case $ac_val in
1245    */ )
1246      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247      eval $ac_var=\$ac_val;;
1248  esac
1249  # Be sure to have absolute directory names.
1250  case $ac_val in
1251    [\\/$]* | ?:[\\/]* )  continue;;
1252    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253  esac
1254  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255done
1256
1257# There might be people who depend on the old broken behavior: `$host'
1258# used to hold the argument of --host etc.
1259# FIXME: To remove some day.
1260build=$build_alias
1261host=$host_alias
1262target=$target_alias
1263
1264# FIXME: To remove some day.
1265if test "x$host_alias" != x; then
1266  if test "x$build_alias" = x; then
1267    cross_compiling=maybe
1268  elif test "x$build_alias" != "x$host_alias"; then
1269    cross_compiling=yes
1270  fi
1271fi
1272
1273ac_tool_prefix=
1274test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276test "$silent" = yes && exec 6>/dev/null
1277
1278
1279ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280ac_ls_di=`ls -di .` &&
1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282  as_fn_error $? "working directory cannot be determined"
1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284  as_fn_error $? "pwd does not report name of working directory"
1285
1286
1287# Find the source files, if location was not specified.
1288if test -z "$srcdir"; then
1289  ac_srcdir_defaulted=yes
1290  # Try the directory containing this script, then the parent directory.
1291  ac_confdir=`$as_dirname -- "$as_myself" ||
1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293	 X"$as_myself" : 'X\(//\)[^/]' \| \
1294	 X"$as_myself" : 'X\(//\)$' \| \
1295	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296printf "%s\n" X"$as_myself" |
1297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\/\)[^/].*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)$/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\).*/{
1310	    s//\1/
1311	    q
1312	  }
1313	  s/.*/./; q'`
1314  srcdir=$ac_confdir
1315  if test ! -r "$srcdir/$ac_unique_file"; then
1316    srcdir=..
1317  fi
1318else
1319  ac_srcdir_defaulted=no
1320fi
1321if test ! -r "$srcdir/$ac_unique_file"; then
1322  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324fi
1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326ac_abs_confdir=`(
1327	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328	pwd)`
1329# When building in place, set srcdir=.
1330if test "$ac_abs_confdir" = "$ac_pwd"; then
1331  srcdir=.
1332fi
1333# Remove unnecessary trailing slashes from srcdir.
1334# Double slashes in file names in object file debugging info
1335# mess up M-x gdb in Emacs.
1336case $srcdir in
1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338esac
1339for ac_var in $ac_precious_vars; do
1340  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341  eval ac_env_${ac_var}_value=\$${ac_var}
1342  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344done
1345
1346#
1347# Report the --help message.
1348#
1349if test "$ac_init_help" = "long"; then
1350  # Omit some internal or obsolete options to make the list less imposing.
1351  # This message is too long to be a string in the A/UX 3.1 sh.
1352  cat <<_ACEOF
1353\`configure' configures xkbutils 1.0.5 to adapt to many kinds of systems.
1354
1355Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358VAR=VALUE.  See below for descriptions of some of the useful variables.
1359
1360Defaults for the options are specified in brackets.
1361
1362Configuration:
1363  -h, --help              display this help and exit
1364      --help=short        display options specific to this package
1365      --help=recursive    display the short help of all the included packages
1366  -V, --version           display version information and exit
1367  -q, --quiet, --silent   do not print \`checking ...' messages
1368      --cache-file=FILE   cache test results in FILE [disabled]
1369  -C, --config-cache      alias for \`--cache-file=config.cache'
1370  -n, --no-create         do not create output files
1371      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1372
1373Installation directories:
1374  --prefix=PREFIX         install architecture-independent files in PREFIX
1375                          [$ac_default_prefix]
1376  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1377                          [PREFIX]
1378
1379By default, \`make install' will install all the files in
1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1381an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382for instance \`--prefix=\$HOME'.
1383
1384For better control, use the options below.
1385
1386Fine tuning of the installation directories:
1387  --bindir=DIR            user executables [EPREFIX/bin]
1388  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1389  --libexecdir=DIR        program executables [EPREFIX/libexec]
1390  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1391  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1392  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1393  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1394  --libdir=DIR            object code libraries [EPREFIX/lib]
1395  --includedir=DIR        C header files [PREFIX/include]
1396  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1397  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1398  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1399  --infodir=DIR           info documentation [DATAROOTDIR/info]
1400  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1401  --mandir=DIR            man documentation [DATAROOTDIR/man]
1402  --docdir=DIR            documentation root [DATAROOTDIR/doc/xkbutils]
1403  --htmldir=DIR           html documentation [DOCDIR]
1404  --dvidir=DIR            dvi documentation [DOCDIR]
1405  --pdfdir=DIR            pdf documentation [DOCDIR]
1406  --psdir=DIR             ps documentation [DOCDIR]
1407_ACEOF
1408
1409  cat <<\_ACEOF
1410
1411Program names:
1412  --program-prefix=PREFIX            prepend PREFIX to installed program names
1413  --program-suffix=SUFFIX            append SUFFIX to installed program names
1414  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1415
1416System types:
1417  --build=BUILD     configure for building on BUILD [guessed]
1418  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1419_ACEOF
1420fi
1421
1422if test -n "$ac_init_help"; then
1423  case $ac_init_help in
1424     short | recursive ) echo "Configuration of xkbutils 1.0.5:";;
1425   esac
1426  cat <<\_ACEOF
1427
1428Optional Features:
1429  --disable-option-checking  ignore unrecognized --enable/--with options
1430  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1431  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1432  --enable-silent-rules   less verbose build output (undo: "make V=1")
1433  --disable-silent-rules  verbose build output (undo: "make V=0")
1434  --enable-dependency-tracking
1435                          do not reject slow dependency extractors
1436  --disable-dependency-tracking
1437                          speeds up one-time build
1438  --disable-selective-werror
1439                          Turn off selective compiler errors. (default:
1440                          enabled)
1441  --enable-strict-compilation
1442                          Enable all warnings from compiler and make them
1443                          errors (default: disabled)
1444
1445Some influential environment variables:
1446  CC          C compiler command
1447  CFLAGS      C compiler flags
1448  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1449              nonstandard directory <lib dir>
1450  LIBS        libraries to pass to the linker, e.g. -l<library>
1451  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1452              you have headers in a nonstandard directory <include dir>
1453  PKG_CONFIG  path to pkg-config utility
1454  PKG_CONFIG_PATH
1455              directories to add to pkg-config's search path
1456  PKG_CONFIG_LIBDIR
1457              path overriding pkg-config's built-in search path
1458  XKBVLEDS_CFLAGS
1459              C compiler flags for XKBVLEDS, overriding pkg-config
1460  XKBVLEDS_LIBS
1461              linker flags for XKBVLEDS, overriding pkg-config
1462  XKBBELL_CFLAGS
1463              C compiler flags for XKBBELL, overriding pkg-config
1464  XKBBELL_LIBS
1465              linker flags for XKBBELL, overriding pkg-config
1466  XKBWATCH_CFLAGS
1467              C compiler flags for XKBWATCH, overriding pkg-config
1468  XKBWATCH_LIBS
1469              linker flags for XKBWATCH, overriding pkg-config
1470
1471Use these variables to override the choices made by `configure' or to help
1472it to find libraries and programs with nonstandard names/locations.
1473
1474Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbutils/issues>.
1475_ACEOF
1476ac_status=$?
1477fi
1478
1479if test "$ac_init_help" = "recursive"; then
1480  # If there are subdirs, report their specific --help.
1481  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482    test -d "$ac_dir" ||
1483      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484      continue
1485    ac_builddir=.
1486
1487case "$ac_dir" in
1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489*)
1490  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1491  # A ".." for each directory in $ac_dir_suffix.
1492  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493  case $ac_top_builddir_sub in
1494  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496  esac ;;
1497esac
1498ac_abs_top_builddir=$ac_pwd
1499ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500# for backward compatibility:
1501ac_top_builddir=$ac_top_build_prefix
1502
1503case $srcdir in
1504  .)  # We are building in place.
1505    ac_srcdir=.
1506    ac_top_srcdir=$ac_top_builddir_sub
1507    ac_abs_top_srcdir=$ac_pwd ;;
1508  [\\/]* | ?:[\\/]* )  # Absolute name.
1509    ac_srcdir=$srcdir$ac_dir_suffix;
1510    ac_top_srcdir=$srcdir
1511    ac_abs_top_srcdir=$srcdir ;;
1512  *) # Relative name.
1513    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514    ac_top_srcdir=$ac_top_build_prefix$srcdir
1515    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516esac
1517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519    cd "$ac_dir" || { ac_status=$?; continue; }
1520    # Check for configure.gnu first; this name is used for a wrapper for
1521    # Metaconfig's "Configure" on case-insensitive file systems.
1522    if test -f "$ac_srcdir/configure.gnu"; then
1523      echo &&
1524      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525    elif test -f "$ac_srcdir/configure"; then
1526      echo &&
1527      $SHELL "$ac_srcdir/configure" --help=recursive
1528    else
1529      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530    fi || ac_status=$?
1531    cd "$ac_pwd" || { ac_status=$?; break; }
1532  done
1533fi
1534
1535test -n "$ac_init_help" && exit $ac_status
1536if $ac_init_version; then
1537  cat <<\_ACEOF
1538xkbutils configure 1.0.5
1539generated by GNU Autoconf 2.71
1540
1541Copyright (C) 2021 Free Software Foundation, Inc.
1542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
1544_ACEOF
1545  exit
1546fi
1547
1548## ------------------------ ##
1549## Autoconf initialization. ##
1550## ------------------------ ##
1551
1552# ac_fn_c_try_compile LINENO
1553# --------------------------
1554# Try to compile conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_compile ()
1556{
1557  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558  rm -f conftest.$ac_objext conftest.beam
1559  if { { ac_try="$ac_compile"
1560case "(($ac_try" in
1561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562  *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565printf "%s\n" "$ac_try_echo"; } >&5
1566  (eval "$ac_compile") 2>conftest.err
1567  ac_status=$?
1568  if test -s conftest.err; then
1569    grep -v '^ *+' conftest.err >conftest.er1
1570    cat conftest.er1 >&5
1571    mv -f conftest.er1 conftest.err
1572  fi
1573  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574  test $ac_status = 0; } && {
1575	 test -z "$ac_c_werror_flag" ||
1576	 test ! -s conftest.err
1577       } && test -s conftest.$ac_objext
1578then :
1579  ac_retval=0
1580else $as_nop
1581  printf "%s\n" "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584	ac_retval=1
1585fi
1586  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587  as_fn_set_status $ac_retval
1588
1589} # ac_fn_c_try_compile
1590
1591# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1592# ------------------------------------------------------------------
1593# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1594# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1595ac_fn_check_decl ()
1596{
1597  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598  as_decl_name=`echo $2|sed 's/ *(.*//'`
1599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1600printf %s "checking whether $as_decl_name is declared... " >&6; }
1601if eval test \${$3+y}
1602then :
1603  printf %s "(cached) " >&6
1604else $as_nop
1605  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1606  eval ac_save_FLAGS=\$$6
1607  as_fn_append $6 " $5"
1608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609/* end confdefs.h.  */
1610$4
1611int
1612main (void)
1613{
1614#ifndef $as_decl_name
1615#ifdef __cplusplus
1616  (void) $as_decl_use;
1617#else
1618  (void) $as_decl_name;
1619#endif
1620#endif
1621
1622  ;
1623  return 0;
1624}
1625_ACEOF
1626if ac_fn_c_try_compile "$LINENO"
1627then :
1628  eval "$3=yes"
1629else $as_nop
1630  eval "$3=no"
1631fi
1632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1633  eval $6=\$ac_save_FLAGS
1634
1635fi
1636eval ac_res=\$$3
1637	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638printf "%s\n" "$ac_res" >&6; }
1639  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
1641} # ac_fn_check_decl
1642
1643# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644# -------------------------------------------------------
1645# Tests whether HEADER exists and can be compiled using the include files in
1646# INCLUDES, setting the cache variable VAR accordingly.
1647ac_fn_c_check_header_compile ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651printf %s "checking for $2... " >&6; }
1652if eval test \${$3+y}
1653then :
1654  printf %s "(cached) " >&6
1655else $as_nop
1656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657/* end confdefs.h.  */
1658$4
1659#include <$2>
1660_ACEOF
1661if ac_fn_c_try_compile "$LINENO"
1662then :
1663  eval "$3=yes"
1664else $as_nop
1665  eval "$3=no"
1666fi
1667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1668fi
1669eval ac_res=\$$3
1670	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671printf "%s\n" "$ac_res" >&6; }
1672  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674} # ac_fn_c_check_header_compile
1675
1676# ac_fn_c_try_link LINENO
1677# -----------------------
1678# Try to link conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_c_try_link ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1683  if { { ac_try="$ac_link"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689printf "%s\n" "$ac_try_echo"; } >&5
1690  (eval "$ac_link") 2>conftest.err
1691  ac_status=$?
1692  if test -s conftest.err; then
1693    grep -v '^ *+' conftest.err >conftest.er1
1694    cat conftest.er1 >&5
1695    mv -f conftest.er1 conftest.err
1696  fi
1697  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } && {
1699	 test -z "$ac_c_werror_flag" ||
1700	 test ! -s conftest.err
1701       } && test -s conftest$ac_exeext && {
1702	 test "$cross_compiling" = yes ||
1703	 test -x conftest$ac_exeext
1704       }
1705then :
1706  ac_retval=0
1707else $as_nop
1708  printf "%s\n" "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711	ac_retval=1
1712fi
1713  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715  # interfere with the next link command; also delete a directory that is
1716  # left behind by Apple's compiler.  We do this before executing the actions.
1717  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719  as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_link
1722
1723# ac_fn_c_check_func LINENO FUNC VAR
1724# ----------------------------------
1725# Tests whether FUNC exists, setting the cache variable VAR accordingly
1726ac_fn_c_check_func ()
1727{
1728  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730printf %s "checking for $2... " >&6; }
1731if eval test \${$3+y}
1732then :
1733  printf %s "(cached) " >&6
1734else $as_nop
1735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736/* end confdefs.h.  */
1737/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1739#define $2 innocuous_$2
1740
1741/* System header to define __stub macros and hopefully few prototypes,
1742   which can conflict with char $2 (); below.  */
1743
1744#include <limits.h>
1745#undef $2
1746
1747/* Override any GCC internal prototype to avoid an error.
1748   Use char because int might match the return type of a GCC
1749   builtin and then its argument prototype would still apply.  */
1750#ifdef __cplusplus
1751extern "C"
1752#endif
1753char $2 ();
1754/* The GNU C library defines this for functions which it implements
1755    to always fail with ENOSYS.  Some functions are actually named
1756    something starting with __ and the normal name is an alias.  */
1757#if defined __stub_$2 || defined __stub___$2
1758choke me
1759#endif
1760
1761int
1762main (void)
1763{
1764return $2 ();
1765  ;
1766  return 0;
1767}
1768_ACEOF
1769if ac_fn_c_try_link "$LINENO"
1770then :
1771  eval "$3=yes"
1772else $as_nop
1773  eval "$3=no"
1774fi
1775rm -f core conftest.err conftest.$ac_objext conftest.beam \
1776    conftest$ac_exeext conftest.$ac_ext
1777fi
1778eval ac_res=\$$3
1779	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780printf "%s\n" "$ac_res" >&6; }
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783} # ac_fn_c_check_func
1784ac_configure_args_raw=
1785for ac_arg
1786do
1787  case $ac_arg in
1788  *\'*)
1789    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1790  esac
1791  as_fn_append ac_configure_args_raw " '$ac_arg'"
1792done
1793
1794case $ac_configure_args_raw in
1795  *$as_nl*)
1796    ac_safe_unquote= ;;
1797  *)
1798    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1799    ac_unsafe_a="$ac_unsafe_z#~"
1800    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1801    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1802esac
1803
1804cat >config.log <<_ACEOF
1805This file contains any messages produced by compilers while
1806running configure, to aid debugging if configure makes a mistake.
1807
1808It was created by xkbutils $as_me 1.0.5, which was
1809generated by GNU Autoconf 2.71.  Invocation command line was
1810
1811  $ $0$ac_configure_args_raw
1812
1813_ACEOF
1814exec 5>>config.log
1815{
1816cat <<_ASUNAME
1817## --------- ##
1818## Platform. ##
1819## --------- ##
1820
1821hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1822uname -m = `(uname -m) 2>/dev/null || echo unknown`
1823uname -r = `(uname -r) 2>/dev/null || echo unknown`
1824uname -s = `(uname -s) 2>/dev/null || echo unknown`
1825uname -v = `(uname -v) 2>/dev/null || echo unknown`
1826
1827/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1828/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1829
1830/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1831/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1832/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1833/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1834/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1835/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1836/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1837
1838_ASUNAME
1839
1840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841for as_dir in $PATH
1842do
1843  IFS=$as_save_IFS
1844  case $as_dir in #(((
1845    '') as_dir=./ ;;
1846    */) ;;
1847    *) as_dir=$as_dir/ ;;
1848  esac
1849    printf "%s\n" "PATH: $as_dir"
1850  done
1851IFS=$as_save_IFS
1852
1853} >&5
1854
1855cat >&5 <<_ACEOF
1856
1857
1858## ----------- ##
1859## Core tests. ##
1860## ----------- ##
1861
1862_ACEOF
1863
1864
1865# Keep a trace of the command line.
1866# Strip out --no-create and --no-recursion so they do not pile up.
1867# Strip out --silent because we don't want to record it for future runs.
1868# Also quote any args containing shell meta-characters.
1869# Make two passes to allow for proper duplicate-argument suppression.
1870ac_configure_args=
1871ac_configure_args0=
1872ac_configure_args1=
1873ac_must_keep_next=false
1874for ac_pass in 1 2
1875do
1876  for ac_arg
1877  do
1878    case $ac_arg in
1879    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881    | -silent | --silent | --silen | --sile | --sil)
1882      continue ;;
1883    *\'*)
1884      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1885    esac
1886    case $ac_pass in
1887    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1888    2)
1889      as_fn_append ac_configure_args1 " '$ac_arg'"
1890      if test $ac_must_keep_next = true; then
1891	ac_must_keep_next=false # Got value, back to normal.
1892      else
1893	case $ac_arg in
1894	  *=* | --config-cache | -C | -disable-* | --disable-* \
1895	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897	  | -with-* | --with-* | -without-* | --without-* | --x)
1898	    case "$ac_configure_args0 " in
1899	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1900	    esac
1901	    ;;
1902	  -* ) ac_must_keep_next=true ;;
1903	esac
1904      fi
1905      as_fn_append ac_configure_args " '$ac_arg'"
1906      ;;
1907    esac
1908  done
1909done
1910{ ac_configure_args0=; unset ac_configure_args0;}
1911{ ac_configure_args1=; unset ac_configure_args1;}
1912
1913# When interrupted or exit'd, cleanup temporary files, and complete
1914# config.log.  We remove comments because anyway the quotes in there
1915# would cause problems or look ugly.
1916# WARNING: Use '\'' to represent an apostrophe within the trap.
1917# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1918trap 'exit_status=$?
1919  # Sanitize IFS.
1920  IFS=" ""	$as_nl"
1921  # Save into config.log some information that might help in debugging.
1922  {
1923    echo
1924
1925    printf "%s\n" "## ---------------- ##
1926## Cache variables. ##
1927## ---------------- ##"
1928    echo
1929    # The following way of writing the cache mishandles newlines in values,
1930(
1931  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1932    eval ac_val=\$$ac_var
1933    case $ac_val in #(
1934    *${as_nl}*)
1935      case $ac_var in #(
1936      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1937printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1938      esac
1939      case $ac_var in #(
1940      _ | IFS | as_nl) ;; #(
1941      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1942      *) { eval $ac_var=; unset $ac_var;} ;;
1943      esac ;;
1944    esac
1945  done
1946  (set) 2>&1 |
1947    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948    *${as_nl}ac_space=\ *)
1949      sed -n \
1950	"s/'\''/'\''\\\\'\'''\''/g;
1951	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1952      ;; #(
1953    *)
1954      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1955      ;;
1956    esac |
1957    sort
1958)
1959    echo
1960
1961    printf "%s\n" "## ----------------- ##
1962## Output variables. ##
1963## ----------------- ##"
1964    echo
1965    for ac_var in $ac_subst_vars
1966    do
1967      eval ac_val=\$$ac_var
1968      case $ac_val in
1969      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1970      esac
1971      printf "%s\n" "$ac_var='\''$ac_val'\''"
1972    done | sort
1973    echo
1974
1975    if test -n "$ac_subst_files"; then
1976      printf "%s\n" "## ------------------- ##
1977## File substitutions. ##
1978## ------------------- ##"
1979      echo
1980      for ac_var in $ac_subst_files
1981      do
1982	eval ac_val=\$$ac_var
1983	case $ac_val in
1984	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1985	esac
1986	printf "%s\n" "$ac_var='\''$ac_val'\''"
1987      done | sort
1988      echo
1989    fi
1990
1991    if test -s confdefs.h; then
1992      printf "%s\n" "## ----------- ##
1993## confdefs.h. ##
1994## ----------- ##"
1995      echo
1996      cat confdefs.h
1997      echo
1998    fi
1999    test "$ac_signal" != 0 &&
2000      printf "%s\n" "$as_me: caught signal $ac_signal"
2001    printf "%s\n" "$as_me: exit $exit_status"
2002  } >&5
2003  rm -f core *.core core.conftest.* &&
2004    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2005    exit $exit_status
2006' 0
2007for ac_signal in 1 2 13 15; do
2008  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2009done
2010ac_signal=0
2011
2012# confdefs.h avoids OS command line length limits that DEFS can exceed.
2013rm -f -r conftest* confdefs.h
2014
2015printf "%s\n" "/* confdefs.h */" > confdefs.h
2016
2017# Predefined preprocessor variables.
2018
2019printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2020
2021printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2022
2023printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2024
2025printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2026
2027printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2028
2029printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2030
2031
2032# Let the site file select an alternate cache file if it wants to.
2033# Prefer an explicitly selected file to automatically selected ones.
2034if test -n "$CONFIG_SITE"; then
2035  ac_site_files="$CONFIG_SITE"
2036elif test "x$prefix" != xNONE; then
2037  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2038else
2039  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2040fi
2041
2042for ac_site_file in $ac_site_files
2043do
2044  case $ac_site_file in #(
2045  */*) :
2046     ;; #(
2047  *) :
2048    ac_site_file=./$ac_site_file ;;
2049esac
2050  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2051    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2052printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2053    sed 's/^/| /' "$ac_site_file" >&5
2054    . "$ac_site_file" \
2055      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2056printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2057as_fn_error $? "failed to load site script $ac_site_file
2058See \`config.log' for more details" "$LINENO" 5; }
2059  fi
2060done
2061
2062if test -r "$cache_file"; then
2063  # Some versions of bash will fail to source /dev/null (special files
2064  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2065  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2066    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2067printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2068    case $cache_file in
2069      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2070      *)                      . "./$cache_file";;
2071    esac
2072  fi
2073else
2074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2075printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2076  >$cache_file
2077fi
2078
2079# Test code for whether the C compiler supports C89 (global declarations)
2080ac_c_conftest_c89_globals='
2081/* Does the compiler advertise C89 conformance?
2082   Do not test the value of __STDC__, because some compilers set it to 0
2083   while being otherwise adequately conformant. */
2084#if !defined __STDC__
2085# error "Compiler does not advertise C89 conformance"
2086#endif
2087
2088#include <stddef.h>
2089#include <stdarg.h>
2090struct stat;
2091/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2092struct buf { int x; };
2093struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2094static char *e (p, i)
2095     char **p;
2096     int i;
2097{
2098  return p[i];
2099}
2100static char *f (char * (*g) (char **, int), char **p, ...)
2101{
2102  char *s;
2103  va_list v;
2104  va_start (v,p);
2105  s = g (p, va_arg (v,int));
2106  va_end (v);
2107  return s;
2108}
2109
2110/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2111   function prototypes and stuff, but not \xHH hex character constants.
2112   These do not provoke an error unfortunately, instead are silently treated
2113   as an "x".  The following induces an error, until -std is added to get
2114   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2115   array size at least.  It is necessary to write \x00 == 0 to get something
2116   that is true only with -std.  */
2117int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2118
2119/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2120   inside strings and character constants.  */
2121#define FOO(x) '\''x'\''
2122int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2123
2124int test (int i, double x);
2125struct s1 {int (*f) (int a);};
2126struct s2 {int (*f) (double a);};
2127int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2128               int, int);'
2129
2130# Test code for whether the C compiler supports C89 (body of main).
2131ac_c_conftest_c89_main='
2132ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2133'
2134
2135# Test code for whether the C compiler supports C99 (global declarations)
2136ac_c_conftest_c99_globals='
2137// Does the compiler advertise C99 conformance?
2138#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2139# error "Compiler does not advertise C99 conformance"
2140#endif
2141
2142#include <stdbool.h>
2143extern int puts (const char *);
2144extern int printf (const char *, ...);
2145extern int dprintf (int, const char *, ...);
2146extern void *malloc (size_t);
2147
2148// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2149// dprintf is used instead of fprintf to avoid needing to declare
2150// FILE and stderr.
2151#define debug(...) dprintf (2, __VA_ARGS__)
2152#define showlist(...) puts (#__VA_ARGS__)
2153#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2154static void
2155test_varargs_macros (void)
2156{
2157  int x = 1234;
2158  int y = 5678;
2159  debug ("Flag");
2160  debug ("X = %d\n", x);
2161  showlist (The first, second, and third items.);
2162  report (x>y, "x is %d but y is %d", x, y);
2163}
2164
2165// Check long long types.
2166#define BIG64 18446744073709551615ull
2167#define BIG32 4294967295ul
2168#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2169#if !BIG_OK
2170  #error "your preprocessor is broken"
2171#endif
2172#if BIG_OK
2173#else
2174  #error "your preprocessor is broken"
2175#endif
2176static long long int bignum = -9223372036854775807LL;
2177static unsigned long long int ubignum = BIG64;
2178
2179struct incomplete_array
2180{
2181  int datasize;
2182  double data[];
2183};
2184
2185struct named_init {
2186  int number;
2187  const wchar_t *name;
2188  double average;
2189};
2190
2191typedef const char *ccp;
2192
2193static inline int
2194test_restrict (ccp restrict text)
2195{
2196  // See if C++-style comments work.
2197  // Iterate through items via the restricted pointer.
2198  // Also check for declarations in for loops.
2199  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2200    continue;
2201  return 0;
2202}
2203
2204// Check varargs and va_copy.
2205static bool
2206test_varargs (const char *format, ...)
2207{
2208  va_list args;
2209  va_start (args, format);
2210  va_list args_copy;
2211  va_copy (args_copy, args);
2212
2213  const char *str = "";
2214  int number = 0;
2215  float fnumber = 0;
2216
2217  while (*format)
2218    {
2219      switch (*format++)
2220	{
2221	case '\''s'\'': // string
2222	  str = va_arg (args_copy, const char *);
2223	  break;
2224	case '\''d'\'': // int
2225	  number = va_arg (args_copy, int);
2226	  break;
2227	case '\''f'\'': // float
2228	  fnumber = va_arg (args_copy, double);
2229	  break;
2230	default:
2231	  break;
2232	}
2233    }
2234  va_end (args_copy);
2235  va_end (args);
2236
2237  return *str && number && fnumber;
2238}
2239'
2240
2241# Test code for whether the C compiler supports C99 (body of main).
2242ac_c_conftest_c99_main='
2243  // Check bool.
2244  _Bool success = false;
2245  success |= (argc != 0);
2246
2247  // Check restrict.
2248  if (test_restrict ("String literal") == 0)
2249    success = true;
2250  char *restrict newvar = "Another string";
2251
2252  // Check varargs.
2253  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2254  test_varargs_macros ();
2255
2256  // Check flexible array members.
2257  struct incomplete_array *ia =
2258    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2259  ia->datasize = 10;
2260  for (int i = 0; i < ia->datasize; ++i)
2261    ia->data[i] = i * 1.234;
2262
2263  // Check named initializers.
2264  struct named_init ni = {
2265    .number = 34,
2266    .name = L"Test wide string",
2267    .average = 543.34343,
2268  };
2269
2270  ni.number = 58;
2271
2272  int dynamic_array[ni.number];
2273  dynamic_array[0] = argv[0][0];
2274  dynamic_array[ni.number - 1] = 543;
2275
2276  // work around unused variable warnings
2277  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2278	 || dynamic_array[ni.number - 1] != 543);
2279'
2280
2281# Test code for whether the C compiler supports C11 (global declarations)
2282ac_c_conftest_c11_globals='
2283// Does the compiler advertise C11 conformance?
2284#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2285# error "Compiler does not advertise C11 conformance"
2286#endif
2287
2288// Check _Alignas.
2289char _Alignas (double) aligned_as_double;
2290char _Alignas (0) no_special_alignment;
2291extern char aligned_as_int;
2292char _Alignas (0) _Alignas (int) aligned_as_int;
2293
2294// Check _Alignof.
2295enum
2296{
2297  int_alignment = _Alignof (int),
2298  int_array_alignment = _Alignof (int[100]),
2299  char_alignment = _Alignof (char)
2300};
2301_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2302
2303// Check _Noreturn.
2304int _Noreturn does_not_return (void) { for (;;) continue; }
2305
2306// Check _Static_assert.
2307struct test_static_assert
2308{
2309  int x;
2310  _Static_assert (sizeof (int) <= sizeof (long int),
2311                  "_Static_assert does not work in struct");
2312  long int y;
2313};
2314
2315// Check UTF-8 literals.
2316#define u8 syntax error!
2317char const utf8_literal[] = u8"happens to be ASCII" "another string";
2318
2319// Check duplicate typedefs.
2320typedef long *long_ptr;
2321typedef long int *long_ptr;
2322typedef long_ptr long_ptr;
2323
2324// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2325struct anonymous
2326{
2327  union {
2328    struct { int i; int j; };
2329    struct { int k; long int l; } w;
2330  };
2331  int m;
2332} v1;
2333'
2334
2335# Test code for whether the C compiler supports C11 (body of main).
2336ac_c_conftest_c11_main='
2337  _Static_assert ((offsetof (struct anonymous, i)
2338		   == offsetof (struct anonymous, w.k)),
2339		  "Anonymous union alignment botch");
2340  v1.i = 2;
2341  v1.w.k = 5;
2342  ok |= v1.i != 5;
2343'
2344
2345# Test code for whether the C compiler supports C11 (complete).
2346ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2347${ac_c_conftest_c99_globals}
2348${ac_c_conftest_c11_globals}
2349
2350int
2351main (int argc, char **argv)
2352{
2353  int ok = 0;
2354  ${ac_c_conftest_c89_main}
2355  ${ac_c_conftest_c99_main}
2356  ${ac_c_conftest_c11_main}
2357  return ok;
2358}
2359"
2360
2361# Test code for whether the C compiler supports C99 (complete).
2362ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2363${ac_c_conftest_c99_globals}
2364
2365int
2366main (int argc, char **argv)
2367{
2368  int ok = 0;
2369  ${ac_c_conftest_c89_main}
2370  ${ac_c_conftest_c99_main}
2371  return ok;
2372}
2373"
2374
2375# Test code for whether the C compiler supports C89 (complete).
2376ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2377
2378int
2379main (int argc, char **argv)
2380{
2381  int ok = 0;
2382  ${ac_c_conftest_c89_main}
2383  return ok;
2384}
2385"
2386
2387as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2388as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2389as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2390as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2391as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2392as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2393as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2394as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2395as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2396
2397# Auxiliary files required by this configure script.
2398ac_aux_files="config.guess config.sub compile missing install-sh"
2399
2400# Locations in which to look for auxiliary files.
2401ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2402
2403# Search for a directory containing all of the required auxiliary files,
2404# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2405# If we don't find one directory that contains all the files we need,
2406# we report the set of missing files from the *first* directory in
2407# $ac_aux_dir_candidates and give up.
2408ac_missing_aux_files=""
2409ac_first_candidate=:
2410printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412as_found=false
2413for as_dir in $ac_aux_dir_candidates
2414do
2415  IFS=$as_save_IFS
2416  case $as_dir in #(((
2417    '') as_dir=./ ;;
2418    */) ;;
2419    *) as_dir=$as_dir/ ;;
2420  esac
2421  as_found=:
2422
2423  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2424  ac_aux_dir_found=yes
2425  ac_install_sh=
2426  for ac_aux in $ac_aux_files
2427  do
2428    # As a special case, if "install-sh" is required, that requirement
2429    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2430    # and $ac_install_sh is set appropriately for whichever one is found.
2431    if test x"$ac_aux" = x"install-sh"
2432    then
2433      if test -f "${as_dir}install-sh"; then
2434        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2435        ac_install_sh="${as_dir}install-sh -c"
2436      elif test -f "${as_dir}install.sh"; then
2437        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2438        ac_install_sh="${as_dir}install.sh -c"
2439      elif test -f "${as_dir}shtool"; then
2440        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2441        ac_install_sh="${as_dir}shtool install -c"
2442      else
2443        ac_aux_dir_found=no
2444        if $ac_first_candidate; then
2445          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2446        else
2447          break
2448        fi
2449      fi
2450    else
2451      if test -f "${as_dir}${ac_aux}"; then
2452        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2453      else
2454        ac_aux_dir_found=no
2455        if $ac_first_candidate; then
2456          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2457        else
2458          break
2459        fi
2460      fi
2461    fi
2462  done
2463  if test "$ac_aux_dir_found" = yes; then
2464    ac_aux_dir="$as_dir"
2465    break
2466  fi
2467  ac_first_candidate=false
2468
2469  as_found=false
2470done
2471IFS=$as_save_IFS
2472if $as_found
2473then :
2474
2475else $as_nop
2476  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2477fi
2478
2479
2480# These three variables are undocumented and unsupported,
2481# and are intended to be withdrawn in a future Autoconf release.
2482# They can cause serious problems if a builder's source tree is in a directory
2483# whose full name contains unusual characters.
2484if test -f "${ac_aux_dir}config.guess"; then
2485  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2486fi
2487if test -f "${ac_aux_dir}config.sub"; then
2488  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2489fi
2490if test -f "$ac_aux_dir/configure"; then
2491  ac_configure="$SHELL ${ac_aux_dir}configure"
2492fi
2493
2494# Check that the precious variables saved in the cache have kept the same
2495# value.
2496ac_cache_corrupted=false
2497for ac_var in $ac_precious_vars; do
2498  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2499  eval ac_new_set=\$ac_env_${ac_var}_set
2500  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2501  eval ac_new_val=\$ac_env_${ac_var}_value
2502  case $ac_old_set,$ac_new_set in
2503    set,)
2504      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2505printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2506      ac_cache_corrupted=: ;;
2507    ,set)
2508      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2509printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2510      ac_cache_corrupted=: ;;
2511    ,);;
2512    *)
2513      if test "x$ac_old_val" != "x$ac_new_val"; then
2514	# differences in whitespace do not lead to failure.
2515	ac_old_val_w=`echo x $ac_old_val`
2516	ac_new_val_w=`echo x $ac_new_val`
2517	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2518	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2519printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2520	  ac_cache_corrupted=:
2521	else
2522	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2523printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2524	  eval $ac_var=\$ac_old_val
2525	fi
2526	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2527printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2528	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2529printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2530      fi;;
2531  esac
2532  # Pass precious variables to config.status.
2533  if test "$ac_new_set" = set; then
2534    case $ac_new_val in
2535    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2536    *) ac_arg=$ac_var=$ac_new_val ;;
2537    esac
2538    case " $ac_configure_args " in
2539      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2540      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2541    esac
2542  fi
2543done
2544if $ac_cache_corrupted; then
2545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2548printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2549  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2550	    and start over" "$LINENO" 5
2551fi
2552## -------------------- ##
2553## Main body of script. ##
2554## -------------------- ##
2555
2556ac_ext=c
2557ac_cpp='$CPP $CPPFLAGS'
2558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561
2562
2563
2564ac_config_headers="$ac_config_headers config.h"
2565
2566
2567# Initialize Automake
2568am__api_version='1.16'
2569
2570
2571
2572  # Find a good install program.  We prefer a C program (faster),
2573# so one script is as good as another.  But avoid the broken or
2574# incompatible versions:
2575# SysV /etc/install, /usr/sbin/install
2576# SunOS /usr/etc/install
2577# IRIX /sbin/install
2578# AIX /bin/install
2579# AmigaOS /C/install, which installs bootblocks on floppy discs
2580# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2581# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2582# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2583# OS/2's system install, which has a completely different semantic
2584# ./install, which can be erroneously created by make from ./install.sh.
2585# Reject install programs that cannot install multiple files.
2586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2587printf %s "checking for a BSD-compatible install... " >&6; }
2588if test -z "$INSTALL"; then
2589if test ${ac_cv_path_install+y}
2590then :
2591  printf %s "(cached) " >&6
2592else $as_nop
2593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594for as_dir in $PATH
2595do
2596  IFS=$as_save_IFS
2597  case $as_dir in #(((
2598    '') as_dir=./ ;;
2599    */) ;;
2600    *) as_dir=$as_dir/ ;;
2601  esac
2602    # Account for fact that we put trailing slashes in our PATH walk.
2603case $as_dir in #((
2604  ./ | /[cC]/* | \
2605  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2606  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2607  /usr/ucb/* ) ;;
2608  *)
2609    # OSF1 and SCO ODT 3.0 have their own names for install.
2610    # Don't use installbsd from OSF since it installs stuff as root
2611    # by default.
2612    for ac_prog in ginstall scoinst install; do
2613      for ac_exec_ext in '' $ac_executable_extensions; do
2614	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2615	  if test $ac_prog = install &&
2616	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2617	    # AIX install.  It has an incompatible calling convention.
2618	    :
2619	  elif test $ac_prog = install &&
2620	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2621	    # program-specific install script used by HP pwplus--don't use.
2622	    :
2623	  else
2624	    rm -rf conftest.one conftest.two conftest.dir
2625	    echo one > conftest.one
2626	    echo two > conftest.two
2627	    mkdir conftest.dir
2628	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2629	      test -s conftest.one && test -s conftest.two &&
2630	      test -s conftest.dir/conftest.one &&
2631	      test -s conftest.dir/conftest.two
2632	    then
2633	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2634	      break 3
2635	    fi
2636	  fi
2637	fi
2638      done
2639    done
2640    ;;
2641esac
2642
2643  done
2644IFS=$as_save_IFS
2645
2646rm -rf conftest.one conftest.two conftest.dir
2647
2648fi
2649  if test ${ac_cv_path_install+y}; then
2650    INSTALL=$ac_cv_path_install
2651  else
2652    # As a last resort, use the slow shell script.  Don't cache a
2653    # value for INSTALL within a source directory, because that will
2654    # break other packages using the cache if that directory is
2655    # removed, or if the value is a relative name.
2656    INSTALL=$ac_install_sh
2657  fi
2658fi
2659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2660printf "%s\n" "$INSTALL" >&6; }
2661
2662# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2663# It thinks the first close brace ends the variable substitution.
2664test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2665
2666test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2667
2668test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2669
2670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2671printf %s "checking whether build environment is sane... " >&6; }
2672# Reject unsafe characters in $srcdir or the absolute working directory
2673# name.  Accept space and tab only in the latter.
2674am_lf='
2675'
2676case `pwd` in
2677  *[\\\"\#\$\&\'\`$am_lf]*)
2678    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2679esac
2680case $srcdir in
2681  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2682    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2683esac
2684
2685# Do 'set' in a subshell so we don't clobber the current shell's
2686# arguments.  Must try -L first in case configure is actually a
2687# symlink; some systems play weird games with the mod time of symlinks
2688# (eg FreeBSD returns the mod time of the symlink's containing
2689# directory).
2690if (
2691   am_has_slept=no
2692   for am_try in 1 2; do
2693     echo "timestamp, slept: $am_has_slept" > conftest.file
2694     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2695     if test "$*" = "X"; then
2696	# -L didn't work.
2697	set X `ls -t "$srcdir/configure" conftest.file`
2698     fi
2699     if test "$*" != "X $srcdir/configure conftest.file" \
2700	&& test "$*" != "X conftest.file $srcdir/configure"; then
2701
2702	# If neither matched, then we have a broken ls.  This can happen
2703	# if, for instance, CONFIG_SHELL is bash and it inherits a
2704	# broken ls alias from the environment.  This has actually
2705	# happened.  Such a system could not be considered "sane".
2706	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2707  alias in your environment" "$LINENO" 5
2708     fi
2709     if test "$2" = conftest.file || test $am_try -eq 2; then
2710       break
2711     fi
2712     # Just in case.
2713     sleep 1
2714     am_has_slept=yes
2715   done
2716   test "$2" = conftest.file
2717   )
2718then
2719   # Ok.
2720   :
2721else
2722   as_fn_error $? "newly created file is older than distributed files!
2723Check your system clock" "$LINENO" 5
2724fi
2725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2726printf "%s\n" "yes" >&6; }
2727# If we didn't sleep, we still need to ensure time stamps of config.status and
2728# generated files are strictly newer.
2729am_sleep_pid=
2730if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2731  ( sleep 1 ) &
2732  am_sleep_pid=$!
2733fi
2734
2735rm -f conftest.file
2736
2737test "$program_prefix" != NONE &&
2738  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2739# Use a double $ so make ignores it.
2740test "$program_suffix" != NONE &&
2741  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2742# Double any \ or $.
2743# By default was `s,x,x', remove it if useless.
2744ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2745program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2746
2747
2748# Expand $ac_aux_dir to an absolute path.
2749am_aux_dir=`cd "$ac_aux_dir" && pwd`
2750
2751
2752  if test x"${MISSING+set}" != xset; then
2753  MISSING="\${SHELL} '$am_aux_dir/missing'"
2754fi
2755# Use eval to expand $SHELL
2756if eval "$MISSING --is-lightweight"; then
2757  am_missing_run="$MISSING "
2758else
2759  am_missing_run=
2760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2761printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2762fi
2763
2764if test x"${install_sh+set}" != xset; then
2765  case $am_aux_dir in
2766  *\ * | *\	*)
2767    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2768  *)
2769    install_sh="\${SHELL} $am_aux_dir/install-sh"
2770  esac
2771fi
2772
2773# Installed binaries are usually stripped using 'strip' when the user
2774# run "make install-strip".  However 'strip' might not be the right
2775# tool to use in cross-compilation environments, therefore Automake
2776# will honor the 'STRIP' environment variable to overrule this program.
2777if test "$cross_compiling" != no; then
2778  if test -n "$ac_tool_prefix"; then
2779  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2780set dummy ${ac_tool_prefix}strip; ac_word=$2
2781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782printf %s "checking for $ac_word... " >&6; }
2783if test ${ac_cv_prog_STRIP+y}
2784then :
2785  printf %s "(cached) " >&6
2786else $as_nop
2787  if test -n "$STRIP"; then
2788  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793  IFS=$as_save_IFS
2794  case $as_dir in #(((
2795    '') as_dir=./ ;;
2796    */) ;;
2797    *) as_dir=$as_dir/ ;;
2798  esac
2799    for ac_exec_ext in '' $ac_executable_extensions; do
2800  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2801    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2802    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2803    break 2
2804  fi
2805done
2806  done
2807IFS=$as_save_IFS
2808
2809fi
2810fi
2811STRIP=$ac_cv_prog_STRIP
2812if test -n "$STRIP"; then
2813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2814printf "%s\n" "$STRIP" >&6; }
2815else
2816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817printf "%s\n" "no" >&6; }
2818fi
2819
2820
2821fi
2822if test -z "$ac_cv_prog_STRIP"; then
2823  ac_ct_STRIP=$STRIP
2824  # Extract the first word of "strip", so it can be a program name with args.
2825set dummy strip; ac_word=$2
2826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827printf %s "checking for $ac_word... " >&6; }
2828if test ${ac_cv_prog_ac_ct_STRIP+y}
2829then :
2830  printf %s "(cached) " >&6
2831else $as_nop
2832  if test -n "$ac_ct_STRIP"; then
2833  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838  IFS=$as_save_IFS
2839  case $as_dir in #(((
2840    '') as_dir=./ ;;
2841    */) ;;
2842    *) as_dir=$as_dir/ ;;
2843  esac
2844    for ac_exec_ext in '' $ac_executable_extensions; do
2845  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2846    ac_cv_prog_ac_ct_STRIP="strip"
2847    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2848    break 2
2849  fi
2850done
2851  done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2857if test -n "$ac_ct_STRIP"; then
2858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2859printf "%s\n" "$ac_ct_STRIP" >&6; }
2860else
2861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862printf "%s\n" "no" >&6; }
2863fi
2864
2865  if test "x$ac_ct_STRIP" = x; then
2866    STRIP=":"
2867  else
2868    case $cross_compiling:$ac_tool_warned in
2869yes:)
2870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2871printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2872ac_tool_warned=yes ;;
2873esac
2874    STRIP=$ac_ct_STRIP
2875  fi
2876else
2877  STRIP="$ac_cv_prog_STRIP"
2878fi
2879
2880fi
2881INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2882
2883
2884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2885printf %s "checking for a race-free mkdir -p... " >&6; }
2886if test -z "$MKDIR_P"; then
2887  if test ${ac_cv_path_mkdir+y}
2888then :
2889  printf %s "(cached) " >&6
2890else $as_nop
2891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2893do
2894  IFS=$as_save_IFS
2895  case $as_dir in #(((
2896    '') as_dir=./ ;;
2897    */) ;;
2898    *) as_dir=$as_dir/ ;;
2899  esac
2900    for ac_prog in mkdir gmkdir; do
2901	 for ac_exec_ext in '' $ac_executable_extensions; do
2902	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2903	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904	     'mkdir ('*'coreutils) '* | \
2905	     'BusyBox '* | \
2906	     'mkdir (fileutils) '4.1*)
2907	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2908	       break 3;;
2909	   esac
2910	 done
2911       done
2912  done
2913IFS=$as_save_IFS
2914
2915fi
2916
2917  test -d ./--version && rmdir ./--version
2918  if test ${ac_cv_path_mkdir+y}; then
2919    MKDIR_P="$ac_cv_path_mkdir -p"
2920  else
2921    # As a last resort, use the slow shell script.  Don't cache a
2922    # value for MKDIR_P within a source directory, because that will
2923    # break other packages using the cache if that directory is
2924    # removed, or if the value is a relative name.
2925    MKDIR_P="$ac_install_sh -d"
2926  fi
2927fi
2928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2929printf "%s\n" "$MKDIR_P" >&6; }
2930
2931for ac_prog in gawk mawk nawk awk
2932do
2933  # Extract the first word of "$ac_prog", so it can be a program name with args.
2934set dummy $ac_prog; ac_word=$2
2935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936printf %s "checking for $ac_word... " >&6; }
2937if test ${ac_cv_prog_AWK+y}
2938then :
2939  printf %s "(cached) " >&6
2940else $as_nop
2941  if test -n "$AWK"; then
2942  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947  IFS=$as_save_IFS
2948  case $as_dir in #(((
2949    '') as_dir=./ ;;
2950    */) ;;
2951    *) as_dir=$as_dir/ ;;
2952  esac
2953    for ac_exec_ext in '' $ac_executable_extensions; do
2954  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2955    ac_cv_prog_AWK="$ac_prog"
2956    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960  done
2961IFS=$as_save_IFS
2962
2963fi
2964fi
2965AWK=$ac_cv_prog_AWK
2966if test -n "$AWK"; then
2967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2968printf "%s\n" "$AWK" >&6; }
2969else
2970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971printf "%s\n" "no" >&6; }
2972fi
2973
2974
2975  test -n "$AWK" && break
2976done
2977
2978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2979printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2980set x ${MAKE-make}
2981ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2982if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2983then :
2984  printf %s "(cached) " >&6
2985else $as_nop
2986  cat >conftest.make <<\_ACEOF
2987SHELL = /bin/sh
2988all:
2989	@echo '@@@%%%=$(MAKE)=@@@%%%'
2990_ACEOF
2991# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2992case `${MAKE-make} -f conftest.make 2>/dev/null` in
2993  *@@@%%%=?*=@@@%%%*)
2994    eval ac_cv_prog_make_${ac_make}_set=yes;;
2995  *)
2996    eval ac_cv_prog_make_${ac_make}_set=no;;
2997esac
2998rm -f conftest.make
2999fi
3000if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3002printf "%s\n" "yes" >&6; }
3003  SET_MAKE=
3004else
3005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006printf "%s\n" "no" >&6; }
3007  SET_MAKE="MAKE=${MAKE-make}"
3008fi
3009
3010rm -rf .tst 2>/dev/null
3011mkdir .tst 2>/dev/null
3012if test -d .tst; then
3013  am__leading_dot=.
3014else
3015  am__leading_dot=_
3016fi
3017rmdir .tst 2>/dev/null
3018
3019# Check whether --enable-silent-rules was given.
3020if test ${enable_silent_rules+y}
3021then :
3022  enableval=$enable_silent_rules;
3023fi
3024
3025case $enable_silent_rules in # (((
3026  yes) AM_DEFAULT_VERBOSITY=0;;
3027   no) AM_DEFAULT_VERBOSITY=1;;
3028    *) AM_DEFAULT_VERBOSITY=1;;
3029esac
3030am_make=${MAKE-make}
3031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3032printf %s "checking whether $am_make supports nested variables... " >&6; }
3033if test ${am_cv_make_support_nested_variables+y}
3034then :
3035  printf %s "(cached) " >&6
3036else $as_nop
3037  if printf "%s\n" 'TRUE=$(BAR$(V))
3038BAR0=false
3039BAR1=true
3040V=1
3041am__doit:
3042	@$(TRUE)
3043.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3044  am_cv_make_support_nested_variables=yes
3045else
3046  am_cv_make_support_nested_variables=no
3047fi
3048fi
3049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3050printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3051if test $am_cv_make_support_nested_variables = yes; then
3052    AM_V='$(V)'
3053  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3054else
3055  AM_V=$AM_DEFAULT_VERBOSITY
3056  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3057fi
3058AM_BACKSLASH='\'
3059
3060if test "`cd $srcdir && pwd`" != "`pwd`"; then
3061  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3062  # is not polluted with repeated "-I."
3063  am__isrc=' -I$(srcdir)'
3064  # test to see if srcdir already configured
3065  if test -f $srcdir/config.status; then
3066    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3067  fi
3068fi
3069
3070# test whether we have cygpath
3071if test -z "$CYGPATH_W"; then
3072  if (cygpath --version) >/dev/null 2>/dev/null; then
3073    CYGPATH_W='cygpath -w'
3074  else
3075    CYGPATH_W=echo
3076  fi
3077fi
3078
3079
3080# Define the identity of the package.
3081 PACKAGE='xkbutils'
3082 VERSION='1.0.5'
3083
3084
3085printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3086
3087
3088printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3089
3090# Some tools Automake needs.
3091
3092ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3093
3094
3095AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3096
3097
3098AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3099
3100
3101AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3102
3103
3104MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3105
3106# For better backward compatibility.  To be removed once Automake 1.9.x
3107# dies out for good.  For more background, see:
3108# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3109# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3110mkdir_p='$(MKDIR_P)'
3111
3112# We need awk for the "check" target (and possibly the TAP driver).  The
3113# system "awk" is bad on some platforms.
3114# Always define AMTAR for backward compatibility.  Yes, it's still used
3115# in the wild :-(  We should find a proper way to deprecate it ...
3116AMTAR='$${TAR-tar}'
3117
3118
3119# We'll loop over all known methods to create a tar archive until one works.
3120_am_tools='gnutar  pax cpio none'
3121
3122am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3123
3124
3125
3126
3127
3128# Variables for tags utilities; see am/tags.am
3129if test -z "$CTAGS"; then
3130  CTAGS=ctags
3131fi
3132
3133if test -z "$ETAGS"; then
3134  ETAGS=etags
3135fi
3136
3137if test -z "$CSCOPE"; then
3138  CSCOPE=cscope
3139fi
3140
3141
3142
3143# POSIX will say in a future version that running "rm -f" with no argument
3144# is OK; and we want to be able to make that assumption in our Makefile
3145# recipes.  So use an aggressive probe to check that the usage we want is
3146# actually supported "in the wild" to an acceptable degree.
3147# See automake bug#10828.
3148# To make any issue more visible, cause the running configure to be aborted
3149# by default if the 'rm' program in use doesn't match our expectations; the
3150# user can still override this though.
3151if rm -f && rm -fr && rm -rf; then : OK; else
3152  cat >&2 <<'END'
3153Oops!
3154
3155Your 'rm' program seems unable to run without file operands specified
3156on the command line, even when the '-f' option is present.  This is contrary
3157to the behaviour of most rm programs out there, and not conforming with
3158the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3159
3160Please tell bug-automake@gnu.org about your system, including the value
3161of your $PATH and any error possibly output before this message.  This
3162can help us improve future automake versions.
3163
3164END
3165  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3166    echo 'Configuration will proceed anyway, since you have set the' >&2
3167    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3168    echo >&2
3169  else
3170    cat >&2 <<'END'
3171Aborting the configuration process, to ensure you take notice of the issue.
3172
3173You can download and install GNU coreutils to get an 'rm' implementation
3174that behaves properly: <https://www.gnu.org/software/coreutils/>.
3175
3176If you want to complete the configuration process using your problematic
3177'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3178to "yes", and re-run configure.
3179
3180END
3181    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3182  fi
3183fi
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194DEPDIR="${am__leading_dot}deps"
3195
3196ac_config_commands="$ac_config_commands depfiles"
3197
3198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3199printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3200cat > confinc.mk << 'END'
3201am__doit:
3202	@echo this is the am__doit target >confinc.out
3203.PHONY: am__doit
3204END
3205am__include="#"
3206am__quote=
3207# BSD make does it like this.
3208echo '.include "confinc.mk" # ignored' > confmf.BSD
3209# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3210echo 'include confinc.mk # ignored' > confmf.GNU
3211_am_result=no
3212for s in GNU BSD; do
3213  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3214   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }
3218  case $?:`cat confinc.out 2>/dev/null` in #(
3219  '0:this is the am__doit target') :
3220    case $s in #(
3221  BSD) :
3222    am__include='.include' am__quote='"' ;; #(
3223  *) :
3224    am__include='include' am__quote='' ;;
3225esac ;; #(
3226  *) :
3227     ;;
3228esac
3229  if test "$am__include" != "#"; then
3230    _am_result="yes ($s style)"
3231    break
3232  fi
3233done
3234rm -f confinc.* confmf.*
3235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3236printf "%s\n" "${_am_result}" >&6; }
3237
3238# Check whether --enable-dependency-tracking was given.
3239if test ${enable_dependency_tracking+y}
3240then :
3241  enableval=$enable_dependency_tracking;
3242fi
3243
3244if test "x$enable_dependency_tracking" != xno; then
3245  am_depcomp="$ac_aux_dir/depcomp"
3246  AMDEPBACKSLASH='\'
3247  am__nodep='_no'
3248fi
3249 if test "x$enable_dependency_tracking" != xno; then
3250  AMDEP_TRUE=
3251  AMDEP_FALSE='#'
3252else
3253  AMDEP_TRUE='#'
3254  AMDEP_FALSE=
3255fi
3256
3257
3258ac_ext=c
3259ac_cpp='$CPP $CPPFLAGS'
3260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263if test -n "$ac_tool_prefix"; then
3264  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3265set dummy ${ac_tool_prefix}gcc; ac_word=$2
3266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267printf %s "checking for $ac_word... " >&6; }
3268if test ${ac_cv_prog_CC+y}
3269then :
3270  printf %s "(cached) " >&6
3271else $as_nop
3272  if test -n "$CC"; then
3273  ac_cv_prog_CC="$CC" # Let the user override the test.
3274else
3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH
3277do
3278  IFS=$as_save_IFS
3279  case $as_dir in #(((
3280    '') as_dir=./ ;;
3281    */) ;;
3282    *) as_dir=$as_dir/ ;;
3283  esac
3284    for ac_exec_ext in '' $ac_executable_extensions; do
3285  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3286    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3287    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3288    break 2
3289  fi
3290done
3291  done
3292IFS=$as_save_IFS
3293
3294fi
3295fi
3296CC=$ac_cv_prog_CC
3297if test -n "$CC"; then
3298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299printf "%s\n" "$CC" >&6; }
3300else
3301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302printf "%s\n" "no" >&6; }
3303fi
3304
3305
3306fi
3307if test -z "$ac_cv_prog_CC"; then
3308  ac_ct_CC=$CC
3309  # Extract the first word of "gcc", so it can be a program name with args.
3310set dummy gcc; ac_word=$2
3311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312printf %s "checking for $ac_word... " >&6; }
3313if test ${ac_cv_prog_ac_ct_CC+y}
3314then :
3315  printf %s "(cached) " >&6
3316else $as_nop
3317  if test -n "$ac_ct_CC"; then
3318  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319else
3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH
3322do
3323  IFS=$as_save_IFS
3324  case $as_dir in #(((
3325    '') as_dir=./ ;;
3326    */) ;;
3327    *) as_dir=$as_dir/ ;;
3328  esac
3329    for ac_exec_ext in '' $ac_executable_extensions; do
3330  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3331    ac_cv_prog_ac_ct_CC="gcc"
3332    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3333    break 2
3334  fi
3335done
3336  done
3337IFS=$as_save_IFS
3338
3339fi
3340fi
3341ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342if test -n "$ac_ct_CC"; then
3343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3344printf "%s\n" "$ac_ct_CC" >&6; }
3345else
3346  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347printf "%s\n" "no" >&6; }
3348fi
3349
3350  if test "x$ac_ct_CC" = x; then
3351    CC=""
3352  else
3353    case $cross_compiling:$ac_tool_warned in
3354yes:)
3355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357ac_tool_warned=yes ;;
3358esac
3359    CC=$ac_ct_CC
3360  fi
3361else
3362  CC="$ac_cv_prog_CC"
3363fi
3364
3365if test -z "$CC"; then
3366          if test -n "$ac_tool_prefix"; then
3367    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3368set dummy ${ac_tool_prefix}cc; ac_word=$2
3369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370printf %s "checking for $ac_word... " >&6; }
3371if test ${ac_cv_prog_CC+y}
3372then :
3373  printf %s "(cached) " >&6
3374else $as_nop
3375  if test -n "$CC"; then
3376  ac_cv_prog_CC="$CC" # Let the user override the test.
3377else
3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379for as_dir in $PATH
3380do
3381  IFS=$as_save_IFS
3382  case $as_dir in #(((
3383    '') as_dir=./ ;;
3384    */) ;;
3385    *) as_dir=$as_dir/ ;;
3386  esac
3387    for ac_exec_ext in '' $ac_executable_extensions; do
3388  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3389    ac_cv_prog_CC="${ac_tool_prefix}cc"
3390    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3391    break 2
3392  fi
3393done
3394  done
3395IFS=$as_save_IFS
3396
3397fi
3398fi
3399CC=$ac_cv_prog_CC
3400if test -n "$CC"; then
3401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402printf "%s\n" "$CC" >&6; }
3403else
3404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405printf "%s\n" "no" >&6; }
3406fi
3407
3408
3409  fi
3410fi
3411if test -z "$CC"; then
3412  # Extract the first word of "cc", so it can be a program name with args.
3413set dummy cc; ac_word=$2
3414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415printf %s "checking for $ac_word... " >&6; }
3416if test ${ac_cv_prog_CC+y}
3417then :
3418  printf %s "(cached) " >&6
3419else $as_nop
3420  if test -n "$CC"; then
3421  ac_cv_prog_CC="$CC" # Let the user override the test.
3422else
3423  ac_prog_rejected=no
3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425for as_dir in $PATH
3426do
3427  IFS=$as_save_IFS
3428  case $as_dir in #(((
3429    '') as_dir=./ ;;
3430    */) ;;
3431    *) as_dir=$as_dir/ ;;
3432  esac
3433    for ac_exec_ext in '' $ac_executable_extensions; do
3434  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3435    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3436       ac_prog_rejected=yes
3437       continue
3438     fi
3439    ac_cv_prog_CC="cc"
3440    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3441    break 2
3442  fi
3443done
3444  done
3445IFS=$as_save_IFS
3446
3447if test $ac_prog_rejected = yes; then
3448  # We found a bogon in the path, so make sure we never use it.
3449  set dummy $ac_cv_prog_CC
3450  shift
3451  if test $# != 0; then
3452    # We chose a different compiler from the bogus one.
3453    # However, it has the same basename, so the bogon will be chosen
3454    # first if we set CC to just the basename; use the full file name.
3455    shift
3456    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3457  fi
3458fi
3459fi
3460fi
3461CC=$ac_cv_prog_CC
3462if test -n "$CC"; then
3463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3464printf "%s\n" "$CC" >&6; }
3465else
3466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467printf "%s\n" "no" >&6; }
3468fi
3469
3470
3471fi
3472if test -z "$CC"; then
3473  if test -n "$ac_tool_prefix"; then
3474  for ac_prog in cl.exe
3475  do
3476    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3477set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479printf %s "checking for $ac_word... " >&6; }
3480if test ${ac_cv_prog_CC+y}
3481then :
3482  printf %s "(cached) " >&6
3483else $as_nop
3484  if test -n "$CC"; then
3485  ac_cv_prog_CC="$CC" # Let the user override the test.
3486else
3487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488for as_dir in $PATH
3489do
3490  IFS=$as_save_IFS
3491  case $as_dir in #(((
3492    '') as_dir=./ ;;
3493    */) ;;
3494    *) as_dir=$as_dir/ ;;
3495  esac
3496    for ac_exec_ext in '' $ac_executable_extensions; do
3497  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3498    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3499    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3500    break 2
3501  fi
3502done
3503  done
3504IFS=$as_save_IFS
3505
3506fi
3507fi
3508CC=$ac_cv_prog_CC
3509if test -n "$CC"; then
3510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511printf "%s\n" "$CC" >&6; }
3512else
3513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514printf "%s\n" "no" >&6; }
3515fi
3516
3517
3518    test -n "$CC" && break
3519  done
3520fi
3521if test -z "$CC"; then
3522  ac_ct_CC=$CC
3523  for ac_prog in cl.exe
3524do
3525  # Extract the first word of "$ac_prog", so it can be a program name with args.
3526set dummy $ac_prog; ac_word=$2
3527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528printf %s "checking for $ac_word... " >&6; }
3529if test ${ac_cv_prog_ac_ct_CC+y}
3530then :
3531  printf %s "(cached) " >&6
3532else $as_nop
3533  if test -n "$ac_ct_CC"; then
3534  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3535else
3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537for as_dir in $PATH
3538do
3539  IFS=$as_save_IFS
3540  case $as_dir in #(((
3541    '') as_dir=./ ;;
3542    */) ;;
3543    *) as_dir=$as_dir/ ;;
3544  esac
3545    for ac_exec_ext in '' $ac_executable_extensions; do
3546  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3547    ac_cv_prog_ac_ct_CC="$ac_prog"
3548    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3549    break 2
3550  fi
3551done
3552  done
3553IFS=$as_save_IFS
3554
3555fi
3556fi
3557ac_ct_CC=$ac_cv_prog_ac_ct_CC
3558if test -n "$ac_ct_CC"; then
3559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3560printf "%s\n" "$ac_ct_CC" >&6; }
3561else
3562  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563printf "%s\n" "no" >&6; }
3564fi
3565
3566
3567  test -n "$ac_ct_CC" && break
3568done
3569
3570  if test "x$ac_ct_CC" = x; then
3571    CC=""
3572  else
3573    case $cross_compiling:$ac_tool_warned in
3574yes:)
3575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577ac_tool_warned=yes ;;
3578esac
3579    CC=$ac_ct_CC
3580  fi
3581fi
3582
3583fi
3584if test -z "$CC"; then
3585  if test -n "$ac_tool_prefix"; then
3586  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3587set dummy ${ac_tool_prefix}clang; ac_word=$2
3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589printf %s "checking for $ac_word... " >&6; }
3590if test ${ac_cv_prog_CC+y}
3591then :
3592  printf %s "(cached) " >&6
3593else $as_nop
3594  if test -n "$CC"; then
3595  ac_cv_prog_CC="$CC" # Let the user override the test.
3596else
3597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598for as_dir in $PATH
3599do
3600  IFS=$as_save_IFS
3601  case $as_dir in #(((
3602    '') as_dir=./ ;;
3603    */) ;;
3604    *) as_dir=$as_dir/ ;;
3605  esac
3606    for ac_exec_ext in '' $ac_executable_extensions; do
3607  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3608    ac_cv_prog_CC="${ac_tool_prefix}clang"
3609    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3610    break 2
3611  fi
3612done
3613  done
3614IFS=$as_save_IFS
3615
3616fi
3617fi
3618CC=$ac_cv_prog_CC
3619if test -n "$CC"; then
3620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621printf "%s\n" "$CC" >&6; }
3622else
3623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624printf "%s\n" "no" >&6; }
3625fi
3626
3627
3628fi
3629if test -z "$ac_cv_prog_CC"; then
3630  ac_ct_CC=$CC
3631  # Extract the first word of "clang", so it can be a program name with args.
3632set dummy clang; ac_word=$2
3633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634printf %s "checking for $ac_word... " >&6; }
3635if test ${ac_cv_prog_ac_ct_CC+y}
3636then :
3637  printf %s "(cached) " >&6
3638else $as_nop
3639  if test -n "$ac_ct_CC"; then
3640  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3641else
3642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645  IFS=$as_save_IFS
3646  case $as_dir in #(((
3647    '') as_dir=./ ;;
3648    */) ;;
3649    *) as_dir=$as_dir/ ;;
3650  esac
3651    for ac_exec_ext in '' $ac_executable_extensions; do
3652  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3653    ac_cv_prog_ac_ct_CC="clang"
3654    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3655    break 2
3656  fi
3657done
3658  done
3659IFS=$as_save_IFS
3660
3661fi
3662fi
3663ac_ct_CC=$ac_cv_prog_ac_ct_CC
3664if test -n "$ac_ct_CC"; then
3665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3666printf "%s\n" "$ac_ct_CC" >&6; }
3667else
3668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669printf "%s\n" "no" >&6; }
3670fi
3671
3672  if test "x$ac_ct_CC" = x; then
3673    CC=""
3674  else
3675    case $cross_compiling:$ac_tool_warned in
3676yes:)
3677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3678printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3679ac_tool_warned=yes ;;
3680esac
3681    CC=$ac_ct_CC
3682  fi
3683else
3684  CC="$ac_cv_prog_CC"
3685fi
3686
3687fi
3688
3689
3690test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3692as_fn_error $? "no acceptable C compiler found in \$PATH
3693See \`config.log' for more details" "$LINENO" 5; }
3694
3695# Provide some information about the compiler.
3696printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3697set X $ac_compile
3698ac_compiler=$2
3699for ac_option in --version -v -V -qversion -version; do
3700  { { ac_try="$ac_compiler $ac_option >&5"
3701case "(($ac_try" in
3702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703  *) ac_try_echo=$ac_try;;
3704esac
3705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706printf "%s\n" "$ac_try_echo"; } >&5
3707  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3708  ac_status=$?
3709  if test -s conftest.err; then
3710    sed '10a\
3711... rest of stderr output deleted ...
3712         10q' conftest.err >conftest.er1
3713    cat conftest.er1 >&5
3714  fi
3715  rm -f conftest.er1 conftest.err
3716  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717  test $ac_status = 0; }
3718done
3719
3720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h.  */
3722
3723int
3724main (void)
3725{
3726
3727  ;
3728  return 0;
3729}
3730_ACEOF
3731ac_clean_files_save=$ac_clean_files
3732ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3733# Try to create an executable without -o first, disregard a.out.
3734# It will help us diagnose broken compilers, and finding out an intuition
3735# of exeext.
3736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3737printf %s "checking whether the C compiler works... " >&6; }
3738ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3739
3740# The possible output files:
3741ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3742
3743ac_rmfiles=
3744for ac_file in $ac_files
3745do
3746  case $ac_file in
3747    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3748    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3749  esac
3750done
3751rm -f $ac_rmfiles
3752
3753if { { ac_try="$ac_link_default"
3754case "(($ac_try" in
3755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756  *) ac_try_echo=$ac_try;;
3757esac
3758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759printf "%s\n" "$ac_try_echo"; } >&5
3760  (eval "$ac_link_default") 2>&5
3761  ac_status=$?
3762  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763  test $ac_status = 0; }
3764then :
3765  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3766# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3767# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3768# so that the user can short-circuit this test for compilers unknown to
3769# Autoconf.
3770for ac_file in $ac_files ''
3771do
3772  test -f "$ac_file" || continue
3773  case $ac_file in
3774    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3775	;;
3776    [ab].out )
3777	# We found the default executable, but exeext='' is most
3778	# certainly right.
3779	break;;
3780    *.* )
3781	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3782	then :; else
3783	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3784	fi
3785	# We set ac_cv_exeext here because the later test for it is not
3786	# safe: cross compilers may not add the suffix if given an `-o'
3787	# argument, so we may need to know it at that point already.
3788	# Even if this section looks crufty: it has the advantage of
3789	# actually working.
3790	break;;
3791    * )
3792	break;;
3793  esac
3794done
3795test "$ac_cv_exeext" = no && ac_cv_exeext=
3796
3797else $as_nop
3798  ac_file=''
3799fi
3800if test -z "$ac_file"
3801then :
3802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803printf "%s\n" "no" >&6; }
3804printf "%s\n" "$as_me: failed program was:" >&5
3805sed 's/^/| /' conftest.$ac_ext >&5
3806
3807{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3809as_fn_error 77 "C compiler cannot create executables
3810See \`config.log' for more details" "$LINENO" 5; }
3811else $as_nop
3812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3813printf "%s\n" "yes" >&6; }
3814fi
3815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3816printf %s "checking for C compiler default output file name... " >&6; }
3817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3818printf "%s\n" "$ac_file" >&6; }
3819ac_exeext=$ac_cv_exeext
3820
3821rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3822ac_clean_files=$ac_clean_files_save
3823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3824printf %s "checking for suffix of executables... " >&6; }
3825if { { ac_try="$ac_link"
3826case "(($ac_try" in
3827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828  *) ac_try_echo=$ac_try;;
3829esac
3830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831printf "%s\n" "$ac_try_echo"; } >&5
3832  (eval "$ac_link") 2>&5
3833  ac_status=$?
3834  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835  test $ac_status = 0; }
3836then :
3837  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3838# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3839# work properly (i.e., refer to `conftest.exe'), while it won't with
3840# `rm'.
3841for ac_file in conftest.exe conftest conftest.*; do
3842  test -f "$ac_file" || continue
3843  case $ac_file in
3844    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3846	  break;;
3847    * ) break;;
3848  esac
3849done
3850else $as_nop
3851  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3853as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3854See \`config.log' for more details" "$LINENO" 5; }
3855fi
3856rm -f conftest conftest$ac_cv_exeext
3857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3858printf "%s\n" "$ac_cv_exeext" >&6; }
3859
3860rm -f conftest.$ac_ext
3861EXEEXT=$ac_cv_exeext
3862ac_exeext=$EXEEXT
3863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h.  */
3865#include <stdio.h>
3866int
3867main (void)
3868{
3869FILE *f = fopen ("conftest.out", "w");
3870 return ferror (f) || fclose (f) != 0;
3871
3872  ;
3873  return 0;
3874}
3875_ACEOF
3876ac_clean_files="$ac_clean_files conftest.out"
3877# Check that the compiler produces executables we can run.  If not, either
3878# the compiler is broken, or we cross compile.
3879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3880printf %s "checking whether we are cross compiling... " >&6; }
3881if test "$cross_compiling" != yes; then
3882  { { ac_try="$ac_link"
3883case "(($ac_try" in
3884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885  *) ac_try_echo=$ac_try;;
3886esac
3887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888printf "%s\n" "$ac_try_echo"; } >&5
3889  (eval "$ac_link") 2>&5
3890  ac_status=$?
3891  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892  test $ac_status = 0; }
3893  if { ac_try='./conftest$ac_cv_exeext'
3894  { { case "(($ac_try" in
3895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896  *) ac_try_echo=$ac_try;;
3897esac
3898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899printf "%s\n" "$ac_try_echo"; } >&5
3900  (eval "$ac_try") 2>&5
3901  ac_status=$?
3902  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903  test $ac_status = 0; }; }; then
3904    cross_compiling=no
3905  else
3906    if test "$cross_compiling" = maybe; then
3907	cross_compiling=yes
3908    else
3909	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3911as_fn_error 77 "cannot run C compiled programs.
3912If you meant to cross compile, use \`--host'.
3913See \`config.log' for more details" "$LINENO" 5; }
3914    fi
3915  fi
3916fi
3917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3918printf "%s\n" "$cross_compiling" >&6; }
3919
3920rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3921ac_clean_files=$ac_clean_files_save
3922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3923printf %s "checking for suffix of object files... " >&6; }
3924if test ${ac_cv_objext+y}
3925then :
3926  printf %s "(cached) " >&6
3927else $as_nop
3928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929/* end confdefs.h.  */
3930
3931int
3932main (void)
3933{
3934
3935  ;
3936  return 0;
3937}
3938_ACEOF
3939rm -f conftest.o conftest.obj
3940if { { ac_try="$ac_compile"
3941case "(($ac_try" in
3942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943  *) ac_try_echo=$ac_try;;
3944esac
3945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946printf "%s\n" "$ac_try_echo"; } >&5
3947  (eval "$ac_compile") 2>&5
3948  ac_status=$?
3949  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950  test $ac_status = 0; }
3951then :
3952  for ac_file in conftest.o conftest.obj conftest.*; do
3953  test -f "$ac_file" || continue;
3954  case $ac_file in
3955    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3956    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3957       break;;
3958  esac
3959done
3960else $as_nop
3961  printf "%s\n" "$as_me: failed program was:" >&5
3962sed 's/^/| /' conftest.$ac_ext >&5
3963
3964{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3966as_fn_error $? "cannot compute suffix of object files: cannot compile
3967See \`config.log' for more details" "$LINENO" 5; }
3968fi
3969rm -f conftest.$ac_cv_objext conftest.$ac_ext
3970fi
3971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3972printf "%s\n" "$ac_cv_objext" >&6; }
3973OBJEXT=$ac_cv_objext
3974ac_objext=$OBJEXT
3975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3976printf %s "checking whether the compiler supports GNU C... " >&6; }
3977if test ${ac_cv_c_compiler_gnu+y}
3978then :
3979  printf %s "(cached) " >&6
3980else $as_nop
3981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982/* end confdefs.h.  */
3983
3984int
3985main (void)
3986{
3987#ifndef __GNUC__
3988       choke me
3989#endif
3990
3991  ;
3992  return 0;
3993}
3994_ACEOF
3995if ac_fn_c_try_compile "$LINENO"
3996then :
3997  ac_compiler_gnu=yes
3998else $as_nop
3999  ac_compiler_gnu=no
4000fi
4001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4002ac_cv_c_compiler_gnu=$ac_compiler_gnu
4003
4004fi
4005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4006printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4007ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008
4009if test $ac_compiler_gnu = yes; then
4010  GCC=yes
4011else
4012  GCC=
4013fi
4014ac_test_CFLAGS=${CFLAGS+y}
4015ac_save_CFLAGS=$CFLAGS
4016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4017printf %s "checking whether $CC accepts -g... " >&6; }
4018if test ${ac_cv_prog_cc_g+y}
4019then :
4020  printf %s "(cached) " >&6
4021else $as_nop
4022  ac_save_c_werror_flag=$ac_c_werror_flag
4023   ac_c_werror_flag=yes
4024   ac_cv_prog_cc_g=no
4025   CFLAGS="-g"
4026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h.  */
4028
4029int
4030main (void)
4031{
4032
4033  ;
4034  return 0;
4035}
4036_ACEOF
4037if ac_fn_c_try_compile "$LINENO"
4038then :
4039  ac_cv_prog_cc_g=yes
4040else $as_nop
4041  CFLAGS=""
4042      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h.  */
4044
4045int
4046main (void)
4047{
4048
4049  ;
4050  return 0;
4051}
4052_ACEOF
4053if ac_fn_c_try_compile "$LINENO"
4054then :
4055
4056else $as_nop
4057  ac_c_werror_flag=$ac_save_c_werror_flag
4058	 CFLAGS="-g"
4059	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060/* end confdefs.h.  */
4061
4062int
4063main (void)
4064{
4065
4066  ;
4067  return 0;
4068}
4069_ACEOF
4070if ac_fn_c_try_compile "$LINENO"
4071then :
4072  ac_cv_prog_cc_g=yes
4073fi
4074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4075fi
4076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4077fi
4078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4079   ac_c_werror_flag=$ac_save_c_werror_flag
4080fi
4081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4082printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4083if test $ac_test_CFLAGS; then
4084  CFLAGS=$ac_save_CFLAGS
4085elif test $ac_cv_prog_cc_g = yes; then
4086  if test "$GCC" = yes; then
4087    CFLAGS="-g -O2"
4088  else
4089    CFLAGS="-g"
4090  fi
4091else
4092  if test "$GCC" = yes; then
4093    CFLAGS="-O2"
4094  else
4095    CFLAGS=
4096  fi
4097fi
4098ac_prog_cc_stdc=no
4099if test x$ac_prog_cc_stdc = xno
4100then :
4101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4102printf %s "checking for $CC option to enable C11 features... " >&6; }
4103if test ${ac_cv_prog_cc_c11+y}
4104then :
4105  printf %s "(cached) " >&6
4106else $as_nop
4107  ac_cv_prog_cc_c11=no
4108ac_save_CC=$CC
4109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110/* end confdefs.h.  */
4111$ac_c_conftest_c11_program
4112_ACEOF
4113for ac_arg in '' -std=gnu11
4114do
4115  CC="$ac_save_CC $ac_arg"
4116  if ac_fn_c_try_compile "$LINENO"
4117then :
4118  ac_cv_prog_cc_c11=$ac_arg
4119fi
4120rm -f core conftest.err conftest.$ac_objext conftest.beam
4121  test "x$ac_cv_prog_cc_c11" != "xno" && break
4122done
4123rm -f conftest.$ac_ext
4124CC=$ac_save_CC
4125fi
4126
4127if test "x$ac_cv_prog_cc_c11" = xno
4128then :
4129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4130printf "%s\n" "unsupported" >&6; }
4131else $as_nop
4132  if test "x$ac_cv_prog_cc_c11" = x
4133then :
4134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4135printf "%s\n" "none needed" >&6; }
4136else $as_nop
4137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4138printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4139     CC="$CC $ac_cv_prog_cc_c11"
4140fi
4141  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4142  ac_prog_cc_stdc=c11
4143fi
4144fi
4145if test x$ac_prog_cc_stdc = xno
4146then :
4147  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4148printf %s "checking for $CC option to enable C99 features... " >&6; }
4149if test ${ac_cv_prog_cc_c99+y}
4150then :
4151  printf %s "(cached) " >&6
4152else $as_nop
4153  ac_cv_prog_cc_c99=no
4154ac_save_CC=$CC
4155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156/* end confdefs.h.  */
4157$ac_c_conftest_c99_program
4158_ACEOF
4159for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4160do
4161  CC="$ac_save_CC $ac_arg"
4162  if ac_fn_c_try_compile "$LINENO"
4163then :
4164  ac_cv_prog_cc_c99=$ac_arg
4165fi
4166rm -f core conftest.err conftest.$ac_objext conftest.beam
4167  test "x$ac_cv_prog_cc_c99" != "xno" && break
4168done
4169rm -f conftest.$ac_ext
4170CC=$ac_save_CC
4171fi
4172
4173if test "x$ac_cv_prog_cc_c99" = xno
4174then :
4175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4176printf "%s\n" "unsupported" >&6; }
4177else $as_nop
4178  if test "x$ac_cv_prog_cc_c99" = x
4179then :
4180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4181printf "%s\n" "none needed" >&6; }
4182else $as_nop
4183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4184printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4185     CC="$CC $ac_cv_prog_cc_c99"
4186fi
4187  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4188  ac_prog_cc_stdc=c99
4189fi
4190fi
4191if test x$ac_prog_cc_stdc = xno
4192then :
4193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4194printf %s "checking for $CC option to enable C89 features... " >&6; }
4195if test ${ac_cv_prog_cc_c89+y}
4196then :
4197  printf %s "(cached) " >&6
4198else $as_nop
4199  ac_cv_prog_cc_c89=no
4200ac_save_CC=$CC
4201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202/* end confdefs.h.  */
4203$ac_c_conftest_c89_program
4204_ACEOF
4205for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4206do
4207  CC="$ac_save_CC $ac_arg"
4208  if ac_fn_c_try_compile "$LINENO"
4209then :
4210  ac_cv_prog_cc_c89=$ac_arg
4211fi
4212rm -f core conftest.err conftest.$ac_objext conftest.beam
4213  test "x$ac_cv_prog_cc_c89" != "xno" && break
4214done
4215rm -f conftest.$ac_ext
4216CC=$ac_save_CC
4217fi
4218
4219if test "x$ac_cv_prog_cc_c89" = xno
4220then :
4221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4222printf "%s\n" "unsupported" >&6; }
4223else $as_nop
4224  if test "x$ac_cv_prog_cc_c89" = x
4225then :
4226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4227printf "%s\n" "none needed" >&6; }
4228else $as_nop
4229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4230printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4231     CC="$CC $ac_cv_prog_cc_c89"
4232fi
4233  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4234  ac_prog_cc_stdc=c89
4235fi
4236fi
4237
4238ac_ext=c
4239ac_cpp='$CPP $CPPFLAGS'
4240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
4244
4245  ac_ext=c
4246ac_cpp='$CPP $CPPFLAGS'
4247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4251printf %s "checking whether $CC understands -c and -o together... " >&6; }
4252if test ${am_cv_prog_cc_c_o+y}
4253then :
4254  printf %s "(cached) " >&6
4255else $as_nop
4256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h.  */
4258
4259int
4260main (void)
4261{
4262
4263  ;
4264  return 0;
4265}
4266_ACEOF
4267  # Make sure it works both with $CC and with simple cc.
4268  # Following AC_PROG_CC_C_O, we do the test twice because some
4269  # compilers refuse to overwrite an existing .o file with -o,
4270  # though they will create one.
4271  am_cv_prog_cc_c_o=yes
4272  for am_i in 1 2; do
4273    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4274   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); } \
4278         && test -f conftest2.$ac_objext; then
4279      : OK
4280    else
4281      am_cv_prog_cc_c_o=no
4282      break
4283    fi
4284  done
4285  rm -f core conftest*
4286  unset am_i
4287fi
4288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4289printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4290if test "$am_cv_prog_cc_c_o" != yes; then
4291   # Losing compiler, so override with the script.
4292   # FIXME: It is wrong to rewrite CC.
4293   # But if we don't then we get into trouble of one sort or another.
4294   # A longer-term fix would be to have automake use am__CC in this case,
4295   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4296   CC="$am_aux_dir/compile $CC"
4297fi
4298ac_ext=c
4299ac_cpp='$CPP $CPPFLAGS'
4300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303
4304
4305depcc="$CC"   am_compiler_list=
4306
4307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4308printf %s "checking dependency style of $depcc... " >&6; }
4309if test ${am_cv_CC_dependencies_compiler_type+y}
4310then :
4311  printf %s "(cached) " >&6
4312else $as_nop
4313  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4314  # We make a subdir and do the tests there.  Otherwise we can end up
4315  # making bogus files that we don't know about and never remove.  For
4316  # instance it was reported that on HP-UX the gcc test will end up
4317  # making a dummy file named 'D' -- because '-MD' means "put the output
4318  # in D".
4319  rm -rf conftest.dir
4320  mkdir conftest.dir
4321  # Copy depcomp to subdir because otherwise we won't find it if we're
4322  # using a relative directory.
4323  cp "$am_depcomp" conftest.dir
4324  cd conftest.dir
4325  # We will build objects and dependencies in a subdirectory because
4326  # it helps to detect inapplicable dependency modes.  For instance
4327  # both Tru64's cc and ICC support -MD to output dependencies as a
4328  # side effect of compilation, but ICC will put the dependencies in
4329  # the current directory while Tru64 will put them in the object
4330  # directory.
4331  mkdir sub
4332
4333  am_cv_CC_dependencies_compiler_type=none
4334  if test "$am_compiler_list" = ""; then
4335     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4336  fi
4337  am__universal=false
4338  case " $depcc " in #(
4339     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4340     esac
4341
4342  for depmode in $am_compiler_list; do
4343    # Setup a source with many dependencies, because some compilers
4344    # like to wrap large dependency lists on column 80 (with \), and
4345    # we should not choose a depcomp mode which is confused by this.
4346    #
4347    # We need to recreate these files for each test, as the compiler may
4348    # overwrite some of them when testing with obscure command lines.
4349    # This happens at least with the AIX C compiler.
4350    : > sub/conftest.c
4351    for i in 1 2 3 4 5 6; do
4352      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4353      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4354      # Solaris 10 /bin/sh.
4355      echo '/* dummy */' > sub/conftst$i.h
4356    done
4357    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4358
4359    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4360    # mode.  It turns out that the SunPro C++ compiler does not properly
4361    # handle '-M -o', and we need to detect this.  Also, some Intel
4362    # versions had trouble with output in subdirs.
4363    am__obj=sub/conftest.${OBJEXT-o}
4364    am__minus_obj="-o $am__obj"
4365    case $depmode in
4366    gcc)
4367      # This depmode causes a compiler race in universal mode.
4368      test "$am__universal" = false || continue
4369      ;;
4370    nosideeffect)
4371      # After this tag, mechanisms are not by side-effect, so they'll
4372      # only be used when explicitly requested.
4373      if test "x$enable_dependency_tracking" = xyes; then
4374	continue
4375      else
4376	break
4377      fi
4378      ;;
4379    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4380      # This compiler won't grok '-c -o', but also, the minuso test has
4381      # not run yet.  These depmodes are late enough in the game, and
4382      # so weak that their functioning should not be impacted.
4383      am__obj=conftest.${OBJEXT-o}
4384      am__minus_obj=
4385      ;;
4386    none) break ;;
4387    esac
4388    if depmode=$depmode \
4389       source=sub/conftest.c object=$am__obj \
4390       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4391       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4392         >/dev/null 2>conftest.err &&
4393       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4394       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4395       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4396       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4397      # icc doesn't choke on unknown options, it will just issue warnings
4398      # or remarks (even with -Werror).  So we grep stderr for any message
4399      # that says an option was ignored or not supported.
4400      # When given -MP, icc 7.0 and 7.1 complain thusly:
4401      #   icc: Command line warning: ignoring option '-M'; no argument required
4402      # The diagnosis changed in icc 8.0:
4403      #   icc: Command line remark: option '-MP' not supported
4404      if (grep 'ignoring option' conftest.err ||
4405          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4406        am_cv_CC_dependencies_compiler_type=$depmode
4407        break
4408      fi
4409    fi
4410  done
4411
4412  cd ..
4413  rm -rf conftest.dir
4414else
4415  am_cv_CC_dependencies_compiler_type=none
4416fi
4417
4418fi
4419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4420printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4421CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4422
4423 if
4424  test "x$enable_dependency_tracking" != xno \
4425  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4426  am__fastdepCC_TRUE=
4427  am__fastdepCC_FALSE='#'
4428else
4429  am__fastdepCC_TRUE='#'
4430  am__fastdepCC_FALSE=
4431fi
4432
4433
4434
4435
4436# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4451printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4452if test ${ac_cv_c_undeclared_builtin_options+y}
4453then :
4454  printf %s "(cached) " >&6
4455else $as_nop
4456  ac_save_CFLAGS=$CFLAGS
4457   ac_cv_c_undeclared_builtin_options='cannot detect'
4458   for ac_arg in '' -fno-builtin; do
4459     CFLAGS="$ac_save_CFLAGS $ac_arg"
4460     # This test program should *not* compile successfully.
4461     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462/* end confdefs.h.  */
4463
4464int
4465main (void)
4466{
4467(void) strchr;
4468  ;
4469  return 0;
4470}
4471_ACEOF
4472if ac_fn_c_try_compile "$LINENO"
4473then :
4474
4475else $as_nop
4476  # This test program should compile successfully.
4477        # No library function is consistently available on
4478        # freestanding implementations, so test against a dummy
4479        # declaration.  Include always-available headers on the
4480        # off chance that they somehow elicit warnings.
4481        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482/* end confdefs.h.  */
4483#include <float.h>
4484#include <limits.h>
4485#include <stdarg.h>
4486#include <stddef.h>
4487extern void ac_decl (int, char *);
4488
4489int
4490main (void)
4491{
4492(void) ac_decl (0, (char *) 0);
4493  (void) ac_decl;
4494
4495  ;
4496  return 0;
4497}
4498_ACEOF
4499if ac_fn_c_try_compile "$LINENO"
4500then :
4501  if test x"$ac_arg" = x
4502then :
4503  ac_cv_c_undeclared_builtin_options='none needed'
4504else $as_nop
4505  ac_cv_c_undeclared_builtin_options=$ac_arg
4506fi
4507          break
4508fi
4509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4510fi
4511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4512    done
4513    CFLAGS=$ac_save_CFLAGS
4514
4515fi
4516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4517printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4518  case $ac_cv_c_undeclared_builtin_options in #(
4519  'cannot detect') :
4520    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4521printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4522as_fn_error $? "cannot make $CC report undeclared builtins
4523See \`config.log' for more details" "$LINENO" 5; } ;; #(
4524  'none needed') :
4525    ac_c_undeclared_builtin_options='' ;; #(
4526  *) :
4527    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4528esac
4529
4530ac_header= ac_cache=
4531for ac_item in $ac_header_c_list
4532do
4533  if test $ac_cache; then
4534    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4535    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4536      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4537    fi
4538    ac_header= ac_cache=
4539  elif test $ac_header; then
4540    ac_cache=$ac_item
4541  else
4542    ac_header=$ac_item
4543  fi
4544done
4545
4546
4547
4548
4549
4550
4551
4552
4553if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4554then :
4555
4556printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4557
4558fi
4559
4560
4561
4562
4563ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4564if test "x$ac_cv_have_decl___clang__" = xyes
4565then :
4566  CLANGCC="yes"
4567else $as_nop
4568  CLANGCC="no"
4569fi
4570ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4571if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4572then :
4573  INTELCC="yes"
4574else $as_nop
4575  INTELCC="no"
4576fi
4577ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4578if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4579then :
4580  SUNCC="yes"
4581else $as_nop
4582  SUNCC="no"
4583fi
4584
4585
4586
4587
4588
4589
4590
4591
4592if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4593	if test -n "$ac_tool_prefix"; then
4594  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4595set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597printf %s "checking for $ac_word... " >&6; }
4598if test ${ac_cv_path_PKG_CONFIG+y}
4599then :
4600  printf %s "(cached) " >&6
4601else $as_nop
4602  case $PKG_CONFIG in
4603  [\\/]* | ?:[\\/]*)
4604  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4605  ;;
4606  *)
4607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610  IFS=$as_save_IFS
4611  case $as_dir in #(((
4612    '') as_dir=./ ;;
4613    */) ;;
4614    *) as_dir=$as_dir/ ;;
4615  esac
4616    for ac_exec_ext in '' $ac_executable_extensions; do
4617  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4618    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4619    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4620    break 2
4621  fi
4622done
4623  done
4624IFS=$as_save_IFS
4625
4626  ;;
4627esac
4628fi
4629PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4630if test -n "$PKG_CONFIG"; then
4631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4632printf "%s\n" "$PKG_CONFIG" >&6; }
4633else
4634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635printf "%s\n" "no" >&6; }
4636fi
4637
4638
4639fi
4640if test -z "$ac_cv_path_PKG_CONFIG"; then
4641  ac_pt_PKG_CONFIG=$PKG_CONFIG
4642  # Extract the first word of "pkg-config", so it can be a program name with args.
4643set dummy pkg-config; ac_word=$2
4644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645printf %s "checking for $ac_word... " >&6; }
4646if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4647then :
4648  printf %s "(cached) " >&6
4649else $as_nop
4650  case $ac_pt_PKG_CONFIG in
4651  [\\/]* | ?:[\\/]*)
4652  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4653  ;;
4654  *)
4655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658  IFS=$as_save_IFS
4659  case $as_dir in #(((
4660    '') as_dir=./ ;;
4661    */) ;;
4662    *) as_dir=$as_dir/ ;;
4663  esac
4664    for ac_exec_ext in '' $ac_executable_extensions; do
4665  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4666    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4667    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4668    break 2
4669  fi
4670done
4671  done
4672IFS=$as_save_IFS
4673
4674  ;;
4675esac
4676fi
4677ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4678if test -n "$ac_pt_PKG_CONFIG"; then
4679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4680printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4681else
4682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683printf "%s\n" "no" >&6; }
4684fi
4685
4686  if test "x$ac_pt_PKG_CONFIG" = x; then
4687    PKG_CONFIG=""
4688  else
4689    case $cross_compiling:$ac_tool_warned in
4690yes:)
4691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4692printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693ac_tool_warned=yes ;;
4694esac
4695    PKG_CONFIG=$ac_pt_PKG_CONFIG
4696  fi
4697else
4698  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4699fi
4700
4701fi
4702if test -n "$PKG_CONFIG"; then
4703	_pkg_min_version=0.9.0
4704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4705printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4706	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4707		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4708printf "%s\n" "yes" >&6; }
4709	else
4710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711printf "%s\n" "no" >&6; }
4712		PKG_CONFIG=""
4713	fi
4714fi
4715
4716
4717  # Make sure we can run config.sub.
4718$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4719  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4720
4721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4722printf %s "checking build system type... " >&6; }
4723if test ${ac_cv_build+y}
4724then :
4725  printf %s "(cached) " >&6
4726else $as_nop
4727  ac_build_alias=$build_alias
4728test "x$ac_build_alias" = x &&
4729  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4730test "x$ac_build_alias" = x &&
4731  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4732ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4733  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4734
4735fi
4736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4737printf "%s\n" "$ac_cv_build" >&6; }
4738case $ac_cv_build in
4739*-*-*) ;;
4740*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4741esac
4742build=$ac_cv_build
4743ac_save_IFS=$IFS; IFS='-'
4744set x $ac_cv_build
4745shift
4746build_cpu=$1
4747build_vendor=$2
4748shift; shift
4749# Remember, the first character of IFS is used to create $*,
4750# except with old shells:
4751build_os=$*
4752IFS=$ac_save_IFS
4753case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4754
4755
4756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4757printf %s "checking host system type... " >&6; }
4758if test ${ac_cv_host+y}
4759then :
4760  printf %s "(cached) " >&6
4761else $as_nop
4762  if test "x$host_alias" = x; then
4763  ac_cv_host=$ac_cv_build
4764else
4765  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4766    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4767fi
4768
4769fi
4770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4771printf "%s\n" "$ac_cv_host" >&6; }
4772case $ac_cv_host in
4773*-*-*) ;;
4774*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4775esac
4776host=$ac_cv_host
4777ac_save_IFS=$IFS; IFS='-'
4778set x $ac_cv_host
4779shift
4780host_cpu=$1
4781host_vendor=$2
4782shift; shift
4783# Remember, the first character of IFS is used to create $*,
4784# except with old shells:
4785host_os=$*
4786IFS=$ac_save_IFS
4787case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4788
4789
4790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4791printf %s "checking for a sed that does not truncate output... " >&6; }
4792if test ${ac_cv_path_SED+y}
4793then :
4794  printf %s "(cached) " >&6
4795else $as_nop
4796            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4797     for ac_i in 1 2 3 4 5 6 7; do
4798       ac_script="$ac_script$as_nl$ac_script"
4799     done
4800     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4801     { ac_script=; unset ac_script;}
4802     if test -z "$SED"; then
4803  ac_path_SED_found=false
4804  # Loop through the user's path and test for each of PROGNAME-LIST
4805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806for as_dir in $PATH
4807do
4808  IFS=$as_save_IFS
4809  case $as_dir in #(((
4810    '') as_dir=./ ;;
4811    */) ;;
4812    *) as_dir=$as_dir/ ;;
4813  esac
4814    for ac_prog in sed gsed
4815   do
4816    for ac_exec_ext in '' $ac_executable_extensions; do
4817      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4818      as_fn_executable_p "$ac_path_SED" || continue
4819# Check for GNU ac_path_SED and select it if it is found.
4820  # Check for GNU $ac_path_SED
4821case `"$ac_path_SED" --version 2>&1` in
4822*GNU*)
4823  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4824*)
4825  ac_count=0
4826  printf %s 0123456789 >"conftest.in"
4827  while :
4828  do
4829    cat "conftest.in" "conftest.in" >"conftest.tmp"
4830    mv "conftest.tmp" "conftest.in"
4831    cp "conftest.in" "conftest.nl"
4832    printf "%s\n" '' >> "conftest.nl"
4833    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835    as_fn_arith $ac_count + 1 && ac_count=$as_val
4836    if test $ac_count -gt ${ac_path_SED_max-0}; then
4837      # Best one so far, save it but keep looking for a better one
4838      ac_cv_path_SED="$ac_path_SED"
4839      ac_path_SED_max=$ac_count
4840    fi
4841    # 10*(2^10) chars as input seems more than enough
4842    test $ac_count -gt 10 && break
4843  done
4844  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845esac
4846
4847      $ac_path_SED_found && break 3
4848    done
4849  done
4850  done
4851IFS=$as_save_IFS
4852  if test -z "$ac_cv_path_SED"; then
4853    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4854  fi
4855else
4856  ac_cv_path_SED=$SED
4857fi
4858
4859fi
4860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4861printf "%s\n" "$ac_cv_path_SED" >&6; }
4862 SED="$ac_cv_path_SED"
4863  rm -f conftest.sed
4864
4865
4866
4867
4868
4869
4870# Check whether --enable-selective-werror was given.
4871if test ${enable_selective_werror+y}
4872then :
4873  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4874else $as_nop
4875  SELECTIVE_WERROR=yes
4876fi
4877
4878
4879
4880
4881
4882# -v is too short to test reliably with XORG_TESTSET_CFLAG
4883if test "x$SUNCC" = "xyes"; then
4884    BASE_CFLAGS="-v"
4885else
4886    BASE_CFLAGS=""
4887fi
4888
4889# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903xorg_testset_save_CFLAGS="$CFLAGS"
4904
4905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4906	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4907	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4908printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4909if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4910then :
4911  printf %s "(cached) " >&6
4912else $as_nop
4913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914/* end confdefs.h.  */
4915int i;
4916_ACEOF
4917if ac_fn_c_try_compile "$LINENO"
4918then :
4919  xorg_cv_cc_flag_unknown_warning_option=yes
4920else $as_nop
4921  xorg_cv_cc_flag_unknown_warning_option=no
4922fi
4923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4924fi
4925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4926printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4927	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4928	CFLAGS="$xorg_testset_save_CFLAGS"
4929fi
4930
4931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4932	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4933		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4934	fi
4935	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4936	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4937printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4938if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4939then :
4940  printf %s "(cached) " >&6
4941else $as_nop
4942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943/* end confdefs.h.  */
4944int i;
4945_ACEOF
4946if ac_fn_c_try_compile "$LINENO"
4947then :
4948  xorg_cv_cc_flag_unused_command_line_argument=yes
4949else $as_nop
4950  xorg_cv_cc_flag_unused_command_line_argument=no
4951fi
4952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4953fi
4954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4955printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4956	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4957	CFLAGS="$xorg_testset_save_CFLAGS"
4958fi
4959
4960found="no"
4961
4962	if test $found = "no" ; then
4963		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4964			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4965		fi
4966
4967		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4968			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4969		fi
4970
4971		CFLAGS="$CFLAGS -Wall"
4972
4973		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4974printf %s "checking if $CC supports -Wall... " >&6; }
4975		cacheid=xorg_cv_cc_flag__Wall
4976		if eval test \${$cacheid+y}
4977then :
4978  printf %s "(cached) " >&6
4979else $as_nop
4980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981/* end confdefs.h.  */
4982int i;
4983int
4984main (void)
4985{
4986
4987  ;
4988  return 0;
4989}
4990_ACEOF
4991if ac_fn_c_try_link "$LINENO"
4992then :
4993  eval $cacheid=yes
4994else $as_nop
4995  eval $cacheid=no
4996fi
4997rm -f core conftest.err conftest.$ac_objext conftest.beam \
4998    conftest$ac_exeext conftest.$ac_ext
4999fi
5000
5001
5002		CFLAGS="$xorg_testset_save_CFLAGS"
5003
5004		eval supported=\$$cacheid
5005		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5006printf "%s\n" "$supported" >&6; }
5007		if test "$supported" = "yes" ; then
5008			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5009			found="yes"
5010		fi
5011	fi
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027xorg_testset_save_CFLAGS="$CFLAGS"
5028
5029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5030	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5031	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5032printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5033if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5034then :
5035  printf %s "(cached) " >&6
5036else $as_nop
5037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038/* end confdefs.h.  */
5039int i;
5040_ACEOF
5041if ac_fn_c_try_compile "$LINENO"
5042then :
5043  xorg_cv_cc_flag_unknown_warning_option=yes
5044else $as_nop
5045  xorg_cv_cc_flag_unknown_warning_option=no
5046fi
5047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5048fi
5049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5050printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5051	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5052	CFLAGS="$xorg_testset_save_CFLAGS"
5053fi
5054
5055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5056	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5058	fi
5059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5061printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5062if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5063then :
5064  printf %s "(cached) " >&6
5065else $as_nop
5066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067/* end confdefs.h.  */
5068int i;
5069_ACEOF
5070if ac_fn_c_try_compile "$LINENO"
5071then :
5072  xorg_cv_cc_flag_unused_command_line_argument=yes
5073else $as_nop
5074  xorg_cv_cc_flag_unused_command_line_argument=no
5075fi
5076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5077fi
5078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5079printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5080	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5081	CFLAGS="$xorg_testset_save_CFLAGS"
5082fi
5083
5084found="no"
5085
5086	if test $found = "no" ; then
5087		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5088			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5089		fi
5090
5091		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5092			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5093		fi
5094
5095		CFLAGS="$CFLAGS -Wpointer-arith"
5096
5097		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5098printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5099		cacheid=xorg_cv_cc_flag__Wpointer_arith
5100		if eval test \${$cacheid+y}
5101then :
5102  printf %s "(cached) " >&6
5103else $as_nop
5104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h.  */
5106int i;
5107int
5108main (void)
5109{
5110
5111  ;
5112  return 0;
5113}
5114_ACEOF
5115if ac_fn_c_try_link "$LINENO"
5116then :
5117  eval $cacheid=yes
5118else $as_nop
5119  eval $cacheid=no
5120fi
5121rm -f core conftest.err conftest.$ac_objext conftest.beam \
5122    conftest$ac_exeext conftest.$ac_ext
5123fi
5124
5125
5126		CFLAGS="$xorg_testset_save_CFLAGS"
5127
5128		eval supported=\$$cacheid
5129		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5130printf "%s\n" "$supported" >&6; }
5131		if test "$supported" = "yes" ; then
5132			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5133			found="yes"
5134		fi
5135	fi
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151xorg_testset_save_CFLAGS="$CFLAGS"
5152
5153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5154	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5156printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5157if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5158then :
5159  printf %s "(cached) " >&6
5160else $as_nop
5161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h.  */
5163int i;
5164_ACEOF
5165if ac_fn_c_try_compile "$LINENO"
5166then :
5167  xorg_cv_cc_flag_unknown_warning_option=yes
5168else $as_nop
5169  xorg_cv_cc_flag_unknown_warning_option=no
5170fi
5171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5172fi
5173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5174printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5175	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5176	CFLAGS="$xorg_testset_save_CFLAGS"
5177fi
5178
5179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5180	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5181		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5182	fi
5183	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5185printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5186if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5187then :
5188  printf %s "(cached) " >&6
5189else $as_nop
5190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191/* end confdefs.h.  */
5192int i;
5193_ACEOF
5194if ac_fn_c_try_compile "$LINENO"
5195then :
5196  xorg_cv_cc_flag_unused_command_line_argument=yes
5197else $as_nop
5198  xorg_cv_cc_flag_unused_command_line_argument=no
5199fi
5200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5201fi
5202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5203printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5204	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5205	CFLAGS="$xorg_testset_save_CFLAGS"
5206fi
5207
5208found="no"
5209
5210	if test $found = "no" ; then
5211		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5212			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5213		fi
5214
5215		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5216			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5217		fi
5218
5219		CFLAGS="$CFLAGS -Wmissing-declarations"
5220
5221		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5222printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5223		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5224		if eval test \${$cacheid+y}
5225then :
5226  printf %s "(cached) " >&6
5227else $as_nop
5228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229/* end confdefs.h.  */
5230int i;
5231int
5232main (void)
5233{
5234
5235  ;
5236  return 0;
5237}
5238_ACEOF
5239if ac_fn_c_try_link "$LINENO"
5240then :
5241  eval $cacheid=yes
5242else $as_nop
5243  eval $cacheid=no
5244fi
5245rm -f core conftest.err conftest.$ac_objext conftest.beam \
5246    conftest$ac_exeext conftest.$ac_ext
5247fi
5248
5249
5250		CFLAGS="$xorg_testset_save_CFLAGS"
5251
5252		eval supported=\$$cacheid
5253		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5254printf "%s\n" "$supported" >&6; }
5255		if test "$supported" = "yes" ; then
5256			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5257			found="yes"
5258		fi
5259	fi
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275xorg_testset_save_CFLAGS="$CFLAGS"
5276
5277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5279	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5280printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5281if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5282then :
5283  printf %s "(cached) " >&6
5284else $as_nop
5285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286/* end confdefs.h.  */
5287int i;
5288_ACEOF
5289if ac_fn_c_try_compile "$LINENO"
5290then :
5291  xorg_cv_cc_flag_unknown_warning_option=yes
5292else $as_nop
5293  xorg_cv_cc_flag_unknown_warning_option=no
5294fi
5295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5296fi
5297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5298printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5299	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5300	CFLAGS="$xorg_testset_save_CFLAGS"
5301fi
5302
5303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5304	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5305		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5306	fi
5307	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5308	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5309printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5310if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5311then :
5312  printf %s "(cached) " >&6
5313else $as_nop
5314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h.  */
5316int i;
5317_ACEOF
5318if ac_fn_c_try_compile "$LINENO"
5319then :
5320  xorg_cv_cc_flag_unused_command_line_argument=yes
5321else $as_nop
5322  xorg_cv_cc_flag_unused_command_line_argument=no
5323fi
5324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5325fi
5326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5327printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5328	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5329	CFLAGS="$xorg_testset_save_CFLAGS"
5330fi
5331
5332found="no"
5333
5334	if test $found = "no" ; then
5335		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5336			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5337		fi
5338
5339		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5340			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5341		fi
5342
5343		CFLAGS="$CFLAGS -Wformat=2"
5344
5345		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5346printf %s "checking if $CC supports -Wformat=2... " >&6; }
5347		cacheid=xorg_cv_cc_flag__Wformat_2
5348		if eval test \${$cacheid+y}
5349then :
5350  printf %s "(cached) " >&6
5351else $as_nop
5352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h.  */
5354int i;
5355int
5356main (void)
5357{
5358
5359  ;
5360  return 0;
5361}
5362_ACEOF
5363if ac_fn_c_try_link "$LINENO"
5364then :
5365  eval $cacheid=yes
5366else $as_nop
5367  eval $cacheid=no
5368fi
5369rm -f core conftest.err conftest.$ac_objext conftest.beam \
5370    conftest$ac_exeext conftest.$ac_ext
5371fi
5372
5373
5374		CFLAGS="$xorg_testset_save_CFLAGS"
5375
5376		eval supported=\$$cacheid
5377		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5378printf "%s\n" "$supported" >&6; }
5379		if test "$supported" = "yes" ; then
5380			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5381			found="yes"
5382		fi
5383	fi
5384
5385	if test $found = "no" ; then
5386		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5388		fi
5389
5390		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5392		fi
5393
5394		CFLAGS="$CFLAGS -Wformat"
5395
5396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5397printf %s "checking if $CC supports -Wformat... " >&6; }
5398		cacheid=xorg_cv_cc_flag__Wformat
5399		if eval test \${$cacheid+y}
5400then :
5401  printf %s "(cached) " >&6
5402else $as_nop
5403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404/* end confdefs.h.  */
5405int i;
5406int
5407main (void)
5408{
5409
5410  ;
5411  return 0;
5412}
5413_ACEOF
5414if ac_fn_c_try_link "$LINENO"
5415then :
5416  eval $cacheid=yes
5417else $as_nop
5418  eval $cacheid=no
5419fi
5420rm -f core conftest.err conftest.$ac_objext conftest.beam \
5421    conftest$ac_exeext conftest.$ac_ext
5422fi
5423
5424
5425		CFLAGS="$xorg_testset_save_CFLAGS"
5426
5427		eval supported=\$$cacheid
5428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5429printf "%s\n" "$supported" >&6; }
5430		if test "$supported" = "yes" ; then
5431			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5432			found="yes"
5433		fi
5434	fi
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452xorg_testset_save_CFLAGS="$CFLAGS"
5453
5454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5455	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5456	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5457printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5458if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5459then :
5460  printf %s "(cached) " >&6
5461else $as_nop
5462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463/* end confdefs.h.  */
5464int i;
5465_ACEOF
5466if ac_fn_c_try_compile "$LINENO"
5467then :
5468  xorg_cv_cc_flag_unknown_warning_option=yes
5469else $as_nop
5470  xorg_cv_cc_flag_unknown_warning_option=no
5471fi
5472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5473fi
5474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5475printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5476	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5477	CFLAGS="$xorg_testset_save_CFLAGS"
5478fi
5479
5480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5481	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5482		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5483	fi
5484	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5486printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5487if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5488then :
5489  printf %s "(cached) " >&6
5490else $as_nop
5491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492/* end confdefs.h.  */
5493int i;
5494_ACEOF
5495if ac_fn_c_try_compile "$LINENO"
5496then :
5497  xorg_cv_cc_flag_unused_command_line_argument=yes
5498else $as_nop
5499  xorg_cv_cc_flag_unused_command_line_argument=no
5500fi
5501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5502fi
5503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5504printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5505	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5506	CFLAGS="$xorg_testset_save_CFLAGS"
5507fi
5508
5509found="no"
5510
5511	if test $found = "no" ; then
5512		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5514		fi
5515
5516		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5518		fi
5519
5520		CFLAGS="$CFLAGS -Wstrict-prototypes"
5521
5522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5523printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5524		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5525		if eval test \${$cacheid+y}
5526then :
5527  printf %s "(cached) " >&6
5528else $as_nop
5529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h.  */
5531int i;
5532int
5533main (void)
5534{
5535
5536  ;
5537  return 0;
5538}
5539_ACEOF
5540if ac_fn_c_try_link "$LINENO"
5541then :
5542  eval $cacheid=yes
5543else $as_nop
5544  eval $cacheid=no
5545fi
5546rm -f core conftest.err conftest.$ac_objext conftest.beam \
5547    conftest$ac_exeext conftest.$ac_ext
5548fi
5549
5550
5551		CFLAGS="$xorg_testset_save_CFLAGS"
5552
5553		eval supported=\$$cacheid
5554		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5555printf "%s\n" "$supported" >&6; }
5556		if test "$supported" = "yes" ; then
5557			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5558			found="yes"
5559		fi
5560	fi
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576xorg_testset_save_CFLAGS="$CFLAGS"
5577
5578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5579	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5580	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5581printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5582if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5583then :
5584  printf %s "(cached) " >&6
5585else $as_nop
5586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587/* end confdefs.h.  */
5588int i;
5589_ACEOF
5590if ac_fn_c_try_compile "$LINENO"
5591then :
5592  xorg_cv_cc_flag_unknown_warning_option=yes
5593else $as_nop
5594  xorg_cv_cc_flag_unknown_warning_option=no
5595fi
5596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5597fi
5598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5599printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5600	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5601	CFLAGS="$xorg_testset_save_CFLAGS"
5602fi
5603
5604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5605	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5606		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5607	fi
5608	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5609	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5610printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5611if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5612then :
5613  printf %s "(cached) " >&6
5614else $as_nop
5615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616/* end confdefs.h.  */
5617int i;
5618_ACEOF
5619if ac_fn_c_try_compile "$LINENO"
5620then :
5621  xorg_cv_cc_flag_unused_command_line_argument=yes
5622else $as_nop
5623  xorg_cv_cc_flag_unused_command_line_argument=no
5624fi
5625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5626fi
5627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5628printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5629	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5630	CFLAGS="$xorg_testset_save_CFLAGS"
5631fi
5632
5633found="no"
5634
5635	if test $found = "no" ; then
5636		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5637			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5638		fi
5639
5640		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5641			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5642		fi
5643
5644		CFLAGS="$CFLAGS -Wmissing-prototypes"
5645
5646		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5647printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5648		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5649		if eval test \${$cacheid+y}
5650then :
5651  printf %s "(cached) " >&6
5652else $as_nop
5653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h.  */
5655int i;
5656int
5657main (void)
5658{
5659
5660  ;
5661  return 0;
5662}
5663_ACEOF
5664if ac_fn_c_try_link "$LINENO"
5665then :
5666  eval $cacheid=yes
5667else $as_nop
5668  eval $cacheid=no
5669fi
5670rm -f core conftest.err conftest.$ac_objext conftest.beam \
5671    conftest$ac_exeext conftest.$ac_ext
5672fi
5673
5674
5675		CFLAGS="$xorg_testset_save_CFLAGS"
5676
5677		eval supported=\$$cacheid
5678		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5679printf "%s\n" "$supported" >&6; }
5680		if test "$supported" = "yes" ; then
5681			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5682			found="yes"
5683		fi
5684	fi
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700xorg_testset_save_CFLAGS="$CFLAGS"
5701
5702if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5703	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5705printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5706if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5707then :
5708  printf %s "(cached) " >&6
5709else $as_nop
5710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711/* end confdefs.h.  */
5712int i;
5713_ACEOF
5714if ac_fn_c_try_compile "$LINENO"
5715then :
5716  xorg_cv_cc_flag_unknown_warning_option=yes
5717else $as_nop
5718  xorg_cv_cc_flag_unknown_warning_option=no
5719fi
5720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5721fi
5722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5723printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5724	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5725	CFLAGS="$xorg_testset_save_CFLAGS"
5726fi
5727
5728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5729	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5730		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5731	fi
5732	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5734printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5735if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5736then :
5737  printf %s "(cached) " >&6
5738else $as_nop
5739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740/* end confdefs.h.  */
5741int i;
5742_ACEOF
5743if ac_fn_c_try_compile "$LINENO"
5744then :
5745  xorg_cv_cc_flag_unused_command_line_argument=yes
5746else $as_nop
5747  xorg_cv_cc_flag_unused_command_line_argument=no
5748fi
5749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5750fi
5751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5752printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5753	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5754	CFLAGS="$xorg_testset_save_CFLAGS"
5755fi
5756
5757found="no"
5758
5759	if test $found = "no" ; then
5760		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5761			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762		fi
5763
5764		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5765			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5766		fi
5767
5768		CFLAGS="$CFLAGS -Wnested-externs"
5769
5770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5771printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5772		cacheid=xorg_cv_cc_flag__Wnested_externs
5773		if eval test \${$cacheid+y}
5774then :
5775  printf %s "(cached) " >&6
5776else $as_nop
5777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778/* end confdefs.h.  */
5779int i;
5780int
5781main (void)
5782{
5783
5784  ;
5785  return 0;
5786}
5787_ACEOF
5788if ac_fn_c_try_link "$LINENO"
5789then :
5790  eval $cacheid=yes
5791else $as_nop
5792  eval $cacheid=no
5793fi
5794rm -f core conftest.err conftest.$ac_objext conftest.beam \
5795    conftest$ac_exeext conftest.$ac_ext
5796fi
5797
5798
5799		CFLAGS="$xorg_testset_save_CFLAGS"
5800
5801		eval supported=\$$cacheid
5802		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5803printf "%s\n" "$supported" >&6; }
5804		if test "$supported" = "yes" ; then
5805			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5806			found="yes"
5807		fi
5808	fi
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824xorg_testset_save_CFLAGS="$CFLAGS"
5825
5826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5827	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5829printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5830if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5831then :
5832  printf %s "(cached) " >&6
5833else $as_nop
5834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835/* end confdefs.h.  */
5836int i;
5837_ACEOF
5838if ac_fn_c_try_compile "$LINENO"
5839then :
5840  xorg_cv_cc_flag_unknown_warning_option=yes
5841else $as_nop
5842  xorg_cv_cc_flag_unknown_warning_option=no
5843fi
5844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5845fi
5846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5847printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5848	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5849	CFLAGS="$xorg_testset_save_CFLAGS"
5850fi
5851
5852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5853	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5854		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5855	fi
5856	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5857	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5858printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5859if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5860then :
5861  printf %s "(cached) " >&6
5862else $as_nop
5863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h.  */
5865int i;
5866_ACEOF
5867if ac_fn_c_try_compile "$LINENO"
5868then :
5869  xorg_cv_cc_flag_unused_command_line_argument=yes
5870else $as_nop
5871  xorg_cv_cc_flag_unused_command_line_argument=no
5872fi
5873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5874fi
5875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5876printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5877	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5878	CFLAGS="$xorg_testset_save_CFLAGS"
5879fi
5880
5881found="no"
5882
5883	if test $found = "no" ; then
5884		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5885			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5886		fi
5887
5888		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5889			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890		fi
5891
5892		CFLAGS="$CFLAGS -Wbad-function-cast"
5893
5894		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5895printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5896		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5897		if eval test \${$cacheid+y}
5898then :
5899  printf %s "(cached) " >&6
5900else $as_nop
5901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902/* end confdefs.h.  */
5903int i;
5904int
5905main (void)
5906{
5907
5908  ;
5909  return 0;
5910}
5911_ACEOF
5912if ac_fn_c_try_link "$LINENO"
5913then :
5914  eval $cacheid=yes
5915else $as_nop
5916  eval $cacheid=no
5917fi
5918rm -f core conftest.err conftest.$ac_objext conftest.beam \
5919    conftest$ac_exeext conftest.$ac_ext
5920fi
5921
5922
5923		CFLAGS="$xorg_testset_save_CFLAGS"
5924
5925		eval supported=\$$cacheid
5926		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5927printf "%s\n" "$supported" >&6; }
5928		if test "$supported" = "yes" ; then
5929			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5930			found="yes"
5931		fi
5932	fi
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948xorg_testset_save_CFLAGS="$CFLAGS"
5949
5950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5951	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5952	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5953printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5954if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5955then :
5956  printf %s "(cached) " >&6
5957else $as_nop
5958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959/* end confdefs.h.  */
5960int i;
5961_ACEOF
5962if ac_fn_c_try_compile "$LINENO"
5963then :
5964  xorg_cv_cc_flag_unknown_warning_option=yes
5965else $as_nop
5966  xorg_cv_cc_flag_unknown_warning_option=no
5967fi
5968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5969fi
5970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5971printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5972	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5973	CFLAGS="$xorg_testset_save_CFLAGS"
5974fi
5975
5976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5977	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5978		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5979	fi
5980	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5981	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5982printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5983if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5984then :
5985  printf %s "(cached) " >&6
5986else $as_nop
5987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988/* end confdefs.h.  */
5989int i;
5990_ACEOF
5991if ac_fn_c_try_compile "$LINENO"
5992then :
5993  xorg_cv_cc_flag_unused_command_line_argument=yes
5994else $as_nop
5995  xorg_cv_cc_flag_unused_command_line_argument=no
5996fi
5997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5998fi
5999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6000printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6001	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6002	CFLAGS="$xorg_testset_save_CFLAGS"
6003fi
6004
6005found="no"
6006
6007	if test $found = "no" ; then
6008		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6009			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6010		fi
6011
6012		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6013			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6014		fi
6015
6016		CFLAGS="$CFLAGS -Wold-style-definition"
6017
6018		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6019printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6020		cacheid=xorg_cv_cc_flag__Wold_style_definition
6021		if eval test \${$cacheid+y}
6022then :
6023  printf %s "(cached) " >&6
6024else $as_nop
6025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026/* end confdefs.h.  */
6027int i;
6028int
6029main (void)
6030{
6031
6032  ;
6033  return 0;
6034}
6035_ACEOF
6036if ac_fn_c_try_link "$LINENO"
6037then :
6038  eval $cacheid=yes
6039else $as_nop
6040  eval $cacheid=no
6041fi
6042rm -f core conftest.err conftest.$ac_objext conftest.beam \
6043    conftest$ac_exeext conftest.$ac_ext
6044fi
6045
6046
6047		CFLAGS="$xorg_testset_save_CFLAGS"
6048
6049		eval supported=\$$cacheid
6050		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6051printf "%s\n" "$supported" >&6; }
6052		if test "$supported" = "yes" ; then
6053			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6054			found="yes"
6055		fi
6056	fi
6057
6058	if test $found = "no" ; then
6059		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6060			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061		fi
6062
6063		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6064			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6065		fi
6066
6067		CFLAGS="$CFLAGS -fd"
6068
6069		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6070printf %s "checking if $CC supports -fd... " >&6; }
6071		cacheid=xorg_cv_cc_flag__fd
6072		if eval test \${$cacheid+y}
6073then :
6074  printf %s "(cached) " >&6
6075else $as_nop
6076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077/* end confdefs.h.  */
6078int i;
6079int
6080main (void)
6081{
6082
6083  ;
6084  return 0;
6085}
6086_ACEOF
6087if ac_fn_c_try_link "$LINENO"
6088then :
6089  eval $cacheid=yes
6090else $as_nop
6091  eval $cacheid=no
6092fi
6093rm -f core conftest.err conftest.$ac_objext conftest.beam \
6094    conftest$ac_exeext conftest.$ac_ext
6095fi
6096
6097
6098		CFLAGS="$xorg_testset_save_CFLAGS"
6099
6100		eval supported=\$$cacheid
6101		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6102printf "%s\n" "$supported" >&6; }
6103		if test "$supported" = "yes" ; then
6104			BASE_CFLAGS="$BASE_CFLAGS -fd"
6105			found="yes"
6106		fi
6107	fi
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123xorg_testset_save_CFLAGS="$CFLAGS"
6124
6125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6126	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6127	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6128printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6129if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6130then :
6131  printf %s "(cached) " >&6
6132else $as_nop
6133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134/* end confdefs.h.  */
6135int i;
6136_ACEOF
6137if ac_fn_c_try_compile "$LINENO"
6138then :
6139  xorg_cv_cc_flag_unknown_warning_option=yes
6140else $as_nop
6141  xorg_cv_cc_flag_unknown_warning_option=no
6142fi
6143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6144fi
6145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6146printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6148	CFLAGS="$xorg_testset_save_CFLAGS"
6149fi
6150
6151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6154	fi
6155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6157printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6158if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6159then :
6160  printf %s "(cached) " >&6
6161else $as_nop
6162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163/* end confdefs.h.  */
6164int i;
6165_ACEOF
6166if ac_fn_c_try_compile "$LINENO"
6167then :
6168  xorg_cv_cc_flag_unused_command_line_argument=yes
6169else $as_nop
6170  xorg_cv_cc_flag_unused_command_line_argument=no
6171fi
6172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6173fi
6174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6175printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6176	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6177	CFLAGS="$xorg_testset_save_CFLAGS"
6178fi
6179
6180found="no"
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 -Wdeclaration-after-statement"
6192
6193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6194printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6195		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6196		if eval test \${$cacheid+y}
6197then :
6198  printf %s "(cached) " >&6
6199else $as_nop
6200  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 $as_nop
6215  eval $cacheid=no
6216fi
6217rm -f core conftest.err conftest.$ac_objext conftest.beam \
6218    conftest$ac_exeext conftest.$ac_ext
6219fi
6220
6221
6222		CFLAGS="$xorg_testset_save_CFLAGS"
6223
6224		eval supported=\$$cacheid
6225		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6226printf "%s\n" "$supported" >&6; }
6227		if test "$supported" = "yes" ; then
6228			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6229			found="yes"
6230		fi
6231	fi
6232
6233
6234
6235
6236
6237# This chunk adds additional warnings that could catch undesired effects.
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251xorg_testset_save_CFLAGS="$CFLAGS"
6252
6253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6254	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6256printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6257if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6258then :
6259  printf %s "(cached) " >&6
6260else $as_nop
6261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262/* end confdefs.h.  */
6263int i;
6264_ACEOF
6265if ac_fn_c_try_compile "$LINENO"
6266then :
6267  xorg_cv_cc_flag_unknown_warning_option=yes
6268else $as_nop
6269  xorg_cv_cc_flag_unknown_warning_option=no
6270fi
6271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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 $as_nop
6290  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 $as_nop
6298  xorg_cv_cc_flag_unused_command_line_argument=no
6299fi
6300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6301fi
6302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6303printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6304	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6305	CFLAGS="$xorg_testset_save_CFLAGS"
6306fi
6307
6308found="no"
6309
6310	if test $found = "no" ; then
6311		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6312			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6313		fi
6314
6315		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6316			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6317		fi
6318
6319		CFLAGS="$CFLAGS -Wunused"
6320
6321		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6322printf %s "checking if $CC supports -Wunused... " >&6; }
6323		cacheid=xorg_cv_cc_flag__Wunused
6324		if eval test \${$cacheid+y}
6325then :
6326  printf %s "(cached) " >&6
6327else $as_nop
6328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329/* end confdefs.h.  */
6330int i;
6331int
6332main (void)
6333{
6334
6335  ;
6336  return 0;
6337}
6338_ACEOF
6339if ac_fn_c_try_link "$LINENO"
6340then :
6341  eval $cacheid=yes
6342else $as_nop
6343  eval $cacheid=no
6344fi
6345rm -f core conftest.err conftest.$ac_objext conftest.beam \
6346    conftest$ac_exeext conftest.$ac_ext
6347fi
6348
6349
6350		CFLAGS="$xorg_testset_save_CFLAGS"
6351
6352		eval supported=\$$cacheid
6353		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6354printf "%s\n" "$supported" >&6; }
6355		if test "$supported" = "yes" ; then
6356			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6357			found="yes"
6358		fi
6359	fi
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375xorg_testset_save_CFLAGS="$CFLAGS"
6376
6377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6378	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6380printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6381if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6382then :
6383  printf %s "(cached) " >&6
6384else $as_nop
6385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386/* end confdefs.h.  */
6387int i;
6388_ACEOF
6389if ac_fn_c_try_compile "$LINENO"
6390then :
6391  xorg_cv_cc_flag_unknown_warning_option=yes
6392else $as_nop
6393  xorg_cv_cc_flag_unknown_warning_option=no
6394fi
6395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6396fi
6397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6398printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6399	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6400	CFLAGS="$xorg_testset_save_CFLAGS"
6401fi
6402
6403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6404	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6405		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6406	fi
6407	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6409printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6410if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6411then :
6412  printf %s "(cached) " >&6
6413else $as_nop
6414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415/* end confdefs.h.  */
6416int i;
6417_ACEOF
6418if ac_fn_c_try_compile "$LINENO"
6419then :
6420  xorg_cv_cc_flag_unused_command_line_argument=yes
6421else $as_nop
6422  xorg_cv_cc_flag_unused_command_line_argument=no
6423fi
6424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6425fi
6426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6427printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6428	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6429	CFLAGS="$xorg_testset_save_CFLAGS"
6430fi
6431
6432found="no"
6433
6434	if test $found = "no" ; then
6435		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6436			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6437		fi
6438
6439		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6440			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6441		fi
6442
6443		CFLAGS="$CFLAGS -Wuninitialized"
6444
6445		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6446printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6447		cacheid=xorg_cv_cc_flag__Wuninitialized
6448		if eval test \${$cacheid+y}
6449then :
6450  printf %s "(cached) " >&6
6451else $as_nop
6452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453/* end confdefs.h.  */
6454int i;
6455int
6456main (void)
6457{
6458
6459  ;
6460  return 0;
6461}
6462_ACEOF
6463if ac_fn_c_try_link "$LINENO"
6464then :
6465  eval $cacheid=yes
6466else $as_nop
6467  eval $cacheid=no
6468fi
6469rm -f core conftest.err conftest.$ac_objext conftest.beam \
6470    conftest$ac_exeext conftest.$ac_ext
6471fi
6472
6473
6474		CFLAGS="$xorg_testset_save_CFLAGS"
6475
6476		eval supported=\$$cacheid
6477		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6478printf "%s\n" "$supported" >&6; }
6479		if test "$supported" = "yes" ; then
6480			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6481			found="yes"
6482		fi
6483	fi
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499xorg_testset_save_CFLAGS="$CFLAGS"
6500
6501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6502	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6503	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6505if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6506then :
6507  printf %s "(cached) " >&6
6508else $as_nop
6509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510/* end confdefs.h.  */
6511int i;
6512_ACEOF
6513if ac_fn_c_try_compile "$LINENO"
6514then :
6515  xorg_cv_cc_flag_unknown_warning_option=yes
6516else $as_nop
6517  xorg_cv_cc_flag_unknown_warning_option=no
6518fi
6519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6520fi
6521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6522printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6523	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6524	CFLAGS="$xorg_testset_save_CFLAGS"
6525fi
6526
6527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6528	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6529		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6530	fi
6531	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6532	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6533printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6534if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6535then :
6536  printf %s "(cached) " >&6
6537else $as_nop
6538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539/* end confdefs.h.  */
6540int i;
6541_ACEOF
6542if ac_fn_c_try_compile "$LINENO"
6543then :
6544  xorg_cv_cc_flag_unused_command_line_argument=yes
6545else $as_nop
6546  xorg_cv_cc_flag_unused_command_line_argument=no
6547fi
6548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6549fi
6550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6553	CFLAGS="$xorg_testset_save_CFLAGS"
6554fi
6555
6556found="no"
6557
6558	if test $found = "no" ; then
6559		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6561		fi
6562
6563		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6565		fi
6566
6567		CFLAGS="$CFLAGS -Wshadow"
6568
6569		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6570printf %s "checking if $CC supports -Wshadow... " >&6; }
6571		cacheid=xorg_cv_cc_flag__Wshadow
6572		if eval test \${$cacheid+y}
6573then :
6574  printf %s "(cached) " >&6
6575else $as_nop
6576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577/* end confdefs.h.  */
6578int i;
6579int
6580main (void)
6581{
6582
6583  ;
6584  return 0;
6585}
6586_ACEOF
6587if ac_fn_c_try_link "$LINENO"
6588then :
6589  eval $cacheid=yes
6590else $as_nop
6591  eval $cacheid=no
6592fi
6593rm -f core conftest.err conftest.$ac_objext conftest.beam \
6594    conftest$ac_exeext conftest.$ac_ext
6595fi
6596
6597
6598		CFLAGS="$xorg_testset_save_CFLAGS"
6599
6600		eval supported=\$$cacheid
6601		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6602printf "%s\n" "$supported" >&6; }
6603		if test "$supported" = "yes" ; then
6604			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6605			found="yes"
6606		fi
6607	fi
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623xorg_testset_save_CFLAGS="$CFLAGS"
6624
6625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6627	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6629if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6630then :
6631  printf %s "(cached) " >&6
6632else $as_nop
6633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634/* end confdefs.h.  */
6635int i;
6636_ACEOF
6637if ac_fn_c_try_compile "$LINENO"
6638then :
6639  xorg_cv_cc_flag_unknown_warning_option=yes
6640else $as_nop
6641  xorg_cv_cc_flag_unknown_warning_option=no
6642fi
6643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6644fi
6645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6647	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6648	CFLAGS="$xorg_testset_save_CFLAGS"
6649fi
6650
6651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6652	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6653		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6654	fi
6655	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6658if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6659then :
6660  printf %s "(cached) " >&6
6661else $as_nop
6662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663/* end confdefs.h.  */
6664int i;
6665_ACEOF
6666if ac_fn_c_try_compile "$LINENO"
6667then :
6668  xorg_cv_cc_flag_unused_command_line_argument=yes
6669else $as_nop
6670  xorg_cv_cc_flag_unused_command_line_argument=no
6671fi
6672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6673fi
6674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6675printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6676	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6677	CFLAGS="$xorg_testset_save_CFLAGS"
6678fi
6679
6680found="no"
6681
6682	if test $found = "no" ; then
6683		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6685		fi
6686
6687		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6689		fi
6690
6691		CFLAGS="$CFLAGS -Wmissing-noreturn"
6692
6693		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6694printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6695		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6696		if eval test \${$cacheid+y}
6697then :
6698  printf %s "(cached) " >&6
6699else $as_nop
6700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702int i;
6703int
6704main (void)
6705{
6706
6707  ;
6708  return 0;
6709}
6710_ACEOF
6711if ac_fn_c_try_link "$LINENO"
6712then :
6713  eval $cacheid=yes
6714else $as_nop
6715  eval $cacheid=no
6716fi
6717rm -f core conftest.err conftest.$ac_objext conftest.beam \
6718    conftest$ac_exeext conftest.$ac_ext
6719fi
6720
6721
6722		CFLAGS="$xorg_testset_save_CFLAGS"
6723
6724		eval supported=\$$cacheid
6725		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6726printf "%s\n" "$supported" >&6; }
6727		if test "$supported" = "yes" ; then
6728			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6729			found="yes"
6730		fi
6731	fi
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747xorg_testset_save_CFLAGS="$CFLAGS"
6748
6749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6752printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6753if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6754then :
6755  printf %s "(cached) " >&6
6756else $as_nop
6757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758/* end confdefs.h.  */
6759int i;
6760_ACEOF
6761if ac_fn_c_try_compile "$LINENO"
6762then :
6763  xorg_cv_cc_flag_unknown_warning_option=yes
6764else $as_nop
6765  xorg_cv_cc_flag_unknown_warning_option=no
6766fi
6767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6768fi
6769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6770printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6771	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6772	CFLAGS="$xorg_testset_save_CFLAGS"
6773fi
6774
6775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6776	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6777		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6778	fi
6779	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6780	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6781printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6782if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6783then :
6784  printf %s "(cached) " >&6
6785else $as_nop
6786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787/* end confdefs.h.  */
6788int i;
6789_ACEOF
6790if ac_fn_c_try_compile "$LINENO"
6791then :
6792  xorg_cv_cc_flag_unused_command_line_argument=yes
6793else $as_nop
6794  xorg_cv_cc_flag_unused_command_line_argument=no
6795fi
6796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6797fi
6798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6799printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6800	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6801	CFLAGS="$xorg_testset_save_CFLAGS"
6802fi
6803
6804found="no"
6805
6806	if test $found = "no" ; then
6807		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6808			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6809		fi
6810
6811		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6812			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6813		fi
6814
6815		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6816
6817		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6818printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6819		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6820		if eval test \${$cacheid+y}
6821then :
6822  printf %s "(cached) " >&6
6823else $as_nop
6824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825/* end confdefs.h.  */
6826int i;
6827int
6828main (void)
6829{
6830
6831  ;
6832  return 0;
6833}
6834_ACEOF
6835if ac_fn_c_try_link "$LINENO"
6836then :
6837  eval $cacheid=yes
6838else $as_nop
6839  eval $cacheid=no
6840fi
6841rm -f core conftest.err conftest.$ac_objext conftest.beam \
6842    conftest$ac_exeext conftest.$ac_ext
6843fi
6844
6845
6846		CFLAGS="$xorg_testset_save_CFLAGS"
6847
6848		eval supported=\$$cacheid
6849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6850printf "%s\n" "$supported" >&6; }
6851		if test "$supported" = "yes" ; then
6852			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6853			found="yes"
6854		fi
6855	fi
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871xorg_testset_save_CFLAGS="$CFLAGS"
6872
6873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6874	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6876printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6877if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6878then :
6879  printf %s "(cached) " >&6
6880else $as_nop
6881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882/* end confdefs.h.  */
6883int i;
6884_ACEOF
6885if ac_fn_c_try_compile "$LINENO"
6886then :
6887  xorg_cv_cc_flag_unknown_warning_option=yes
6888else $as_nop
6889  xorg_cv_cc_flag_unknown_warning_option=no
6890fi
6891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6892fi
6893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6894printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6895	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6896	CFLAGS="$xorg_testset_save_CFLAGS"
6897fi
6898
6899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6900	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6901		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6902	fi
6903	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6905printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6906if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6907then :
6908  printf %s "(cached) " >&6
6909else $as_nop
6910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911/* end confdefs.h.  */
6912int i;
6913_ACEOF
6914if ac_fn_c_try_compile "$LINENO"
6915then :
6916  xorg_cv_cc_flag_unused_command_line_argument=yes
6917else $as_nop
6918  xorg_cv_cc_flag_unused_command_line_argument=no
6919fi
6920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6921fi
6922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6923printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6924	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6925	CFLAGS="$xorg_testset_save_CFLAGS"
6926fi
6927
6928found="no"
6929
6930	if test $found = "no" ; then
6931		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6932			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6933		fi
6934
6935		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6936			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6937		fi
6938
6939		CFLAGS="$CFLAGS -Wredundant-decls"
6940
6941		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6942printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6943		cacheid=xorg_cv_cc_flag__Wredundant_decls
6944		if eval test \${$cacheid+y}
6945then :
6946  printf %s "(cached) " >&6
6947else $as_nop
6948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949/* end confdefs.h.  */
6950int i;
6951int
6952main (void)
6953{
6954
6955  ;
6956  return 0;
6957}
6958_ACEOF
6959if ac_fn_c_try_link "$LINENO"
6960then :
6961  eval $cacheid=yes
6962else $as_nop
6963  eval $cacheid=no
6964fi
6965rm -f core conftest.err conftest.$ac_objext conftest.beam \
6966    conftest$ac_exeext conftest.$ac_ext
6967fi
6968
6969
6970		CFLAGS="$xorg_testset_save_CFLAGS"
6971
6972		eval supported=\$$cacheid
6973		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6974printf "%s\n" "$supported" >&6; }
6975		if test "$supported" = "yes" ; then
6976			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6977			found="yes"
6978		fi
6979	fi
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995xorg_testset_save_CFLAGS="$CFLAGS"
6996
6997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6998	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7000printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7001if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7002then :
7003  printf %s "(cached) " >&6
7004else $as_nop
7005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006/* end confdefs.h.  */
7007int i;
7008_ACEOF
7009if ac_fn_c_try_compile "$LINENO"
7010then :
7011  xorg_cv_cc_flag_unknown_warning_option=yes
7012else $as_nop
7013  xorg_cv_cc_flag_unknown_warning_option=no
7014fi
7015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7016fi
7017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7018printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7019	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7020	CFLAGS="$xorg_testset_save_CFLAGS"
7021fi
7022
7023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7024	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7025		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7026	fi
7027	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7029printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7030if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7031then :
7032  printf %s "(cached) " >&6
7033else $as_nop
7034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035/* end confdefs.h.  */
7036int i;
7037_ACEOF
7038if ac_fn_c_try_compile "$LINENO"
7039then :
7040  xorg_cv_cc_flag_unused_command_line_argument=yes
7041else $as_nop
7042  xorg_cv_cc_flag_unused_command_line_argument=no
7043fi
7044rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7045fi
7046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7047printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7048	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7049	CFLAGS="$xorg_testset_save_CFLAGS"
7050fi
7051
7052found="no"
7053
7054	if test $found = "no" ; then
7055		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7056			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7057		fi
7058
7059		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7060			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7061		fi
7062
7063		CFLAGS="$CFLAGS -Wlogical-op"
7064
7065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7066printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7067		cacheid=xorg_cv_cc_flag__Wlogical_op
7068		if eval test \${$cacheid+y}
7069then :
7070  printf %s "(cached) " >&6
7071else $as_nop
7072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073/* end confdefs.h.  */
7074int i;
7075int
7076main (void)
7077{
7078
7079  ;
7080  return 0;
7081}
7082_ACEOF
7083if ac_fn_c_try_link "$LINENO"
7084then :
7085  eval $cacheid=yes
7086else $as_nop
7087  eval $cacheid=no
7088fi
7089rm -f core conftest.err conftest.$ac_objext conftest.beam \
7090    conftest$ac_exeext conftest.$ac_ext
7091fi
7092
7093
7094		CFLAGS="$xorg_testset_save_CFLAGS"
7095
7096		eval supported=\$$cacheid
7097		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7098printf "%s\n" "$supported" >&6; }
7099		if test "$supported" = "yes" ; then
7100			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7101			found="yes"
7102		fi
7103	fi
7104
7105
7106
7107# These are currently disabled because they are noisy.  They will be enabled
7108# in the future once the codebase is sufficiently modernized to silence
7109# them.  For now, I don't want them to drown out the other warnings.
7110# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7111# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7112# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7113
7114# Turn some warnings into errors, so we don't accidently get successful builds
7115# when there are problems that should be fixed.
7116
7117if test "x$SELECTIVE_WERROR" = "xyes" ; then
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131xorg_testset_save_CFLAGS="$CFLAGS"
7132
7133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7134	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7136printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7137if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7138then :
7139  printf %s "(cached) " >&6
7140else $as_nop
7141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142/* end confdefs.h.  */
7143int i;
7144_ACEOF
7145if ac_fn_c_try_compile "$LINENO"
7146then :
7147  xorg_cv_cc_flag_unknown_warning_option=yes
7148else $as_nop
7149  xorg_cv_cc_flag_unknown_warning_option=no
7150fi
7151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7152fi
7153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7154printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7155	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7156	CFLAGS="$xorg_testset_save_CFLAGS"
7157fi
7158
7159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7160	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7161		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7162	fi
7163	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7164	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7165printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7166if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7167then :
7168  printf %s "(cached) " >&6
7169else $as_nop
7170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171/* end confdefs.h.  */
7172int i;
7173_ACEOF
7174if ac_fn_c_try_compile "$LINENO"
7175then :
7176  xorg_cv_cc_flag_unused_command_line_argument=yes
7177else $as_nop
7178  xorg_cv_cc_flag_unused_command_line_argument=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7181fi
7182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7183printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7184	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7185	CFLAGS="$xorg_testset_save_CFLAGS"
7186fi
7187
7188found="no"
7189
7190	if test $found = "no" ; then
7191		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7192			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7193		fi
7194
7195		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7196			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7197		fi
7198
7199		CFLAGS="$CFLAGS -Werror=implicit"
7200
7201		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7202printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7203		cacheid=xorg_cv_cc_flag__Werror_implicit
7204		if eval test \${$cacheid+y}
7205then :
7206  printf %s "(cached) " >&6
7207else $as_nop
7208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209/* end confdefs.h.  */
7210int i;
7211int
7212main (void)
7213{
7214
7215  ;
7216  return 0;
7217}
7218_ACEOF
7219if ac_fn_c_try_link "$LINENO"
7220then :
7221  eval $cacheid=yes
7222else $as_nop
7223  eval $cacheid=no
7224fi
7225rm -f core conftest.err conftest.$ac_objext conftest.beam \
7226    conftest$ac_exeext conftest.$ac_ext
7227fi
7228
7229
7230		CFLAGS="$xorg_testset_save_CFLAGS"
7231
7232		eval supported=\$$cacheid
7233		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7234printf "%s\n" "$supported" >&6; }
7235		if test "$supported" = "yes" ; then
7236			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7237			found="yes"
7238		fi
7239	fi
7240
7241	if test $found = "no" ; then
7242		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7243			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7244		fi
7245
7246		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7247			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7248		fi
7249
7250		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7251
7252		{ 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
7253printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7254		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7255		if eval test \${$cacheid+y}
7256then :
7257  printf %s "(cached) " >&6
7258else $as_nop
7259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260/* end confdefs.h.  */
7261int i;
7262int
7263main (void)
7264{
7265
7266  ;
7267  return 0;
7268}
7269_ACEOF
7270if ac_fn_c_try_link "$LINENO"
7271then :
7272  eval $cacheid=yes
7273else $as_nop
7274  eval $cacheid=no
7275fi
7276rm -f core conftest.err conftest.$ac_objext conftest.beam \
7277    conftest$ac_exeext conftest.$ac_ext
7278fi
7279
7280
7281		CFLAGS="$xorg_testset_save_CFLAGS"
7282
7283		eval supported=\$$cacheid
7284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7285printf "%s\n" "$supported" >&6; }
7286		if test "$supported" = "yes" ; then
7287			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7288			found="yes"
7289		fi
7290	fi
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306xorg_testset_save_CFLAGS="$CFLAGS"
7307
7308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7309	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7310	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7311printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7312if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7313then :
7314  printf %s "(cached) " >&6
7315else $as_nop
7316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h.  */
7318int i;
7319_ACEOF
7320if ac_fn_c_try_compile "$LINENO"
7321then :
7322  xorg_cv_cc_flag_unknown_warning_option=yes
7323else $as_nop
7324  xorg_cv_cc_flag_unknown_warning_option=no
7325fi
7326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7327fi
7328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7329printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7330	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7331	CFLAGS="$xorg_testset_save_CFLAGS"
7332fi
7333
7334if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7335	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7336		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7337	fi
7338	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7340printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7341if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7342then :
7343  printf %s "(cached) " >&6
7344else $as_nop
7345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346/* end confdefs.h.  */
7347int i;
7348_ACEOF
7349if ac_fn_c_try_compile "$LINENO"
7350then :
7351  xorg_cv_cc_flag_unused_command_line_argument=yes
7352else $as_nop
7353  xorg_cv_cc_flag_unused_command_line_argument=no
7354fi
7355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7356fi
7357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7358printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7360	CFLAGS="$xorg_testset_save_CFLAGS"
7361fi
7362
7363found="no"
7364
7365	if test $found = "no" ; then
7366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7368		fi
7369
7370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7372		fi
7373
7374		CFLAGS="$CFLAGS -Werror=nonnull"
7375
7376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7377printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7378		cacheid=xorg_cv_cc_flag__Werror_nonnull
7379		if eval test \${$cacheid+y}
7380then :
7381  printf %s "(cached) " >&6
7382else $as_nop
7383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384/* end confdefs.h.  */
7385int i;
7386int
7387main (void)
7388{
7389
7390  ;
7391  return 0;
7392}
7393_ACEOF
7394if ac_fn_c_try_link "$LINENO"
7395then :
7396  eval $cacheid=yes
7397else $as_nop
7398  eval $cacheid=no
7399fi
7400rm -f core conftest.err conftest.$ac_objext conftest.beam \
7401    conftest$ac_exeext conftest.$ac_ext
7402fi
7403
7404
7405		CFLAGS="$xorg_testset_save_CFLAGS"
7406
7407		eval supported=\$$cacheid
7408		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7409printf "%s\n" "$supported" >&6; }
7410		if test "$supported" = "yes" ; then
7411			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7412			found="yes"
7413		fi
7414	fi
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430xorg_testset_save_CFLAGS="$CFLAGS"
7431
7432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7434	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7435printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7436if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7437then :
7438  printf %s "(cached) " >&6
7439else $as_nop
7440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441/* end confdefs.h.  */
7442int i;
7443_ACEOF
7444if ac_fn_c_try_compile "$LINENO"
7445then :
7446  xorg_cv_cc_flag_unknown_warning_option=yes
7447else $as_nop
7448  xorg_cv_cc_flag_unknown_warning_option=no
7449fi
7450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7451fi
7452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7453printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7454	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7455	CFLAGS="$xorg_testset_save_CFLAGS"
7456fi
7457
7458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7459	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7460		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7461	fi
7462	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7464printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7465if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7466then :
7467  printf %s "(cached) " >&6
7468else $as_nop
7469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470/* end confdefs.h.  */
7471int i;
7472_ACEOF
7473if ac_fn_c_try_compile "$LINENO"
7474then :
7475  xorg_cv_cc_flag_unused_command_line_argument=yes
7476else $as_nop
7477  xorg_cv_cc_flag_unused_command_line_argument=no
7478fi
7479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7480fi
7481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7482printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7483	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7484	CFLAGS="$xorg_testset_save_CFLAGS"
7485fi
7486
7487found="no"
7488
7489	if test $found = "no" ; then
7490		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7491			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7492		fi
7493
7494		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7495			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7496		fi
7497
7498		CFLAGS="$CFLAGS -Werror=init-self"
7499
7500		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7501printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7502		cacheid=xorg_cv_cc_flag__Werror_init_self
7503		if eval test \${$cacheid+y}
7504then :
7505  printf %s "(cached) " >&6
7506else $as_nop
7507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508/* end confdefs.h.  */
7509int i;
7510int
7511main (void)
7512{
7513
7514  ;
7515  return 0;
7516}
7517_ACEOF
7518if ac_fn_c_try_link "$LINENO"
7519then :
7520  eval $cacheid=yes
7521else $as_nop
7522  eval $cacheid=no
7523fi
7524rm -f core conftest.err conftest.$ac_objext conftest.beam \
7525    conftest$ac_exeext conftest.$ac_ext
7526fi
7527
7528
7529		CFLAGS="$xorg_testset_save_CFLAGS"
7530
7531		eval supported=\$$cacheid
7532		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7533printf "%s\n" "$supported" >&6; }
7534		if test "$supported" = "yes" ; then
7535			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7536			found="yes"
7537		fi
7538	fi
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554xorg_testset_save_CFLAGS="$CFLAGS"
7555
7556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7558	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7559printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7560if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7561then :
7562  printf %s "(cached) " >&6
7563else $as_nop
7564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565/* end confdefs.h.  */
7566int i;
7567_ACEOF
7568if ac_fn_c_try_compile "$LINENO"
7569then :
7570  xorg_cv_cc_flag_unknown_warning_option=yes
7571else $as_nop
7572  xorg_cv_cc_flag_unknown_warning_option=no
7573fi
7574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7575fi
7576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7577printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7578	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7579	CFLAGS="$xorg_testset_save_CFLAGS"
7580fi
7581
7582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7583	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7585	fi
7586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7588printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7589if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7590then :
7591  printf %s "(cached) " >&6
7592else $as_nop
7593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h.  */
7595int i;
7596_ACEOF
7597if ac_fn_c_try_compile "$LINENO"
7598then :
7599  xorg_cv_cc_flag_unused_command_line_argument=yes
7600else $as_nop
7601  xorg_cv_cc_flag_unused_command_line_argument=no
7602fi
7603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7604fi
7605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7606printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7607	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7608	CFLAGS="$xorg_testset_save_CFLAGS"
7609fi
7610
7611found="no"
7612
7613	if test $found = "no" ; then
7614		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7615			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7616		fi
7617
7618		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7619			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7620		fi
7621
7622		CFLAGS="$CFLAGS -Werror=main"
7623
7624		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7625printf %s "checking if $CC supports -Werror=main... " >&6; }
7626		cacheid=xorg_cv_cc_flag__Werror_main
7627		if eval test \${$cacheid+y}
7628then :
7629  printf %s "(cached) " >&6
7630else $as_nop
7631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632/* end confdefs.h.  */
7633int i;
7634int
7635main (void)
7636{
7637
7638  ;
7639  return 0;
7640}
7641_ACEOF
7642if ac_fn_c_try_link "$LINENO"
7643then :
7644  eval $cacheid=yes
7645else $as_nop
7646  eval $cacheid=no
7647fi
7648rm -f core conftest.err conftest.$ac_objext conftest.beam \
7649    conftest$ac_exeext conftest.$ac_ext
7650fi
7651
7652
7653		CFLAGS="$xorg_testset_save_CFLAGS"
7654
7655		eval supported=\$$cacheid
7656		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7657printf "%s\n" "$supported" >&6; }
7658		if test "$supported" = "yes" ; then
7659			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7660			found="yes"
7661		fi
7662	fi
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678xorg_testset_save_CFLAGS="$CFLAGS"
7679
7680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7682	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7683printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7684if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7685then :
7686  printf %s "(cached) " >&6
7687else $as_nop
7688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689/* end confdefs.h.  */
7690int i;
7691_ACEOF
7692if ac_fn_c_try_compile "$LINENO"
7693then :
7694  xorg_cv_cc_flag_unknown_warning_option=yes
7695else $as_nop
7696  xorg_cv_cc_flag_unknown_warning_option=no
7697fi
7698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7699fi
7700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7701printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7703	CFLAGS="$xorg_testset_save_CFLAGS"
7704fi
7705
7706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709	fi
7710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7712printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7713if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7714then :
7715  printf %s "(cached) " >&6
7716else $as_nop
7717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718/* end confdefs.h.  */
7719int i;
7720_ACEOF
7721if ac_fn_c_try_compile "$LINENO"
7722then :
7723  xorg_cv_cc_flag_unused_command_line_argument=yes
7724else $as_nop
7725  xorg_cv_cc_flag_unused_command_line_argument=no
7726fi
7727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7728fi
7729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7730printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7731	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7732	CFLAGS="$xorg_testset_save_CFLAGS"
7733fi
7734
7735found="no"
7736
7737	if test $found = "no" ; then
7738		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7739			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7740		fi
7741
7742		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7743			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7744		fi
7745
7746		CFLAGS="$CFLAGS -Werror=missing-braces"
7747
7748		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7749printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7750		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7751		if eval test \${$cacheid+y}
7752then :
7753  printf %s "(cached) " >&6
7754else $as_nop
7755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h.  */
7757int i;
7758int
7759main (void)
7760{
7761
7762  ;
7763  return 0;
7764}
7765_ACEOF
7766if ac_fn_c_try_link "$LINENO"
7767then :
7768  eval $cacheid=yes
7769else $as_nop
7770  eval $cacheid=no
7771fi
7772rm -f core conftest.err conftest.$ac_objext conftest.beam \
7773    conftest$ac_exeext conftest.$ac_ext
7774fi
7775
7776
7777		CFLAGS="$xorg_testset_save_CFLAGS"
7778
7779		eval supported=\$$cacheid
7780		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7781printf "%s\n" "$supported" >&6; }
7782		if test "$supported" = "yes" ; then
7783			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7784			found="yes"
7785		fi
7786	fi
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802xorg_testset_save_CFLAGS="$CFLAGS"
7803
7804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7805	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7806	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7807printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7808if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7809then :
7810  printf %s "(cached) " >&6
7811else $as_nop
7812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h.  */
7814int i;
7815_ACEOF
7816if ac_fn_c_try_compile "$LINENO"
7817then :
7818  xorg_cv_cc_flag_unknown_warning_option=yes
7819else $as_nop
7820  xorg_cv_cc_flag_unknown_warning_option=no
7821fi
7822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7823fi
7824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7825printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7827	CFLAGS="$xorg_testset_save_CFLAGS"
7828fi
7829
7830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7833	fi
7834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7836printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7837if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7838then :
7839  printf %s "(cached) " >&6
7840else $as_nop
7841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842/* end confdefs.h.  */
7843int i;
7844_ACEOF
7845if ac_fn_c_try_compile "$LINENO"
7846then :
7847  xorg_cv_cc_flag_unused_command_line_argument=yes
7848else $as_nop
7849  xorg_cv_cc_flag_unused_command_line_argument=no
7850fi
7851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7852fi
7853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7854printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7855	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7856	CFLAGS="$xorg_testset_save_CFLAGS"
7857fi
7858
7859found="no"
7860
7861	if test $found = "no" ; then
7862		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7863			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864		fi
7865
7866		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7867			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7868		fi
7869
7870		CFLAGS="$CFLAGS -Werror=sequence-point"
7871
7872		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7873printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7874		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7875		if eval test \${$cacheid+y}
7876then :
7877  printf %s "(cached) " >&6
7878else $as_nop
7879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880/* end confdefs.h.  */
7881int i;
7882int
7883main (void)
7884{
7885
7886  ;
7887  return 0;
7888}
7889_ACEOF
7890if ac_fn_c_try_link "$LINENO"
7891then :
7892  eval $cacheid=yes
7893else $as_nop
7894  eval $cacheid=no
7895fi
7896rm -f core conftest.err conftest.$ac_objext conftest.beam \
7897    conftest$ac_exeext conftest.$ac_ext
7898fi
7899
7900
7901		CFLAGS="$xorg_testset_save_CFLAGS"
7902
7903		eval supported=\$$cacheid
7904		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7905printf "%s\n" "$supported" >&6; }
7906		if test "$supported" = "yes" ; then
7907			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7908			found="yes"
7909		fi
7910	fi
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926xorg_testset_save_CFLAGS="$CFLAGS"
7927
7928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7929	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7931printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7932if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7933then :
7934  printf %s "(cached) " >&6
7935else $as_nop
7936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937/* end confdefs.h.  */
7938int i;
7939_ACEOF
7940if ac_fn_c_try_compile "$LINENO"
7941then :
7942  xorg_cv_cc_flag_unknown_warning_option=yes
7943else $as_nop
7944  xorg_cv_cc_flag_unknown_warning_option=no
7945fi
7946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7947fi
7948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7949printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7951	CFLAGS="$xorg_testset_save_CFLAGS"
7952fi
7953
7954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957	fi
7958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7960printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7961if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7962then :
7963  printf %s "(cached) " >&6
7964else $as_nop
7965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966/* end confdefs.h.  */
7967int i;
7968_ACEOF
7969if ac_fn_c_try_compile "$LINENO"
7970then :
7971  xorg_cv_cc_flag_unused_command_line_argument=yes
7972else $as_nop
7973  xorg_cv_cc_flag_unused_command_line_argument=no
7974fi
7975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7976fi
7977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7978printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7979	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7980	CFLAGS="$xorg_testset_save_CFLAGS"
7981fi
7982
7983found="no"
7984
7985	if test $found = "no" ; then
7986		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7987			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7988		fi
7989
7990		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7991			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7992		fi
7993
7994		CFLAGS="$CFLAGS -Werror=return-type"
7995
7996		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7997printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7998		cacheid=xorg_cv_cc_flag__Werror_return_type
7999		if eval test \${$cacheid+y}
8000then :
8001  printf %s "(cached) " >&6
8002else $as_nop
8003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004/* end confdefs.h.  */
8005int i;
8006int
8007main (void)
8008{
8009
8010  ;
8011  return 0;
8012}
8013_ACEOF
8014if ac_fn_c_try_link "$LINENO"
8015then :
8016  eval $cacheid=yes
8017else $as_nop
8018  eval $cacheid=no
8019fi
8020rm -f core conftest.err conftest.$ac_objext conftest.beam \
8021    conftest$ac_exeext conftest.$ac_ext
8022fi
8023
8024
8025		CFLAGS="$xorg_testset_save_CFLAGS"
8026
8027		eval supported=\$$cacheid
8028		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8029printf "%s\n" "$supported" >&6; }
8030		if test "$supported" = "yes" ; then
8031			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8032			found="yes"
8033		fi
8034	fi
8035
8036	if test $found = "no" ; then
8037		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8039		fi
8040
8041		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8043		fi
8044
8045		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8046
8047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8048printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8049		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8050		if eval test \${$cacheid+y}
8051then :
8052  printf %s "(cached) " >&6
8053else $as_nop
8054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055/* end confdefs.h.  */
8056int i;
8057int
8058main (void)
8059{
8060
8061  ;
8062  return 0;
8063}
8064_ACEOF
8065if ac_fn_c_try_link "$LINENO"
8066then :
8067  eval $cacheid=yes
8068else $as_nop
8069  eval $cacheid=no
8070fi
8071rm -f core conftest.err conftest.$ac_objext conftest.beam \
8072    conftest$ac_exeext conftest.$ac_ext
8073fi
8074
8075
8076		CFLAGS="$xorg_testset_save_CFLAGS"
8077
8078		eval supported=\$$cacheid
8079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8080printf "%s\n" "$supported" >&6; }
8081		if test "$supported" = "yes" ; then
8082			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8083			found="yes"
8084		fi
8085	fi
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101xorg_testset_save_CFLAGS="$CFLAGS"
8102
8103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8104	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8105	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8106printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8107if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8108then :
8109  printf %s "(cached) " >&6
8110else $as_nop
8111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112/* end confdefs.h.  */
8113int i;
8114_ACEOF
8115if ac_fn_c_try_compile "$LINENO"
8116then :
8117  xorg_cv_cc_flag_unknown_warning_option=yes
8118else $as_nop
8119  xorg_cv_cc_flag_unknown_warning_option=no
8120fi
8121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8122fi
8123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8124printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8125	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8126	CFLAGS="$xorg_testset_save_CFLAGS"
8127fi
8128
8129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8130	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8131		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8132	fi
8133	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8134	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8135printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8136if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8137then :
8138  printf %s "(cached) " >&6
8139else $as_nop
8140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141/* end confdefs.h.  */
8142int i;
8143_ACEOF
8144if ac_fn_c_try_compile "$LINENO"
8145then :
8146  xorg_cv_cc_flag_unused_command_line_argument=yes
8147else $as_nop
8148  xorg_cv_cc_flag_unused_command_line_argument=no
8149fi
8150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8151fi
8152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8153printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8154	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8155	CFLAGS="$xorg_testset_save_CFLAGS"
8156fi
8157
8158found="no"
8159
8160	if test $found = "no" ; then
8161		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163		fi
8164
8165		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8167		fi
8168
8169		CFLAGS="$CFLAGS -Werror=trigraphs"
8170
8171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8172printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8173		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8174		if eval test \${$cacheid+y}
8175then :
8176  printf %s "(cached) " >&6
8177else $as_nop
8178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179/* end confdefs.h.  */
8180int i;
8181int
8182main (void)
8183{
8184
8185  ;
8186  return 0;
8187}
8188_ACEOF
8189if ac_fn_c_try_link "$LINENO"
8190then :
8191  eval $cacheid=yes
8192else $as_nop
8193  eval $cacheid=no
8194fi
8195rm -f core conftest.err conftest.$ac_objext conftest.beam \
8196    conftest$ac_exeext conftest.$ac_ext
8197fi
8198
8199
8200		CFLAGS="$xorg_testset_save_CFLAGS"
8201
8202		eval supported=\$$cacheid
8203		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8204printf "%s\n" "$supported" >&6; }
8205		if test "$supported" = "yes" ; then
8206			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8207			found="yes"
8208		fi
8209	fi
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225xorg_testset_save_CFLAGS="$CFLAGS"
8226
8227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8228	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8229	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8230printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8231if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8232then :
8233  printf %s "(cached) " >&6
8234else $as_nop
8235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236/* end confdefs.h.  */
8237int i;
8238_ACEOF
8239if ac_fn_c_try_compile "$LINENO"
8240then :
8241  xorg_cv_cc_flag_unknown_warning_option=yes
8242else $as_nop
8243  xorg_cv_cc_flag_unknown_warning_option=no
8244fi
8245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8246fi
8247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8248printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8249	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8250	CFLAGS="$xorg_testset_save_CFLAGS"
8251fi
8252
8253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8254	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8255		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256	fi
8257	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8259printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8260if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8261then :
8262  printf %s "(cached) " >&6
8263else $as_nop
8264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265/* end confdefs.h.  */
8266int i;
8267_ACEOF
8268if ac_fn_c_try_compile "$LINENO"
8269then :
8270  xorg_cv_cc_flag_unused_command_line_argument=yes
8271else $as_nop
8272  xorg_cv_cc_flag_unused_command_line_argument=no
8273fi
8274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8275fi
8276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8277printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8278	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8279	CFLAGS="$xorg_testset_save_CFLAGS"
8280fi
8281
8282found="no"
8283
8284	if test $found = "no" ; then
8285		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8286			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287		fi
8288
8289		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8290			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8291		fi
8292
8293		CFLAGS="$CFLAGS -Werror=array-bounds"
8294
8295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8296printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8297		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8298		if eval test \${$cacheid+y}
8299then :
8300  printf %s "(cached) " >&6
8301else $as_nop
8302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303/* end confdefs.h.  */
8304int i;
8305int
8306main (void)
8307{
8308
8309  ;
8310  return 0;
8311}
8312_ACEOF
8313if ac_fn_c_try_link "$LINENO"
8314then :
8315  eval $cacheid=yes
8316else $as_nop
8317  eval $cacheid=no
8318fi
8319rm -f core conftest.err conftest.$ac_objext conftest.beam \
8320    conftest$ac_exeext conftest.$ac_ext
8321fi
8322
8323
8324		CFLAGS="$xorg_testset_save_CFLAGS"
8325
8326		eval supported=\$$cacheid
8327		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8328printf "%s\n" "$supported" >&6; }
8329		if test "$supported" = "yes" ; then
8330			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8331			found="yes"
8332		fi
8333	fi
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349xorg_testset_save_CFLAGS="$CFLAGS"
8350
8351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8352	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8353	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8354printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8355if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8356then :
8357  printf %s "(cached) " >&6
8358else $as_nop
8359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360/* end confdefs.h.  */
8361int i;
8362_ACEOF
8363if ac_fn_c_try_compile "$LINENO"
8364then :
8365  xorg_cv_cc_flag_unknown_warning_option=yes
8366else $as_nop
8367  xorg_cv_cc_flag_unknown_warning_option=no
8368fi
8369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8370fi
8371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8372printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8373	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8374	CFLAGS="$xorg_testset_save_CFLAGS"
8375fi
8376
8377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8378	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8379		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8380	fi
8381	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8382	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8383printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8384if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8385then :
8386  printf %s "(cached) " >&6
8387else $as_nop
8388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389/* end confdefs.h.  */
8390int i;
8391_ACEOF
8392if ac_fn_c_try_compile "$LINENO"
8393then :
8394  xorg_cv_cc_flag_unused_command_line_argument=yes
8395else $as_nop
8396  xorg_cv_cc_flag_unused_command_line_argument=no
8397fi
8398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8399fi
8400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8401printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8402	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8403	CFLAGS="$xorg_testset_save_CFLAGS"
8404fi
8405
8406found="no"
8407
8408	if test $found = "no" ; then
8409		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8410			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8411		fi
8412
8413		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8414			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8415		fi
8416
8417		CFLAGS="$CFLAGS -Werror=write-strings"
8418
8419		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8420printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8421		cacheid=xorg_cv_cc_flag__Werror_write_strings
8422		if eval test \${$cacheid+y}
8423then :
8424  printf %s "(cached) " >&6
8425else $as_nop
8426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427/* end confdefs.h.  */
8428int i;
8429int
8430main (void)
8431{
8432
8433  ;
8434  return 0;
8435}
8436_ACEOF
8437if ac_fn_c_try_link "$LINENO"
8438then :
8439  eval $cacheid=yes
8440else $as_nop
8441  eval $cacheid=no
8442fi
8443rm -f core conftest.err conftest.$ac_objext conftest.beam \
8444    conftest$ac_exeext conftest.$ac_ext
8445fi
8446
8447
8448		CFLAGS="$xorg_testset_save_CFLAGS"
8449
8450		eval supported=\$$cacheid
8451		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8452printf "%s\n" "$supported" >&6; }
8453		if test "$supported" = "yes" ; then
8454			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8455			found="yes"
8456		fi
8457	fi
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473xorg_testset_save_CFLAGS="$CFLAGS"
8474
8475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8476	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8478printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8479if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8480then :
8481  printf %s "(cached) " >&6
8482else $as_nop
8483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484/* end confdefs.h.  */
8485int i;
8486_ACEOF
8487if ac_fn_c_try_compile "$LINENO"
8488then :
8489  xorg_cv_cc_flag_unknown_warning_option=yes
8490else $as_nop
8491  xorg_cv_cc_flag_unknown_warning_option=no
8492fi
8493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8494fi
8495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8496printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8497	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8498	CFLAGS="$xorg_testset_save_CFLAGS"
8499fi
8500
8501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8502	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8503		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8504	fi
8505	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8507printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8508if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8509then :
8510  printf %s "(cached) " >&6
8511else $as_nop
8512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513/* end confdefs.h.  */
8514int i;
8515_ACEOF
8516if ac_fn_c_try_compile "$LINENO"
8517then :
8518  xorg_cv_cc_flag_unused_command_line_argument=yes
8519else $as_nop
8520  xorg_cv_cc_flag_unused_command_line_argument=no
8521fi
8522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8523fi
8524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8525printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8527	CFLAGS="$xorg_testset_save_CFLAGS"
8528fi
8529
8530found="no"
8531
8532	if test $found = "no" ; then
8533		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8535		fi
8536
8537		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8539		fi
8540
8541		CFLAGS="$CFLAGS -Werror=address"
8542
8543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8544printf %s "checking if $CC supports -Werror=address... " >&6; }
8545		cacheid=xorg_cv_cc_flag__Werror_address
8546		if eval test \${$cacheid+y}
8547then :
8548  printf %s "(cached) " >&6
8549else $as_nop
8550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551/* end confdefs.h.  */
8552int i;
8553int
8554main (void)
8555{
8556
8557  ;
8558  return 0;
8559}
8560_ACEOF
8561if ac_fn_c_try_link "$LINENO"
8562then :
8563  eval $cacheid=yes
8564else $as_nop
8565  eval $cacheid=no
8566fi
8567rm -f core conftest.err conftest.$ac_objext conftest.beam \
8568    conftest$ac_exeext conftest.$ac_ext
8569fi
8570
8571
8572		CFLAGS="$xorg_testset_save_CFLAGS"
8573
8574		eval supported=\$$cacheid
8575		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8576printf "%s\n" "$supported" >&6; }
8577		if test "$supported" = "yes" ; then
8578			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8579			found="yes"
8580		fi
8581	fi
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597xorg_testset_save_CFLAGS="$CFLAGS"
8598
8599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8600	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8601	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8602printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8603if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8604then :
8605  printf %s "(cached) " >&6
8606else $as_nop
8607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608/* end confdefs.h.  */
8609int i;
8610_ACEOF
8611if ac_fn_c_try_compile "$LINENO"
8612then :
8613  xorg_cv_cc_flag_unknown_warning_option=yes
8614else $as_nop
8615  xorg_cv_cc_flag_unknown_warning_option=no
8616fi
8617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8618fi
8619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8620printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8622	CFLAGS="$xorg_testset_save_CFLAGS"
8623fi
8624
8625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628	fi
8629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8631printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8632if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8633then :
8634  printf %s "(cached) " >&6
8635else $as_nop
8636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637/* end confdefs.h.  */
8638int i;
8639_ACEOF
8640if ac_fn_c_try_compile "$LINENO"
8641then :
8642  xorg_cv_cc_flag_unused_command_line_argument=yes
8643else $as_nop
8644  xorg_cv_cc_flag_unused_command_line_argument=no
8645fi
8646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8647fi
8648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8649printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8650	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8651	CFLAGS="$xorg_testset_save_CFLAGS"
8652fi
8653
8654found="no"
8655
8656	if test $found = "no" ; then
8657		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8658			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8659		fi
8660
8661		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8662			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8663		fi
8664
8665		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8666
8667		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8668printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8669		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8670		if eval test \${$cacheid+y}
8671then :
8672  printf %s "(cached) " >&6
8673else $as_nop
8674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675/* end confdefs.h.  */
8676int i;
8677int
8678main (void)
8679{
8680
8681  ;
8682  return 0;
8683}
8684_ACEOF
8685if ac_fn_c_try_link "$LINENO"
8686then :
8687  eval $cacheid=yes
8688else $as_nop
8689  eval $cacheid=no
8690fi
8691rm -f core conftest.err conftest.$ac_objext conftest.beam \
8692    conftest$ac_exeext conftest.$ac_ext
8693fi
8694
8695
8696		CFLAGS="$xorg_testset_save_CFLAGS"
8697
8698		eval supported=\$$cacheid
8699		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8700printf "%s\n" "$supported" >&6; }
8701		if test "$supported" = "yes" ; then
8702			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8703			found="yes"
8704		fi
8705	fi
8706
8707	if test $found = "no" ; then
8708		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8710		fi
8711
8712		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8714		fi
8715
8716		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8717
8718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8719printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8720		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8721		if eval test \${$cacheid+y}
8722then :
8723  printf %s "(cached) " >&6
8724else $as_nop
8725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h.  */
8727int i;
8728int
8729main (void)
8730{
8731
8732  ;
8733  return 0;
8734}
8735_ACEOF
8736if ac_fn_c_try_link "$LINENO"
8737then :
8738  eval $cacheid=yes
8739else $as_nop
8740  eval $cacheid=no
8741fi
8742rm -f core conftest.err conftest.$ac_objext conftest.beam \
8743    conftest$ac_exeext conftest.$ac_ext
8744fi
8745
8746
8747		CFLAGS="$xorg_testset_save_CFLAGS"
8748
8749		eval supported=\$$cacheid
8750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8751printf "%s\n" "$supported" >&6; }
8752		if test "$supported" = "yes" ; then
8753			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8754			found="yes"
8755		fi
8756	fi
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772xorg_testset_save_CFLAGS="$CFLAGS"
8773
8774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8778if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8779then :
8780  printf %s "(cached) " >&6
8781else $as_nop
8782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783/* end confdefs.h.  */
8784int i;
8785_ACEOF
8786if ac_fn_c_try_compile "$LINENO"
8787then :
8788  xorg_cv_cc_flag_unknown_warning_option=yes
8789else $as_nop
8790  xorg_cv_cc_flag_unknown_warning_option=no
8791fi
8792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8793fi
8794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8796	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8797	CFLAGS="$xorg_testset_save_CFLAGS"
8798fi
8799
8800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8801	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8802		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8803	fi
8804	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8805	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8807if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8808then :
8809  printf %s "(cached) " >&6
8810else $as_nop
8811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812/* end confdefs.h.  */
8813int i;
8814_ACEOF
8815if ac_fn_c_try_compile "$LINENO"
8816then :
8817  xorg_cv_cc_flag_unused_command_line_argument=yes
8818else $as_nop
8819  xorg_cv_cc_flag_unused_command_line_argument=no
8820fi
8821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8822fi
8823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8825	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8826	CFLAGS="$xorg_testset_save_CFLAGS"
8827fi
8828
8829found="no"
8830
8831	if test $found = "no" ; then
8832		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8833			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8834		fi
8835
8836		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8837			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8838		fi
8839
8840		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8841
8842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8843printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8844		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8845		if eval test \${$cacheid+y}
8846then :
8847  printf %s "(cached) " >&6
8848else $as_nop
8849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850/* end confdefs.h.  */
8851int i;
8852int
8853main (void)
8854{
8855
8856  ;
8857  return 0;
8858}
8859_ACEOF
8860if ac_fn_c_try_link "$LINENO"
8861then :
8862  eval $cacheid=yes
8863else $as_nop
8864  eval $cacheid=no
8865fi
8866rm -f core conftest.err conftest.$ac_objext conftest.beam \
8867    conftest$ac_exeext conftest.$ac_ext
8868fi
8869
8870
8871		CFLAGS="$xorg_testset_save_CFLAGS"
8872
8873		eval supported=\$$cacheid
8874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8875printf "%s\n" "$supported" >&6; }
8876		if test "$supported" = "yes" ; then
8877			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8878			found="yes"
8879		fi
8880	fi
8881
8882 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8883else
8884{ 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
8885printf "%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;}
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899xorg_testset_save_CFLAGS="$CFLAGS"
8900
8901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8903	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8904printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8905if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8906then :
8907  printf %s "(cached) " >&6
8908else $as_nop
8909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910/* end confdefs.h.  */
8911int i;
8912_ACEOF
8913if ac_fn_c_try_compile "$LINENO"
8914then :
8915  xorg_cv_cc_flag_unknown_warning_option=yes
8916else $as_nop
8917  xorg_cv_cc_flag_unknown_warning_option=no
8918fi
8919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8920fi
8921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8922printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8923	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8924	CFLAGS="$xorg_testset_save_CFLAGS"
8925fi
8926
8927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8928	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8929		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8930	fi
8931	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8932	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8933printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8934if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8935then :
8936  printf %s "(cached) " >&6
8937else $as_nop
8938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939/* end confdefs.h.  */
8940int i;
8941_ACEOF
8942if ac_fn_c_try_compile "$LINENO"
8943then :
8944  xorg_cv_cc_flag_unused_command_line_argument=yes
8945else $as_nop
8946  xorg_cv_cc_flag_unused_command_line_argument=no
8947fi
8948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8949fi
8950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8951printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8952	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8953	CFLAGS="$xorg_testset_save_CFLAGS"
8954fi
8955
8956found="no"
8957
8958	if test $found = "no" ; then
8959		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8960			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8961		fi
8962
8963		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8964			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8965		fi
8966
8967		CFLAGS="$CFLAGS -Wimplicit"
8968
8969		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8970printf %s "checking if $CC supports -Wimplicit... " >&6; }
8971		cacheid=xorg_cv_cc_flag__Wimplicit
8972		if eval test \${$cacheid+y}
8973then :
8974  printf %s "(cached) " >&6
8975else $as_nop
8976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978int i;
8979int
8980main (void)
8981{
8982
8983  ;
8984  return 0;
8985}
8986_ACEOF
8987if ac_fn_c_try_link "$LINENO"
8988then :
8989  eval $cacheid=yes
8990else $as_nop
8991  eval $cacheid=no
8992fi
8993rm -f core conftest.err conftest.$ac_objext conftest.beam \
8994    conftest$ac_exeext conftest.$ac_ext
8995fi
8996
8997
8998		CFLAGS="$xorg_testset_save_CFLAGS"
8999
9000		eval supported=\$$cacheid
9001		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9002printf "%s\n" "$supported" >&6; }
9003		if test "$supported" = "yes" ; then
9004			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9005			found="yes"
9006		fi
9007	fi
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023xorg_testset_save_CFLAGS="$CFLAGS"
9024
9025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9027	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9028printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9029if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9030then :
9031  printf %s "(cached) " >&6
9032else $as_nop
9033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034/* end confdefs.h.  */
9035int i;
9036_ACEOF
9037if ac_fn_c_try_compile "$LINENO"
9038then :
9039  xorg_cv_cc_flag_unknown_warning_option=yes
9040else $as_nop
9041  xorg_cv_cc_flag_unknown_warning_option=no
9042fi
9043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9044fi
9045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9046printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9047	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9048	CFLAGS="$xorg_testset_save_CFLAGS"
9049fi
9050
9051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9052	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9053		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9054	fi
9055	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9057printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9058if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9059then :
9060  printf %s "(cached) " >&6
9061else $as_nop
9062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063/* end confdefs.h.  */
9064int i;
9065_ACEOF
9066if ac_fn_c_try_compile "$LINENO"
9067then :
9068  xorg_cv_cc_flag_unused_command_line_argument=yes
9069else $as_nop
9070  xorg_cv_cc_flag_unused_command_line_argument=no
9071fi
9072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9073fi
9074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9075printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9076	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9077	CFLAGS="$xorg_testset_save_CFLAGS"
9078fi
9079
9080found="no"
9081
9082	if test $found = "no" ; then
9083		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9084			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9085		fi
9086
9087		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9088			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9089		fi
9090
9091		CFLAGS="$CFLAGS -Wnonnull"
9092
9093		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9094printf %s "checking if $CC supports -Wnonnull... " >&6; }
9095		cacheid=xorg_cv_cc_flag__Wnonnull
9096		if eval test \${$cacheid+y}
9097then :
9098  printf %s "(cached) " >&6
9099else $as_nop
9100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101/* end confdefs.h.  */
9102int i;
9103int
9104main (void)
9105{
9106
9107  ;
9108  return 0;
9109}
9110_ACEOF
9111if ac_fn_c_try_link "$LINENO"
9112then :
9113  eval $cacheid=yes
9114else $as_nop
9115  eval $cacheid=no
9116fi
9117rm -f core conftest.err conftest.$ac_objext conftest.beam \
9118    conftest$ac_exeext conftest.$ac_ext
9119fi
9120
9121
9122		CFLAGS="$xorg_testset_save_CFLAGS"
9123
9124		eval supported=\$$cacheid
9125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9126printf "%s\n" "$supported" >&6; }
9127		if test "$supported" = "yes" ; then
9128			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9129			found="yes"
9130		fi
9131	fi
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147xorg_testset_save_CFLAGS="$CFLAGS"
9148
9149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9150	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9151	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9152printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9153if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9154then :
9155  printf %s "(cached) " >&6
9156else $as_nop
9157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158/* end confdefs.h.  */
9159int i;
9160_ACEOF
9161if ac_fn_c_try_compile "$LINENO"
9162then :
9163  xorg_cv_cc_flag_unknown_warning_option=yes
9164else $as_nop
9165  xorg_cv_cc_flag_unknown_warning_option=no
9166fi
9167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9168fi
9169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9170printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9171	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9172	CFLAGS="$xorg_testset_save_CFLAGS"
9173fi
9174
9175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9176	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9177		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9178	fi
9179	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9180	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9181printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9182if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9183then :
9184  printf %s "(cached) " >&6
9185else $as_nop
9186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187/* end confdefs.h.  */
9188int i;
9189_ACEOF
9190if ac_fn_c_try_compile "$LINENO"
9191then :
9192  xorg_cv_cc_flag_unused_command_line_argument=yes
9193else $as_nop
9194  xorg_cv_cc_flag_unused_command_line_argument=no
9195fi
9196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9197fi
9198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9199printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9200	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9201	CFLAGS="$xorg_testset_save_CFLAGS"
9202fi
9203
9204found="no"
9205
9206	if test $found = "no" ; then
9207		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9208			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209		fi
9210
9211		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9212			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9213		fi
9214
9215		CFLAGS="$CFLAGS -Winit-self"
9216
9217		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9218printf %s "checking if $CC supports -Winit-self... " >&6; }
9219		cacheid=xorg_cv_cc_flag__Winit_self
9220		if eval test \${$cacheid+y}
9221then :
9222  printf %s "(cached) " >&6
9223else $as_nop
9224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225/* end confdefs.h.  */
9226int i;
9227int
9228main (void)
9229{
9230
9231  ;
9232  return 0;
9233}
9234_ACEOF
9235if ac_fn_c_try_link "$LINENO"
9236then :
9237  eval $cacheid=yes
9238else $as_nop
9239  eval $cacheid=no
9240fi
9241rm -f core conftest.err conftest.$ac_objext conftest.beam \
9242    conftest$ac_exeext conftest.$ac_ext
9243fi
9244
9245
9246		CFLAGS="$xorg_testset_save_CFLAGS"
9247
9248		eval supported=\$$cacheid
9249		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9250printf "%s\n" "$supported" >&6; }
9251		if test "$supported" = "yes" ; then
9252			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9253			found="yes"
9254		fi
9255	fi
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271xorg_testset_save_CFLAGS="$CFLAGS"
9272
9273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9275	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9276printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9277if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9278then :
9279  printf %s "(cached) " >&6
9280else $as_nop
9281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282/* end confdefs.h.  */
9283int i;
9284_ACEOF
9285if ac_fn_c_try_compile "$LINENO"
9286then :
9287  xorg_cv_cc_flag_unknown_warning_option=yes
9288else $as_nop
9289  xorg_cv_cc_flag_unknown_warning_option=no
9290fi
9291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9292fi
9293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9294printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9295	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9296	CFLAGS="$xorg_testset_save_CFLAGS"
9297fi
9298
9299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9300	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9301		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9302	fi
9303	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9304	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9305printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9306if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9307then :
9308  printf %s "(cached) " >&6
9309else $as_nop
9310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311/* end confdefs.h.  */
9312int i;
9313_ACEOF
9314if ac_fn_c_try_compile "$LINENO"
9315then :
9316  xorg_cv_cc_flag_unused_command_line_argument=yes
9317else $as_nop
9318  xorg_cv_cc_flag_unused_command_line_argument=no
9319fi
9320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9321fi
9322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9323printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9325	CFLAGS="$xorg_testset_save_CFLAGS"
9326fi
9327
9328found="no"
9329
9330	if test $found = "no" ; then
9331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9333		fi
9334
9335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9337		fi
9338
9339		CFLAGS="$CFLAGS -Wmain"
9340
9341		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9342printf %s "checking if $CC supports -Wmain... " >&6; }
9343		cacheid=xorg_cv_cc_flag__Wmain
9344		if eval test \${$cacheid+y}
9345then :
9346  printf %s "(cached) " >&6
9347else $as_nop
9348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349/* end confdefs.h.  */
9350int i;
9351int
9352main (void)
9353{
9354
9355  ;
9356  return 0;
9357}
9358_ACEOF
9359if ac_fn_c_try_link "$LINENO"
9360then :
9361  eval $cacheid=yes
9362else $as_nop
9363  eval $cacheid=no
9364fi
9365rm -f core conftest.err conftest.$ac_objext conftest.beam \
9366    conftest$ac_exeext conftest.$ac_ext
9367fi
9368
9369
9370		CFLAGS="$xorg_testset_save_CFLAGS"
9371
9372		eval supported=\$$cacheid
9373		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9374printf "%s\n" "$supported" >&6; }
9375		if test "$supported" = "yes" ; then
9376			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9377			found="yes"
9378		fi
9379	fi
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395xorg_testset_save_CFLAGS="$CFLAGS"
9396
9397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9398	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9399	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9400printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9401if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9402then :
9403  printf %s "(cached) " >&6
9404else $as_nop
9405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406/* end confdefs.h.  */
9407int i;
9408_ACEOF
9409if ac_fn_c_try_compile "$LINENO"
9410then :
9411  xorg_cv_cc_flag_unknown_warning_option=yes
9412else $as_nop
9413  xorg_cv_cc_flag_unknown_warning_option=no
9414fi
9415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9416fi
9417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9418printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9419	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9420	CFLAGS="$xorg_testset_save_CFLAGS"
9421fi
9422
9423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9424	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9425		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9426	fi
9427	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9429printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9430if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9431then :
9432  printf %s "(cached) " >&6
9433else $as_nop
9434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435/* end confdefs.h.  */
9436int i;
9437_ACEOF
9438if ac_fn_c_try_compile "$LINENO"
9439then :
9440  xorg_cv_cc_flag_unused_command_line_argument=yes
9441else $as_nop
9442  xorg_cv_cc_flag_unused_command_line_argument=no
9443fi
9444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9445fi
9446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9447printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9448	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9449	CFLAGS="$xorg_testset_save_CFLAGS"
9450fi
9451
9452found="no"
9453
9454	if test $found = "no" ; then
9455		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9456			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9457		fi
9458
9459		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9460			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9461		fi
9462
9463		CFLAGS="$CFLAGS -Wmissing-braces"
9464
9465		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9466printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9467		cacheid=xorg_cv_cc_flag__Wmissing_braces
9468		if eval test \${$cacheid+y}
9469then :
9470  printf %s "(cached) " >&6
9471else $as_nop
9472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473/* end confdefs.h.  */
9474int i;
9475int
9476main (void)
9477{
9478
9479  ;
9480  return 0;
9481}
9482_ACEOF
9483if ac_fn_c_try_link "$LINENO"
9484then :
9485  eval $cacheid=yes
9486else $as_nop
9487  eval $cacheid=no
9488fi
9489rm -f core conftest.err conftest.$ac_objext conftest.beam \
9490    conftest$ac_exeext conftest.$ac_ext
9491fi
9492
9493
9494		CFLAGS="$xorg_testset_save_CFLAGS"
9495
9496		eval supported=\$$cacheid
9497		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9498printf "%s\n" "$supported" >&6; }
9499		if test "$supported" = "yes" ; then
9500			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9501			found="yes"
9502		fi
9503	fi
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519xorg_testset_save_CFLAGS="$CFLAGS"
9520
9521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9522	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9523	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9524printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9525if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9526then :
9527  printf %s "(cached) " >&6
9528else $as_nop
9529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530/* end confdefs.h.  */
9531int i;
9532_ACEOF
9533if ac_fn_c_try_compile "$LINENO"
9534then :
9535  xorg_cv_cc_flag_unknown_warning_option=yes
9536else $as_nop
9537  xorg_cv_cc_flag_unknown_warning_option=no
9538fi
9539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9540fi
9541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9542printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9543	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9544	CFLAGS="$xorg_testset_save_CFLAGS"
9545fi
9546
9547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9548	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9549		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9550	fi
9551	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9553printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9554if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9555then :
9556  printf %s "(cached) " >&6
9557else $as_nop
9558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559/* end confdefs.h.  */
9560int i;
9561_ACEOF
9562if ac_fn_c_try_compile "$LINENO"
9563then :
9564  xorg_cv_cc_flag_unused_command_line_argument=yes
9565else $as_nop
9566  xorg_cv_cc_flag_unused_command_line_argument=no
9567fi
9568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9569fi
9570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9571printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9572	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9573	CFLAGS="$xorg_testset_save_CFLAGS"
9574fi
9575
9576found="no"
9577
9578	if test $found = "no" ; then
9579		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9580			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9581		fi
9582
9583		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9584			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9585		fi
9586
9587		CFLAGS="$CFLAGS -Wsequence-point"
9588
9589		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9590printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9591		cacheid=xorg_cv_cc_flag__Wsequence_point
9592		if eval test \${$cacheid+y}
9593then :
9594  printf %s "(cached) " >&6
9595else $as_nop
9596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597/* end confdefs.h.  */
9598int i;
9599int
9600main (void)
9601{
9602
9603  ;
9604  return 0;
9605}
9606_ACEOF
9607if ac_fn_c_try_link "$LINENO"
9608then :
9609  eval $cacheid=yes
9610else $as_nop
9611  eval $cacheid=no
9612fi
9613rm -f core conftest.err conftest.$ac_objext conftest.beam \
9614    conftest$ac_exeext conftest.$ac_ext
9615fi
9616
9617
9618		CFLAGS="$xorg_testset_save_CFLAGS"
9619
9620		eval supported=\$$cacheid
9621		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9622printf "%s\n" "$supported" >&6; }
9623		if test "$supported" = "yes" ; then
9624			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9625			found="yes"
9626		fi
9627	fi
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643xorg_testset_save_CFLAGS="$CFLAGS"
9644
9645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9646	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9647	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9648printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9649if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9650then :
9651  printf %s "(cached) " >&6
9652else $as_nop
9653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654/* end confdefs.h.  */
9655int i;
9656_ACEOF
9657if ac_fn_c_try_compile "$LINENO"
9658then :
9659  xorg_cv_cc_flag_unknown_warning_option=yes
9660else $as_nop
9661  xorg_cv_cc_flag_unknown_warning_option=no
9662fi
9663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9664fi
9665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9666printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9667	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9668	CFLAGS="$xorg_testset_save_CFLAGS"
9669fi
9670
9671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9672	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9673		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9674	fi
9675	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9676	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9677printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9678if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9679then :
9680  printf %s "(cached) " >&6
9681else $as_nop
9682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683/* end confdefs.h.  */
9684int i;
9685_ACEOF
9686if ac_fn_c_try_compile "$LINENO"
9687then :
9688  xorg_cv_cc_flag_unused_command_line_argument=yes
9689else $as_nop
9690  xorg_cv_cc_flag_unused_command_line_argument=no
9691fi
9692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9693fi
9694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9695printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9696	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9697	CFLAGS="$xorg_testset_save_CFLAGS"
9698fi
9699
9700found="no"
9701
9702	if test $found = "no" ; then
9703		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9704			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9705		fi
9706
9707		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9708			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9709		fi
9710
9711		CFLAGS="$CFLAGS -Wreturn-type"
9712
9713		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9714printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9715		cacheid=xorg_cv_cc_flag__Wreturn_type
9716		if eval test \${$cacheid+y}
9717then :
9718  printf %s "(cached) " >&6
9719else $as_nop
9720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721/* end confdefs.h.  */
9722int i;
9723int
9724main (void)
9725{
9726
9727  ;
9728  return 0;
9729}
9730_ACEOF
9731if ac_fn_c_try_link "$LINENO"
9732then :
9733  eval $cacheid=yes
9734else $as_nop
9735  eval $cacheid=no
9736fi
9737rm -f core conftest.err conftest.$ac_objext conftest.beam \
9738    conftest$ac_exeext conftest.$ac_ext
9739fi
9740
9741
9742		CFLAGS="$xorg_testset_save_CFLAGS"
9743
9744		eval supported=\$$cacheid
9745		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9746printf "%s\n" "$supported" >&6; }
9747		if test "$supported" = "yes" ; then
9748			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9749			found="yes"
9750		fi
9751	fi
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767xorg_testset_save_CFLAGS="$CFLAGS"
9768
9769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9770	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9771	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9772printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9773if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9774then :
9775  printf %s "(cached) " >&6
9776else $as_nop
9777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778/* end confdefs.h.  */
9779int i;
9780_ACEOF
9781if ac_fn_c_try_compile "$LINENO"
9782then :
9783  xorg_cv_cc_flag_unknown_warning_option=yes
9784else $as_nop
9785  xorg_cv_cc_flag_unknown_warning_option=no
9786fi
9787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9788fi
9789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9790printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9791	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9792	CFLAGS="$xorg_testset_save_CFLAGS"
9793fi
9794
9795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9796	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9797		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9798	fi
9799	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9801printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9802if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9803then :
9804  printf %s "(cached) " >&6
9805else $as_nop
9806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807/* end confdefs.h.  */
9808int i;
9809_ACEOF
9810if ac_fn_c_try_compile "$LINENO"
9811then :
9812  xorg_cv_cc_flag_unused_command_line_argument=yes
9813else $as_nop
9814  xorg_cv_cc_flag_unused_command_line_argument=no
9815fi
9816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9817fi
9818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9819printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9820	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9821	CFLAGS="$xorg_testset_save_CFLAGS"
9822fi
9823
9824found="no"
9825
9826	if test $found = "no" ; then
9827		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9828			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829		fi
9830
9831		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9832			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9833		fi
9834
9835		CFLAGS="$CFLAGS -Wtrigraphs"
9836
9837		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9838printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9839		cacheid=xorg_cv_cc_flag__Wtrigraphs
9840		if eval test \${$cacheid+y}
9841then :
9842  printf %s "(cached) " >&6
9843else $as_nop
9844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845/* end confdefs.h.  */
9846int i;
9847int
9848main (void)
9849{
9850
9851  ;
9852  return 0;
9853}
9854_ACEOF
9855if ac_fn_c_try_link "$LINENO"
9856then :
9857  eval $cacheid=yes
9858else $as_nop
9859  eval $cacheid=no
9860fi
9861rm -f core conftest.err conftest.$ac_objext conftest.beam \
9862    conftest$ac_exeext conftest.$ac_ext
9863fi
9864
9865
9866		CFLAGS="$xorg_testset_save_CFLAGS"
9867
9868		eval supported=\$$cacheid
9869		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9870printf "%s\n" "$supported" >&6; }
9871		if test "$supported" = "yes" ; then
9872			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9873			found="yes"
9874		fi
9875	fi
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891xorg_testset_save_CFLAGS="$CFLAGS"
9892
9893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9894	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9895	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9896printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9897if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9898then :
9899  printf %s "(cached) " >&6
9900else $as_nop
9901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902/* end confdefs.h.  */
9903int i;
9904_ACEOF
9905if ac_fn_c_try_compile "$LINENO"
9906then :
9907  xorg_cv_cc_flag_unknown_warning_option=yes
9908else $as_nop
9909  xorg_cv_cc_flag_unknown_warning_option=no
9910fi
9911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9912fi
9913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9914printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9915	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9916	CFLAGS="$xorg_testset_save_CFLAGS"
9917fi
9918
9919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9920	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9921		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9922	fi
9923	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9924	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9925printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9926if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9927then :
9928  printf %s "(cached) " >&6
9929else $as_nop
9930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931/* end confdefs.h.  */
9932int i;
9933_ACEOF
9934if ac_fn_c_try_compile "$LINENO"
9935then :
9936  xorg_cv_cc_flag_unused_command_line_argument=yes
9937else $as_nop
9938  xorg_cv_cc_flag_unused_command_line_argument=no
9939fi
9940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9941fi
9942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9943printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9944	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9945	CFLAGS="$xorg_testset_save_CFLAGS"
9946fi
9947
9948found="no"
9949
9950	if test $found = "no" ; then
9951		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9952			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9953		fi
9954
9955		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9956			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9957		fi
9958
9959		CFLAGS="$CFLAGS -Warray-bounds"
9960
9961		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9962printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9963		cacheid=xorg_cv_cc_flag__Warray_bounds
9964		if eval test \${$cacheid+y}
9965then :
9966  printf %s "(cached) " >&6
9967else $as_nop
9968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969/* end confdefs.h.  */
9970int i;
9971int
9972main (void)
9973{
9974
9975  ;
9976  return 0;
9977}
9978_ACEOF
9979if ac_fn_c_try_link "$LINENO"
9980then :
9981  eval $cacheid=yes
9982else $as_nop
9983  eval $cacheid=no
9984fi
9985rm -f core conftest.err conftest.$ac_objext conftest.beam \
9986    conftest$ac_exeext conftest.$ac_ext
9987fi
9988
9989
9990		CFLAGS="$xorg_testset_save_CFLAGS"
9991
9992		eval supported=\$$cacheid
9993		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9994printf "%s\n" "$supported" >&6; }
9995		if test "$supported" = "yes" ; then
9996			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9997			found="yes"
9998		fi
9999	fi
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015xorg_testset_save_CFLAGS="$CFLAGS"
10016
10017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10018	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10019	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10020printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10021if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10022then :
10023  printf %s "(cached) " >&6
10024else $as_nop
10025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026/* end confdefs.h.  */
10027int i;
10028_ACEOF
10029if ac_fn_c_try_compile "$LINENO"
10030then :
10031  xorg_cv_cc_flag_unknown_warning_option=yes
10032else $as_nop
10033  xorg_cv_cc_flag_unknown_warning_option=no
10034fi
10035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10036fi
10037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10038printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10039	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10040	CFLAGS="$xorg_testset_save_CFLAGS"
10041fi
10042
10043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10044	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10045		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10046	fi
10047	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10049printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10050if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10051then :
10052  printf %s "(cached) " >&6
10053else $as_nop
10054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055/* end confdefs.h.  */
10056int i;
10057_ACEOF
10058if ac_fn_c_try_compile "$LINENO"
10059then :
10060  xorg_cv_cc_flag_unused_command_line_argument=yes
10061else $as_nop
10062  xorg_cv_cc_flag_unused_command_line_argument=no
10063fi
10064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10065fi
10066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10067printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10068	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10069	CFLAGS="$xorg_testset_save_CFLAGS"
10070fi
10071
10072found="no"
10073
10074	if test $found = "no" ; then
10075		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10076			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10077		fi
10078
10079		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10080			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10081		fi
10082
10083		CFLAGS="$CFLAGS -Wwrite-strings"
10084
10085		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10086printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10087		cacheid=xorg_cv_cc_flag__Wwrite_strings
10088		if eval test \${$cacheid+y}
10089then :
10090  printf %s "(cached) " >&6
10091else $as_nop
10092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093/* end confdefs.h.  */
10094int i;
10095int
10096main (void)
10097{
10098
10099  ;
10100  return 0;
10101}
10102_ACEOF
10103if ac_fn_c_try_link "$LINENO"
10104then :
10105  eval $cacheid=yes
10106else $as_nop
10107  eval $cacheid=no
10108fi
10109rm -f core conftest.err conftest.$ac_objext conftest.beam \
10110    conftest$ac_exeext conftest.$ac_ext
10111fi
10112
10113
10114		CFLAGS="$xorg_testset_save_CFLAGS"
10115
10116		eval supported=\$$cacheid
10117		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10118printf "%s\n" "$supported" >&6; }
10119		if test "$supported" = "yes" ; then
10120			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10121			found="yes"
10122		fi
10123	fi
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139xorg_testset_save_CFLAGS="$CFLAGS"
10140
10141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10142	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10143	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10144printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10145if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10146then :
10147  printf %s "(cached) " >&6
10148else $as_nop
10149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150/* end confdefs.h.  */
10151int i;
10152_ACEOF
10153if ac_fn_c_try_compile "$LINENO"
10154then :
10155  xorg_cv_cc_flag_unknown_warning_option=yes
10156else $as_nop
10157  xorg_cv_cc_flag_unknown_warning_option=no
10158fi
10159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10160fi
10161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10162printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10163	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10164	CFLAGS="$xorg_testset_save_CFLAGS"
10165fi
10166
10167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10168	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10169		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170	fi
10171	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10173printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10174if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10175then :
10176  printf %s "(cached) " >&6
10177else $as_nop
10178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179/* end confdefs.h.  */
10180int i;
10181_ACEOF
10182if ac_fn_c_try_compile "$LINENO"
10183then :
10184  xorg_cv_cc_flag_unused_command_line_argument=yes
10185else $as_nop
10186  xorg_cv_cc_flag_unused_command_line_argument=no
10187fi
10188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10189fi
10190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10191printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10192	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10193	CFLAGS="$xorg_testset_save_CFLAGS"
10194fi
10195
10196found="no"
10197
10198	if test $found = "no" ; then
10199		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10200			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10201		fi
10202
10203		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10204			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10205		fi
10206
10207		CFLAGS="$CFLAGS -Waddress"
10208
10209		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10210printf %s "checking if $CC supports -Waddress... " >&6; }
10211		cacheid=xorg_cv_cc_flag__Waddress
10212		if eval test \${$cacheid+y}
10213then :
10214  printf %s "(cached) " >&6
10215else $as_nop
10216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h.  */
10218int i;
10219int
10220main (void)
10221{
10222
10223  ;
10224  return 0;
10225}
10226_ACEOF
10227if ac_fn_c_try_link "$LINENO"
10228then :
10229  eval $cacheid=yes
10230else $as_nop
10231  eval $cacheid=no
10232fi
10233rm -f core conftest.err conftest.$ac_objext conftest.beam \
10234    conftest$ac_exeext conftest.$ac_ext
10235fi
10236
10237
10238		CFLAGS="$xorg_testset_save_CFLAGS"
10239
10240		eval supported=\$$cacheid
10241		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10242printf "%s\n" "$supported" >&6; }
10243		if test "$supported" = "yes" ; then
10244			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10245			found="yes"
10246		fi
10247	fi
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263xorg_testset_save_CFLAGS="$CFLAGS"
10264
10265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10266	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10267	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10268printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10269if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10270then :
10271  printf %s "(cached) " >&6
10272else $as_nop
10273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274/* end confdefs.h.  */
10275int i;
10276_ACEOF
10277if ac_fn_c_try_compile "$LINENO"
10278then :
10279  xorg_cv_cc_flag_unknown_warning_option=yes
10280else $as_nop
10281  xorg_cv_cc_flag_unknown_warning_option=no
10282fi
10283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10284fi
10285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10286printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10287	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10288	CFLAGS="$xorg_testset_save_CFLAGS"
10289fi
10290
10291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10292	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10293		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294	fi
10295	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10297printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10298if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10299then :
10300  printf %s "(cached) " >&6
10301else $as_nop
10302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303/* end confdefs.h.  */
10304int i;
10305_ACEOF
10306if ac_fn_c_try_compile "$LINENO"
10307then :
10308  xorg_cv_cc_flag_unused_command_line_argument=yes
10309else $as_nop
10310  xorg_cv_cc_flag_unused_command_line_argument=no
10311fi
10312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10313fi
10314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10315printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10316	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10317	CFLAGS="$xorg_testset_save_CFLAGS"
10318fi
10319
10320found="no"
10321
10322	if test $found = "no" ; then
10323		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10324			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10325		fi
10326
10327		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10328			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10329		fi
10330
10331		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10332
10333		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10334printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10335		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10336		if eval test \${$cacheid+y}
10337then :
10338  printf %s "(cached) " >&6
10339else $as_nop
10340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341/* end confdefs.h.  */
10342int i;
10343int
10344main (void)
10345{
10346
10347  ;
10348  return 0;
10349}
10350_ACEOF
10351if ac_fn_c_try_link "$LINENO"
10352then :
10353  eval $cacheid=yes
10354else $as_nop
10355  eval $cacheid=no
10356fi
10357rm -f core conftest.err conftest.$ac_objext conftest.beam \
10358    conftest$ac_exeext conftest.$ac_ext
10359fi
10360
10361
10362		CFLAGS="$xorg_testset_save_CFLAGS"
10363
10364		eval supported=\$$cacheid
10365		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10366printf "%s\n" "$supported" >&6; }
10367		if test "$supported" = "yes" ; then
10368			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10369			found="yes"
10370		fi
10371	fi
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387xorg_testset_save_CFLAGS="$CFLAGS"
10388
10389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10391	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10392printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10393if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10394then :
10395  printf %s "(cached) " >&6
10396else $as_nop
10397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398/* end confdefs.h.  */
10399int i;
10400_ACEOF
10401if ac_fn_c_try_compile "$LINENO"
10402then :
10403  xorg_cv_cc_flag_unknown_warning_option=yes
10404else $as_nop
10405  xorg_cv_cc_flag_unknown_warning_option=no
10406fi
10407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10408fi
10409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10410printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10412	CFLAGS="$xorg_testset_save_CFLAGS"
10413fi
10414
10415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10418	fi
10419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10421printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10422if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10423then :
10424  printf %s "(cached) " >&6
10425else $as_nop
10426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427/* end confdefs.h.  */
10428int i;
10429_ACEOF
10430if ac_fn_c_try_compile "$LINENO"
10431then :
10432  xorg_cv_cc_flag_unused_command_line_argument=yes
10433else $as_nop
10434  xorg_cv_cc_flag_unused_command_line_argument=no
10435fi
10436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10437fi
10438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10439printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10440	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10441	CFLAGS="$xorg_testset_save_CFLAGS"
10442fi
10443
10444found="no"
10445
10446	if test $found = "no" ; then
10447		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10448			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10449		fi
10450
10451		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10452			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10453		fi
10454
10455		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10456
10457		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10458printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10459		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10460		if eval test \${$cacheid+y}
10461then :
10462  printf %s "(cached) " >&6
10463else $as_nop
10464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465/* end confdefs.h.  */
10466int i;
10467int
10468main (void)
10469{
10470
10471  ;
10472  return 0;
10473}
10474_ACEOF
10475if ac_fn_c_try_link "$LINENO"
10476then :
10477  eval $cacheid=yes
10478else $as_nop
10479  eval $cacheid=no
10480fi
10481rm -f core conftest.err conftest.$ac_objext conftest.beam \
10482    conftest$ac_exeext conftest.$ac_ext
10483fi
10484
10485
10486		CFLAGS="$xorg_testset_save_CFLAGS"
10487
10488		eval supported=\$$cacheid
10489		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10490printf "%s\n" "$supported" >&6; }
10491		if test "$supported" = "yes" ; then
10492			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10493			found="yes"
10494		fi
10495	fi
10496
10497
10498fi
10499
10500
10501
10502
10503
10504
10505
10506		CWARNFLAGS="$BASE_CFLAGS"
10507		if  test "x$GCC" = xyes ; then
10508		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10509		fi
10510
10511
10512
10513
10514
10515
10516
10517
10518# Check whether --enable-strict-compilation was given.
10519if test ${enable_strict_compilation+y}
10520then :
10521  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10522else $as_nop
10523  STRICT_COMPILE=no
10524fi
10525
10526
10527
10528
10529
10530
10531STRICT_CFLAGS=""
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545xorg_testset_save_CFLAGS="$CFLAGS"
10546
10547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10548	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10549	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10550printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10551if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10552then :
10553  printf %s "(cached) " >&6
10554else $as_nop
10555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556/* end confdefs.h.  */
10557int i;
10558_ACEOF
10559if ac_fn_c_try_compile "$LINENO"
10560then :
10561  xorg_cv_cc_flag_unknown_warning_option=yes
10562else $as_nop
10563  xorg_cv_cc_flag_unknown_warning_option=no
10564fi
10565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10566fi
10567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10568printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10569	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10570	CFLAGS="$xorg_testset_save_CFLAGS"
10571fi
10572
10573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10574	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10575		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10576	fi
10577	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10578	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10579printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10580if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10581then :
10582  printf %s "(cached) " >&6
10583else $as_nop
10584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585/* end confdefs.h.  */
10586int i;
10587_ACEOF
10588if ac_fn_c_try_compile "$LINENO"
10589then :
10590  xorg_cv_cc_flag_unused_command_line_argument=yes
10591else $as_nop
10592  xorg_cv_cc_flag_unused_command_line_argument=no
10593fi
10594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10595fi
10596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10597printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10598	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10599	CFLAGS="$xorg_testset_save_CFLAGS"
10600fi
10601
10602found="no"
10603
10604	if test $found = "no" ; then
10605		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10606			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10607		fi
10608
10609		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10610			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10611		fi
10612
10613		CFLAGS="$CFLAGS -pedantic"
10614
10615		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10616printf %s "checking if $CC supports -pedantic... " >&6; }
10617		cacheid=xorg_cv_cc_flag__pedantic
10618		if eval test \${$cacheid+y}
10619then :
10620  printf %s "(cached) " >&6
10621else $as_nop
10622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623/* end confdefs.h.  */
10624int i;
10625int
10626main (void)
10627{
10628
10629  ;
10630  return 0;
10631}
10632_ACEOF
10633if ac_fn_c_try_link "$LINENO"
10634then :
10635  eval $cacheid=yes
10636else $as_nop
10637  eval $cacheid=no
10638fi
10639rm -f core conftest.err conftest.$ac_objext conftest.beam \
10640    conftest$ac_exeext conftest.$ac_ext
10641fi
10642
10643
10644		CFLAGS="$xorg_testset_save_CFLAGS"
10645
10646		eval supported=\$$cacheid
10647		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10648printf "%s\n" "$supported" >&6; }
10649		if test "$supported" = "yes" ; then
10650			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10651			found="yes"
10652		fi
10653	fi
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669xorg_testset_save_CFLAGS="$CFLAGS"
10670
10671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10672	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10673	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10675if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10676then :
10677  printf %s "(cached) " >&6
10678else $as_nop
10679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680/* end confdefs.h.  */
10681int i;
10682_ACEOF
10683if ac_fn_c_try_compile "$LINENO"
10684then :
10685  xorg_cv_cc_flag_unknown_warning_option=yes
10686else $as_nop
10687  xorg_cv_cc_flag_unknown_warning_option=no
10688fi
10689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10690fi
10691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10692printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10693	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10694	CFLAGS="$xorg_testset_save_CFLAGS"
10695fi
10696
10697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10698	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10699		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10700	fi
10701	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10702	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10703printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10704if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10705then :
10706  printf %s "(cached) " >&6
10707else $as_nop
10708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709/* end confdefs.h.  */
10710int i;
10711_ACEOF
10712if ac_fn_c_try_compile "$LINENO"
10713then :
10714  xorg_cv_cc_flag_unused_command_line_argument=yes
10715else $as_nop
10716  xorg_cv_cc_flag_unused_command_line_argument=no
10717fi
10718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10719fi
10720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10721printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10722	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10723	CFLAGS="$xorg_testset_save_CFLAGS"
10724fi
10725
10726found="no"
10727
10728	if test $found = "no" ; then
10729		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10730			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10731		fi
10732
10733		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10734			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10735		fi
10736
10737		CFLAGS="$CFLAGS -Werror"
10738
10739		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10740printf %s "checking if $CC supports -Werror... " >&6; }
10741		cacheid=xorg_cv_cc_flag__Werror
10742		if eval test \${$cacheid+y}
10743then :
10744  printf %s "(cached) " >&6
10745else $as_nop
10746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747/* end confdefs.h.  */
10748int i;
10749int
10750main (void)
10751{
10752
10753  ;
10754  return 0;
10755}
10756_ACEOF
10757if ac_fn_c_try_link "$LINENO"
10758then :
10759  eval $cacheid=yes
10760else $as_nop
10761  eval $cacheid=no
10762fi
10763rm -f core conftest.err conftest.$ac_objext conftest.beam \
10764    conftest$ac_exeext conftest.$ac_ext
10765fi
10766
10767
10768		CFLAGS="$xorg_testset_save_CFLAGS"
10769
10770		eval supported=\$$cacheid
10771		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10772printf "%s\n" "$supported" >&6; }
10773		if test "$supported" = "yes" ; then
10774			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10775			found="yes"
10776		fi
10777	fi
10778
10779	if test $found = "no" ; then
10780		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10782		fi
10783
10784		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10786		fi
10787
10788		CFLAGS="$CFLAGS -errwarn"
10789
10790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10791printf %s "checking if $CC supports -errwarn... " >&6; }
10792		cacheid=xorg_cv_cc_flag__errwarn
10793		if eval test \${$cacheid+y}
10794then :
10795  printf %s "(cached) " >&6
10796else $as_nop
10797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798/* end confdefs.h.  */
10799int i;
10800int
10801main (void)
10802{
10803
10804  ;
10805  return 0;
10806}
10807_ACEOF
10808if ac_fn_c_try_link "$LINENO"
10809then :
10810  eval $cacheid=yes
10811else $as_nop
10812  eval $cacheid=no
10813fi
10814rm -f core conftest.err conftest.$ac_objext conftest.beam \
10815    conftest$ac_exeext conftest.$ac_ext
10816fi
10817
10818
10819		CFLAGS="$xorg_testset_save_CFLAGS"
10820
10821		eval supported=\$$cacheid
10822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10823printf "%s\n" "$supported" >&6; }
10824		if test "$supported" = "yes" ; then
10825			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10826			found="yes"
10827		fi
10828	fi
10829
10830
10831
10832# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10833# activate it with -Werror, so we add it here explicitly.
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847xorg_testset_save_CFLAGS="$CFLAGS"
10848
10849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10850	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10852printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10853if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10854then :
10855  printf %s "(cached) " >&6
10856else $as_nop
10857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858/* end confdefs.h.  */
10859int i;
10860_ACEOF
10861if ac_fn_c_try_compile "$LINENO"
10862then :
10863  xorg_cv_cc_flag_unknown_warning_option=yes
10864else $as_nop
10865  xorg_cv_cc_flag_unknown_warning_option=no
10866fi
10867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10868fi
10869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10870printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10871	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10872	CFLAGS="$xorg_testset_save_CFLAGS"
10873fi
10874
10875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10876	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10877		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10878	fi
10879	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10880	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10881printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10882if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10883then :
10884  printf %s "(cached) " >&6
10885else $as_nop
10886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887/* end confdefs.h.  */
10888int i;
10889_ACEOF
10890if ac_fn_c_try_compile "$LINENO"
10891then :
10892  xorg_cv_cc_flag_unused_command_line_argument=yes
10893else $as_nop
10894  xorg_cv_cc_flag_unused_command_line_argument=no
10895fi
10896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10897fi
10898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10899printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10900	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10901	CFLAGS="$xorg_testset_save_CFLAGS"
10902fi
10903
10904found="no"
10905
10906	if test $found = "no" ; then
10907		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10909		fi
10910
10911		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10913		fi
10914
10915		CFLAGS="$CFLAGS -Werror=attributes"
10916
10917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10918printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10919		cacheid=xorg_cv_cc_flag__Werror_attributes
10920		if eval test \${$cacheid+y}
10921then :
10922  printf %s "(cached) " >&6
10923else $as_nop
10924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925/* end confdefs.h.  */
10926int i;
10927int
10928main (void)
10929{
10930
10931  ;
10932  return 0;
10933}
10934_ACEOF
10935if ac_fn_c_try_link "$LINENO"
10936then :
10937  eval $cacheid=yes
10938else $as_nop
10939  eval $cacheid=no
10940fi
10941rm -f core conftest.err conftest.$ac_objext conftest.beam \
10942    conftest$ac_exeext conftest.$ac_ext
10943fi
10944
10945
10946		CFLAGS="$xorg_testset_save_CFLAGS"
10947
10948		eval supported=\$$cacheid
10949		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10950printf "%s\n" "$supported" >&6; }
10951		if test "$supported" = "yes" ; then
10952			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10953			found="yes"
10954		fi
10955	fi
10956
10957
10958
10959if test "x$STRICT_COMPILE" = "xyes"; then
10960    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10961    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10962fi
10963
10964
10965
10966
10967
10968
10969cat >>confdefs.h <<_ACEOF
10970#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10971_ACEOF
10972
10973	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10974	if test "x$PVM" = "x"; then
10975		PVM="0"
10976	fi
10977
10978printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10979
10980	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10981	if test "x$PVP" = "x"; then
10982		PVP="0"
10983	fi
10984
10985printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10986
10987
10988
10989CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10990mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10991|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10992touch \$(top_srcdir)/ChangeLog; \
10993echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10994
10995
10996
10997
10998macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10999INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11000mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11001|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11002touch \$(top_srcdir)/INSTALL; \
11003echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11004
11005
11006
11007
11008
11009
11010case $host_os in
11011    solaris*)
11012        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11013        # check for a man page file found in later versions that use
11014        # traditional section numbers instead
11015        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11016printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11017if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11018then :
11019  printf %s "(cached) " >&6
11020else $as_nop
11021  test "$cross_compiling" = yes &&
11022  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11023if test -r "/usr/share/man/man7/attributes.7"; then
11024  ac_cv_file__usr_share_man_man7_attributes_7=yes
11025else
11026  ac_cv_file__usr_share_man_man7_attributes_7=no
11027fi
11028fi
11029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11030printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11031if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11032then :
11033  SYSV_MAN_SECTIONS=false
11034else $as_nop
11035  SYSV_MAN_SECTIONS=true
11036fi
11037
11038        ;;
11039    *) SYSV_MAN_SECTIONS=false ;;
11040esac
11041
11042if test x$APP_MAN_SUFFIX = x    ; then
11043    APP_MAN_SUFFIX=1
11044fi
11045if test x$APP_MAN_DIR = x    ; then
11046    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11047fi
11048
11049if test x$LIB_MAN_SUFFIX = x    ; then
11050    LIB_MAN_SUFFIX=3
11051fi
11052if test x$LIB_MAN_DIR = x    ; then
11053    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11054fi
11055
11056if test x$FILE_MAN_SUFFIX = x    ; then
11057    case $SYSV_MAN_SECTIONS in
11058	true)				FILE_MAN_SUFFIX=4  ;;
11059	*)				FILE_MAN_SUFFIX=5  ;;
11060    esac
11061fi
11062if test x$FILE_MAN_DIR = x    ; then
11063    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11064fi
11065
11066if test x$MISC_MAN_SUFFIX = x    ; then
11067    case $SYSV_MAN_SECTIONS in
11068	true)				MISC_MAN_SUFFIX=5  ;;
11069	*)				MISC_MAN_SUFFIX=7  ;;
11070    esac
11071fi
11072if test x$MISC_MAN_DIR = x    ; then
11073    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11074fi
11075
11076if test x$DRIVER_MAN_SUFFIX = x    ; then
11077    case $SYSV_MAN_SECTIONS in
11078	true)				DRIVER_MAN_SUFFIX=7  ;;
11079	*)				DRIVER_MAN_SUFFIX=4  ;;
11080    esac
11081fi
11082if test x$DRIVER_MAN_DIR = x    ; then
11083    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11084fi
11085
11086if test x$ADMIN_MAN_SUFFIX = x    ; then
11087    case $SYSV_MAN_SECTIONS in
11088	true)				ADMIN_MAN_SUFFIX=1m ;;
11089	*)				ADMIN_MAN_SUFFIX=8  ;;
11090    esac
11091fi
11092if test x$ADMIN_MAN_DIR = x    ; then
11093    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11094fi
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110XORG_MAN_PAGE="X Version 11"
11111
11112MAN_SUBSTS="\
11113	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11114	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11115	-e 's|__xservername__|Xorg|g' \
11116	-e 's|__xconfigfile__|xorg.conf|g' \
11117	-e 's|__projectroot__|\$(prefix)|g' \
11118	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11119	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11120	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11121	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11122	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11123	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11124	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11125
11126
11127
11128# Check whether --enable-silent-rules was given.
11129if test ${enable_silent_rules+y}
11130then :
11131  enableval=$enable_silent_rules;
11132fi
11133
11134case $enable_silent_rules in # (((
11135  yes) AM_DEFAULT_VERBOSITY=0;;
11136   no) AM_DEFAULT_VERBOSITY=1;;
11137    *) AM_DEFAULT_VERBOSITY=0;;
11138esac
11139am_make=${MAKE-make}
11140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11141printf %s "checking whether $am_make supports nested variables... " >&6; }
11142if test ${am_cv_make_support_nested_variables+y}
11143then :
11144  printf %s "(cached) " >&6
11145else $as_nop
11146  if printf "%s\n" 'TRUE=$(BAR$(V))
11147BAR0=false
11148BAR1=true
11149V=1
11150am__doit:
11151	@$(TRUE)
11152.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11153  am_cv_make_support_nested_variables=yes
11154else
11155  am_cv_make_support_nested_variables=no
11156fi
11157fi
11158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11159printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11160if test $am_cv_make_support_nested_variables = yes; then
11161    AM_V='$(V)'
11162  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11163else
11164  AM_V=$AM_DEFAULT_VERBOSITY
11165  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11166fi
11167AM_BACKSLASH='\'
11168
11169
11170
11171ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
11172if test "x$ac_cv_func_strcasecmp" = xyes
11173then :
11174  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
11175
11176fi
11177
11178
11179# xkbvleds checks
11180
11181pkg_failed=no
11182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBVLEDS" >&5
11183printf %s "checking for XKBVLEDS... " >&6; }
11184
11185if test -n "$XKBVLEDS_CFLAGS"; then
11186    pkg_cv_XKBVLEDS_CFLAGS="$XKBVLEDS_CFLAGS"
11187 elif test -n "$PKG_CONFIG"; then
11188    if test -n "$PKG_CONFIG" && \
11189    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
11190  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
11191  ac_status=$?
11192  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11193  test $ac_status = 0; }; then
11194  pkg_cv_XKBVLEDS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
11195		      test "x$?" != "x0" && pkg_failed=yes
11196else
11197  pkg_failed=yes
11198fi
11199 else
11200    pkg_failed=untried
11201fi
11202if test -n "$XKBVLEDS_LIBS"; then
11203    pkg_cv_XKBVLEDS_LIBS="$XKBVLEDS_LIBS"
11204 elif test -n "$PKG_CONFIG"; then
11205    if test -n "$PKG_CONFIG" && \
11206    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
11207  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
11208  ac_status=$?
11209  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11210  test $ac_status = 0; }; then
11211  pkg_cv_XKBVLEDS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
11212		      test "x$?" != "x0" && pkg_failed=yes
11213else
11214  pkg_failed=yes
11215fi
11216 else
11217    pkg_failed=untried
11218fi
11219
11220
11221
11222if test $pkg_failed = yes; then
11223   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224printf "%s\n" "no" >&6; }
11225
11226if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11227        _pkg_short_errors_supported=yes
11228else
11229        _pkg_short_errors_supported=no
11230fi
11231        if test $_pkg_short_errors_supported = yes; then
11232	        XKBVLEDS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
11233        else
11234	        XKBVLEDS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
11235        fi
11236	# Put the nasty error message in config.log where it belongs
11237	echo "$XKBVLEDS_PKG_ERRORS" >&5
11238
11239	as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt x11) were not met:
11240
11241$XKBVLEDS_PKG_ERRORS
11242
11243Consider adjusting the PKG_CONFIG_PATH environment variable if you
11244installed software in a non-standard prefix.
11245
11246Alternatively, you may set the environment variables XKBVLEDS_CFLAGS
11247and XKBVLEDS_LIBS to avoid the need to call pkg-config.
11248See the pkg-config man page for more details." "$LINENO" 5
11249elif test $pkg_failed = untried; then
11250     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251printf "%s\n" "no" >&6; }
11252	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11253printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11254as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11255is in your PATH or set the PKG_CONFIG environment variable to the full
11256path to pkg-config.
11257
11258Alternatively, you may set the environment variables XKBVLEDS_CFLAGS
11259and XKBVLEDS_LIBS to avoid the need to call pkg-config.
11260See the pkg-config man page for more details.
11261
11262To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11263See \`config.log' for more details" "$LINENO" 5; }
11264else
11265	XKBVLEDS_CFLAGS=$pkg_cv_XKBVLEDS_CFLAGS
11266	XKBVLEDS_LIBS=$pkg_cv_XKBVLEDS_LIBS
11267        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11268printf "%s\n" "yes" >&6; }
11269
11270fi
11271
11272# xkbbell checks
11273
11274pkg_failed=no
11275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBBELL" >&5
11276printf %s "checking for XKBBELL... " >&6; }
11277
11278if test -n "$XKBBELL_CFLAGS"; then
11279    pkg_cv_XKBBELL_CFLAGS="$XKBBELL_CFLAGS"
11280 elif test -n "$PKG_CONFIG"; then
11281    if test -n "$PKG_CONFIG" && \
11282    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto inputproto x11\""; } >&5
11283  ($PKG_CONFIG --exists --print-errors "xproto inputproto x11") 2>&5
11284  ac_status=$?
11285  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11286  test $ac_status = 0; }; then
11287  pkg_cv_XKBBELL_CFLAGS=`$PKG_CONFIG --cflags "xproto inputproto x11" 2>/dev/null`
11288		      test "x$?" != "x0" && pkg_failed=yes
11289else
11290  pkg_failed=yes
11291fi
11292 else
11293    pkg_failed=untried
11294fi
11295if test -n "$XKBBELL_LIBS"; then
11296    pkg_cv_XKBBELL_LIBS="$XKBBELL_LIBS"
11297 elif test -n "$PKG_CONFIG"; then
11298    if test -n "$PKG_CONFIG" && \
11299    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto inputproto x11\""; } >&5
11300  ($PKG_CONFIG --exists --print-errors "xproto inputproto x11") 2>&5
11301  ac_status=$?
11302  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11303  test $ac_status = 0; }; then
11304  pkg_cv_XKBBELL_LIBS=`$PKG_CONFIG --libs "xproto inputproto x11" 2>/dev/null`
11305		      test "x$?" != "x0" && pkg_failed=yes
11306else
11307  pkg_failed=yes
11308fi
11309 else
11310    pkg_failed=untried
11311fi
11312
11313
11314
11315if test $pkg_failed = yes; then
11316   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11317printf "%s\n" "no" >&6; }
11318
11319if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11320        _pkg_short_errors_supported=yes
11321else
11322        _pkg_short_errors_supported=no
11323fi
11324        if test $_pkg_short_errors_supported = yes; then
11325	        XKBBELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto inputproto x11" 2>&1`
11326        else
11327	        XKBBELL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto inputproto x11" 2>&1`
11328        fi
11329	# Put the nasty error message in config.log where it belongs
11330	echo "$XKBBELL_PKG_ERRORS" >&5
11331
11332	as_fn_error $? "Package requirements (xproto inputproto x11) were not met:
11333
11334$XKBBELL_PKG_ERRORS
11335
11336Consider adjusting the PKG_CONFIG_PATH environment variable if you
11337installed software in a non-standard prefix.
11338
11339Alternatively, you may set the environment variables XKBBELL_CFLAGS
11340and XKBBELL_LIBS to avoid the need to call pkg-config.
11341See the pkg-config man page for more details." "$LINENO" 5
11342elif test $pkg_failed = untried; then
11343     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344printf "%s\n" "no" >&6; }
11345	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11346printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11347as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11348is in your PATH or set the PKG_CONFIG environment variable to the full
11349path to pkg-config.
11350
11351Alternatively, you may set the environment variables XKBBELL_CFLAGS
11352and XKBBELL_LIBS to avoid the need to call pkg-config.
11353See the pkg-config man page for more details.
11354
11355To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11356See \`config.log' for more details" "$LINENO" 5; }
11357else
11358	XKBBELL_CFLAGS=$pkg_cv_XKBBELL_CFLAGS
11359	XKBBELL_LIBS=$pkg_cv_XKBBELL_LIBS
11360        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11361printf "%s\n" "yes" >&6; }
11362
11363fi
11364
11365# xkbwatch checks
11366
11367pkg_failed=no
11368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBWATCH" >&5
11369printf %s "checking for XKBWATCH... " >&6; }
11370
11371if test -n "$XKBWATCH_CFLAGS"; then
11372    pkg_cv_XKBWATCH_CFLAGS="$XKBWATCH_CFLAGS"
11373 elif test -n "$PKG_CONFIG"; then
11374    if test -n "$PKG_CONFIG" && \
11375    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
11376  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
11377  ac_status=$?
11378  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11379  test $ac_status = 0; }; then
11380  pkg_cv_XKBWATCH_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
11381		      test "x$?" != "x0" && pkg_failed=yes
11382else
11383  pkg_failed=yes
11384fi
11385 else
11386    pkg_failed=untried
11387fi
11388if test -n "$XKBWATCH_LIBS"; then
11389    pkg_cv_XKBWATCH_LIBS="$XKBWATCH_LIBS"
11390 elif test -n "$PKG_CONFIG"; then
11391    if test -n "$PKG_CONFIG" && \
11392    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
11393  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
11394  ac_status=$?
11395  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11396  test $ac_status = 0; }; then
11397  pkg_cv_XKBWATCH_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
11398		      test "x$?" != "x0" && pkg_failed=yes
11399else
11400  pkg_failed=yes
11401fi
11402 else
11403    pkg_failed=untried
11404fi
11405
11406
11407
11408if test $pkg_failed = yes; then
11409   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410printf "%s\n" "no" >&6; }
11411
11412if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11413        _pkg_short_errors_supported=yes
11414else
11415        _pkg_short_errors_supported=no
11416fi
11417        if test $_pkg_short_errors_supported = yes; then
11418	        XKBWATCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
11419        else
11420	        XKBWATCH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
11421        fi
11422	# Put the nasty error message in config.log where it belongs
11423	echo "$XKBWATCH_PKG_ERRORS" >&5
11424
11425	as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt x11) were not met:
11426
11427$XKBWATCH_PKG_ERRORS
11428
11429Consider adjusting the PKG_CONFIG_PATH environment variable if you
11430installed software in a non-standard prefix.
11431
11432Alternatively, you may set the environment variables XKBWATCH_CFLAGS
11433and XKBWATCH_LIBS to avoid the need to call pkg-config.
11434See the pkg-config man page for more details." "$LINENO" 5
11435elif test $pkg_failed = untried; then
11436     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437printf "%s\n" "no" >&6; }
11438	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11439printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11440as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11441is in your PATH or set the PKG_CONFIG environment variable to the full
11442path to pkg-config.
11443
11444Alternatively, you may set the environment variables XKBWATCH_CFLAGS
11445and XKBWATCH_LIBS to avoid the need to call pkg-config.
11446See the pkg-config man page for more details.
11447
11448To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11449See \`config.log' for more details" "$LINENO" 5; }
11450else
11451	XKBWATCH_CFLAGS=$pkg_cv_XKBWATCH_CFLAGS
11452	XKBWATCH_LIBS=$pkg_cv_XKBWATCH_LIBS
11453        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11454printf "%s\n" "yes" >&6; }
11455
11456fi
11457
11458ac_config_files="$ac_config_files Makefile man/Makefile"
11459
11460cat >confcache <<\_ACEOF
11461# This file is a shell script that caches the results of configure
11462# tests run on this system so they can be shared between configure
11463# scripts and configure runs, see configure's option --config-cache.
11464# It is not useful on other systems.  If it contains results you don't
11465# want to keep, you may remove or edit it.
11466#
11467# config.status only pays attention to the cache file if you give it
11468# the --recheck option to rerun configure.
11469#
11470# `ac_cv_env_foo' variables (set or unset) will be overridden when
11471# loading this file, other *unset* `ac_cv_foo' will be assigned the
11472# following values.
11473
11474_ACEOF
11475
11476# The following way of writing the cache mishandles newlines in values,
11477# but we know of no workaround that is simple, portable, and efficient.
11478# So, we kill variables containing newlines.
11479# Ultrix sh set writes to stderr and can't be redirected directly,
11480# and sets the high bit in the cache file unless we assign to the vars.
11481(
11482  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11483    eval ac_val=\$$ac_var
11484    case $ac_val in #(
11485    *${as_nl}*)
11486      case $ac_var in #(
11487      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11488printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11489      esac
11490      case $ac_var in #(
11491      _ | IFS | as_nl) ;; #(
11492      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11493      *) { eval $ac_var=; unset $ac_var;} ;;
11494      esac ;;
11495    esac
11496  done
11497
11498  (set) 2>&1 |
11499    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11500    *${as_nl}ac_space=\ *)
11501      # `set' does not quote correctly, so add quotes: double-quote
11502      # substitution turns \\\\ into \\, and sed turns \\ into \.
11503      sed -n \
11504	"s/'/'\\\\''/g;
11505	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11506      ;; #(
11507    *)
11508      # `set' quotes correctly as required by POSIX, so do not add quotes.
11509      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11510      ;;
11511    esac |
11512    sort
11513) |
11514  sed '
11515     /^ac_cv_env_/b end
11516     t clear
11517     :clear
11518     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11519     t end
11520     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11521     :end' >>confcache
11522if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11523  if test -w "$cache_file"; then
11524    if test "x$cache_file" != "x/dev/null"; then
11525      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11526printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11527      if test ! -f "$cache_file" || test -h "$cache_file"; then
11528	cat confcache >"$cache_file"
11529      else
11530        case $cache_file in #(
11531        */* | ?:*)
11532	  mv -f confcache "$cache_file"$$ &&
11533	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11534        *)
11535	  mv -f confcache "$cache_file" ;;
11536	esac
11537      fi
11538    fi
11539  else
11540    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11541printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11542  fi
11543fi
11544rm -f confcache
11545
11546test "x$prefix" = xNONE && prefix=$ac_default_prefix
11547# Let make expand exec_prefix.
11548test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11549
11550DEFS=-DHAVE_CONFIG_H
11551
11552ac_libobjs=
11553ac_ltlibobjs=
11554U=
11555for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11556  # 1. Remove the extension, and $U if already installed.
11557  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11558  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11559  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11560  #    will be set to the directory where LIBOBJS objects are built.
11561  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11562  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11563done
11564LIBOBJS=$ac_libobjs
11565
11566LTLIBOBJS=$ac_ltlibobjs
11567
11568
11569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11570printf %s "checking that generated files are newer than configure... " >&6; }
11571   if test -n "$am_sleep_pid"; then
11572     # Hide warnings about reused PIDs.
11573     wait $am_sleep_pid 2>/dev/null
11574   fi
11575   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11576printf "%s\n" "done" >&6; }
11577 if test -n "$EXEEXT"; then
11578  am__EXEEXT_TRUE=
11579  am__EXEEXT_FALSE='#'
11580else
11581  am__EXEEXT_TRUE='#'
11582  am__EXEEXT_FALSE=
11583fi
11584
11585if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11586  as_fn_error $? "conditional \"AMDEP\" was never defined.
11587Usually this means the macro was only invoked conditionally." "$LINENO" 5
11588fi
11589if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11590  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11591Usually this means the macro was only invoked conditionally." "$LINENO" 5
11592fi
11593
11594: "${CONFIG_STATUS=./config.status}"
11595ac_write_fail=0
11596ac_clean_files_save=$ac_clean_files
11597ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11599printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11600as_write_fail=0
11601cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11602#! $SHELL
11603# Generated by $as_me.
11604# Run this file to recreate the current configuration.
11605# Compiler output produced by configure, useful for debugging
11606# configure, is in config.log if it exists.
11607
11608debug=false
11609ac_cs_recheck=false
11610ac_cs_silent=false
11611
11612SHELL=\${CONFIG_SHELL-$SHELL}
11613export SHELL
11614_ASEOF
11615cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11616## -------------------- ##
11617## M4sh Initialization. ##
11618## -------------------- ##
11619
11620# Be more Bourne compatible
11621DUALCASE=1; export DUALCASE # for MKS sh
11622as_nop=:
11623if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11624then :
11625  emulate sh
11626  NULLCMD=:
11627  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11628  # is contrary to our usage.  Disable this feature.
11629  alias -g '${1+"$@"}'='"$@"'
11630  setopt NO_GLOB_SUBST
11631else $as_nop
11632  case `(set -o) 2>/dev/null` in #(
11633  *posix*) :
11634    set -o posix ;; #(
11635  *) :
11636     ;;
11637esac
11638fi
11639
11640
11641
11642# Reset variables that may have inherited troublesome values from
11643# the environment.
11644
11645# IFS needs to be set, to space, tab, and newline, in precisely that order.
11646# (If _AS_PATH_WALK were called with IFS unset, it would have the
11647# side effect of setting IFS to empty, thus disabling word splitting.)
11648# Quoting is to prevent editors from complaining about space-tab.
11649as_nl='
11650'
11651export as_nl
11652IFS=" ""	$as_nl"
11653
11654PS1='$ '
11655PS2='> '
11656PS4='+ '
11657
11658# Ensure predictable behavior from utilities with locale-dependent output.
11659LC_ALL=C
11660export LC_ALL
11661LANGUAGE=C
11662export LANGUAGE
11663
11664# We cannot yet rely on "unset" to work, but we need these variables
11665# to be unset--not just set to an empty or harmless value--now, to
11666# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11667# also avoids known problems related to "unset" and subshell syntax
11668# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11669for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11670do eval test \${$as_var+y} \
11671  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11672done
11673
11674# Ensure that fds 0, 1, and 2 are open.
11675if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11676if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11677if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11678
11679# The user is always right.
11680if ${PATH_SEPARATOR+false} :; then
11681  PATH_SEPARATOR=:
11682  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11683    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11684      PATH_SEPARATOR=';'
11685  }
11686fi
11687
11688
11689# Find who we are.  Look in the path if we contain no directory separator.
11690as_myself=
11691case $0 in #((
11692  *[\\/]* ) as_myself=$0 ;;
11693  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694for as_dir in $PATH
11695do
11696  IFS=$as_save_IFS
11697  case $as_dir in #(((
11698    '') as_dir=./ ;;
11699    */) ;;
11700    *) as_dir=$as_dir/ ;;
11701  esac
11702    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11703  done
11704IFS=$as_save_IFS
11705
11706     ;;
11707esac
11708# We did not find ourselves, most probably we were run as `sh COMMAND'
11709# in which case we are not to be found in the path.
11710if test "x$as_myself" = x; then
11711  as_myself=$0
11712fi
11713if test ! -f "$as_myself"; then
11714  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11715  exit 1
11716fi
11717
11718
11719
11720# as_fn_error STATUS ERROR [LINENO LOG_FD]
11721# ----------------------------------------
11722# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11723# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11724# script with STATUS, using 1 if that was 0.
11725as_fn_error ()
11726{
11727  as_status=$1; test $as_status -eq 0 && as_status=1
11728  if test "$4"; then
11729    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11730    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11731  fi
11732  printf "%s\n" "$as_me: error: $2" >&2
11733  as_fn_exit $as_status
11734} # as_fn_error
11735
11736
11737
11738# as_fn_set_status STATUS
11739# -----------------------
11740# Set $? to STATUS, without forking.
11741as_fn_set_status ()
11742{
11743  return $1
11744} # as_fn_set_status
11745
11746# as_fn_exit STATUS
11747# -----------------
11748# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11749as_fn_exit ()
11750{
11751  set +e
11752  as_fn_set_status $1
11753  exit $1
11754} # as_fn_exit
11755
11756# as_fn_unset VAR
11757# ---------------
11758# Portably unset VAR.
11759as_fn_unset ()
11760{
11761  { eval $1=; unset $1;}
11762}
11763as_unset=as_fn_unset
11764
11765# as_fn_append VAR VALUE
11766# ----------------------
11767# Append the text in VALUE to the end of the definition contained in VAR. Take
11768# advantage of any shell optimizations that allow amortized linear growth over
11769# repeated appends, instead of the typical quadratic growth present in naive
11770# implementations.
11771if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11772then :
11773  eval 'as_fn_append ()
11774  {
11775    eval $1+=\$2
11776  }'
11777else $as_nop
11778  as_fn_append ()
11779  {
11780    eval $1=\$$1\$2
11781  }
11782fi # as_fn_append
11783
11784# as_fn_arith ARG...
11785# ------------------
11786# Perform arithmetic evaluation on the ARGs, and store the result in the
11787# global $as_val. Take advantage of shells that can avoid forks. The arguments
11788# must be portable across $(()) and expr.
11789if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11790then :
11791  eval 'as_fn_arith ()
11792  {
11793    as_val=$(( $* ))
11794  }'
11795else $as_nop
11796  as_fn_arith ()
11797  {
11798    as_val=`expr "$@" || test $? -eq 1`
11799  }
11800fi # as_fn_arith
11801
11802
11803if expr a : '\(a\)' >/dev/null 2>&1 &&
11804   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11805  as_expr=expr
11806else
11807  as_expr=false
11808fi
11809
11810if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11811  as_basename=basename
11812else
11813  as_basename=false
11814fi
11815
11816if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11817  as_dirname=dirname
11818else
11819  as_dirname=false
11820fi
11821
11822as_me=`$as_basename -- "$0" ||
11823$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11824	 X"$0" : 'X\(//\)$' \| \
11825	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11826printf "%s\n" X/"$0" |
11827    sed '/^.*\/\([^/][^/]*\)\/*$/{
11828	    s//\1/
11829	    q
11830	  }
11831	  /^X\/\(\/\/\)$/{
11832	    s//\1/
11833	    q
11834	  }
11835	  /^X\/\(\/\).*/{
11836	    s//\1/
11837	    q
11838	  }
11839	  s/.*/./; q'`
11840
11841# Avoid depending upon Character Ranges.
11842as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11843as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11844as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11845as_cr_digits='0123456789'
11846as_cr_alnum=$as_cr_Letters$as_cr_digits
11847
11848
11849# Determine whether it's possible to make 'echo' print without a newline.
11850# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11851# for compatibility with existing Makefiles.
11852ECHO_C= ECHO_N= ECHO_T=
11853case `echo -n x` in #(((((
11854-n*)
11855  case `echo 'xy\c'` in
11856  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11857  xy)  ECHO_C='\c';;
11858  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11859       ECHO_T='	';;
11860  esac;;
11861*)
11862  ECHO_N='-n';;
11863esac
11864
11865# For backward compatibility with old third-party macros, we provide
11866# the shell variables $as_echo and $as_echo_n.  New code should use
11867# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11868as_echo='printf %s\n'
11869as_echo_n='printf %s'
11870
11871rm -f conf$$ conf$$.exe conf$$.file
11872if test -d conf$$.dir; then
11873  rm -f conf$$.dir/conf$$.file
11874else
11875  rm -f conf$$.dir
11876  mkdir conf$$.dir 2>/dev/null
11877fi
11878if (echo >conf$$.file) 2>/dev/null; then
11879  if ln -s conf$$.file conf$$ 2>/dev/null; then
11880    as_ln_s='ln -s'
11881    # ... but there are two gotchas:
11882    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11883    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11884    # In both cases, we have to default to `cp -pR'.
11885    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11886      as_ln_s='cp -pR'
11887  elif ln conf$$.file conf$$ 2>/dev/null; then
11888    as_ln_s=ln
11889  else
11890    as_ln_s='cp -pR'
11891  fi
11892else
11893  as_ln_s='cp -pR'
11894fi
11895rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11896rmdir conf$$.dir 2>/dev/null
11897
11898
11899# as_fn_mkdir_p
11900# -------------
11901# Create "$as_dir" as a directory, including parents if necessary.
11902as_fn_mkdir_p ()
11903{
11904
11905  case $as_dir in #(
11906  -*) as_dir=./$as_dir;;
11907  esac
11908  test -d "$as_dir" || eval $as_mkdir_p || {
11909    as_dirs=
11910    while :; do
11911      case $as_dir in #(
11912      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11913      *) as_qdir=$as_dir;;
11914      esac
11915      as_dirs="'$as_qdir' $as_dirs"
11916      as_dir=`$as_dirname -- "$as_dir" ||
11917$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11918	 X"$as_dir" : 'X\(//\)[^/]' \| \
11919	 X"$as_dir" : 'X\(//\)$' \| \
11920	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11921printf "%s\n" X"$as_dir" |
11922    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11923	    s//\1/
11924	    q
11925	  }
11926	  /^X\(\/\/\)[^/].*/{
11927	    s//\1/
11928	    q
11929	  }
11930	  /^X\(\/\/\)$/{
11931	    s//\1/
11932	    q
11933	  }
11934	  /^X\(\/\).*/{
11935	    s//\1/
11936	    q
11937	  }
11938	  s/.*/./; q'`
11939      test -d "$as_dir" && break
11940    done
11941    test -z "$as_dirs" || eval "mkdir $as_dirs"
11942  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11943
11944
11945} # as_fn_mkdir_p
11946if mkdir -p . 2>/dev/null; then
11947  as_mkdir_p='mkdir -p "$as_dir"'
11948else
11949  test -d ./-p && rmdir ./-p
11950  as_mkdir_p=false
11951fi
11952
11953
11954# as_fn_executable_p FILE
11955# -----------------------
11956# Test if FILE is an executable regular file.
11957as_fn_executable_p ()
11958{
11959  test -f "$1" && test -x "$1"
11960} # as_fn_executable_p
11961as_test_x='test -x'
11962as_executable_p=as_fn_executable_p
11963
11964# Sed expression to map a string onto a valid CPP name.
11965as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11966
11967# Sed expression to map a string onto a valid variable name.
11968as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11969
11970
11971exec 6>&1
11972## ----------------------------------- ##
11973## Main body of $CONFIG_STATUS script. ##
11974## ----------------------------------- ##
11975_ASEOF
11976test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11977
11978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11979# Save the log message, to keep $0 and so on meaningful, and to
11980# report actual input values of CONFIG_FILES etc. instead of their
11981# values after options handling.
11982ac_log="
11983This file was extended by xkbutils $as_me 1.0.5, which was
11984generated by GNU Autoconf 2.71.  Invocation command line was
11985
11986  CONFIG_FILES    = $CONFIG_FILES
11987  CONFIG_HEADERS  = $CONFIG_HEADERS
11988  CONFIG_LINKS    = $CONFIG_LINKS
11989  CONFIG_COMMANDS = $CONFIG_COMMANDS
11990  $ $0 $@
11991
11992on `(hostname || uname -n) 2>/dev/null | sed 1q`
11993"
11994
11995_ACEOF
11996
11997case $ac_config_files in *"
11998"*) set x $ac_config_files; shift; ac_config_files=$*;;
11999esac
12000
12001case $ac_config_headers in *"
12002"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12003esac
12004
12005
12006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12007# Files that config.status was made for.
12008config_files="$ac_config_files"
12009config_headers="$ac_config_headers"
12010config_commands="$ac_config_commands"
12011
12012_ACEOF
12013
12014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12015ac_cs_usage="\
12016\`$as_me' instantiates files and other configuration actions
12017from templates according to the current configuration.  Unless the files
12018and actions are specified as TAGs, all are instantiated by default.
12019
12020Usage: $0 [OPTION]... [TAG]...
12021
12022  -h, --help       print this help, then exit
12023  -V, --version    print version number and configuration settings, then exit
12024      --config     print configuration, then exit
12025  -q, --quiet, --silent
12026                   do not print progress messages
12027  -d, --debug      don't remove temporary files
12028      --recheck    update $as_me by reconfiguring in the same conditions
12029      --file=FILE[:TEMPLATE]
12030                   instantiate the configuration file FILE
12031      --header=FILE[:TEMPLATE]
12032                   instantiate the configuration header FILE
12033
12034Configuration files:
12035$config_files
12036
12037Configuration headers:
12038$config_headers
12039
12040Configuration commands:
12041$config_commands
12042
12043Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbutils/issues>."
12044
12045_ACEOF
12046ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12047ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12049ac_cs_config='$ac_cs_config_escaped'
12050ac_cs_version="\\
12051xkbutils config.status 1.0.5
12052configured by $0, generated by GNU Autoconf 2.71,
12053  with options \\"\$ac_cs_config\\"
12054
12055Copyright (C) 2021 Free Software Foundation, Inc.
12056This config.status script is free software; the Free Software Foundation
12057gives unlimited permission to copy, distribute and modify it."
12058
12059ac_pwd='$ac_pwd'
12060srcdir='$srcdir'
12061INSTALL='$INSTALL'
12062MKDIR_P='$MKDIR_P'
12063AWK='$AWK'
12064test -n "\$AWK" || AWK=awk
12065_ACEOF
12066
12067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12068# The default lists apply if the user does not specify any file.
12069ac_need_defaults=:
12070while test $# != 0
12071do
12072  case $1 in
12073  --*=?*)
12074    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12075    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12076    ac_shift=:
12077    ;;
12078  --*=)
12079    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12080    ac_optarg=
12081    ac_shift=:
12082    ;;
12083  *)
12084    ac_option=$1
12085    ac_optarg=$2
12086    ac_shift=shift
12087    ;;
12088  esac
12089
12090  case $ac_option in
12091  # Handling of the options.
12092  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12093    ac_cs_recheck=: ;;
12094  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12095    printf "%s\n" "$ac_cs_version"; exit ;;
12096  --config | --confi | --conf | --con | --co | --c )
12097    printf "%s\n" "$ac_cs_config"; exit ;;
12098  --debug | --debu | --deb | --de | --d | -d )
12099    debug=: ;;
12100  --file | --fil | --fi | --f )
12101    $ac_shift
12102    case $ac_optarg in
12103    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12104    '') as_fn_error $? "missing file argument" ;;
12105    esac
12106    as_fn_append CONFIG_FILES " '$ac_optarg'"
12107    ac_need_defaults=false;;
12108  --header | --heade | --head | --hea )
12109    $ac_shift
12110    case $ac_optarg in
12111    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12112    esac
12113    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12114    ac_need_defaults=false;;
12115  --he | --h)
12116    # Conflict between --help and --header
12117    as_fn_error $? "ambiguous option: \`$1'
12118Try \`$0 --help' for more information.";;
12119  --help | --hel | -h )
12120    printf "%s\n" "$ac_cs_usage"; exit ;;
12121  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12122  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12123    ac_cs_silent=: ;;
12124
12125  # This is an error.
12126  -*) as_fn_error $? "unrecognized option: \`$1'
12127Try \`$0 --help' for more information." ;;
12128
12129  *) as_fn_append ac_config_targets " $1"
12130     ac_need_defaults=false ;;
12131
12132  esac
12133  shift
12134done
12135
12136ac_configure_extra_args=
12137
12138if $ac_cs_silent; then
12139  exec 6>/dev/null
12140  ac_configure_extra_args="$ac_configure_extra_args --silent"
12141fi
12142
12143_ACEOF
12144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12145if \$ac_cs_recheck; then
12146  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12147  shift
12148  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12149  CONFIG_SHELL='$SHELL'
12150  export CONFIG_SHELL
12151  exec "\$@"
12152fi
12153
12154_ACEOF
12155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12156exec 5>>config.log
12157{
12158  echo
12159  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12160## Running $as_me. ##
12161_ASBOX
12162  printf "%s\n" "$ac_log"
12163} >&5
12164
12165_ACEOF
12166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12167#
12168# INIT-COMMANDS
12169#
12170AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12171
12172_ACEOF
12173
12174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12175
12176# Handling of arguments.
12177for ac_config_target in $ac_config_targets
12178do
12179  case $ac_config_target in
12180    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12181    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12182    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12183    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12184
12185  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12186  esac
12187done
12188
12189
12190# If the user did not use the arguments to specify the items to instantiate,
12191# then the envvar interface is used.  Set only those that are not.
12192# We use the long form for the default assignment because of an extremely
12193# bizarre bug on SunOS 4.1.3.
12194if $ac_need_defaults; then
12195  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12196  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12197  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12198fi
12199
12200# Have a temporary directory for convenience.  Make it in the build tree
12201# simply because there is no reason against having it here, and in addition,
12202# creating and moving files from /tmp can sometimes cause problems.
12203# Hook for its removal unless debugging.
12204# Note that there is a small window in which the directory will not be cleaned:
12205# after its creation but before its name has been assigned to `$tmp'.
12206$debug ||
12207{
12208  tmp= ac_tmp=
12209  trap 'exit_status=$?
12210  : "${ac_tmp:=$tmp}"
12211  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12212' 0
12213  trap 'as_fn_exit 1' 1 2 13 15
12214}
12215# Create a (secure) tmp directory for tmp files.
12216
12217{
12218  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12219  test -d "$tmp"
12220}  ||
12221{
12222  tmp=./conf$$-$RANDOM
12223  (umask 077 && mkdir "$tmp")
12224} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12225ac_tmp=$tmp
12226
12227# Set up the scripts for CONFIG_FILES section.
12228# No need to generate them if there are no CONFIG_FILES.
12229# This happens for instance with `./config.status config.h'.
12230if test -n "$CONFIG_FILES"; then
12231
12232
12233ac_cr=`echo X | tr X '\015'`
12234# On cygwin, bash can eat \r inside `` if the user requested igncr.
12235# But we know of no other shell where ac_cr would be empty at this
12236# point, so we can use a bashism as a fallback.
12237if test "x$ac_cr" = x; then
12238  eval ac_cr=\$\'\\r\'
12239fi
12240ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12241if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12242  ac_cs_awk_cr='\\r'
12243else
12244  ac_cs_awk_cr=$ac_cr
12245fi
12246
12247echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12248_ACEOF
12249
12250
12251{
12252  echo "cat >conf$$subs.awk <<_ACEOF" &&
12253  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12254  echo "_ACEOF"
12255} >conf$$subs.sh ||
12256  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12257ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12258ac_delim='%!_!# '
12259for ac_last_try in false false false false false :; do
12260  . ./conf$$subs.sh ||
12261    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12262
12263  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12264  if test $ac_delim_n = $ac_delim_num; then
12265    break
12266  elif $ac_last_try; then
12267    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12268  else
12269    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12270  fi
12271done
12272rm -f conf$$subs.sh
12273
12274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12275cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12276_ACEOF
12277sed -n '
12278h
12279s/^/S["/; s/!.*/"]=/
12280p
12281g
12282s/^[^!]*!//
12283:repl
12284t repl
12285s/'"$ac_delim"'$//
12286t delim
12287:nl
12288h
12289s/\(.\{148\}\)..*/\1/
12290t more1
12291s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12292p
12293n
12294b repl
12295:more1
12296s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12297p
12298g
12299s/.\{148\}//
12300t nl
12301:delim
12302h
12303s/\(.\{148\}\)..*/\1/
12304t more2
12305s/["\\]/\\&/g; s/^/"/; s/$/"/
12306p
12307b
12308:more2
12309s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12310p
12311g
12312s/.\{148\}//
12313t delim
12314' <conf$$subs.awk | sed '
12315/^[^""]/{
12316  N
12317  s/\n//
12318}
12319' >>$CONFIG_STATUS || ac_write_fail=1
12320rm -f conf$$subs.awk
12321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12322_ACAWK
12323cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12324  for (key in S) S_is_set[key] = 1
12325  FS = ""
12326
12327}
12328{
12329  line = $ 0
12330  nfields = split(line, field, "@")
12331  substed = 0
12332  len = length(field[1])
12333  for (i = 2; i < nfields; i++) {
12334    key = field[i]
12335    keylen = length(key)
12336    if (S_is_set[key]) {
12337      value = S[key]
12338      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12339      len += length(value) + length(field[++i])
12340      substed = 1
12341    } else
12342      len += 1 + keylen
12343  }
12344
12345  print line
12346}
12347
12348_ACAWK
12349_ACEOF
12350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12351if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12352  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12353else
12354  cat
12355fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12356  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12357_ACEOF
12358
12359# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12360# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12361# trailing colons and then remove the whole line if VPATH becomes empty
12362# (actually we leave an empty line to preserve line numbers).
12363if test "x$srcdir" = x.; then
12364  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12365h
12366s///
12367s/^/:/
12368s/[	 ]*$/:/
12369s/:\$(srcdir):/:/g
12370s/:\${srcdir}:/:/g
12371s/:@srcdir@:/:/g
12372s/^:*//
12373s/:*$//
12374x
12375s/\(=[	 ]*\).*/\1/
12376G
12377s/\n//
12378s/^[^=]*=[	 ]*$//
12379}'
12380fi
12381
12382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12383fi # test -n "$CONFIG_FILES"
12384
12385# Set up the scripts for CONFIG_HEADERS section.
12386# No need to generate them if there are no CONFIG_HEADERS.
12387# This happens for instance with `./config.status Makefile'.
12388if test -n "$CONFIG_HEADERS"; then
12389cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12390BEGIN {
12391_ACEOF
12392
12393# Transform confdefs.h into an awk script `defines.awk', embedded as
12394# here-document in config.status, that substitutes the proper values into
12395# config.h.in to produce config.h.
12396
12397# Create a delimiter string that does not exist in confdefs.h, to ease
12398# handling of long lines.
12399ac_delim='%!_!# '
12400for ac_last_try in false false :; do
12401  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12402  if test -z "$ac_tt"; then
12403    break
12404  elif $ac_last_try; then
12405    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12406  else
12407    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12408  fi
12409done
12410
12411# For the awk script, D is an array of macro values keyed by name,
12412# likewise P contains macro parameters if any.  Preserve backslash
12413# newline sequences.
12414
12415ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12416sed -n '
12417s/.\{148\}/&'"$ac_delim"'/g
12418t rset
12419:rset
12420s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12421t def
12422d
12423:def
12424s/\\$//
12425t bsnl
12426s/["\\]/\\&/g
12427s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12428D["\1"]=" \3"/p
12429s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12430d
12431:bsnl
12432s/["\\]/\\&/g
12433s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12434D["\1"]=" \3\\\\\\n"\\/p
12435t cont
12436s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12437t cont
12438d
12439:cont
12440n
12441s/.\{148\}/&'"$ac_delim"'/g
12442t clear
12443:clear
12444s/\\$//
12445t bsnlc
12446s/["\\]/\\&/g; s/^/"/; s/$/"/p
12447d
12448:bsnlc
12449s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12450b cont
12451' <confdefs.h | sed '
12452s/'"$ac_delim"'/"\\\
12453"/g' >>$CONFIG_STATUS || ac_write_fail=1
12454
12455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12456  for (key in D) D_is_set[key] = 1
12457  FS = ""
12458}
12459/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12460  line = \$ 0
12461  split(line, arg, " ")
12462  if (arg[1] == "#") {
12463    defundef = arg[2]
12464    mac1 = arg[3]
12465  } else {
12466    defundef = substr(arg[1], 2)
12467    mac1 = arg[2]
12468  }
12469  split(mac1, mac2, "(") #)
12470  macro = mac2[1]
12471  prefix = substr(line, 1, index(line, defundef) - 1)
12472  if (D_is_set[macro]) {
12473    # Preserve the white space surrounding the "#".
12474    print prefix "define", macro P[macro] D[macro]
12475    next
12476  } else {
12477    # Replace #undef with comments.  This is necessary, for example,
12478    # in the case of _POSIX_SOURCE, which is predefined and required
12479    # on some systems where configure will not decide to define it.
12480    if (defundef == "undef") {
12481      print "/*", prefix defundef, macro, "*/"
12482      next
12483    }
12484  }
12485}
12486{ print }
12487_ACAWK
12488_ACEOF
12489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12490  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12491fi # test -n "$CONFIG_HEADERS"
12492
12493
12494eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12495shift
12496for ac_tag
12497do
12498  case $ac_tag in
12499  :[FHLC]) ac_mode=$ac_tag; continue;;
12500  esac
12501  case $ac_mode$ac_tag in
12502  :[FHL]*:*);;
12503  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12504  :[FH]-) ac_tag=-:-;;
12505  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12506  esac
12507  ac_save_IFS=$IFS
12508  IFS=:
12509  set x $ac_tag
12510  IFS=$ac_save_IFS
12511  shift
12512  ac_file=$1
12513  shift
12514
12515  case $ac_mode in
12516  :L) ac_source=$1;;
12517  :[FH])
12518    ac_file_inputs=
12519    for ac_f
12520    do
12521      case $ac_f in
12522      -) ac_f="$ac_tmp/stdin";;
12523      *) # Look for the file first in the build tree, then in the source tree
12524	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12525	 # because $ac_f cannot contain `:'.
12526	 test -f "$ac_f" ||
12527	   case $ac_f in
12528	   [\\/$]*) false;;
12529	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12530	   esac ||
12531	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12532      esac
12533      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12534      as_fn_append ac_file_inputs " '$ac_f'"
12535    done
12536
12537    # Let's still pretend it is `configure' which instantiates (i.e., don't
12538    # use $as_me), people would be surprised to read:
12539    #    /* config.h.  Generated by config.status.  */
12540    configure_input='Generated from '`
12541	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12542	`' by configure.'
12543    if test x"$ac_file" != x-; then
12544      configure_input="$ac_file.  $configure_input"
12545      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12546printf "%s\n" "$as_me: creating $ac_file" >&6;}
12547    fi
12548    # Neutralize special characters interpreted by sed in replacement strings.
12549    case $configure_input in #(
12550    *\&* | *\|* | *\\* )
12551       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12552       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12553    *) ac_sed_conf_input=$configure_input;;
12554    esac
12555
12556    case $ac_tag in
12557    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12558      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12559    esac
12560    ;;
12561  esac
12562
12563  ac_dir=`$as_dirname -- "$ac_file" ||
12564$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12565	 X"$ac_file" : 'X\(//\)[^/]' \| \
12566	 X"$ac_file" : 'X\(//\)$' \| \
12567	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12568printf "%s\n" X"$ac_file" |
12569    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12570	    s//\1/
12571	    q
12572	  }
12573	  /^X\(\/\/\)[^/].*/{
12574	    s//\1/
12575	    q
12576	  }
12577	  /^X\(\/\/\)$/{
12578	    s//\1/
12579	    q
12580	  }
12581	  /^X\(\/\).*/{
12582	    s//\1/
12583	    q
12584	  }
12585	  s/.*/./; q'`
12586  as_dir="$ac_dir"; as_fn_mkdir_p
12587  ac_builddir=.
12588
12589case "$ac_dir" in
12590.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12591*)
12592  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12593  # A ".." for each directory in $ac_dir_suffix.
12594  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12595  case $ac_top_builddir_sub in
12596  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12597  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12598  esac ;;
12599esac
12600ac_abs_top_builddir=$ac_pwd
12601ac_abs_builddir=$ac_pwd$ac_dir_suffix
12602# for backward compatibility:
12603ac_top_builddir=$ac_top_build_prefix
12604
12605case $srcdir in
12606  .)  # We are building in place.
12607    ac_srcdir=.
12608    ac_top_srcdir=$ac_top_builddir_sub
12609    ac_abs_top_srcdir=$ac_pwd ;;
12610  [\\/]* | ?:[\\/]* )  # Absolute name.
12611    ac_srcdir=$srcdir$ac_dir_suffix;
12612    ac_top_srcdir=$srcdir
12613    ac_abs_top_srcdir=$srcdir ;;
12614  *) # Relative name.
12615    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12616    ac_top_srcdir=$ac_top_build_prefix$srcdir
12617    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12618esac
12619ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12620
12621
12622  case $ac_mode in
12623  :F)
12624  #
12625  # CONFIG_FILE
12626  #
12627
12628  case $INSTALL in
12629  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12630  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12631  esac
12632  ac_MKDIR_P=$MKDIR_P
12633  case $MKDIR_P in
12634  [\\/$]* | ?:[\\/]* ) ;;
12635  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12636  esac
12637_ACEOF
12638
12639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12640# If the template does not know about datarootdir, expand it.
12641# FIXME: This hack should be removed a few years after 2.60.
12642ac_datarootdir_hack=; ac_datarootdir_seen=
12643ac_sed_dataroot='
12644/datarootdir/ {
12645  p
12646  q
12647}
12648/@datadir@/p
12649/@docdir@/p
12650/@infodir@/p
12651/@localedir@/p
12652/@mandir@/p'
12653case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12654*datarootdir*) ac_datarootdir_seen=yes;;
12655*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12657printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12658_ACEOF
12659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12660  ac_datarootdir_hack='
12661  s&@datadir@&$datadir&g
12662  s&@docdir@&$docdir&g
12663  s&@infodir@&$infodir&g
12664  s&@localedir@&$localedir&g
12665  s&@mandir@&$mandir&g
12666  s&\\\${datarootdir}&$datarootdir&g' ;;
12667esac
12668_ACEOF
12669
12670# Neutralize VPATH when `$srcdir' = `.'.
12671# Shell code in configure.ac might set extrasub.
12672# FIXME: do we really want to maintain this feature?
12673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12674ac_sed_extra="$ac_vpsub
12675$extrasub
12676_ACEOF
12677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12678:t
12679/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12680s|@configure_input@|$ac_sed_conf_input|;t t
12681s&@top_builddir@&$ac_top_builddir_sub&;t t
12682s&@top_build_prefix@&$ac_top_build_prefix&;t t
12683s&@srcdir@&$ac_srcdir&;t t
12684s&@abs_srcdir@&$ac_abs_srcdir&;t t
12685s&@top_srcdir@&$ac_top_srcdir&;t t
12686s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12687s&@builddir@&$ac_builddir&;t t
12688s&@abs_builddir@&$ac_abs_builddir&;t t
12689s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12690s&@INSTALL@&$ac_INSTALL&;t t
12691s&@MKDIR_P@&$ac_MKDIR_P&;t t
12692$ac_datarootdir_hack
12693"
12694eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12695  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12696
12697test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12698  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12699  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12700      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12702which seems to be undefined.  Please make sure it is defined" >&5
12703printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12704which seems to be undefined.  Please make sure it is defined" >&2;}
12705
12706  rm -f "$ac_tmp/stdin"
12707  case $ac_file in
12708  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12709  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12710  esac \
12711  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12712 ;;
12713  :H)
12714  #
12715  # CONFIG_HEADER
12716  #
12717  if test x"$ac_file" != x-; then
12718    {
12719      printf "%s\n" "/* $configure_input  */" >&1 \
12720      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12721    } >"$ac_tmp/config.h" \
12722      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12723    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12724      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12725printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12726    else
12727      rm -f "$ac_file"
12728      mv "$ac_tmp/config.h" "$ac_file" \
12729	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12730    fi
12731  else
12732    printf "%s\n" "/* $configure_input  */" >&1 \
12733      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12734      || as_fn_error $? "could not create -" "$LINENO" 5
12735  fi
12736# Compute "$ac_file"'s index in $config_headers.
12737_am_arg="$ac_file"
12738_am_stamp_count=1
12739for _am_header in $config_headers :; do
12740  case $_am_header in
12741    $_am_arg | $_am_arg:* )
12742      break ;;
12743    * )
12744      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12745  esac
12746done
12747echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12748$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12749	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12750	 X"$_am_arg" : 'X\(//\)$' \| \
12751	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12752printf "%s\n" X"$_am_arg" |
12753    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12754	    s//\1/
12755	    q
12756	  }
12757	  /^X\(\/\/\)[^/].*/{
12758	    s//\1/
12759	    q
12760	  }
12761	  /^X\(\/\/\)$/{
12762	    s//\1/
12763	    q
12764	  }
12765	  /^X\(\/\).*/{
12766	    s//\1/
12767	    q
12768	  }
12769	  s/.*/./; q'`/stamp-h$_am_stamp_count
12770 ;;
12771
12772  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12773printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12774 ;;
12775  esac
12776
12777
12778  case $ac_file$ac_mode in
12779    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12780  # Older Autoconf quotes --file arguments for eval, but not when files
12781  # are listed without --file.  Let's play safe and only enable the eval
12782  # if we detect the quoting.
12783  # TODO: see whether this extra hack can be removed once we start
12784  # requiring Autoconf 2.70 or later.
12785  case $CONFIG_FILES in #(
12786  *\'*) :
12787    eval set x "$CONFIG_FILES" ;; #(
12788  *) :
12789    set x $CONFIG_FILES ;; #(
12790  *) :
12791     ;;
12792esac
12793  shift
12794  # Used to flag and report bootstrapping failures.
12795  am_rc=0
12796  for am_mf
12797  do
12798    # Strip MF so we end up with the name of the file.
12799    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12800    # Check whether this is an Automake generated Makefile which includes
12801    # dependency-tracking related rules and includes.
12802    # Grep'ing the whole file directly is not great: AIX grep has a line
12803    # limit of 2048, but all sed's we know have understand at least 4000.
12804    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12805      || continue
12806    am_dirpart=`$as_dirname -- "$am_mf" ||
12807$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12808	 X"$am_mf" : 'X\(//\)[^/]' \| \
12809	 X"$am_mf" : 'X\(//\)$' \| \
12810	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12811printf "%s\n" X"$am_mf" |
12812    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12813	    s//\1/
12814	    q
12815	  }
12816	  /^X\(\/\/\)[^/].*/{
12817	    s//\1/
12818	    q
12819	  }
12820	  /^X\(\/\/\)$/{
12821	    s//\1/
12822	    q
12823	  }
12824	  /^X\(\/\).*/{
12825	    s//\1/
12826	    q
12827	  }
12828	  s/.*/./; q'`
12829    am_filepart=`$as_basename -- "$am_mf" ||
12830$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12831	 X"$am_mf" : 'X\(//\)$' \| \
12832	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12833printf "%s\n" X/"$am_mf" |
12834    sed '/^.*\/\([^/][^/]*\)\/*$/{
12835	    s//\1/
12836	    q
12837	  }
12838	  /^X\/\(\/\/\)$/{
12839	    s//\1/
12840	    q
12841	  }
12842	  /^X\/\(\/\).*/{
12843	    s//\1/
12844	    q
12845	  }
12846	  s/.*/./; q'`
12847    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12848      && sed -e '/# am--include-marker/d' "$am_filepart" \
12849        | $MAKE -f - am--depfiles" >&5
12850   (cd "$am_dirpart" \
12851      && sed -e '/# am--include-marker/d' "$am_filepart" \
12852        | $MAKE -f - am--depfiles) >&5 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); } || am_rc=$?
12856  done
12857  if test $am_rc -ne 0; then
12858    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12859printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12860as_fn_error $? "Something went wrong bootstrapping makefile fragments
12861    for automatic dependency tracking.  If GNU make was not used, consider
12862    re-running the configure script with MAKE=\"gmake\" (or whatever is
12863    necessary).  You can also try re-running configure with the
12864    '--disable-dependency-tracking' option to at least be able to build
12865    the package (albeit without support for automatic dependency tracking).
12866See \`config.log' for more details" "$LINENO" 5; }
12867  fi
12868  { am_dirpart=; unset am_dirpart;}
12869  { am_filepart=; unset am_filepart;}
12870  { am_mf=; unset am_mf;}
12871  { am_rc=; unset am_rc;}
12872  rm -f conftest-deps.mk
12873}
12874 ;;
12875
12876  esac
12877done # for ac_tag
12878
12879
12880as_fn_exit 0
12881_ACEOF
12882ac_clean_files=$ac_clean_files_save
12883
12884test $ac_write_fail = 0 ||
12885  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12886
12887
12888# configure is writing to config.log, and then calls config.status.
12889# config.status does its own redirection, appending to config.log.
12890# Unfortunately, on DOS this fails, as config.log is still kept open
12891# by configure, so config.status won't be able to write to it; its
12892# output is simply discarded.  So we exec the FD to /dev/null,
12893# effectively closing config.log, so it can be properly (re)opened and
12894# appended to by config.status.  When coming back to configure, we
12895# need to make the FD available again.
12896if test "$no_create" != yes; then
12897  ac_cs_success=:
12898  ac_config_status_args=
12899  test "$silent" = yes &&
12900    ac_config_status_args="$ac_config_status_args --quiet"
12901  exec 5>/dev/null
12902  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12903  exec 5>>config.log
12904  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12905  # would make configure fail if this is the last instruction.
12906  $ac_cs_success || as_fn_exit 1
12907fi
12908if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12910printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12911fi
12912
12913
12914